23 #include "wxgis/catalogui/catalogui.h" 
   25 #ifdef wxGIS_USE_POSTGRES 
   27 #include <wx/statline.h> 
   36 class WXDLLIMPEXP_GIS_CLU wxGISRemoteDBConnDlg : 
public wxDialog
 
   41         ID_REMOTECONNDLG = 1000,
 
   45         ID_DATABASESTATICTEXT,
 
   53     wxGISRemoteDBConnDlg(CPLString pszConnPath, wxWindow* parent, wxWindowID 
id = ID_REMOTECONNDLG, 
const wxString& title = _(
"Remote Database Connection"), 
const wxPoint& pos = wxDefaultPosition, 
const wxSize& size = wxDefaultSize, 
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
 
   54     wxGISRemoteDBConnDlg(wxXmlNode* pConnectionNode, wxWindow* parent, wxWindowID 
id = ID_REMOTECONNDLG, 
const wxString& title = _(
"Remote Database Connection"), 
const wxPoint& pos = wxDefaultPosition, 
const wxSize& size = wxDefaultSize, 
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
 
   55     virtual ~wxGISRemoteDBConnDlg();
 
   56     virtual CPLString GetPath(
void);
 
   57     virtual wxString GetName(
void);
 
   59     virtual void OnTest(wxCommandEvent& event);
 
   60     virtual void OnOK(wxCommandEvent& event);
 
   62     void CreateUI(
bool bHasConnectionPath = 
true);
 
   64     wxBoxSizer* m_bMainSizer;
 
   65     wxTextCtrl* m_ConnName;
 
   66     wxStaticLine* m_staticline1;
 
   67     wxStaticText* m_SetverStaticText;
 
   68     wxTextCtrl* m_sServerTextCtrl;
 
   69     wxStaticText* m_PortStaticText;
 
   70     wxTextCtrl* m_PortTextCtrl;
 
   71     wxStaticText* m_DatabaseStaticText;
 
   72     wxTextCtrl* m_DatabaseTextCtrl;
 
   73     wxStaticText* m_UserStaticText;
 
   74     wxTextCtrl* m_UsesTextCtrl;
 
   75     wxStaticText* m_PassStaticText;
 
   76     wxTextCtrl* m_PassTextCtrl;
 
   77     wxButton* m_TestButton;
 
   78     wxStaticLine* m_staticline2;
 
   79     wxStdDialogButtonSizer* m_sdbSizer;
 
   80     wxButton* m_sdbSizerOK;
 
   81     wxButton* m_sdbSizerCancel;
 
   82     wxCheckBox* m_checkBoxBinaryCursor;
 
   90     bool m_bIsBinaryCursor;
 
   93     wxXmlNode* m_pConnectionNode;
 
   95     wxString m_sOutputPath;
 
   96     CPLString m_sOriginOutput;
 
   98     wxString m_sDefaultTimeOut;
 
   99     wxString m_sDefaultTestTimeOut;
 
  100     unsigned int m_nConnTimeout;
 
  103     DECLARE_EVENT_TABLE()
 
  106 #endif //wxGIS_USE_POSTGRES 
  108 #ifdef wxGIS_USE_CURL 
  110 #include <wx/statline.h> 
  119 class WXDLLIMPEXP_GIS_CLU wxGISTMSConnDlg : 
public wxDialog
 
  124         ID_REMOTECONNDLG = 1000,
 
  131     wxGISTMSConnDlg(CPLString pszConnPath, wxWindow* parent, wxWindowID 
id = ID_REMOTECONNDLG, 
const wxString& title = _(
"TMS Connection"), 
const wxPoint& pos = wxDefaultPosition, 
const wxSize& size = wxDefaultSize, 
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
 
  132     wxGISTMSConnDlg(wxXmlNode* pConnectionNode, wxWindow* parent, wxWindowID 
id = ID_REMOTECONNDLG, 
const wxString& title = _(
"TMS Connection"), 
const wxPoint& pos = wxDefaultPosition, 
const wxSize& size = wxDefaultSize, 
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
 
  133     virtual ~wxGISTMSConnDlg();
 
  134     virtual CPLString GetPath(
void);
 
  135     virtual wxString GetName(
void);
 
  137     virtual void OnTest(wxCommandEvent& event);
 
  138     virtual void OnOK(wxCommandEvent& event);
 
  139     virtual void OnSelectSRS(wxCommandEvent& event);
 
  140     virtual void OnSelectPreset(wxCommandEvent& event);
 
  142     void CreateUI(
bool bHasConnectionPath = 
true);
 
  144     void FillValues(wxXmlNode* pRootNode);
 
  145     void LoadServiceValues(wxXmlNode* pRootNode);
 
  146     void LoadDataWindowValues(wxXmlNode* pRootNode);
 
  147     void LoadValues(wxXmlNode* pRootNode);  
 
  148     wxXmlNode* CreateContentNode(wxXmlNode* pParentNode, wxString sName, wxString sContent);
 
  149     wxXmlNode* CreateContentNode(wxXmlNode* pParentNode, wxString sName, 
double dfContent);
 
  151     wxBoxSizer* m_bMainSizer;
 
  152     wxTextCtrl* m_ConnName;
 
  153     wxTextCtrl* m_pSRSTextCtrl;
 
  154     wxChoice *m_PresetsType;
 
  156     wxButton* m_TestButton;
 
  157     wxStaticLine* m_staticline2;
 
  158     wxStdDialogButtonSizer* m_sdbSizer;
 
  159     wxButton* m_sdbSizerOK;
 
  160     wxButton* m_sdbSizerCancel;
 
  162     wxString m_sConnName;
 
  164     wxString m_sCachePath;
 
  165     wxString m_sCacheDepth;
 
  166     int m_nMaxConnections;
 
  168     wxString m_sZeroBlockHttpCodes;
 
  169     wxString m_sZeroBlockOnServerException;
 
  170     wxString m_sOfflineMode;
 
  171     wxString m_sAdviseRead;
 
  172     wxString m_sVerifyAdviseRead;
 
  173     wxString m_sClampRequests;
 
  174     wxString m_sUserAgent;
 
  180     wxString m_sOriginTypeChoice;
 
  191     wxXmlNode* m_pConnectionNode;
 
  193     wxString m_sOutputPath;
 
  194     CPLString m_sOriginOutput;
 
  197     DECLARE_EVENT_TABLE()
 
  207 class WXDLLIMPEXP_GIS_CLU wxGISNGWConnDlg : 
public wxDialog
 
  212         ID_REMOTECONNDLG = 1000,
 
  217     wxGISNGWConnDlg(CPLString pszConnPath, wxWindow* parent, wxWindowID 
id = ID_REMOTECONNDLG, 
const wxString& title = _(
"NGW Connection"), 
const wxPoint& pos = wxDefaultPosition, 
const wxSize& size = wxDefaultSize, 
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
 
  218     wxGISNGWConnDlg(wxXmlNode* pConnectionNode, wxWindow* parent, wxWindowID 
id = ID_REMOTECONNDLG, 
const wxString& title = _(
"NGW Connection"), 
const wxPoint& pos = wxDefaultPosition, 
const wxSize& size = wxDefaultSize, 
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
 
  219     virtual ~wxGISNGWConnDlg();
 
  220     virtual CPLString GetPath(
void);
 
  221     virtual wxString GetName(
void);
 
  223     virtual void OnTest(wxCommandEvent& event);
 
  224     virtual void OnOK(wxCommandEvent& event);
 
  226     void CreateUI(
bool bHasConnectionPath = 
true);
 
  229     wxBoxSizer* m_bMainSizer;
 
  230     wxTextCtrl* m_ConnName;
 
  232     wxButton* m_TestButton;
 
  233     wxStaticLine* m_staticline2;
 
  234     wxStdDialogButtonSizer* m_sdbSizer;
 
  235     wxButton* m_sdbSizerOK;
 
  236     wxButton* m_sdbSizerCancel;
 
  238     wxString m_sConnName;
 
  242     wxString m_sUserAgent;
 
  246     wxXmlNode* m_pConnectionNode;
 
  248     wxString m_sOutputPath;
 
  249     CPLString m_sOriginOutput;
 
  252     DECLARE_EVENT_TABLE()
 
  255 #endif // wxGIS_USE_CURL