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 <config.h>
24 
25 #include "GNEFrame.h"
26 
27 // ===========================================================================
28 // class declarations
29 // ===========================================================================
31 
32 // ===========================================================================
33 // class definitions
34 // ===========================================================================
39 class GNEDeleteFrame : public GNEFrame {
40 
41 public:
42 
43  // ===========================================================================
44  // class DeleteOptions
45  // ===========================================================================
46 
47  class DeleteOptions : public FXGroupBox {
48 
49  public:
51  DeleteOptions(GNEDeleteFrame* deleteFrameParent);
52 
55 
57  bool forceDeleteAdditionals() const;
58 
60  bool deleteOnlyGeometryPoints() const;
61 
62  private:
65 
67  FXCheckButton* myForceDeleteAdditionals;
68 
71  };
72 
77  GNEDeleteFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
78 
81 
83  void show();
84 
86  void hide();
87 
90 
95  void removeAttributeCarrier(GNEAttributeCarrier* ac, bool ignoreOptions = false);
96 
99 
100 private:
103 
106 
109 
112 };
113 
114 
115 #endif
116 
117 /****************************************************************************/
118 
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)