Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEColorDialog.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2006-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// Custom GNEColorDialog used in Netedit that supports internal tests
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25#include "GNEDialog.h"
26
27// ===========================================================================
28// class definitions
29// ===========================================================================
30
31class GNEColorDialog : public GNEDialog {
32 FXDECLARE(GNEColorDialog)
33
34public:
36 GNEColorDialog(GNEApplicationWindow* applicationWindow, const RGBColor color);
37
39 virtual ~GNEColorDialog();
40
42 void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);
43
45 RGBColor getColor() const;
46
49
51 long onCmdReset(FXObject*, FXSelector, void*);
52
54 long onChgColor(FXObject*, FXSelector, void*);
55
57 long onCmdColor(FXObject*, FXSelector, void*);
58
60
61protected:
63 FOX_CONSTRUCTOR(GNEColorDialog)
64
65
66 FXColorSelector* myColorbox = nullptr;
67
70
71private:
74
76 GNEColorDialog& operator=(const GNEColorDialog& src) = delete;
77};
The main window of Netedit.
RGBColor getColor() const
Get the color.
long onCmdReset(FXObject *, FXSelector, void *)
called when reset button is pressed
virtual ~GNEColorDialog()
Destructor.
long onChgColor(FXObject *, FXSelector, void *)
Called when color is changed.
long onCmdColor(FXObject *, FXSelector, void *)
Called when color is selected.
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
const RGBColor myOriginalColor
Original color to restore pressing reset button.
FXColorSelector * myColorbox
Default constructor.
dialog arguments, used for certain modal dialogs that can not be edited using tab