Path: blob/main/src/netedit/dialogs/basic/GNEOverwriteElement.h
169685 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 GNEOverwriteElement.h14/// @author Pablo Alvarez Lopez15/// @date March 201916///17// Dialog used to ask user if overwrite elements during loading18/****************************************************************************/19#pragma once20#include <config.h>2122#include <netedit/dialogs/GNEDialog.h>2324// ===========================================================================25// class declarations26// ===========================================================================2728class CommonHandler;29class GNEAttributeCarrier;3031// ===========================================================================32// class definitions33// ===========================================================================3435class GNEOverwriteElement : public GNEDialog {3637public:38/// @brief Constructor39GNEOverwriteElement(CommonHandler* commonHandler, const GNEAttributeCarrier* AC);4041/// @brief destructor42~GNEOverwriteElement();4344/// @brief run internal test45void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);4647/// @name FOX-callbacks48/// @{4950/// @brief called when accept or yes button is pressed (can be reimplemented in children)51long onCmdAccept(FXObject*, FXSelector, void*);5253/// @brief called when cancel or no button is pressed (can be reimplemented in children)54long onCmdCancel(FXObject*, FXSelector, void*);5556/// @brief called when abort is called either closing dialog or pressing abort button (can be reimplemented in children)57long onCmdAbort(FXObject*, FXSelector, void*);5859/// @}6061protected:62/// @brief pointer to common handler63CommonHandler* myCommonHandler = nullptr;6465/// @brief apply solpution to all checkButton66FXCheckButton* myApplySolutionToAllCheckButon = nullptr;6768private:69/// @brief Invalidated copy constructor.70GNEOverwriteElement(const GNEOverwriteElement&) = delete;7172/// @brief Invalidated assignment operator.73GNEOverwriteElement& operator=(const GNEOverwriteElement&) = delete;74};757677