SUMO - Simulation of Urban MObility
GUIGLObjectPopupMenu.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4
/****************************************************************************/
5
//
6
// This program and the accompanying materials
7
// are made available under the terms of the Eclipse Public License v2.0
8
// which accompanies this distribution, and is available at
9
// http://www.eclipse.org/legal/epl-v20.html
10
//
11
/****************************************************************************/
19
// The popup menu of a globject.
20
/****************************************************************************/
21
#ifndef GUIGLObjectPopupMenu_h
22
#define GUIGLObjectPopupMenu_h
23
24
25
// ===========================================================================
26
// included modules
27
// ===========================================================================
28
#ifdef _MSC_VER
29
#include <
windows_config.h
>
30
#else
31
#include <
config.h
>
32
#endif
33
34
#include <vector>
35
#include <fx.h>
36
#include <
utils/geom/Position.h
>
37
38
39
// ===========================================================================
40
// class declarations
41
// ===========================================================================
42
class
GUISUMOAbstractView
;
43
class
GUIGlObject
;
44
class
GUIMainWindow
;
45
46
47
// ===========================================================================
48
// class definitions
49
// ===========================================================================
54
class
GUIGLObjectPopupMenu
:
public
FXMenuPane {
55
// FOX-declarations
56
FXDECLARE(
GUIGLObjectPopupMenu
)
57
58
public
:
64
GUIGLObjectPopupMenu
(
GUIMainWindow
& app,
GUISUMOAbstractView
& parent,
GUIGlObject
& o);
65
67
virtual
~GUIGLObjectPopupMenu
();
68
70
void
insertMenuPaneChild
(FXMenuPane* child);
71
73
inline
GUISUMOAbstractView
*
getParentView
() {
74
return
myParent
;
75
}
76
80
long
onCmdCenter
(FXObject*, FXSelector,
void
*);
81
83
long
onCmdCopyName
(FXObject*, FXSelector,
void
*);
84
86
long
onCmdCopyTypedName
(FXObject*, FXSelector,
void
*);
87
89
long
onCmdCopyEdgeName
(FXObject*, FXSelector,
void
*);
90
92
long
onCmdCopyCursorPosition
(FXObject*, FXSelector,
void
*);
93
95
long
onCmdCopyCursorGeoPosition
(FXObject*, FXSelector,
void
*);
96
98
long
onCmdShowPars
(FXObject*, FXSelector,
void
*);
99
101
long
onCmdShowTypePars
(FXObject*, FXSelector,
void
*);
102
104
long
onCmdAddSelected
(FXObject*, FXSelector,
void
*);
105
107
long
onCmdRemoveSelected
(FXObject*, FXSelector,
void
*);
108
110
111
protected
:
113
GUIGLObjectPopupMenu
() { }
114
116
GUISUMOAbstractView
*
myParent
;
117
119
GUIGlObject
*
myObject
;
120
122
GUIMainWindow
*
myApplication
;
123
125
Position
myNetworkPosition
;
126
128
std::vector<FXMenuPane*>
myMenuPanes
;
129
};
130
131
132
#endif
133
134
/****************************************************************************/
135
GUIGLObjectPopupMenu::getParentView
GUISUMOAbstractView * getParentView()
return the real owner of this popup
Definition:
GUIGLObjectPopupMenu.h:73
GUIGLObjectPopupMenu::onCmdCenter
long onCmdCenter(FXObject *, FXSelector, void *)
Definition:
GUIGLObjectPopupMenu.cpp:103
GUIGLObjectPopupMenu::myNetworkPosition
Position myNetworkPosition
The position within the network the cursor was above when instanting the popup.
Definition:
GUIGLObjectPopupMenu.h:125
GUIGLObjectPopupMenu::onCmdCopyName
long onCmdCopyName(FXObject *, FXSelector, void *)
Called if the name shall be copied to clipboard.
Definition:
GUIGLObjectPopupMenu.cpp:111
GUIGLObjectPopupMenu::GUIGLObjectPopupMenu
GUIGLObjectPopupMenu()
FOX needs this.
Definition:
GUIGLObjectPopupMenu.h:113
GUIGLObjectPopupMenu::onCmdAddSelected
long onCmdAddSelected(FXObject *, FXSelector, void *)
Called if the object shall be added to the list of selected objects.
Definition:
GUIGLObjectPopupMenu.cpp:166
GUIGLObjectPopupMenu::onCmdCopyCursorPosition
long onCmdCopyCursorPosition(FXObject *, FXSelector, void *)
Called if the cursor position shall be copied to clipboard.
Definition:
GUIGLObjectPopupMenu.cpp:133
windows_config.h
GUIMainWindow
Definition:
GUIMainWindow.h:53
config.h
GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition
long onCmdCopyCursorGeoPosition(FXObject *, FXSelector, void *)
Called if the cursor geo-position shall be copied to clipboard.
Definition:
GUIGLObjectPopupMenu.cpp:140
GUIGLObjectPopupMenu::myParent
GUISUMOAbstractView * myParent
The parent window.
Definition:
GUIGLObjectPopupMenu.h:116
GUIGLObjectPopupMenu::onCmdShowTypePars
long onCmdShowTypePars(FXObject *, FXSelector, void *)
Called if the type parameter of this object shall be shown.
Definition:
GUIGLObjectPopupMenu.cpp:159
GUIGLObjectPopupMenu::onCmdCopyEdgeName
long onCmdCopyEdgeName(FXObject *, FXSelector, void *)
Called if the edge name shall be copied to clipboard (for lanes only)
Definition:
GUIGLObjectPopupMenu.cpp:125
GUIGLObjectPopupMenu::~GUIGLObjectPopupMenu
virtual ~GUIGLObjectPopupMenu()
Destructor.
Definition:
GUIGLObjectPopupMenu.cpp:77
GUISUMOAbstractView
Definition:
GUISUMOAbstractView.h:80
Position
A point in 2D or 3D with translation and scaling methods.
Definition:
Position.h:45
GUIGLObjectPopupMenu::myMenuPanes
std::vector< FXMenuPane * > myMenuPanes
vector mit Sub-MenuPanes
Definition:
GUIGLObjectPopupMenu.h:128
GUIGlObject
Definition:
GUIGlObject.h:72
GUIGLObjectPopupMenu::onCmdCopyTypedName
long onCmdCopyTypedName(FXObject *, FXSelector, void *)
Called if the typed name shall be copied to clipboard.
Definition:
GUIGLObjectPopupMenu.cpp:118
Position.h
GUIGLObjectPopupMenu::onCmdRemoveSelected
long onCmdRemoveSelected(FXObject *, FXSelector, void *)
Called if the object shall be removed from the list of selected objects.
Definition:
GUIGLObjectPopupMenu.cpp:174
GUIGLObjectPopupMenu
The popup menu of a globject.
Definition:
GUIGLObjectPopupMenu.h:54
GUIGLObjectPopupMenu::onCmdShowPars
long onCmdShowPars(FXObject *, FXSelector, void *)
Called if the parameter of this object shall be shown.
Definition:
GUIGLObjectPopupMenu.cpp:151
GUIGLObjectPopupMenu::insertMenuPaneChild
void insertMenuPaneChild(FXMenuPane *child)
Insert a sub-menu pane in this GUIGLObjectPopupMenu.
Definition:
GUIGLObjectPopupMenu.cpp:86
GUIGLObjectPopupMenu::myApplication
GUIMainWindow * myApplication
The main application.
Definition:
GUIGLObjectPopupMenu.h:122
GUIGLObjectPopupMenu::myObject
GUIGlObject * myObject
The object that belongs to this popup-menu.
Definition:
GUIGLObjectPopupMenu.h:119
src
utils
gui
globjects
GUIGLObjectPopupMenu.h
Generated on Sun Dec 24 2017 17:07:43 for SUMO - Simulation of Urban MObility by
1.8.13