Version: 0.6.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Variables
Pages
toolbarmenu.h
1
/******************************************************************************
2
* Project: wxGIS (GIS Catalog)
3
* Purpose: toolbar check menu 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
#include "wxgis/framework/framework.h"
23
#include "wxgis/framework/application.h"
24
25
#define TOOLBARMENUNAME wxT("Application.ToolbarsMenu")
26
27
class
WXDLLIMPEXP_GIS_FRW
wxGISToolBarMenu
:
28
public
wxGISMenu
,
29
public
wxGISCommand
30
{
31
DECLARE_CLASS(
wxGISToolBarMenu
)
32
public
:
33
wxGISToolBarMenu
(
const
wxString& sName = TOOLBARMENUNAME,
const
wxString& sCaption = _(
"Toolbars"
), wxGISEnumCommandBars type = enumGISCBSubMenu,
const
wxString& title = wxEmptyString,
long
style = 0);
34
virtual
~
wxGISToolBarMenu
(
void
);
35
//wxGISMenu
36
virtual
void
AddCommand(
wxGISCommand
* pCmd){};
37
virtual
void
RemoveCommand(
size_t
nIndex){};
38
virtual
void
MoveCommandLeft(
size_t
nIndex){};
39
virtual
void
MoveCommandRight(
size_t
nIndex){};
40
//wxGISCommand
41
virtual
wxIcon GetBitmap(
void
);
42
virtual
wxString GetCaption(
void
);
43
virtual
wxString GetCategory(
void
);
44
virtual
bool
GetChecked(
void
);
45
virtual
bool
GetEnabled(
void
);
46
virtual
wxString GetMessage(
void
);
47
virtual
wxGISEnumCommandKind GetKind(
void
);
48
virtual
void
OnClick(
void
);
49
virtual
bool
OnCreate(
wxGISApplicationBase
* pApp);
50
virtual
wxString GetTooltip(
void
);
51
virtual
unsigned
char
GetCount(
void
);
52
//wxGISToolBarMenu
53
virtual
void
Update(
void
);
54
//events
55
void
OnCommand(wxCommandEvent& event);
56
protected
:
57
wxGISApplication
* m_pApp;
58
wxVector<wxMenuItem*> m_delitems;
59
60
DECLARE_EVENT_TABLE()
61
};
62
wxGISApplicationBase
Definition:
applicationbase.h:65
wxGISToolBarMenu
Definition:
toolbarmenu.h:27
wxGISMenu
Definition:
commandbar.h:103
wxGISCommand
Definition:
command.h:53
wxGISApplication
Definition:
application.h:39
include
wxgis
framework
toolbarmenu.h
Generated on Fri Sep 26 2014 01:10:56 for ngm by
1.8.6