Path: blob/main/src/netedit/dialogs/elements/GNECalibratorDialog.h
193874 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2026 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 GNECalibratorDialog.h14/// @author Pablo Alvarez Lopez15/// @date March 201716///17// Dialog for edit calibrators18/****************************************************************************/19#pragma once20#include <config.h>2122#include <netedit/changes/GNEChange_Additional.h>23#include <netedit/changes/GNEChange_DemandElement.h>24#include <netedit/dialogs/elements/lists/GNETemplateElementList.h>25#include <netedit/elements/additional/GNEAdditional.h>26#include <netedit/elements/demand/GNEDemandElement.h>2728#include "GNETemplateElementDialog.h"2930// ===========================================================================31// class definitions32// ===========================================================================3334class GNECalibratorDialog : public GNETemplateElementDialog<GNEAdditional> {3536public:37/// @brief Constructor38GNECalibratorDialog(GNEAdditional* calibrator);3940/// @brief destructor41~GNECalibratorDialog();4243/// @brief run internal test44void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);4546/// @name FOX-callbacks47/// @{4849/// @brief event after press accept button50long onCmdAccept(FXObject*, FXSelector, void*);5152/// @brief event after press reset button53long onCmdReset(FXObject*, FXSelector, void*);5455/// @}5657protected:5859/// @brief calibrator flows list60class CalibratorFlowsList : public GNETemplateElementList<GNEAdditional, GNEAdditional, GNEChange_Additional> {6162public:63/// @brief constructor64CalibratorFlowsList(GNECalibratorDialog* calibratorDialog, FXVerticalFrame* contentFrame);6566/// @brief add new element67long addNewElement();6869/// @brief open element dialog70long openElementDialog(const size_t rowIndex);7172private:73/// @brief Invalidated copy constructor74CalibratorFlowsList(const CalibratorFlowsList&) = delete;7576/// @brief Invalidated assignment operator77CalibratorFlowsList& operator=(const CalibratorFlowsList&) = delete;78};7980/// @brief list with calibrator flows81CalibratorFlowsList* myCalibratorFlows;8283private:84/// @brief Invalidated copy constructor.85GNECalibratorDialog(const GNECalibratorDialog&) = delete;8687/// @brief Invalidated assignment operator.88GNECalibratorDialog& operator=(const GNECalibratorDialog&) = delete;89};909192