/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2006-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file GNEColorDialog.h14/// @author Pablo Alvarez Lopez15/// @date Aug 202516///17// Custom GNEColorDialog used in Netedit that supports internal tests18/****************************************************************************/19#pragma once20#include <config.h>2122#include <utils/common/RGBColor.h>2324#include "GNEDialog.h"2526// ===========================================================================27// class definitions28// ===========================================================================2930class GNEColorDialog : public GNEDialog {31FXDECLARE(GNEColorDialog)3233public:34/// @brief Construct color dialog35GNEColorDialog(GNEApplicationWindow* applicationWindow, const RGBColor color);3637/// @brief Destructor38virtual ~GNEColorDialog();3940/// @brief run internal test41void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);4243/// @brief Get the color44RGBColor getColor() const;4546/// @name FOX-callbacks47/// @{4849/// @brief called when reset button is pressed50long onCmdReset(FXObject*, FXSelector, void*);5152/// @brief Called when color is changed53long onChgColor(FXObject*, FXSelector, void*);5455/// @brief Called when color is selected56long onCmdColor(FXObject*, FXSelector, void*);5758/// @}5960protected:61/// @brief Default constructor62FOX_CONSTRUCTOR(GNEColorDialog)6364/// @brief Color selector box65FXColorSelector* myColorbox = nullptr;6667/// @brief Original color to restore pressing reset button68const RGBColor myOriginalColor = RGBColor::BLACK;6970private:71/// @brief Invalidated copy constructor.72GNEColorDialog(const GNEColorDialog&) = delete;7374/// @brief Invalidated assignment operator75GNEColorDialog& operator=(const GNEColorDialog& src) = delete;76};777879