![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameAttributeModules.h>
Public Types | |
enum | Options { NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 , LOAD = 1 << 4 } |
GroupBoxModule options. More... | |
Public Member Functions | |
AttributesEditor (GNEFrame *inspectorFrameParent) | |
FOX-declaration. More... | |
FXVerticalFrame * | getCollapsableFrame () |
get collapsable frame (used by all elements that will be collapsed if button is toggled) More... | |
GNEFrame * | getFrameParent () const |
pointer to GNEFrame parent More... | |
void | hideAttributesEditorModule () |
hide attribute editor More... | |
long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
collapse GroupBoxModule More... | |
long | onCmdExtendButton (FXObject *, FXSelector, void *) |
extends GroupBoxModule More... | |
long | onCmdLoadButton (FXObject *, FXSelector, void *) |
load contents More... | |
long | onCmdResetButton (FXObject *, FXSelector, void *) |
reset GroupBoxModule More... | |
long | onCmdSaveButton (FXObject *, FXSelector, void *) |
save contents More... | |
long | onPaint (FXObject *, FXSelector, void *) |
draw MFXGroupBoxModule More... | |
long | onUpdResetButton (FXObject *, FXSelector, void *) |
update reset GroupBoxModule More... | |
void | refreshAttributeEditor (bool forceRefreshShape, bool forceRefreshPosition) |
refresh attribute editor (only the valid values will be refresh) More... | |
void | setText (const std::string &text) |
set text More... | |
void | showAttributeEditorModule (bool includeExtended, bool forceAttributeEnabled) |
show attributes of multiple ACs More... | |
FOX-callbacks | |
Called when user press the help button | |
long | onCmdAttributesEditorHelp (FXObject *, FXSelector, void *) |
Protected Member Functions | |
virtual bool | loadContents () const |
load contents (can be reimplemented in children) More... | |
virtual bool | saveContents () const |
save contents (can be reimplemented in children) More... | |
void | toggleSaveButton (const bool value) |
enable or disable save buttons More... | |
Private Attributes | |
GNEFlowEditor * | myAttributesEditorFlow = nullptr |
GNEFlowEditor modul. More... | |
std::vector< AttributesEditorRow * > | myAttributesEditorRows |
list of Attribute editor rows More... | |
FXVerticalFrame * | myCollapsableFrame = nullptr |
vertical collapsable frame More... | |
FXButton * | myCollapseButton = nullptr |
button for collapse elements More... | |
bool | myCollapsed |
flag to check if this groupbox is collapsed More... | |
FXButton * | myExtendButton = nullptr |
button for extend elements More... | |
GNEFrame * | myFrameParent |
fox need this More... | |
FXButton * | myHelpButton = nullptr |
button for help More... | |
bool | myIncludeExtended |
flag used to mark if current edited ACs are bein edited including extended attribute More... | |
FXLabel * | myLabel = nullptr |
label used in non collapsable MFXGroupBoxModule More... | |
FXButton * | myLoadButton = nullptr |
button for load elements More... | |
const int | myOptions |
GroupBoxModule options. More... | |
FXButton * | myResetWidthButton = nullptr |
button for reset frame width More... | |
FXButton * | mySaveButton = nullptr |
button for save elements More... | |
Definition at line 141 of file GNEFrameAttributeModules.h.
|
inherited |
GroupBoxModule options.
Enumerator | |
---|---|
NOTHING | |
COLLAPSIBLE | |
EXTENSIBLE | |
SAVE | |
LOAD |
Definition at line 37 of file MFXGroupBoxModule.h.
GNEFrameAttributeModules::AttributesEditor::AttributesEditor | ( | GNEFrame * | inspectorFrameParent | ) |
FOX-declaration.
constructor
Definition at line 688 of file GNEFrameAttributeModules.cpp.
References MFXGroupBoxModule::getCollapsableFrame(), GNEFrame::getViewNet(), GUIDesignButtonRectangular, GNEFlowEditor::hideFlowEditor(), GNEAttributeCarrier::MAXNUMBEROFATTRIBUTES, MID_HELP, myAttributesEditorFlow, myAttributesEditorRows, myHelpButton, and TL.
|
inherited |
get collapsable frame (used by all elements that will be collapsed if button is toggled)
Definition at line 118 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myCollapsableFrame.
Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEOverlappedInspection::buildFXElements(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEM_PathLegend::GNEM_PathLegend(), GNEPathCreator::GNEPathCreator(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEAttributesCreator::refreshRows(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZParameters::TAZParameters(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), GNESelectorFrame::VisualScaling::VisualScaling(), and GNETypeFrame::VTypeDistributions::VTypeDistributions().
GNEFrame * GNEFrameAttributeModules::AttributesEditor::getFrameParent | ( | ) | const |
pointer to GNEFrame parent
Definition at line 894 of file GNEFrameAttributeModules.cpp.
Referenced by GNETypeFrame::attributesEditorExtendedDialogOpened(), GNEInspectorFrame::clearInspectedAC(), and GNETypeFrame::show().
void GNEFrameAttributeModules::AttributesEditor::hideAttributesEditorModule | ( | ) |
hide attribute editor
Definition at line 805 of file GNEFrameAttributeModules.cpp.
Referenced by GNEInspectorFrame::inspectMultisection().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 226 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdLoadButton().
long GNEFrameAttributeModules::AttributesEditor::onCmdAttributesEditorHelp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 900 of file GNEFrameAttributeModules.cpp.
Referenced by FXDEFMAP().
|
inherited |
collapse GroupBoxModule
Definition at line 137 of file MFXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myCollapseButton, MFXGroupBoxModule::myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
|
inherited |
extends GroupBoxModule
Definition at line 153 of file MFXGroupBoxModule.cpp.
References GNEFrame::getScrollBarWidth(), GNETLSEditorFrame::TLSPhases::getTLSEditorParent(), GNETLSTable::getTLSPhasesParent(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
load contents
Definition at line 207 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::loadContents().
Referenced by FXDEFMAP().
|
inherited |
reset GroupBoxModule
Definition at line 179 of file MFXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 201 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::saveContents().
Referenced by FXDEFMAP().
|
inherited |
draw MFXGroupBoxModule
Definition at line 124 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
|
inherited |
update reset GroupBoxModule
Definition at line 188 of file MFXGroupBoxModule.cpp.
References GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and MFXGroupBoxModule::myFrameParent.
Referenced by FXDEFMAP().
void GNEFrameAttributeModules::AttributesEditor::refreshAttributeEditor | ( | bool | forceRefreshShape, |
bool | forceRefreshPosition | ||
) |
refresh attribute editor (only the valid values will be refresh)
Definition at line 814 of file GNEFrameAttributeModules.cpp.
References SUMO_ATTR_CONTAINER_TRIGGERED, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_POSITION, SUMO_ATTR_SHAPE, SUMO_ATTR_TRIGGERED, SUMO_ATTR_TYPE, and SUMO_TAG_VTYPE.
Referenced by GNEInspectorFrame::attributeUpdated(), and GNEInspectorFrame::updateFrameAfterUndoRedo().
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions, and GNEFixNetworkElements::FixOptions.
Definition at line 219 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdSaveButton().
|
inherited |
set text
Definition at line 112 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myLabel.
Referenced by GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().
void GNEFrameAttributeModules::AttributesEditor::showAttributeEditorModule | ( | bool | includeExtended, |
bool | forceAttributeEnabled | ||
) |
show attributes of multiple ACs
Definition at line 704 of file GNEFrameAttributeModules.cpp.
References GNENet::getAttributeCarriers(), GNEAttributeCarrier::getNet(), GNE_ATTR_VTYPE_DISTRIBUTION, GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_ATTR_CONTAINER_TRIGGERED, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_ID, SUMO_ATTR_TRIGGERED, SUMO_ATTR_TYPE, SUMO_TAG_VTYPE, and SUMO_TAG_VTYPE_DISTRIBUTION.
Referenced by GNETypeFrame::attributesEditorExtendedDialogOpened(), GNEInspectorFrame::inspectMultisection(), and GNETypeFrame::show().
|
protectedinherited |
enable or disable save buttons
Definition at line 233 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::mySaveButton.
|
private |
GNEFlowEditor modul.
Definition at line 176 of file GNEFrameAttributeModules.h.
Referenced by AttributesEditor().
|
private |
list of Attribute editor rows
Definition at line 179 of file GNEFrameAttributeModules.h.
Referenced by AttributesEditor().
|
privateinherited |
vertical collapsable frame
Definition at line 102 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::getCollapsableFrame(), MFXGroupBoxModule::MFXGroupBoxModule(), MFXGroupBoxModule::onCmdCollapseButton(), and MFXGroupBoxModule::onCmdExtendButton().
|
privateinherited |
button for collapse elements
Definition at line 108 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 123 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
button for extend elements
Definition at line 111 of file MFXGroupBoxModule.h.
|
private |
|
private |
button for help
Definition at line 182 of file GNEFrameAttributeModules.h.
Referenced by AttributesEditor().
|
private |
flag used to mark if current edited ACs are bein edited including extended attribute
Definition at line 185 of file GNEFrameAttributeModules.h.
|
privateinherited |
label used in non collapsable MFXGroupBoxModule
Definition at line 105 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::setText().
|
privateinherited |
button for load elements
Definition at line 120 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
privateinherited |
GroupBoxModule options.
Definition at line 96 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
privateinherited |
button for reset frame width
Definition at line 114 of file MFXGroupBoxModule.h.
|
privateinherited |
button for save elements
Definition at line 117 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::toggleSaveButton().