SUMO - Simulation of Urban MObility
GNEChange_Selection.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // A change to the network selection
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2016 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 GNEChange_Selection_h
21 #define GNEChange_Selection_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 <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:
57  GNEChange_Selection(const std::set<GUIGlID>& selected, const std::set<GUIGlID>& deselected, bool forward);
58 
61 
62  FXString undoName() const;
63  FXString redoName() const;
64  void undo();
65  void redo();
66 
67 
68 private:
70  std::set<GUIGlID> mySelectedIDs;
72  std::set<GUIGlID> myDeselectedIDs;
73 };
74 
75 #endif
76 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:48
~GNEChange_Selection()
Destructor.
std::set< GUIGlID > myDeselectedIDs
all ids that were deselected in this change
std::set< GUIGlID > mySelectedIDs
all ids that were selected in this change
FXString redoName() const
GNEChange_Selection(const std::set< GUIGlID > &selected, const std::set< GUIGlID > &deselected, bool forward)
Constructor for modifying selection.
FXString undoName() const