Version: 0.6.0
gxnoview.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxNoView class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009,2011,2012 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 #include "wxgis/catalogui/gxview.h"
23 
24 
25 class wxGxNoView :
26  public wxControl,
27  public wxGxView
28 {
29  DECLARE_DYNAMIC_CLASS(wxGxNoView)
30 public:
31  wxGxNoView(void);
32  wxGxNoView(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize);
33  virtual ~wxGxNoView(void);
34  void OnPaint(wxPaintEvent& WXUNUSED(evt));
35  void OnEraseBackground(wxEraseEvent& WXUNUSED(evt));
36  void OnSize(wxSizeEvent& WXUNUSED(evt));
37 //IGxView
38  virtual bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER, const wxString& name = wxT("NoView"));
39  virtual bool Activate(IApplication* const application, wxXmlNode* const pConf);
40  virtual void Deactivate(void);
41 protected:
42  void Serialize(wxXmlNode* pRootNode, bool bStore);
43 private:
44  unsigned char R,G,B;
45  unsigned char FontSize;
46  bool IsBold, IsItalic;
47 
48  DECLARE_EVENT_TABLE()
49 };
Definition: gxnoview.h:25
Definition: gxview.h:35
Definition: app.h:32