25 #include <wx/string.h>
26 #include <wx/stattext.h>
27 #include <wx/gdicmn.h>
29 #include <wx/colour.h>
30 #include <wx/settings.h>
31 #include <wx/treectrl.h>
32 #include <wx/toolbar.h>
34 #include <wx/button.h>
35 #include <wx/dialog.h>
36 #include <wx/aui/aui.h>
38 #include "wxgis/core/config.h"
39 #include "wxgis/catalogui/gxcatalogui.h"
40 #include "wxgis/catalogui/gxcontentview.h"
41 #include "wxgis/catalogui/gxtreeview.h"
42 #include "wxgis/framework/applicationbase.h"
43 #include "wxgis/version.h"
44 #include "wxgis/catalog/gxfilters.h"
45 #include "wxgis/framework/accelerator.h"
48 #define CONTDLG_NAME wxT("wxGISContDialog")
63 wxTreeContainerView(wxWindow* parent, wxWindowID
id = TREECTRLID,
long style = wxTR_HAS_BUTTONS | wxTR_TWIST_BUTTONS | wxTR_NO_LINES | wxTR_SINGLE | wxTR_EDIT_LABELS);
66 virtual void AddTreeItem(
wxGxObject* pGxObject, wxTreeItemId hParent);
69 virtual void RemoveAllShowFilters(
void);
71 virtual void OnItemRightClick(wxTreeEvent& event){};
72 virtual void OnBeginDrag(wxTreeEvent& event){};
74 virtual bool CanChooseObject(
wxGxObject* pObject );
76 wxGxObjectFiltersArray m_ShowFilter;
94 ID_CREATE = wxID_HIGHEST + 4001
97 wxGxContainerDialog( wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxString& title = _(
"Open"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxSize( 540,338 ),
long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
100 virtual wxString GetAppName(
void)
const{
return wxString(CONTDLG_NAME);};
101 virtual wxString GetAppDisplayName(
void)
const {
return wxString(_(
"NextGIS Container Dialog")); };
102 virtual wxString GetAppDisplayNameShort(
void)
const {
return wxString(_(
"Container Dialog")); };
106 virtual void SetButtonCaption(
const wxString &sOkBtLabel);
107 virtual void SetStartingLocation(
const wxString &sStartPath);
108 virtual void SetDescriptionText(
const wxString &sText);
109 virtual void ShowCreateButton(
bool bShow =
false);
110 virtual void ShowExportFormats(
bool bShow =
false);
111 virtual void SetAllFilters(
bool bAllFilters);
113 virtual void SetOwnsFilter(
bool bOwnFilter){ m_bOwnFilter = bOwnFilter; };
114 virtual void SetOwnsShowFilter(
bool bOwnFilter){m_bOwnShowFilter = bOwnFilter;};
115 virtual void RemoveAllFilters(
void);
117 virtual void RemoveAllShowFilters(
void);
118 const wxGxObjectList& GetChildren()
const {
return m_ObjectList; };
119 virtual wxString GetName(
void)
const;
120 virtual wxString GetFullName(
void)
const;
121 virtual CPLString GetPath(
void)
const;
122 virtual wxGxObject*
const GetLocation(
void)
const;
124 virtual size_t GetCurrentFilterId(
void)
const;
127 virtual void OnFilterSelect(wxCommandEvent& event);
128 virtual void OnOK(wxCommandEvent& event);
129 virtual void OnOKUI(wxUpdateUIEvent& event);
130 virtual void OnCreate(wxCommandEvent& event);
131 virtual void OnCreateUI(wxUpdateUIEvent& event);
132 virtual void OnCommand(wxCommandEvent& event);
133 virtual void OnCommandUI(wxUpdateUIEvent& event);
137 virtual void OnInit();
138 virtual void SerializeFramePos(
bool bSave);
143 wxString m_sOkBtLabel;
144 wxString m_sStartPath;
145 bool m_bShowCreateButton, m_bAllFilters, m_bShowExportFormats;
146 wxGxObjectFiltersArray m_FilterArray;
147 wxGxObjectFiltersArray m_paShowFilter;
148 size_t m_nDefaultFilter;
149 wxGxObjectList m_ObjectList;
151 bool m_bOwnFilter, m_bOwnShowFilter;
154 wxBoxSizer* bMainSizer;
155 wxStaticText* m_staticDescriptionText;
156 wxStaticText* m_staticWildText;
157 wxBoxSizer* bFooterSizer;
158 wxComboBox* m_WildcardCombo;
159 wxButton* m_CancelButton;
160 wxButton* m_CreateButton;
161 wxButton* m_OkButton;
163 DECLARE_EVENT_TABLE()
An Interface class for GxApplication.
Definition: gxselection.h:80
Definition: applicationbase.h:65
The tree view in Catalog.
Definition: gxtreeview.h:121
Definition: gxcatalogui.h:34
Definition: gxcontdialog.h:57
Definition: gxfilters.h:33
Definition: accelerator.h:28
Definition: gxobject.h:37
Definition: gxcontdialog.h:86