Version: 0.6.0
gxtableview.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGISTableView class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009,2011-2013 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 
22 #pragma once
23 #include "wxgis/catalogui/gxview.h"
24 #include "wxgis/cartoui/tableview.h"
25 #include "wxgis/catalogui/gxcatalogui.h"
26 #include "wxgis/catalogui/gxeventui.h"
27 
28 
29 class WXDLLIMPEXP_GIS_CLU wxGxTableView :
30  public wxGISTableView,
31  public wxGxView
32 {
33  DECLARE_DYNAMIC_CLASS(wxGxTableView)
34 public:
35  wxGxTableView(void);
36  wxGxTableView(wxWindow* parent, wxWindowID id = TABLECTRLID, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize);
37  virtual ~wxGxTableView(void);
38 //IGxView
39  virtual bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("TableView"));
40  virtual bool Activate(IApplication* const pApplication, wxXmlNode* const pConf);
41  virtual void Deactivate(void);
42  virtual bool Applies(wxGxSelection* const Selection);
43 //events
44  virtual void OnSelectionChanged(wxGxSelectionEvent& event);
45 protected:
46  virtual void LoadData(long nGxObjectId);
47 protected:
48  long m_ConnectionPointSelectionCookie;
49  wxGxSelection* m_pSelection;
50  wxGxCatalogUI* m_pCatalog;
51 
52  long m_nParentGxObjectID;
53 
54  DECLARE_EVENT_TABLE()
55 };
Definition: gxtableview.h:29
The GxSelection class event.
Definition: gxeventui.h:37
Definition: tableview.h:142
Definition: gxview.h:35
Definition: gxcatalogui.h:34
The GxObject Selection class.
Definition: gxselection.h:30
Definition: app.h:32