LCOV - code coverage report
Current view: top level - src/utils/gui/div - GUIParam_PopupMenu.h (source / functions) Coverage Total Hit
Test: lcov.info Lines: 0.0 % 2 0
Test Date: 2024-11-20 15:55:46 Functions: 0.0 % 1 0

            Line data    Source code
       1              : /****************************************************************************/
       2              : // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
       3              : // Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
       4              : // This program and the accompanying materials are made available under the
       5              : // terms of the Eclipse Public License 2.0 which is available at
       6              : // https://www.eclipse.org/legal/epl-2.0/
       7              : // This Source Code may also be made available under the following Secondary
       8              : // Licenses when the conditions for such availability set forth in the Eclipse
       9              : // Public License 2.0 are satisfied: GNU General Public License, version 2
      10              : // or later which is available at
      11              : // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
      12              : // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
      13              : /****************************************************************************/
      14              : /// @file    GUIParam_PopupMenu.h
      15              : /// @author  Daniel Krajzewicz
      16              : /// @date    Mai 2003
      17              : ///
      18              : // A popup-menu for dynamic patameter table entries
      19              : /****************************************************************************/
      20              : #pragma once
      21              : #include <config.h>
      22              : #include <string>
      23              : 
      24              : #include <config.h>
      25              : 
      26              : #include <utils/foxtools/fxheader.h>
      27              : #include <utils/common/ValueSource.h>
      28              : 
      29              : 
      30              : // ===========================================================================
      31              : // class definitions
      32              : // ===========================================================================
      33              : class GUIGlObject;
      34              : class GUIMainWindow;
      35              : class GUIParameterTableWindow;
      36              : 
      37              : 
      38              : // ===========================================================================
      39              : // class declarataions
      40              : // ===========================================================================
      41              : /**
      42              :  * @class GUIParam_PopupMenuInterface
      43              :  * @brief A popup-menu for dynamic patameter table entries
      44              :  *
      45              :  */
      46              : class GUIParam_PopupMenuInterface : public FXMenuPane {
      47            0 :     FXDECLARE(GUIParam_PopupMenuInterface)
      48              : public:
      49              :     /** @brief Constructor
      50              :      *
      51              :      * @param[in] app The main application window
      52              :      * @param[in] parentWindow The parent window (the table the popup belongs to)
      53              :      * @param[in] o The object represented by the table
      54              :      * @param[in] varName The name of the value
      55              :      * @param[in] src The value source
      56              :      */
      57              :     GUIParam_PopupMenuInterface(GUIMainWindow& app,
      58              :                                 GUIParameterTableWindow& parentWindow,
      59              :                                 GUIGlObject& o, const std::string& varName,
      60              :                                 ValueSource<double>* src);
      61              : 
      62              : 
      63              :     /// @brief Destructor
      64              :     ~GUIParam_PopupMenuInterface();
      65              : 
      66              : 
      67              :     /// @name FOX-callbacks
      68              :     /// @{
      69              : 
      70              :     /** @brief Called when a tracker for the value shall be opened
      71              :      *
      72              :      * Builds a new GUIParameterTracker adding the stored value to it.
      73              :      * Initialises this tracker, then.
      74              :      */
      75              :     long onCmdOpenTracker(FXObject*, FXSelector, void*);
      76              :     /// @}
      77              : 
      78              : 
      79              : protected:
      80              :     /// @brief The object the table displays
      81              :     GUIGlObject* myObject;
      82              : 
      83              :     /// @brief The parameter window this popup was initiated by
      84              :     GUIParameterTableWindow* myParentWindow;
      85              : 
      86              :     /** @brief The main application window; holder of some needed values */
      87              :     GUIMainWindow* myApplication;
      88              : 
      89              :     /// @brief The name of the value
      90              :     std::string myVarName;
      91              : 
      92              :     /// @brief The source of the value
      93              :     ValueSource<double>* mySource;
      94              : 
      95              : protected:
      96            0 :     FOX_CONSTRUCTOR(GUIParam_PopupMenuInterface)
      97              : 
      98              : };
        

Generated by: LCOV version 2.0-1