SUMO - Simulation of Urban MObility
GNEChange_Selection.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 // A change to the network selection
18 /****************************************************************************/
19 #ifndef GNEChange_Selection_h
20 #define GNEChange_Selection_h
21 
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 <fx.h>
35 #include "GNEChange.h"
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
49  FXDECLARE_ABSTRACT(GNEChange_Selection)
50 
51 public:
58  GNEChange_Selection(GNENet* net, const std::set<GUIGlID>& selected, const std::set<GUIGlID>& deselected, bool forward);
59 
62 
66  FXString undoName() const;
67 
69  FXString redoName() const;
70 
72  void undo();
73 
75  void redo();
77 
78 
79 private:
81  std::set<GUIGlID> mySelectedIDs;
82 
84  std::set<GUIGlID> myDeselectedIDs;
85 };
86 
87 #endif
88 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:48
~GNEChange_Selection()
Destructor.
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:91
std::set< GUIGlID > myDeselectedIDs
all ids that were deselected in this change
void redo()
redo action
GNEChange_Selection(GNENet *net, const std::set< GUIGlID > &selected, const std::set< GUIGlID > &deselected, bool forward)
Constructor for modifying selection.
std::set< GUIGlID > mySelectedIDs
all ids that were selected in this change
void undo()
undo action
FXString redoName() const
get Redo name
FXString undoName() const
return undoName