SUMO - Simulation of Urban MObility
GNEDeleteFrame.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // The Widget for remove network-elements
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GNEDeleteFrame_h
21 #define GNEDeleteFrame_h
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include "GNEFrame.h"
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
46 class GNEDeleteFrame : public GNEFrame {
48  FXDECLARE(GNEDeleteFrame)
49 
50 public:
51 
56  GNEDeleteFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
57 
60 
63 
66 
71 
74 
77 
81  long onCmdShowChildMenu(FXObject*, FXSelector, void* data);
82 
84  long onCmdCenterItem(FXObject*, FXSelector, void*);
85 
87  long onCmdInspectItem(FXObject*, FXSelector, void*);
88 
90  long onCmdDeleteItem(FXObject*, FXSelector, void*);
92 
93 protected:
96 
97  // @brief create pop-up menu in the positions X-Y for the attribute carrier ac
98  void createPopUpMenu(int X, int Y, GNEAttributeCarrier* ac);
99 
100 private:
103 
106 
109 
111  FXGroupBox* myGroupBoxOptions;
112 
114  FXGroupBox* myGroupBoxTreeList;
115 
118 
121 
124 
126  FXTreeList* myTreelist;
127 
129  std::map<FXTreeItem*, GNEAttributeCarrier*> myTreeItemToACMap;
130 
132  std::set<FXTreeItem*> myTreeItemsWithoutAC;
133 
136 
139 
142 };
143 
144 
145 #endif
146 
147 /****************************************************************************/
148 
std::set< FXTreeItem * > myTreeItemsWithoutAC
set used to save tree items without AC assigned (for example, Incoming/Outcoming connections) ...
GNEDeleteFrame()
FOX needs this.
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
FXLabel * myCurrentElementLabel
label for current element
long onCmdCenterItem(FXObject *, FXSelector, void *)
called when user select option "center item" of child Menu
FXGroupBox * myGroupBoxCurrentElement
groupbox for current element
FXGroupBox * myGroupBoxTreeList
groupbox for tree list childs
~GNEDeleteFrame()
Destructor.
FXCheckButton * myAutomaticallyDeleteAdditionalsCheckButton
checkbox for enable/disble automatically delete additionals childs
long onCmdInspectItem(FXObject *, FXSelector, void *)
called when user select option "inspect item" of child menu
void markAttributeCarrier(GNEAttributeCarrier *ac)
mark attribute carrier (element)
GNEAttributeCarrier * myClickedAC
current attribute carrier selected in three
GNEAttributeCarrier * myCurrentAC
pointer to current AC
long onCmdDeleteItem(FXObject *, FXSelector, void *)
called when user select option "delte item" of child menu
GNEAttributeCarrier * myMarkedAC
pointer to marked attributeCarrier (element)
FXGroupBox * myGroupBoxOptions
groupbox options
long onCmdShowChildMenu(FXObject *, FXSelector, void *data)
FXGroupBox * myGroupBoxInformation
groupbox for information
FXLabel * myInformationLabel
Label for information 1.
void showAttributeCarrierChilds(GNEAttributeCarrier *ac)
show child of attributeCarrier in frame if previously there isn&#39;t a marked element ...
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)