+ void OnAdd(wxCommandEvent& event);
+ void OnEdit(wxCommandEvent& event);
+ void OnDelete(wxCommandEvent& event);
+ void OnDeleteAll(wxCommandEvent& event);
+ void OnSort(wxCommandEvent& event);
+ void OnSetFgColour(wxCommandEvent& event);
+ void OnSetBgColour(wxCommandEvent& event);
+ void OnToggleMultiSel(wxCommandEvent& event);
+ void OnShowColInfo(wxCommandEvent& event);
+ void OnShowSelInfo(wxCommandEvent& event);
+ void OnFreeze(wxCommandEvent& event);
+ void OnThaw(wxCommandEvent& event);
+
+ void OnUpdateShowColInfo(wxUpdateUIEvent& event);
+ void OnUpdateToggleMultiSel(wxUpdateUIEvent& event);
+
+ wxImageList *m_imageListNormal;
+ wxImageList *m_imageListSmall;
+
+ wxPanel *m_panel;
+ MyListCtrl *m_listCtrl;
+ wxTextCtrl *m_logWindow;
+
+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();
+
+ // return true if the control is not in virtual view, give an error message
+ // and return false if it is
+ bool CheckNonVirtual() const;
+
+
+ wxLog *m_logOld;
+
+ DECLARE_NO_COPY_CLASS(MyFrame)
+ DECLARE_EVENT_TABLE()