23 #include "wxgis/geoprocessingui/geoprocessingui.h"
24 #include "wxgis/geoprocessing/gpparam.h"
28 #include <wx/bitmap.h>
31 #include <wx/statbmp.h>
32 #include <wx/gdicmn.h>
34 #include <wx/colour.h>
35 #include <wx/settings.h>
36 #include <wx/string.h>
37 #include <wx/stattext.h>
38 #include <wx/choice.h>
42 #include <wx/imaglist.h>
54 wxGISDTBase(
const wxGISGPParameterArray &Params,
int nParamIndex, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxCLIP_CHILDREN | wxCLIP_SIBLINGS | wxTAB_TRAVERSAL );
56 virtual void SetMessage(wxGISEnumGPMessageType nType = wxGISEnumGPMessageUnknown,
const wxString &sMsg = wxEmptyString);
57 virtual bool Validate(
void) = 0;
59 virtual wxGISEnumGPMessageType GetCurrentMessageType(
void)
const {
return m_nCurrentType;};
60 virtual wxString GetCurrentMessage(
void)
const {
return m_sCurrentMsg;};
61 virtual void OnDelete();
66 wxStaticBitmap* m_StateBitmap;
67 wxStaticText* m_sParamDisplayName;
68 wxString m_sFullDisplayName;
69 wxStaticBitmap* m_bitmap;
71 wxImageList m_ImageList;
72 wxGISEnumGPMessageType m_nCurrentType;
73 wxString m_sCurrentMsg;
95 ID_PATHCTRL = wxID_HIGHEST + 3603
98 wxGISDTPath(
const wxGISGPParameterArray &Params,
int nParamIndex, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
101 virtual bool Validate(
void);
103 virtual void OnOpen(wxCommandEvent& event);
104 virtual void OnUpdateUI(wxUpdateUIEvent& event);
105 virtual void OnPathChange(wxCommandEvent& event);
108 virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def);
109 virtual bool OnDropObjects(wxCoord x, wxCoord y,
const wxArrayString& GxObjects,
bool bIsControlOn);
110 virtual void OnLeave();
111 virtual bool CanPaste(
void);
113 wxTextCtrl* m_PathTextCtrl;
114 wxBitmapButton* m_bpButton;
116 DECLARE_EVENT_TABLE()
130 wxGISDTFolderPath(
const wxGISGPParameterArray &Params,
int nParamIndex, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
133 virtual bool Validate(
void);
135 virtual void OnOpen(wxCommandEvent& event);
150 ID_DIGITCTRL = wxID_HIGHEST + 3604
153 wxGISDTDigit(
const wxGISGPParameterArray &Params,
int nParamIndex, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
156 virtual bool Validate(
void);
158 virtual void OnUpdateUI(wxUpdateUIEvent &event);
159 virtual void OnDigitChange(wxCommandEvent& event);
162 wxTextCtrl* m_DigitTextCtrl;
164 DECLARE_EVENT_TABLE()
180 ID_CHOICESTR = wxID_HIGHEST + 3605
183 wxGISDTChoice(
const wxGISGPParameterArray &Params,
int nParamIndex, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
186 virtual bool Validate(
void);
188 virtual void OnChoice(wxCommandEvent& event);
189 virtual void OnUpdateUI(wxUpdateUIEvent &event);
195 wxBoxSizer* m_bPathSizer;
197 DECLARE_EVENT_TABLE()
211 wxGISDTFieldChoice(
const wxGISGPParameterArray &Params,
int nParamIndex, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
214 virtual bool Validate(
void);
216 virtual void OnChoice(wxCommandEvent& event);
251 ID_CHECKBOOL = wxID_HIGHEST + 3606
254 wxGISDTBool(
const wxGISGPParameterArray &Params,
int nParamIndex, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
257 virtual bool Validate(
void);
259 virtual void OnClick(wxCommandEvent& event);
260 virtual void OnSize( wxSizeEvent& event );
261 virtual void OnUpdateUI(wxUpdateUIEvent &event);
264 wxCheckBox* m_pCheckBox;
266 DECLARE_EVENT_TABLE()
278 DECLARE_CLASS(wxGISDTString)
281 ID_EDITBOX = wxID_HIGHEST + 3607
284 wxGISDTText(
const wxGISGPParameterArray &Params,
int nParamIndex, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
287 virtual bool Validate(
void);
289 virtual void OnTextChange(wxCommandEvent& event);
290 virtual void OnUpdateUI(wxUpdateUIEvent &event);
293 wxTextCtrl* m_TextCtrl;
295 DECLARE_EVENT_TABLE()
309 wxGISDTSpatRef(
const wxGISGPParameterArray &Params,
int nParamIndex, wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
312 virtual bool Validate(
void);
314 virtual void OnOpen(wxCommandEvent& event);
317 virtual bool OnDropObjects(wxCoord x, wxCoord y,
const wxArrayString& GxObjects,
bool bIsControlOn);
Definition: gpcontrols.h:246
Definition: gpcontrols.h:276
A Geoprocessing tools parameter class.
Definition: gpparam.h:82
Definition: gpparam.h:160
Definition: gpcontrols.h:305
Definition: gpcontrols.h:145
Definition: gpcontrols.h:88
Definition: gpcontrols.h:50
Definition: gpcontrols.h:126
Definition: gpcontrols.h:207
Definition: gpcontrols.h:174
The wxGISProcess class event.
Definition: gpparam.h:39
Definition: framework.h:59