Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNETagSelector.h
Go to the documentation of this file.
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/****************************************************************************/
18// Frame for select tags
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
25
26// ===========================================================================
27// class declaration
28// ===========================================================================
29
30class GNEFrame;
31
32// ===========================================================================
33// class definitions
34// ===========================================================================
35
38 FXDECLARE(GNETagSelector)
39
40public:
42 GNETagSelector(GNEFrame* frameParent, const GNETagProperties::Type type, const SumoXMLTag tag);
43
46
48 void showTagSelector();
49
51 void hideTagSelector();
52
55
57 void updateTagTypes(const GNETagProperties::Type type, const SumoXMLTag tag, const bool informParent);
58
60 void setCurrentTag(SumoXMLTag newTag, const bool informParent = true);
61
63 void refreshTagSelector();
64
68 long onCmdSelectTag(FXObject*, FXSelector, void* ptr);
70
71protected:
73 FOX_CONSTRUCTOR(GNETagSelector)
74
75private:
78
81
84};
SumoXMLTag
Numbers representing SUMO-XML - element names.
MFXComboBoxIcon * myTagsMatchBox
comboBox with the tags
GNEAttributeCarrier * myCurrentTemplateAC
current templateAC;
void updateTagTypes(const GNETagProperties::Type type, const SumoXMLTag tag, const bool informParent)
update tag types to select
void refreshTagSelector()
refresh tagSelector (used when frameParent is show)
void showTagSelector()
show item selector
void setCurrentTag(SumoXMLTag newTag, const bool informParent=true)
set current type manually
long onCmdSelectTag(FXObject *, FXSelector, void *ptr)
GNEFrame * myFrameParent
FOX need this.
GNEAttributeCarrier * getCurrentTemplateAC() const
get current templateAC
void hideTagSelector()
hide item selector
~GNETagSelector()
destructor
MFXGroupBoxModule (based on FXGroupBox)