Path: blob/main/src/netedit/dialogs/tools/GNENetgenerateDialog.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 GNENetgenerateDialog.h14/// @author Pablo Alvarez Lopez15/// @date Mar 202316///17// Dialog for netgenerate18/****************************************************************************/19#pragma once20#include <config.h>2122#include <netedit/dialogs/GNEDialog.h>2324// ===========================================================================25// class declarations26// ===========================================================================2728class MFXCheckableButton;2930// ===========================================================================31// class definitions32// ===========================================================================3334class GNENetgenerateDialog : protected GNEDialog {35/// @brief FOX-declaration36FXDECLARE(GNENetgenerateDialog)3738/// @brief declare friend class39friend class GNENetgenerateDialogElements;4041public:42/// @brief Constructor43GNENetgenerateDialog(GNEApplicationWindow* applicationWindow);4445/// @brief destructor46~GNENetgenerateDialog();4748/// @brief run internal test49void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);5051/// @name FOX-callbacks52/// @{5354/// @brief open output file55long onCmdOpenOutputFile(FXObject*, FXSelector, void*);5657/// @brief set output file58long onCmdSetOutput(FXObject*, FXSelector, void*);5960/// @brief set grid mode61long onCmdSetGridNetwork(FXObject*, FXSelector, void*);6263/// @brief set spider64long onCmdSetSpiderNetwork(FXObject*, FXSelector, void*);6566/// @brief set random grid67long onCmdSetRandomNetworkGridNetwork(FXObject*, FXSelector, void*);6869/// @brief set random70long onCmdSetRandomNetwork(FXObject*, FXSelector, void*);7172/// @brief event after press run button73long onCmdRun(FXObject*, FXSelector, void*);7475/// @brief event after press advanced button76long onCmdAdvanced(FXObject*, FXSelector, void*);7778/// @}7980protected:81/// @brief FOX needs this82FOX_CONSTRUCTOR(GNENetgenerateDialog);8384private:85/// @brief flag to indicate if networkType was selected86bool mySelectedNetworktypeFlag = false;8788/// @brief grid network89FXLabel* myGridNetworkLabel = nullptr;9091/// @brief grid network92FXLabel* mySpiderNetworkLabel = nullptr;9394/// @brief random grid network95FXLabel* myRandomGridNetworkLabel = nullptr;9697/// @brief grid network98FXLabel* myRandomNetworkLabel = nullptr;99100/// @brief grid network101MFXCheckableButton* myGridNetworkButton = nullptr;102103/// @brief grid network104MFXCheckableButton* mySpiderNetworkButton = nullptr;105106/// @brief random grid network107MFXCheckableButton* myRandomGridNetworkButton = nullptr;108109/// @brief grid network110MFXCheckableButton* myRandomNetworkButton = nullptr;111112/// @brief output text field113FXTextField* myOutputTextField = nullptr;114115/// @brief update run buttons116void updateRunButtons();117118/// @brief Invalidated copy constructor.119GNENetgenerateDialog(const GNENetgenerateDialog&) = delete;120121/// @brief Invalidated assignment operator.122GNENetgenerateDialog& operator=(const GNENetgenerateDialog&) = delete;123};124125126