Eclipse SUMO - Simulation of Urban MObility
GNEUndoListDialog.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-2022 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
18 // Dialog for show undo-list
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 
24 
25 
26 // ===========================================================================
27 // class declarations
28 // ===========================================================================
29 
30 class GNEUndoList;
32 
33 // ===========================================================================
34 // class definitions
35 // ===========================================================================
36 
41 class GNEUndoListDialog : protected FXTopWindow {
43  FXDECLARE(GNEUndoListDialog)
44 
45 public:
48 
51 
53  void open();
54 
56  void hide();
57 
59  bool shown() const;
60 
62  void setFocus();
63 
67  long onCmdClose(FXObject*, FXSelector, void*);
68 
70  long onCmdSelectElement(FXObject*, FXSelector, void*);
72 
74  void updateList();
75 
76 protected:
77  FOX_CONSTRUCTOR(GNEUndoListDialog)
78 
79 
81 
84 
85 private:
88 
90  GNEUndoListDialog& operator=(const GNEUndoListDialog&) = delete;
91 };
92 
FXTreeListDinamic.
The main window of the Netedit.
Dialog for edit rerouters.
void updateList()
update data table
~GNEUndoListDialog()
destructor
FXTreeListDinamic * myTreeListDinamic
tree list dinamic to show the elements to erase
long onCmdClose(FXObject *, FXSelector, void *)
bool shown() const
shown
void setFocus()
Move the focus to this window.
void hide()
hide window
GNEApplicationWindow * myGNEApp
pointer to GNEApplicationWindow
long onCmdSelectElement(FXObject *, FXSelector, void *)
event after selecting an element in the undoredolist
GNEUndoListDialog(GNEApplicationWindow *GNEApp)
FOX-declaration.
void open()
open window