Eclipse SUMO - Simulation of Urban MObility
GNEToolDialog.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// Abstract dialog for tools
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25// ===========================================================================
26// class declarations
27// ===========================================================================
28
29class GNEUndoList;
31
32// ===========================================================================
33// class definitions
34// ===========================================================================
35
40class GNEToolDialog : protected FXTopWindow {
42 FXDECLARE(GNEToolDialog)
43
44public:
46 GNEToolDialog(GNEApplicationWindow* GNEApp, const std::string& name, const int dialogWidth, const int dialogHeight);
47
50
52 void openToolDialog();
53
55 void hideToolDialog();
56
58 bool shown() const;
59
62
66 long onCmdRun(FXObject*, FXSelector, void*);
67
69 long onCmdCancel(FXObject*, FXSelector, void*);
70
72 long onCmdReset(FXObject*, FXSelector, void*);
73
75
76protected:
78 FOX_CONSTRUCTOR(GNEToolDialog)
79
80
82
84 FXVerticalFrame* myContentFrame = nullptr;
85
87 FXint openAsModalDialog(FXuint placement = PLACEMENT_CURSOR);
88
89private:
92
94 GNEToolDialog(const GNEToolDialog&) = delete;
95
97 GNEToolDialog& operator=(const GNEToolDialog&) = delete;
98};
99
The main window of the Netedit.
elements used in Tool Dialogs
Abstract dialog for tools.
Definition: GNEToolDialog.h:40
void hideToolDialog()
hide window
GNEApplicationWindow * myGNEApp
FOX needs this.
Definition: GNEToolDialog.h:81
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
long onCmdRun(FXObject *, FXSelector, void *)
GNEToolDialog(GNEApplicationWindow *GNEApp, const std::string &name, const int dialogWidth, const int dialogHeight)
FOX-declaration.
std::vector< GNEToolDialogElements::Argument * > myArguments
list of arguments
Definition: GNEToolDialog.h:91
void openToolDialog()
open window
void addArgument(GNEToolDialogElements::Argument *argument)
add argument
~GNEToolDialog()
destructor
bool shown() const
shown
FXVerticalFrame * myContentFrame
vertical frame for contents
Definition: GNEToolDialog.h:84
FXint openAsModalDialog(FXuint placement=PLACEMENT_CURSOR)
execute dialog as modal
Definition: json.hpp:4471