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-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 // A change to the network selection
16 /****************************************************************************/
17 #ifndef GNEChange_Selection_h
18 #define GNEChange_Selection_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #ifdef _MSC_VER
25 #include <windows_config.h>
26 #else
27 #include <config.h>
28 #endif
29 
30 #include <fx.h>
33 #include "GNEChange.h"
34 
35 // ===========================================================================
36 // class declarations
37 // ===========================================================================
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
47  FXDECLARE_ABSTRACT(GNEChange_Selection)
48 
49 public:
56  GNEChange_Selection(GNENet* net, const std::set<GUIGlID>& selected, const std::set<GUIGlID>& deselected, bool forward);
57 
60 
64  FXString undoName() const;
65 
67  FXString redoName() const;
68 
70  void undo();
71 
73  void redo();
75 
76 
77 private:
79  std::set<GUIGlID> mySelectedIDs;
80 
82  std::set<GUIGlID> myDeselectedIDs;
83 };
84 
85 #endif
86 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:46
~GNEChange_Selection()
Destructor.
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:88
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