Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEGeometryPointDialog.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// A dialog for set Geometry Points
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
23#include "GNEDialog.h"
24
25// ===========================================================================
26// class definitions
27// ===========================================================================
28
31 FXDECLARE_ABSTRACT(GNEGeometryPointDialog)
32
33public:
35 GNEGeometryPointDialog(GNEApplicationWindow* applicationWindow, const Position& pos);
36
39
41 const Position& getEditedPosition() const;
42
44 void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);
45
48
50 long onCmdChangeGeometryPoint(FXObject* sender, FXSelector sel, void* ptr);
51
53 long onCmdAccept(FXObject* sender, FXSelector sel, void* ptr);
54
56 long onCmdCancel(FXObject* sender, FXSelector sel, void* ptr);
57
59 long onCmdReset(FXObject*, FXSelector, void*);
60
62
63protected:
66
69
71 FXTextField* myTextFieldXY = nullptr;
72
74 FXTextField* myTextFieldLonLat = nullptr;
75
78
81
83 const bool myGeo;
84
85private:
87 FXButton* myKeepOldButton = nullptr;
88
90 FXButton* myCancelButton = nullptr;
91
93 FXButton* myResetButton = nullptr;
94
97
100};
The main window of Netedit.
FXButton * myKeepOldButton
accept button
long onCmdAccept(FXObject *sender, FXSelector sel, void *ptr)
event after press accept button
const bool myGeo
flag for geo
FXTextField * myTextFieldXY
text field for X, Y
long onCmdCancel(FXObject *sender, FXSelector sel, void *ptr)
event after press cancel button
long onCmdChangeGeometryPoint(FXObject *sender, FXSelector sel, void *ptr)
event after change position in TextFields
FXButton * myCancelButton
cancel button
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
Position myEditedPosition
edited position
FXButton * myResetButton
cancel button
GNEGeometryPointDialog & operator=(const GNEGeometryPointDialog &)=delete
Invalidated assignment operator.
const Position & getEditedPosition() const
get edited position
FXTextField * myTextFieldLonLat
text field for lon, Lat
long onCmdReset(FXObject *, FXSelector, void *)
event after press cancel button
GNEGeometryPointDialog(const GNEGeometryPointDialog &)=delete
Invalidated copy constructor.
GNEViewNet * myViewNet
viewNet
const Position myOriginalPos
original position (used for reset)
dialog arguments, used for certain modal dialogs that can not be edited using tab
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37