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