Version: 0.6.0
createnewcmd.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: Catalog Create New Commands class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2011-2012,2014 Dmitry Baryshnikov
7 * Copyright (C) 2014 NextGIS
8 *
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  ****************************************************************************/
22 #pragma once
23 
24 #include "wxgis/framework/command.h"
25 #include "wxgis/framework/applicationbase.h"
26 #include "wxgis/catalogui/gxapplication.h"
27 
35 enum wxGISEnumCatalogCreateNewCmdType{
36  enumGISCatalogCreateNewCmdRemoteDBConnection = 0,
37  enumGISCatalogCreateNewCmdTMSConnection,
38  enumGISCatalogCreateNewCmdNGWConnection,
39  enumGISCatalogCreateNewCmdDBSchema,
40  enumGISCatalogCreateNewCmdDBAndConnection,
41  enumGISCatalogCreateNewCmdNGWResourceGroup,
42  enumGISCatalogCreateNewCmdMax
43 };
44 
46  public wxGISCommand
47 {
48  DECLARE_DYNAMIC_CLASS(wxGISCatalogMainCmd)
49 
50 public:
51  wxGISCreateNewCmd(void);
52  virtual ~wxGISCreateNewCmd(void);
53  //wxGISCommand
54  virtual wxIcon GetBitmap(void);
55  virtual wxString GetCaption(void);
56  virtual wxString GetCategory(void);
57  virtual bool GetChecked(void);
58  virtual bool GetEnabled(void);
59  virtual wxString GetMessage(void);
60  virtual wxGISEnumCommandKind GetKind(void);
61  virtual void OnClick(void);
62  virtual bool OnCreate(wxGISApplicationBase* pApp);
63  virtual wxString GetTooltip(void);
64  virtual unsigned char GetCount(void);
65 private:
66  wxGISApplicationBase* m_pApp;
67  wxGxApplicationBase* m_pGxApp;
68  wxIcon m_IconCreateRemoteConn, m_IconCreateWebConn, m_IconCreateSchema, m_IconCreateResourceGroup;
69 };
An Interface class for GxApplication.
Definition: gxselection.h:80
Definition: applicationbase.h:65
Definition: command.h:53
Definition: catalogcmd.h:54
Definition: createnewcmd.h:45