X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c545c23009f0becef71274fe4bb1bde667328687..0edfdd963bdc9cfeb54d403ed77b5f36e4de8c84:/samples/treectrl/treetest.h diff --git a/samples/treectrl/treetest.h b/samples/treectrl/treetest.h index 17edaf267f..f9a2f3bcaa 100644 --- a/samples/treectrl/treetest.h +++ b/samples/treectrl/treetest.h @@ -76,7 +76,6 @@ public: void OnContextMenu(wxContextMenuEvent& event); void OnItemMenu(wxTreeEvent& event); void OnGetInfo(wxTreeEvent& event); - void OnTreeRMouseClick(wxTreeEvent& event); void OnSetInfo(wxTreeEvent& event); void OnItemExpanded(wxTreeEvent& event); void OnItemExpanding(wxTreeEvent& event); @@ -86,6 +85,7 @@ public: void OnSelChanging(wxTreeEvent& event); void OnTreeKeyDown(wxTreeEvent& event); void OnItemActivated(wxTreeEvent& event); + void OnItemRClick(wxTreeEvent& event); void OnRMouseDown(wxMouseEvent& event); void OnRMouseUp(wxMouseEvent& event); @@ -127,6 +127,8 @@ private: size_t depth, size_t folder); + void LogEvent(const wxChar *name, const wxTreeEvent& event); + int m_imageSize; // current size of images bool m_reverseSort; // flag for OnCompareItems wxTreeItemId m_lastItem, // for OnEnsureVisible() @@ -175,6 +177,7 @@ public: void OnSetFgColour(wxCommandEvent& event); void OnSetBgColour(wxCommandEvent& event); + void OnHighlight(wxCommandEvent& event); void OnDump(wxCommandEvent& event); #ifndef NO_MULTIPLE_SELECTION void OnDumpSelected(wxCommandEvent& event); @@ -229,6 +232,7 @@ private: void CreateTreeWithDefStyle(); void CreateTree(long style); + wxPanel *m_panel; MyTreeCtrl *m_treeCtrl; #if wxUSE_LOG wxTextCtrl *m_textCtrl; @@ -255,6 +259,7 @@ enum TreeTest_SetFgColour, TreeTest_SetBgColour, TreeTest_ResetStyle, + TreeTest_Highlight, TreeTest_Dump, TreeTest_DumpSelected, TreeTest_Count,