Version: 0.6.0
viewscmd.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: Catalog Views Commands class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009-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 
23 #include "wxgis/framework/command.h"
24 #include "wxgis/framework/applicationbase.h"
25 #include "wxgis/catalogui/gxtabview.h"
26 
36  public wxGISCommand,
37  public IDropDownCommand
38 {
39  DECLARE_DYNAMIC_CLASS(wxGISCatalogViewsCmd)
40 
41 public:
43  virtual ~wxGISCatalogViewsCmd(void);
44  //wxGISCommand
45  virtual wxIcon GetBitmap(void);
46  virtual wxString GetCaption(void);
47  virtual wxString GetCategory(void);
48  virtual bool GetChecked(void);
49  virtual bool GetEnabled(void);
50  virtual wxString GetMessage(void);
51  virtual wxGISEnumCommandKind GetKind(void);
52  virtual void OnClick(void);
53  virtual bool OnCreate(wxGISApplicationBase* pApp);
54  virtual wxString GetTooltip(void);
55  virtual unsigned char GetCount(void);
56  //IDropDownCommand
57  virtual wxMenu* GetDropDownMenu(void);
58  virtual void OnDropDownCommand(int nID);
59 private:
60  wxGISApplicationBase* m_pApp;
61  WINDOWARRAY m_anContentsWinIDs;
62  wxWindow* m_pTreeView;
63  wxIcon m_IconViews, m_IconSelAll, m_IconTreeView;
64 };
Definition: applicationbase.h:65
Definition: command.h:53
virtual void OnDropDownCommand(int nID)
Execute the DropDown menu command.
Definition: viewscmd.cpp:286
Definition: command.h:151
Definition: viewscmd.h:35
virtual wxMenu * GetDropDownMenu(void)
Return DropDown Menu to show under button.
Definition: viewscmd.cpp:251