Eclipse SUMO - Simulation of Urban MObility
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GNEAttributesEditor.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// pack of all GNEAttributesEditorTypes
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25// ===========================================================================
26// class GNEAttributesEditor
27// ===========================================================================
28
30
31public:
34
36 void showAttributesEditor(GNEAttributeCarrier* AC, const bool primaryAttributeEditor);
37
39 void showAttributesEditor(const std::unordered_set<GNEAttributeCarrier*>& ACs, const bool primaryAttributeEditor);
40
43
46
49
51 bool checkAttributes(const bool showWarning);
52
55
59 bool isReparenting() const;
60
62 bool checkNewParent(const GNEAttributeCarrier* AC) const;
63
65 void setNewParent(const GNEAttributeCarrier* AC);
66
68 void abortReparenting();
69
71
72protected:
75
78
81
84
87
90
91private:
94
97};
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
GNEAttributesEditorType * myNeteditAttributesEditor
netedit attributes editor
SumoXMLAttr fillSumoBaseObject(CommonXMLStructure::SumoBaseObject *baseObject) const
fill sumo Base object
GNEAttributesEditorType * myExtendedAttributesEditor
extended attributes editor
GNEAttributesEditorType * myGeoAttributesEditor
geo attributes editor
void setNewParent(const GNEAttributeCarrier *AC)
set new parent
GNEAttributesEditor & operator=(GNEAttributesEditor *)=delete
Invalidated assignment operator.
void showAttributesEditor(GNEAttributeCarrier *AC, const bool primaryAttributeEditor)
edit attributes of the given AC (usually the edited template AC)
void refreshAttributesEditor()
refresh attribute editor
bool checkAttributes(const bool showWarning)
check if current edited attributes are valid
bool checkNewParent(const GNEAttributeCarrier *AC) const
check if the given AC can be a new parent
GNEAttributesEditorType * myFlowAttributesEditor
flow attributes editor
void disableAttributesEditor()
disable attribute editor
GNEAttributesEditor(GNEAttributesEditor *)=delete
Invalidated copy constructor.
void abortReparenting()
abort selecting parent
void hideAttributesEditor()
hide attribute editor
GNEAttributesEditorType * myParametersAttributesEditor
parameteres attributes editor
GNEAttributesEditorType * myBasicAttributesEditor
basic attributes editor