Path: blob/main/src/netedit/dialogs/file/GNEFilePathDialog.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 GNEFilePathDialog.h14/// @author Pablo Alvarez Lopez15/// @date Aug 202516///17// A basic dialog for selecting a file path (used in GNEFileSelector)18/****************************************************************************/19#pragma once20#include <config.h>2122#include <netedit/dialogs/GNEDialog.h>2324// ===========================================================================25// class declaration26// ===========================================================================2728class MFXTextFieldIcon;2930// ===========================================================================31// class definitions32// ===========================================================================3334class GNEFilePathDialog : public GNEDialog {3536public:37/// @brief Constructor38GNEFilePathDialog(GNEApplicationWindow* applicationWindow, const std::string& title,39const std::string& info, const std::string& originalFilePath);4041/// @brief Destructor42~GNEFilePathDialog();4344/// @brief run internal test45void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);4647/// @brief get the file path48std::string getFilePath() const;4950/// @brief called when cancel or no button is pressed (can be reimplemented in children)51long onCmdCancel(FXObject*, FXSelector, void*);5253/// @brief called when reset button is pressed (must be reimplemented in children)54long onCmdReset(FXObject*, FXSelector, void*);5556private:57/// @brief original file path (used for reset)58std::string myOriginalFilePath;5960/// @brief text field to enter the path61MFXTextFieldIcon* myPathTextField = nullptr;6263/// @brief Invalidated copy constructor.64GNEFilePathDialog(const GNEFilePathDialog&) = delete;6566/// @brief Invalidated assignment operator67GNEFilePathDialog& operator=(const GNEFilePathDialog& src) = delete;68};697071