23 #include "wxgis/framework/framework.h"
25 #define NO_CATEGORY wxString(_("[No category]"))
34 enum wxGISEnumCommandKind
36 enumGISCommandSeparator = wxITEM_SEPARATOR,
37 enumGISCommandNormal = wxITEM_NORMAL,
38 enumGISCommandCheck = wxITEM_CHECK,
39 enumGISCommandRadio = wxITEM_RADIO,
40 enumGISCommandMax = wxITEM_MAX,
41 enumGISCommandMenu = wxITEM_MAX + 10,
42 enumGISCommandControl,
43 enumGISCommandDropDown
66 virtual wxIcon GetBitmap(
void) = 0;
67 virtual wxString GetCaption(
void) = 0;
68 virtual wxString GetCategory(
void) = 0;
69 virtual bool GetChecked(
void) = 0;
70 virtual bool GetEnabled(
void) = 0;
71 virtual wxString GetMessage(
void) = 0;
72 virtual wxGISEnumCommandKind GetKind(
void) = 0;
73 virtual void OnClick(
void) = 0;
75 virtual wxString GetTooltip(
void) = 0;
76 virtual unsigned char GetCount(
void) = 0;
77 virtual void SetId(
long nId);
78 virtual long GetId(
void)
const;
80 virtual void SetSubType(
unsigned char SubType);
81 virtual unsigned char GetSubType(
void)
const;
83 unsigned char m_subtype;
100 virtual void Deactivate(
void) = 0;
118 virtual wxString GetToolLabel(
void) = 0;
119 virtual bool HasToolLabel(
void) = 0;
136 virtual void SetChecked(
bool bCheck) = 0;
137 virtual wxCursor GetCursor(
void) = 0;
138 virtual void OnMouseDown(wxMouseEvent& event) = 0;
139 virtual void OnMouseUp(wxMouseEvent& event) = 0;
140 virtual void OnMouseMove(wxMouseEvent& event) = 0;
141 virtual void OnMouseDoubleClick(wxMouseEvent& event) = 0;
170 enum wxGISEnumCommonCmdType{
171 enumGISCommonCmdExit = 0,
172 enumGISCommonCmdAbout,
173 enumGISCommonCmdCustomize,
174 enumGISCommonCmdSeparator,
175 enumGISCommonCmdStatusBar,
176 enumGISCommonCmdOptions,
177 enumGISCommonCmdFitToolbars,
178 enumGISCommonCmdOptimizeToolbars,
191 virtual wxIcon GetBitmap(
void);
192 virtual wxString GetCaption(
void);
193 virtual wxString GetCategory(
void);
194 virtual bool GetChecked(
void);
195 virtual bool GetEnabled(
void);
196 virtual wxString GetMessage(
void);
197 virtual wxGISEnumCommandKind GetKind(
void);
198 virtual void OnClick(
void);
200 virtual wxString GetTooltip(
void);
201 virtual unsigned char GetCount(
void);
Definition: applicationbase.h:65
virtual wxMenu * GetDropDownMenu(void)=0
Return DropDown Menu to show under button.
Definition: command.h:157
virtual ~IDropDownCommand(void)
A destructor.
Definition: command.h:157
Definition: command.h:151
Definition: command.h:182
virtual void OnDropDownCommand(int nID)=0
Execute the DropDown menu command.