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-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // The Widget for remove network-elements
16 /****************************************************************************/
17 #ifndef GNEDeleteFrame_h
18 #define GNEDeleteFrame_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include "GNEFrame.h"
24 
25 // ===========================================================================
26 // class definitions
27 // ===========================================================================
32 class GNEDeleteFrame : public GNEFrame {
33 
34 public:
35 
36  // ===========================================================================
37  // class DeleteOptions
38  // ===========================================================================
39 
40  class DeleteOptions : protected FXGroupBox {
41 
42  public:
44  DeleteOptions(GNEDeleteFrame* deleteFrameParent);
45 
48 
50  bool forceDeleteAdditionals() const;
51 
53  bool deleteOnlyGeometryPoints() const;
54 
55  private:
58 
60  FXCheckButton* myForceDeleteAdditionals;
61 
64  };
65 
70  GNEDeleteFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
71 
74 
76  void show();
77 
79  void hide();
80 
83 
88  void removeAttributeCarrier(GNEAttributeCarrier* ac, bool ignoreOptions = false);
89 
92 
93 private:
96 
99 
102 
105 };
106 
107 
108 #endif
109 
110 /****************************************************************************/
111 
DeleteOptions * getDeleteOptions() const
get delete options
void hide()
hide delete frame
void show()
show delete frame
GNEDeleteFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
FXCheckButton * myDeleteOnlyGeometryPoints
checkbox for enable/disable delete only geometry points
ACHierarchy * myACHierarchy
modul for hierarchy
~GNEDeleteFrame()
Destructor.
GNEAttributeCarrier * myClickedAC
current attribute carrier selected in three
GNEAttributeCarrier * myMarkedAC
pointer to marked attributeCarrier (element)
DeleteOptions * myDeleteOptions
modul for delete options
bool deleteOnlyGeometryPoints() const
check if only delete geometry points checkbox is enabled
GNEDeleteFrame * myDeleteFrameParent
pointer to delete Frame Parent
void removeAttributeCarrier(GNEAttributeCarrier *ac, bool ignoreOptions=false)
remove attribute carrier (element)
DeleteOptions(GNEDeleteFrame *deleteFrameParent)
constructor
FXCheckButton * myForceDeleteAdditionals
checkbox for enable/disable automatically delete additionals childs
bool forceDeleteAdditionals() const
check if force delete additionals checkbox is enabled
void removeSelectedAttributeCarriers()
remove selected attribute carriers (element)