Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netedit/dialogs/run/GNERunNetgenerateDialog.h
169684 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2025 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
/****************************************************************************/
14
/// @file GNERunNetgenerateDialog.h
15
/// @author Pablo Alvarez Lopez
16
/// @date Mar 2023
17
///
18
// Dialog for running tools
19
/****************************************************************************/
20
#pragma once
21
#include <config.h>
22
23
#include "GNERunDialog.h"
24
25
// ===========================================================================
26
// class declarations
27
// ===========================================================================
28
29
class OptionsCont;
30
31
// ===========================================================================
32
// class definitions
33
// ===========================================================================
34
35
class GNERunNetgenerateDialog : public GNERunDialog {
36
37
public:
38
/// @brief Constructor
39
GNERunNetgenerateDialog(GNEApplicationWindow* applicationWindow, const OptionsCont* netgenerateOptions);
40
41
/// @brief destructor
42
~GNERunNetgenerateDialog();
43
44
/// @brief run internal test
45
void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);
46
47
/// @brief get run command
48
std::string getRunCommand() const;
49
50
/// @name FOX-callbacks
51
/// @{
52
53
/// @brief event after press back button
54
long onCmdBack(FXObject*, FXSelector, void*);
55
56
/// @brief event after press close button
57
long onCmdAccept(FXObject*, FXSelector, void*);
58
59
/// @}
60
61
protected:
62
/// @brief netgenerate options
63
const OptionsCont* myNetgenerateOptions = nullptr;
64
65
private:
66
/// @brief Invalidated copy constructor.
67
GNERunNetgenerateDialog(const GNERunNetgenerateDialog&) = delete;
68
69
/// @brief Invalidated assignment operator.
70
GNERunNetgenerateDialog& operator=(const GNERunNetgenerateDialog&) = delete;
71
};
72
73