23 #include "wxgis/framework/framework.h"
24 #include "wxgis/framework/applicationex.h"
28 #include "wx/gdicmn.h"
29 #include "wx/aui/auibook.h"
31 #include "wx/colour.h"
32 #include "wx/settings.h"
33 #include "wx/string.h"
35 #include "wx/button.h"
36 #include "wx/dialog.h"
37 #include "wx/splitter.h"
38 #include "wx/checklst.h"
39 #include "wx/listctrl.h"
40 #include "wx/treectrl.h"
75 ID_TREECTRL = wxID_HIGHEST + 3010,
86 wxGISToolBarPanel(
wxGISApplicationEx* pApp, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL);
88 void SplitterOnIdle( wxIdleEvent& )
90 m_Splitter->SetSashPosition( m_nSashPos );
91 m_Splitter->Unbind( wxEVT_IDLE, &wxGISToolBarPanel::SplitterOnIdle,
this );
95 void OnSelChanged(wxTreeEvent& event);
97 void OnDoubleClickSash(wxSplitterEvent& event);
99 void OnListctrlActivated(wxListEvent& event);
100 void OnListctrlRClick(wxListEvent& event);
101 void OnSetKeyCode(wxCommandEvent& event);
102 void OnUpdateUI(wxUpdateUIEvent& event);
103 void OnCreateCommandBar(wxCommandEvent& event);
104 void OnDeleteCommandBar(wxCommandEvent& event);
105 void OnAddButton(wxCommandEvent& event);
106 void OnRemoveButton(wxCommandEvent& event);
107 void OnMoveUp(wxCommandEvent& event);
108 void OnMoveDown(wxCommandEvent& event);
109 void OnLeftDown(wxMouseEvent& event);
111 void SetKeyCode(
int pos);
112 long GetSelectedCommandItem(
void);
113 void LoadCommands(
void);
117 wxSplitterWindow* m_Splitter;
119 wxTreeCtrl* m_pTreeCtrl;
120 wxListView* m_buttonslist;
121 wxButton* m_createbutton;
122 wxButton* m_deletebutton;
123 wxButton* m_addbutton;
124 wxButton* m_rembutton;
126 wxButton* m_movedown;
128 wxImageList m_ImageList, m_TreeImageList;
129 wxMenu* m_pContextMenu;
130 bool m_bToolsFocus, m_bCmdFocus;
132 wxTreeItemId m_nMenubarId, m_nContextMenuesId, m_nNewMenuesId, m_nToolBarsId;
134 virtual void SerializePanel(
bool bSave =
false);
138 DECLARE_EVENT_TABLE()
151 ID_LSTBX = wxID_HIGHEST + 2501,
156 typedef std::map<wxString, wxCommandPtrArray> CATEGORYMAP;
159 CATEGORYMAP m_CategoryMap;
162 wxSplitterWindow* m_splitter2;
163 wxListBox* m_listBox1;
164 wxListCtrl* m_listCtrl3;
166 wxImageList m_ImageList;
167 wxMenu* m_pContextMenu;
171 wxGISCommandPanel(
wxGISApplicationEx* pApp, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL);
173 void m_splitter2OnIdle( wxIdleEvent& )
175 m_splitter2->SetSashPosition( m_nSashPos );
176 m_splitter2->Unbind( wxEVT_IDLE, &wxGISCommandPanel::m_splitter2OnIdle,
this );
180 void OnListboxSelect(wxCommandEvent& event);
181 void OnDoubleClickSash(wxSplitterEvent& event);
182 void OnListctrlActivated(wxListEvent& event);
183 void OnListctrlRClick(wxListEvent& event);
184 void OnSetKeyCode(wxCommandEvent& event);
186 void SetKeyCode(
int pos);
188 virtual void SerializePanel(
bool bSave =
false);
192 DECLARE_EVENT_TABLE()
204 wxGISCustomizeDlg( wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxString& title = _(
"Customize"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER );
207 virtual void EndModal (
int retCode);
209 virtual void SerializeFramePos(
bool bSave =
false);
211 wxAuiNotebook* m_AuiNotebook;
212 wxStdDialogButtonSizer* m_sdbSizer;
213 wxButton* m_sdbSizerOK;
Definition: customizedlg.h:201
Definition: commandbar.h:60
wxGISCommandPanel(wxGISApplicationEx *pApp, wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
Class wxGISCommandPanel.
Definition: customizedlg.cpp:668
Definition: customizedlg.h:49
Definition: applicationex.h:61
Definition: customizedlg.h:147