22 #include "wxgis/framework/command.h"
23 #include "wxgis/framework/applicationbase.h"
24 #include "wxgis/cartoui/drawingmap.h"
25 #include "wxgis/cartoui/mxeventui.h"
27 enum wxGISEnumDrawingToolType{
28 enumGISDrawingToolRectangle = 0,
29 enumGISDrawingToolPolygon,
30 enumGISDrawingToolCircle,
31 enumGISDrawingToolEllipse,
32 enumGISDrawingToolLine,
33 #ifdef wxGIS_USE_SPLINE
34 enumGISDrawingToolCurve,
35 #endif //wxGIS_USE_SPLINE
36 enumGISDrawingToolFreeHand,
37 enumGISDrawingToolMarker,
38 enumGISDrawingToolLayerSelector,
39 enumGISDrawingToolLayerClear,
56 wxGISDrawingLayersComboBox(wxWindow* parent, wxWindowID
id,
const wxString& value,
const wxPoint& pos,
const wxSize& size,
const wxArrayString& choices,
long style = wxCB_READONLY,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxT(
"DrawingLayersComboBox"));
58 virtual void UpdateLayersList(
int nWinId);
64 virtual void Deactivate(
void);
66 wxVector< std::pair<wxWindowID, long> > m_anMapWinIDs;
88 virtual wxIcon GetBitmap(
void);
89 virtual wxString GetCaption(
void);
90 virtual wxString GetCategory(
void);
91 virtual bool GetChecked(
void);
92 virtual bool GetEnabled(
void);
93 virtual wxString GetMessage(
void);
94 virtual wxGISEnumCommandKind GetKind(
void);
95 virtual void OnClick(
void);
97 virtual wxString GetTooltip(
void);
98 virtual unsigned char GetCount(
void);
100 virtual wxCursor GetCursor(
void);
101 virtual void SetChecked(
bool bCheck);
102 virtual void OnMouseDown(wxMouseEvent& event);
103 virtual void OnMouseUp(wxMouseEvent& event);
104 virtual void OnMouseDoubleClick(wxMouseEvent& event);
105 virtual void OnMouseMove(wxMouseEvent& event);
108 virtual wxString GetToolLabel(
void);
109 virtual bool HasToolLabel(
void);
112 wxIcon m_IconPolygon, m_IconLine, m_IconMarker, m_IconCircle, m_IconEllipse, m_IconCurve, m_IconRectangle, m_IconFreeHand;
113 wxIcon m_IconEditClear;
114 wxCursor m_CurDrawing;
116 WINDOWARRAY m_anMapWinIDs;
120 enum wxGISEnumDrawingToolMenuType{
121 enumGISDrawingToolMenu = 0,
122 enumGISDrawingTextToolMenu
142 virtual wxIcon GetBitmap(
void);
143 virtual wxString GetCaption(
void);
144 virtual wxString GetCategory(
void);
145 virtual bool GetChecked(
void);
146 virtual bool GetEnabled(
void);
147 virtual wxString GetMessage(
void);
148 virtual wxGISEnumCommandKind GetKind(
void);
149 virtual void OnClick(
void);
151 virtual wxString GetTooltip(
void);
152 virtual unsigned char GetCount(
void);
154 virtual wxCursor GetCursor(
void);
155 virtual void SetChecked(
bool bCheck);
156 virtual void OnMouseDown(wxMouseEvent& event);
157 virtual void OnMouseUp(wxMouseEvent& event);
158 virtual void OnMouseDoubleClick(wxMouseEvent& event);
159 virtual void OnMouseMove(wxMouseEvent& event);
Definition: mxeventui.h:54
Definition: applicationbase.h:65
virtual wxMenu * GetDropDownMenu(void)=0
Return DropDown Menu to show under button.
Definition: command.h:157
Definition: drawingmap.h:34
Definition: command.h:151
Definition: drawingcmd.h:50
virtual void OnDropDownCommand(int nID)=0
Execute the DropDown menu command.