Eclipse SUMO - Simulation of Urban MObility
GNEToolDialogElements.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
// Elements used in GNEToolDialog
19
/****************************************************************************/
20
#pragma once
21
#include <config.h>
22
23
#include <fx.h>
24
#include <string>
25
#include <vector>
26
27
28
// ===========================================================================
29
// class declaration
30
// ===========================================================================
31
32
class
GNEToolDialog
;
33
34
// ===========================================================================
35
// class definitions
36
// ===========================================================================
37
39
class
GNEToolDialogElements
{
40
41
public
:
43
class
Argument
{
44
45
public
:
47
Argument
(
GNEToolDialog
*
toolDialogParent
,
const
std::string name,
const
std::string parameter_);
48
50
virtual
~Argument
();
51
53
virtual
std::string
getArgument
()
const
= 0;
54
56
virtual
void
resetValues
() = 0;
57
58
protected
:
60
const
GNEToolDialog
*
toolDialogParent
=
nullptr
;
61
63
const
std::string
argumentName
;
64
66
const
std::string
parameter
;
67
68
private
:
70
Argument
();
71
73
Argument
(
const
Argument
&) =
delete
;
74
76
Argument
&
operator=
(
const
Argument
&) =
delete
;
77
};
78
80
class
FileNameArgument
:
protected
FXVerticalFrame,
protected
Argument
{
81
82
public
:
84
FileNameArgument
(FXComposite* parent,
GNEToolDialog
*
toolDialogParent
,
const
std::string name,
const
std::string
parameter
);
85
87
std::string
getArgument
()
const
;
88
90
void
resetValues
();
91
92
protected
:
94
FXButton*
myFilenameButton
=
nullptr
;
95
97
FXTextField*
myFilenameTextField
=
nullptr
;
98
99
private
:
101
FileNameArgument
(
const
FileNameArgument
&) =
delete
;
102
104
FileNameArgument
&
operator=
(
const
FileNameArgument
&) =
delete
;
105
};
106
107
109
class
Separator
:
protected
FXVerticalFrame {
110
111
public
:
113
Separator
(FXComposite* parent,
const
std::string name);
114
115
private
:
117
Separator
(
const
Separator
&) =
delete
;
118
120
Separator
&
operator=
(
const
Separator
&) =
delete
;
121
};
122
};
GNEToolDialogElements::Argument
argument
Definition:
GNEToolDialogElements.h:43
GNEToolDialogElements::Argument::toolDialogParent
const GNEToolDialog * toolDialogParent
pointer to toolDialog parent
Definition:
GNEToolDialogElements.h:60
GNEToolDialogElements::Argument::operator=
Argument & operator=(const Argument &)=delete
Invalidated assignment operator.
GNEToolDialogElements::Argument::getArgument
virtual std::string getArgument() const =0
get argument (parameter and value)
GNEToolDialogElements::Argument::~Argument
virtual ~Argument()
destructor
Definition:
GNEToolDialogElements.cpp:42
GNEToolDialogElements::Argument::Argument
Argument(const Argument &)=delete
Invalidated copy constructor.
GNEToolDialogElements::Argument::Argument
Argument()
default constructor
Definition:
GNEToolDialogElements.cpp:45
GNEToolDialogElements::Argument::argumentName
const std::string argumentName
argument name
Definition:
GNEToolDialogElements.h:63
GNEToolDialogElements::Argument::resetValues
virtual void resetValues()=0
reset argument values
GNEToolDialogElements::Argument::parameter
const std::string parameter
parameter
Definition:
GNEToolDialogElements.h:66
GNEToolDialogElements::FileNameArgument
filename
Definition:
GNEToolDialogElements.h:80
GNEToolDialogElements::FileNameArgument::resetValues
void resetValues()
reset argument values
Definition:
GNEToolDialogElements.cpp:66
GNEToolDialogElements::FileNameArgument::operator=
FileNameArgument & operator=(const FileNameArgument &)=delete
Invalidated assignment operator.
GNEToolDialogElements::FileNameArgument::myFilenameButton
FXButton * myFilenameButton
filename button
Definition:
GNEToolDialogElements.h:94
GNEToolDialogElements::FileNameArgument::FileNameArgument
FileNameArgument(FXComposite *parent, GNEToolDialog *toolDialogParent, const std::string name, const std::string parameter)
constructor
Definition:
GNEToolDialogElements.cpp:48
GNEToolDialogElements::FileNameArgument::getArgument
std::string getArgument() const
get argument (parameter and value)
Definition:
GNEToolDialogElements.cpp:60
GNEToolDialogElements::FileNameArgument::myFilenameTextField
FXTextField * myFilenameTextField
filename Textfield
Definition:
GNEToolDialogElements.h:97
GNEToolDialogElements::FileNameArgument::FileNameArgument
FileNameArgument(const FileNameArgument &)=delete
Invalidated copy constructor.
GNEToolDialogElements::Separator
separator
Definition:
GNEToolDialogElements.h:109
GNEToolDialogElements::Separator::operator=
Separator & operator=(const Separator &)=delete
Invalidated assignment operator.
GNEToolDialogElements::Separator::Separator
Separator(FXComposite *parent, const std::string name)
constructor
Definition:
GNEToolDialogElements.cpp:71
GNEToolDialogElements::Separator::Separator
Separator(const Separator &)=delete
Invalidated copy constructor.
GNEToolDialogElements
elements used in Tool Dialogs
Definition:
GNEToolDialogElements.h:39
GNEToolDialog
Abstract dialog for tools.
Definition:
GNEToolDialog.h:40
src
netedit
dialogs
tools
GNEToolDialogElements.h
Generated on Wed Dec 14 2022 13:59:21 for Eclipse SUMO - Simulation of Urban MObility by
1.9.4