22 #include "wxgis/framework/framework.h"
23 #include "wxgis/framework/application.h"
27 #include "wx/gdicmn.h"
28 #include "wx/aui/auibook.h"
30 #include "wx/colour.h"
31 #include "wx/settings.h"
32 #include "wx/string.h"
34 #include "wx/button.h"
35 #include "wx/dialog.h"
36 #include "wx/splitter.h"
37 #include "wx/checklst.h"
38 #include "wx/listctrl.h"
40 #include "wx/listbox.h"
46 ID_LSTBX = wxID_HIGHEST + 2051,
49 MENUID = ID_PLUGINCMD + 1200
52 typedef std::map<wxString, wxCommandPtrArray> CATEGORYMAP;
53 wxVector<long> m_IDArray;
56 CATEGORYMAP m_CategoryMap;
59 wxSplitterWindow* m_Splitter;
61 wxListView* m_ListCtrl;
63 wxImageList m_ImageList;
65 wxStdDialogButtonSizer* m_sdbSizer;
66 wxButton* m_sdbSizerOK;
67 wxButton* m_sdbSizerCancel;
70 wxGISAddCommandDlg(
wxGISApplication* pGxApp, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxString& title = _(
"Add command"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
72 void FillIDArray(
void);
73 void SplitterOnIdle( wxIdleEvent& )
75 m_Splitter->SetSashPosition( m_nSashPos );
76 m_Splitter->Unbind(wxEVT_IDLE, &wxGISAddCommandDlg::SplitterOnIdle,
this );
79 virtual void EndModal(
int retCode);
81 void OnListboxSelect(wxCommandEvent& event);
82 void OnDoubleClickSash(wxSplitterEvent& event);
83 void OnListctrlActivated(wxListEvent& event);
84 void OnUpdateOKUI(wxUpdateUIEvent& event);
85 void OnOk(wxCommandEvent& event);
87 virtual void SerializeDialogPos(
bool bSave =
false);
Definition: application.h:39
Definition: addcommanddlg.h:42