ToolMap
Loading...
Searching...
No Matches
tmtocctrlmenu.h
1/***************************************************************************
2 tmtocctrlmenu.h
3 Display contextual menu for item in the TOC Ctrl
4 -------------------
5 copyright : (C) 2007 CREALP Lucien Schreiber
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef _TM_TOCCTRLMENU_H_
17#define _TM_TOCCTRLMENU_H_
18
19#include <wx/wxprec.h>
20
21#ifndef WX_PRECOMP
22#include <wx/wx.h>
23#endif
24
25#include <wx/menu.h>
26
27const int ID_TOCMENU_REMOVE = 20100;
28const int ID_TOCMENU_SHOW_VERTEX_NONE = 20101;
29const int ID_TOCMENU_SHOW_VERTEX_ALL = 20102;
30const int ID_TOCMENU_SHOW_VERTEX_BEGIN_END = 20103;
31const int ID_TOCMENU_PROPERTIES = 20104;
32const int ID_TOCMENU_PROPERTIES_SAVE = 20105;
33const int ID_TOCMENU_PROPERTIES_LOAD = 20106;
34const int ID_TOCMENU_EDIT_LAYER = 20111;
35const int ID_TOCMENU_LABELS = 20112;
36const int ID_TOCMENU_ADD_GROUP = 20113;
37const int ID_TOCMENU_RENAME_GROUP = 20114;
38const int ID_TOCMENU_REMOVE_GROUP = 20115;
39
41
42/***************************************************************************/
50class tmTOCCtrlMenu : public wxMenu {
51 private:
52 int m_SelectedPos;
53 tmLayerProperties* m_LayerProperties;
54
55 void _CreateTOCAddGroup();
56
57 void _CreateTOCRenameGroup();
58
59 void _CreateTOCRemoveGroup();
60
61 void _CreateTOCBasic();
62
63 void _CreateTOCShowVertex();
64
65 void _CreateTOCProperties();
66
67 public:
69 ;
70 }
71
72 tmTOCCtrlMenu(tmLayerProperties* item, int pos, int nbItems);
73
75};
76
77#endif
Storing object of layer type.
Definition tmlayerproperties.h:47
Display contextual menu for TOC.
Definition tmtocctrlmenu.h:50