Version: 0.6.0
createremotedlgs.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: Create Remote Database dialog.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2014 Dmitry Baryshnikov
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 #pragma once
22 
23 #include "wxgis/catalogui/remoteconndlgs.h"
24 
25 #ifdef wxGIS_USE_POSTGRES
26 
34 class WXDLLIMPEXP_GIS_CLU wxGISCreateDBDlg : public wxGISRemoteDBConnDlg
35 {
36 public:
37  wxGISCreateDBDlg(CPLString pszConnPath, wxWindow* parent, wxWindowID id = ID_REMOTECONNDLG, const wxString& title = _("Create new Remote Database"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
38  virtual ~wxGISCreateDBDlg();
39 protected: //events
40  virtual void OnTest(wxCommandEvent& event);
41  virtual void OnOK(wxCommandEvent& event);
42 protected:
43  void CreateUI(bool bHasConnectionPath = true);
44 protected:
45  wxStaticText *m_DBNameStaticText;
46  wxStaticText *m_DBConnectionNameStaticText;
47  wxStaticText *m_DBTemplateNameStaticText;
48  wxTextCtrl *m_DBName;
49  wxChoice *m_TempateChoice;
50 
51  wxString m_sDBName;
52  wxString m_sDBTempate;
53 };
54 
55 #endif //wxGIS_USE_POSTGRES
56 
57