SUMO - Simulation of Urban MObility
GNEDeleteFrame.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 /****************************************************************************/
17 // The Widget for remove network-elements
18 /****************************************************************************/
19 #ifndef GNEDeleteFrame_h
20 #define GNEDeleteFrame_h
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #ifdef _MSC_VER
26 #include <windows_config.h>
27 #else
28 #include <config.h>
29 #endif
30 
31 #include "GNEFrame.h"
32 
33 // ===========================================================================
34 // class declarations
35 // ===========================================================================
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
45 class GNEDeleteFrame : public GNEFrame {
47  FXDECLARE(GNEDeleteFrame)
48 
49 public:
50 
55  GNEDeleteFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
56 
59 
62 
65 
70 
73 
76 
80  long onCmdShowChildMenu(FXObject*, FXSelector, void* eventData);
81 
83  long onCmdCenterChildItem(FXObject*, FXSelector, void*);
84 
86  long onCmdInspectChildItem(FXObject*, FXSelector, void*);
87 
89  long onCmdDeleteChildItem(FXObject*, FXSelector, void*);
91 
92 protected:
95 
96  // @brief create pop-up menu in the positions X-Y for the attribute carrier ac
97  void createPopUpMenu(int X, int Y, GNEAttributeCarrier* ac);
98 
99 private:
102 
105 
108 
110  FXGroupBox* myGroupBoxOptions;
111 
113  FXGroupBox* myGroupBoxTreeList;
114 
117 
120 
123 
126 
128  FXTreeList* myTreelist;
129 
131  std::map<FXTreeItem*, GNEAttributeCarrier*> myTreeItemToACMap;
132 
134  std::set<FXTreeItem*> myTreeItemsWithoutAC;
135 
138 
141 };
142 
143 
144 #endif
145 
146 /****************************************************************************/
147 
long onCmdCenterChildItem(FXObject *, FXSelector, void *)
called when user select option "center item" of child Menu
std::set< FXTreeItem * > myTreeItemsWithoutAC
set used to save tree items without AC assigned (for example, Incoming/Outcoming connections) ...
GNEDeleteFrame()
FOX needs this.
FXCheckButton * myDeleteOnlyGeometryPoints
checkbox for enable/disable delete only geometry points
void removeAttributeCarrier(GNEAttributeCarrier *ac)
remove attribute carrier (element)
FXTreeList * myTreelist
tree list to show the childs of the element to erase
void updateCurrentLabel(GNEAttributeCarrier *ac)
update current label
void showChildsOfMarkedAttributeCarrier()
show childs of marked attribute carrier
FXLabel * myCurrentElementLabel
label for current element
long onCmdShowChildMenu(FXObject *, FXSelector, void *eventData)
FXGroupBox * myGroupBoxCurrentElement
groupbox for current element
FXGroupBox * myGroupBoxTreeList
groupbox for tree list childs
~GNEDeleteFrame()
Destructor.
FXCheckButton * myAutomaticallyDeleteAdditionalsCheckButton
checkbox for enable/disable automatically delete additionals childs
void markAttributeCarrier(GNEAttributeCarrier *ac)
mark attribute carrier (element)
GNEAttributeCarrier * myClickedAC
current attribute carrier selected in three
GNEAttributeCarrier * myMarkedAC
pointer to marked attributeCarrier (element)
FXGroupBox * myGroupBoxOptions
groupbox options
long onCmdDeleteChildItem(FXObject *, FXSelector, void *)
called when user select option "delte item" of child menu
long onCmdInspectChildItem(FXObject *, FXSelector, void *)
called when user select option "inspect item" of child menu
FXGroupBox * myGroupBoxInformation
groupbox for information
FXLabel * myInformationLabel
Label for information 1.
GNEAttributeCarrier * getMarkedAttributeCarrier() const
returns marked atrribute carrier
std::map< FXTreeItem *, GNEAttributeCarrier * > myTreeItemToACMap
map used to save the Tree items with their AC
FXLabel * myMarkedElementLabel
label for marked element
void createPopUpMenu(int X, int Y, GNEAttributeCarrier *ac)