]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/listctrl/listtest.h
added wxUSE_POPUPWIN
[wxWidgets.git] / samples / listctrl / listtest.h
index 95563e366a6b62c7d157b0754a8a3a7a0bda47a3..446585a4a42e2df3c72ec558e590816ef08180b0 100644 (file)
@@ -25,6 +25,9 @@ public:
         {
         }
 
+    // add one item to the listctrl in report mode
+    void InsertItemInReportView(int i);
+
     void OnColClick(wxListEvent& event);
     void OnBeginDrag(wxListEvent& event);
     void OnBeginRDrag(wxListEvent& event);
@@ -84,6 +87,7 @@ public:
     void OnSetBgColour(wxCommandEvent& event);
     void OnToggleMultiSel(wxCommandEvent& event);
     void OnShowColInfo(wxCommandEvent& event);
+    void OnShowSelInfo(wxCommandEvent& event);
 
     void OnUpdateShowColInfo(wxUpdateUIEvent& event);
 
@@ -91,6 +95,15 @@ public:
     wxImageList *m_imageListSmall;
 
 private:
+    // recreate the list control with the new flags
+    void RecreateList(long flags, bool withText = TRUE);
+
+    // fill the control with items depending on the view
+    void InitWithListItems();
+    void InitWithReportItems();
+    void InitWithIconItems(bool withText, bool sameIcon = FALSE);
+    void InitWithVirtualItems();
+
     wxLog *m_logOld;
 
     DECLARE_EVENT_TABLE()
@@ -122,6 +135,7 @@ enum
     LIST_TOGGLE_MULTI_SEL,
     LIST_TOGGLE_FIRST,
     LIST_SHOW_COL_INFO,
+    LIST_SHOW_SEL_INFO,
 
     LIST_CTRL                   = 1000
 };