23 #include "wxgis/framework/framework.h"
24 #include "wxgis/framework/statusbar.h"
25 #include "wxgis/framework/command.h"
26 #include "wxgis/core/pointer.h"
28 #include <wx/aui/aui.h>
30 #include <wx/xml/xml.h>
32 #define STANDARDSTR _("Standard")
33 #define LOCATIONSTR _("Location")
34 #define GEOGRAPHYSTR _("Geography")
35 #define MAPFRAMETOOLSTR _("Map Frame Tools")
36 #define TASKSTR _("Task")
44 enum wxGISEnumCommandBars
46 enumGISCBNone = 0x0000,
47 enumGISCBMenubar = 0x0001,
48 enumGISCBContextmenu = 0x0002,
49 enumGISCBSubMenu = 0x0004,
50 enumGISCBToolbar = 0x0008
66 wxGISCommandBar(
const wxString& sName = NONAME,
const wxString& sCaption = _(
"No Caption"), wxGISEnumCommandBars type = enumGISCBNone);
68 virtual void SetName(
const wxString& sName);
69 virtual wxString GetName(
void)
const;
70 virtual void SetCaption(
const wxString& sCaption);
71 virtual wxString GetCaption(
void)
const;
72 virtual void SetType(wxGISEnumCommandBars type);
73 virtual wxGISEnumCommandBars GetType(
void);
75 virtual void AddMenu(wxMenu* pMenu, wxString sName){};
76 virtual void RemoveCommand(
size_t nIndex);
77 virtual void MoveCommandLeft(
size_t nIndex);
78 virtual void MoveCommandRight(
size_t nIndex);
79 virtual size_t GetCommandCount(
void);
83 wxCommandPtrArray m_CommandArray;
86 wxGISEnumCommandBars m_type;
109 wxGISMenu(
const wxString& sName = NONAME,
const wxString& sCaption = _(
"No Caption"), wxGISEnumCommandBars type = enumGISCBNone,
const wxString& title = wxEmptyString,
long style = 0);
112 virtual void RemoveCommand(
size_t nIndex);
113 virtual void MoveCommandLeft(
size_t nIndex);
114 virtual void MoveCommandRight(
size_t nIndex);
115 virtual void AddMenu(wxMenu* pMenu, wxString sName);
122 wxVector<SUBMENUDATA> m_SubmenuArray;
137 wxGISToolBar(wxWindow* parent, wxWindowID
id = -1,
const wxPoint& position = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxAUI_TB_DEFAULT_STYLE,
const wxString& sName = NONAME,
const wxString& sCaption = _(
"No Caption"), wxGISEnumCommandBars type = enumGISCBNone );
139 virtual void SetLeftDockable(
bool bLDock);
140 virtual void SetRightDockable(
bool bRDock);
141 virtual bool GetLeftDockable(
void);
142 virtual bool GetRightDockable(
void);
144 virtual void SetName(
const wxString& sName);
145 virtual wxString GetName(
void);
146 virtual void SetCaption(
const wxString& sCaption);
147 virtual wxString GetCaption(
void);
148 virtual void RemoveCommand(
size_t nIndex);
149 virtual void MoveCommandLeft(
size_t nIndex);
150 virtual void MoveCommandRight(
size_t nIndex);
152 virtual void AddMenu(wxMenu* pMenu, wxString sName);
154 virtual void Deactivate(
void);
155 virtual void UpdateControls(
void);
157 virtual void OnMotion(wxMouseEvent& evt);
158 virtual void OnToolDropDown(wxAuiToolBarEvent& event);
159 virtual void OnDropDownCommand(wxCommandEvent& event);
169 std::map<size_t, IToolBarControl*> m_RemControlMap;
171 DECLARE_EVENT_TABLE()
Definition: applicationbase.h:65
Definition: commandbar.h:60
Definition: statusbar.h:58
Definition: command.h:151