Path: blob/main/src/netedit/dialogs/options/GNENetgenerateOptionsDialog.h
169684 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-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 GNENetgenerateOptionsDialog.h14/// @author Pablo Alvarez Lopez15/// @date May 202316///17// A Dialog for setting options (see OptionsCont)18/****************************************************************************/19#pragma once20#include <config.h>2122#include <netedit/dialogs/GNEDialog.h>2324// ===========================================================================25// class declaration26// ===========================================================================2728class OptionsCont;29class GNEOptionsEditor;3031// ===========================================================================32// class definitions33// ===========================================================================3435class GNENetgenerateOptionsDialog : public GNEDialog {3637public:38/**@brief Constructor39*40* @param[in] applicationWindow netedit application window41* @param[in] optionsContainer edited option container42* @param[in] originalOptionsContainer original options container43*/44GNENetgenerateOptionsDialog(GNEApplicationWindow* applicationWindow, OptionsCont& optionsContainer,45const OptionsCont& originalOptionsContainer);4647/// @brief Destructor48~GNENetgenerateOptionsDialog();4950/// @brief run internal test51void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);5253/// @brief check if option was modified54bool isOptionModified() const;5556/// @name FOX-callbacks57/// @{5859/// @brief called when cancel button is pressed (or dialog is closed)60long onCmdCancel(FXObject*, FXSelector, void*);6162/// @brief called when user press reset button63long onCmdReset(FXObject*, FXSelector, void*);6465/// @}6667protected:68/// @brief the options editor69GNEOptionsEditor* myOptionsEditor = nullptr;7071private:72/// @brief Invalidated copy constructor.73GNENetgenerateOptionsDialog(const GNENetgenerateOptionsDialog&) = delete;7475/// @brief Invalidated assignment operator.76GNENetgenerateOptionsDialog& operator=(const GNENetgenerateOptionsDialog&) = delete;77};787980