Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEFixElementsDialog.h
Go to the documentation of this file.
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/****************************************************************************/
18// Dialog used to fix elements during saving
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
26
27// ===========================================================================
28// class declarations
29// ===========================================================================
30
31class GNEViewNet;
32
33// ===========================================================================
34// class definitions
35// ===========================================================================
36
39 FXDECLARE_ABSTRACT(GNEFixElementsDialog)
40
41public:
43 GNEFixElementsDialog(GNEViewNet* viewNet, const std::string title, GUIIcon icon, const int sizeX, const int sizeY);
44
47
49 virtual void runInternalTest(const InternalTestStep::DialogTest* modalArguments) = 0;
50
53
55 virtual long onCmdSelectOption(FXObject* obj, FXSelector, void*) = 0;
56
58 virtual long onCmdAccept(FXObject*, FXSelector, void*) = 0;
59
61 virtual long onCmdCancel(FXObject*, FXSelector, void*) = 0;
62
64
65protected:
67 FOX_CONSTRUCTOR(GNEFixElementsDialog)
68
69
70 class Buttons : public FXHorizontalFrame {
71
72 public:
74 Buttons(GNEFixElementsDialog* fixElementsDialog);
75
77 FXButton* myAcceptButton = nullptr;
78
80 FXButton* myCancelButton = nullptr;
81
82 private:
84 Buttons(const Buttons&) = delete;
85
87 Buttons& operator=(const Buttons&) = delete;
88 };
89
91 long openFixDialog();
92
94 long closeFixDialog(const bool success);
95
98
100 FXVerticalFrame* myMainFrame = nullptr;
101
103 Buttons* myButtons = nullptr;
104
105private:
108
111};
GUIIcon
An enumeration of icons used by the gui applications.
Definition GUIIcons.h:33
Buttons(const Buttons &)=delete
Invalidated copy constructor.
Buttons & operator=(const Buttons &)=delete
Invalidated assignment operator.
long openFixDialog()
open dialog
GNEViewNet * myViewNet
view net
long closeFixDialog(const bool success)
stop fix elements dialog accepting changes
FXVerticalFrame * myMainFrame
main
GNEFixElementsDialog(const GNEFixElementsDialog &)=delete
Invalidated copy constructor.
virtual long onCmdCancel(FXObject *, FXSelector, void *)=0
event after press cancel button
GNEFixElementsDialog & operator=(const GNEFixElementsDialog &)=delete
Invalidated assignment operator.
virtual void runInternalTest(const InternalTestStep::DialogTest *modalArguments)=0
run internal test
virtual long onCmdAccept(FXObject *, FXSelector, void *)=0
event after press accept button
virtual long onCmdSelectOption(FXObject *obj, FXSelector, void *)=0
event when user select a option
dialog arguments (used for certain functions that opens modal dialogs)
every row value