Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netedit/frames/GNESelectorParent.h
169678 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2025 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 GNESelectorParent.h
15
/// @author Pablo Alvarez Lopez
16
/// @date Mar 2022
17
///
18
// Frame for select parents
19
/****************************************************************************/
20
#pragma once
21
#include <config.h>
22
23
#include <utils/foxtools/MFXGroupBoxModule.h>
24
25
// ===========================================================================
26
// class declaration
27
// ===========================================================================
28
29
class GNEFrame;
30
31
// ===========================================================================
32
// class definitions
33
// ===========================================================================
34
35
class GNESelectorParent : public MFXGroupBoxModule {
36
37
public:
38
/// @brief constructor
39
GNESelectorParent(GNEFrame* frameParent);
40
41
/// @brief destructor
42
~GNESelectorParent();
43
44
/// @brief get currently parent additional selected
45
std::string getIdSelected() const;
46
47
/// @brief select manually a element of the list
48
void setIDSelected(const std::string& id);
49
50
/// @brief Show list of GNESelectorParent Module
51
void showSelectorParentModule(const std::vector<SumoXMLTag>& parentTags);
52
53
/// @brief hide GNESelectorParent Module
54
void hideSelectorParentModule();
55
56
/// @brief Refresh list of Additional Parents Module
57
void refreshSelectorParentModule();
58
59
private:
60
/// @brief pointer to Frame Parent
61
GNEFrame* myFrameParent;
62
63
/// @brief current parent additional tag
64
std::vector<SumoXMLTag> myParentTags;
65
66
/// @brief Label with parent name
67
FXLabel* myParentsLabel;
68
69
/// @brief List of parents
70
FXList* myParentsList;
71
};
72
73