Path: blob/main/src/netedit/dialogs/run/GNERunPythonToolDialog.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 GNERunPythonToolDialog.h14/// @author Pablo Alvarez Lopez15/// @date Mar 202316///17// Dialog for running tools18/****************************************************************************/19#pragma once20#include <config.h>2122#include "GNERunDialog.h"2324// ===========================================================================25// class declarations26// ===========================================================================2728class GNEPythonTool;2930// ===========================================================================31// class definitions32// ===========================================================================3334class GNERunPythonToolDialog : public GNERunDialog {3536public:37/// @brief Constructor38GNERunPythonToolDialog(GNEApplicationWindow* applicationWindow, GNEPythonTool* pythonTool);3940/// @brief destructor41~GNERunPythonToolDialog();4243/// @brief run internal test44void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);4546/// @brief get run command47std::string getRunCommand() const;4849/// @name FOX-callbacks50/// @{5152/// @brief event after press back button53long onCmdBack(FXObject*, FXSelector, void*);5455/// @brief event after press close button56long onCmdAccept(FXObject*, FXSelector, void*);5758/// @}5960protected:61/// @brief python tool to run62const GNEPythonTool* myPythonTool = nullptr;6364private:65/// @brief Invalidated copy constructor.66GNERunPythonToolDialog(const GNERunPythonToolDialog&) = delete;6768/// @brief Invalidated assignment operator.69GNERunPythonToolDialog& operator=(const GNERunPythonToolDialog&) = delete;70};717273