23 #include "wxgis/catalogui/catalogui.h"
24 #include "wxgis/catalog/gxremoteconn.h"
25 #include "wxgis/catalogui/gxview.h"
27 #ifdef wxGIS_USE_POSTGRES
36 class WXDLLIMPEXP_GIS_CLU wxGxRemoteConnectionUI :
37 public wxGxRemoteConnection,
44 DECLARE_CLASS(wxGxRemoteConnectionUI)
47 EXIT_EVENT = wxID_HIGHEST + 1,
51 wxGxRemoteConnectionUI(
wxGxObject *oParent,
const wxString &soName = wxEmptyString,
const CPLString &soPath =
"",
const wxIcon &LargeIconConn = wxNullIcon,
const wxIcon &SmallIconConn = wxNullIcon,
const wxIcon &LargeIconDisconn = wxNullIcon,
const wxIcon &SmallIconDisconn = wxNullIcon);
52 virtual ~wxGxRemoteConnectionUI(
void);
54 virtual wxIcon GetLargeImage(
void);
55 virtual wxIcon GetSmallImage(
void);
56 virtual wxString ContextMenu(
void)
const {
return wxString(wxT(
"wxGxRemoteConnection.ContextMenu"));};
57 virtual wxString NewMenu(
void)
const {
return wxString(wxT(
"wxGxRemoteConnection.NewMenu"));};
59 virtual bool Connect(
void);
61 virtual void EditProperties(wxWindow *parent);
63 virtual bool Invoke(wxWindow* pParentWnd);
65 virtual bool Drop(
const wxArrayString& saGxObjectPaths,
bool bMove);
68 virtual wxGxRemoteDBSchema* GetNewRemoteDBSchema(
int nRemoteId,
const wxString &sName,
const CPLString &soPath, wxGISPostgresDataSource *pwxGISRemoteConn);
69 virtual wxThread::ExitCode Entry();
71 virtual void OnThreadFinished(wxThreadEvent& event);
73 wxIcon m_oLargeIconConn, m_oSmallIconConn;
74 wxIcon m_oLargeIconDisconn, m_oSmallIconDisconn;
75 wxIcon m_oLargeIconFeatureClass, m_oSmallIconFeatureClass;
76 wxIcon m_oLargeIconTable, m_oSmallIconTable;
77 wxIcon m_oLargeIconSchema, m_oSmallIconSchema;
90 class WXDLLIMPEXP_GIS_CLU wxGxRemoteDBSchemaUI :
91 public wxGxRemoteDBSchema,
96 DECLARE_CLASS(wxGxRemoteDBSchemaUI)
99 EXIT_EVENT = wxID_HIGHEST + 1,
103 wxGxRemoteDBSchemaUI(
int nRemoteId, wxGISPostgresDataSource* pwxGISRemoteConn,
wxGxObject *oParent,
const wxString &soName = wxEmptyString,
const CPLString &soPath =
"",
const wxIcon &LargeIcon = wxNullIcon,
const wxIcon &SmallIcon = wxNullIcon,
const wxIcon &LargeIconFeatureClass = wxNullIcon,
const wxIcon &SmallIconFeatureClass = wxNullIcon,
const wxIcon &LargeIconTable = wxNullIcon,
const wxIcon &SmallIconTable = wxNullIcon);
104 virtual ~wxGxRemoteDBSchemaUI(
void);
106 virtual bool HasChildren(
void);
108 virtual bool Delete(
void);
110 virtual wxIcon GetLargeImage(
void);
111 virtual wxIcon GetSmallImage(
void);
112 virtual wxString ContextMenu(
void)
const {
return wxString(wxT(
"wxGxRemoteDBSchema.ContextMenu"));};
113 virtual wxString NewMenu(
void)
const {
return wxString(wxT(
"wxGxRemoteDBSchema.NewMenu"));};
115 virtual void EditProperties(wxWindow *parent);
117 virtual bool Drop(
const wxArrayString& saGxObjectPaths,
bool bMove);
119 void OnThreadFinished(wxThreadEvent& event);
122 virtual wxGxObject* GetNewTable(
int nRemoteId,
const wxString &sTableName,
const wxGISEnumDatasetType eType);
123 virtual wxThread::ExitCode Entry();
124 virtual bool CreateAndRunThread(
void);
126 wxIcon m_oLargeIcon, m_oSmallIcon;
127 wxIcon m_oLargeIconFeatureClass, m_oSmallIconFeatureClass;
128 wxIcon m_oLargeIconTable, m_oSmallIconTable;
131 DECLARE_EVENT_TABLE()
134 #endif // wxGIS_USE_POSTGRES
150 wxGxTMSWebServiceUI(
wxGxObject *oParent,
const wxString &soName = wxEmptyString,
const CPLString &soPath =
"",
const wxIcon &icLargeIcon = wxNullIcon,
const wxIcon &icSmallIcon = wxNullIcon,
const wxIcon &icLargeIconDsbl = wxNullIcon,
const wxIcon &icSmallIconDsbl = wxNullIcon);
153 virtual wxIcon GetLargeImage(
void);
154 virtual wxIcon GetSmallImage(
void);
155 virtual wxString ContextMenu(
void)
const {
return wxString(wxT(
"wxGxTMSWebService.ContextMenu"));};
156 virtual wxString NewMenu(
void)
const {
return wxEmptyString;};
158 virtual void EditProperties(wxWindow *parent);
160 wxIcon m_icLargeIcon, m_icSmallIcon;
161 wxIcon m_icLargeIconDsbl, m_icSmallIconDsbl;
Definition: gxremoteconn.h:145
Definition: gxremoteconnui.h:143
Definition: catalogui.h:73
Definition: catalogui.h:60
Definition: catalogui.h:90
Definition: catalogui.h:128
Definition: gxobject.h:37