![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameModules.h>
Public Types | |
| enum | Options { NOTHING = 1 << 0, COLLAPSIBLE = 1 << 1, SAVE = 1 << 2, LOAD = 1 << 3 } |
| GroupBoxModule options. More... | |
Public Member Functions | |
| void | abortDrawing () |
| abort drawing More... | |
| void | addNewPoint (const Position &P) |
| add new point to temporal shape More... | |
| DrawingShape (GNEFrame *frameParent) | |
| FOX-declaration. More... | |
| FXVerticalFrame * | getCollapsableFrame () |
| get collapsable frame (used by all elements that will be collapsed if button is toogled) More... | |
| bool | getDeleteLastCreatedPoint () |
| get flag delete last created point More... | |
| const PositionVector & | getTemporalShape () const |
| get Temporal shape More... | |
| void | hideDrawingShape () |
| hide Drawing mode More... | |
| bool | isDrawing () const |
| return true if currently a shape is drawed More... | |
| long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
| collapse GroupBoxModule More... | |
| long | onCmdLoadButton (FXObject *, FXSelector, void *) |
| load contents More... | |
| long | onCmdSaveButton (FXObject *, FXSelector, void *) |
| save contents More... | |
| long | onPaint (FXObject *, FXSelector, void *) |
| draw FXGroupBoxModule More... | |
| void | removeLastPoint () |
| remove last added point More... | |
| void | setDeleteLastCreatedPoint (bool value) |
| enable or disable delete last created point More... | |
| void | setText (const std::string &text) |
| set text More... | |
| void | showDrawingShape () |
| show Drawing mode More... | |
| void | startDrawing () |
| start drawing More... | |
| void | stopDrawing () |
| stop drawing and check if shape can be created More... | |
| ~DrawingShape () | |
| destructor More... | |
FOX-callbacks | |
Called when the user press start drawing button | |
| long | onCmdStartDrawing (FXObject *, FXSelector, void *) |
| long | onCmdStopDrawing (FXObject *, FXSelector, void *) |
| Called when the user press stop drawing button. More... | |
| long | onCmdAbortDrawing (FXObject *, FXSelector, void *) |
| Called when the user press abort drawing button. More... | |
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 | toogleSaveButton (const bool value) |
| enable or disable save buttons More... | |
Private Attributes | |
| FXButton * | myAbortDrawingButton |
| button for abort drawing 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... | |
| bool | myDeleteLastCreatedPoint |
| flag to enable/disable delete point mode More... | |
| GNEFrame * | myFrameParent |
| pointer to frame parent More... | |
| FXLabel * | myInformationLabel |
| Label with information. More... | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable FXGroupBoxModule More... | |
| FXButton * | myLoadButton = nullptr |
| button for load elements More... | |
| const int | myOptions |
| GroupBoxModule options. More... | |
| FXButton * | mySaveButton = nullptr |
| button for save elements More... | |
| FXButton * | myStartDrawingButton |
| button for start drawing More... | |
| FXButton * | myStopDrawingButton |
| button for stop drawing More... | |
| PositionVector | myTemporalShape |
| current drawed shape More... | |
Definition at line 318 of file GNEFrameModules.h.
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 32 of file FXGroupBoxModule.h.
| GNEFrameModules::DrawingShape::DrawingShape | ( | GNEFrame * | frameParent | ) |
FOX-declaration.
constructor
Definition at line 1713 of file GNEFrameModules.cpp.
References FXGroupBoxModule::getCollapsableFrame(), GUIDesignButton, GUIDesignLabelFrameInformation, MID_GNE_ABORTDRAWING, MID_GNE_STARTDRAWING, MID_GNE_STOPDRAWING, myAbortDrawingButton, myInformationLabel, myStartDrawingButton, and myStopDrawingButton.
| GNEFrameModules::DrawingShape::~DrawingShape | ( | ) |
destructor
Definition at line 1739 of file GNEFrameModules.cpp.
| void GNEFrameModules::DrawingShape::abortDrawing | ( | ) |
abort drawing
Definition at line 1788 of file GNEFrameModules.cpp.
Referenced by GNEViewNet::abortOperation().
| void GNEFrameModules::DrawingShape::addNewPoint | ( | const Position & | P | ) |
add new point to temporal shape
Definition at line 1799 of file GNEFrameModules.cpp.
Referenced by GNEShapeFrame::processClick(), and GNETAZFrame::processClick().
|
inherited |
get collapsable frame (used by all elements that will be collapsed if button is toogled)
Definition at line 82 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::myCollapsableFrame.
Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesCreator::AttributesCreator(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECommonNetworkModules::ConsecutiveLaneSelector::ConsecutiveLaneSelector(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEFrameModules::DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), DrawingShape(), GNEFrameAttributeModules::DrawingShape::DrawingShape(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::FlowEditor::FlowEditor(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEFrameModules::HierarchicalElementTree::HierarchicalElementTree(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNETAZRelDataFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEProhibitionFrame::Modifications::Modifications(), GNEFrameAttributeModules::NeteditAttributes::NeteditAttributes(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEFrameModules::PathCreator::PathCreator(), GNEFrameModules::PathLegend::PathLegend(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEFrameModules::SelectorParent::SelectorParent(), 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::TLSModifications::TLSModifications(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
| bool GNEFrameModules::DrawingShape::getDeleteLastCreatedPoint | ( | ) |
get flag delete last created point
Definition at line 1835 of file GNEFrameModules.cpp.
Referenced by GNEViewNet::drawTemporalDrawingShape(), GNEShapeFrame::processClick(), and GNETAZFrame::processClick().
| const PositionVector & GNEFrameModules::DrawingShape::getTemporalShape | ( | ) | const |
get Temporal shape
Definition at line 1817 of file GNEFrameModules.cpp.
Referenced by GNEViewNet::drawTemporalDrawingShape(), GNEShapeFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().
| void GNEFrameModules::DrawingShape::hideDrawingShape | ( | ) |
hide Drawing mode
Definition at line 1750 of file GNEFrameModules.cpp.
Referenced by GNEShapeFrame::tagSelected().
| bool GNEFrameModules::DrawingShape::isDrawing | ( | ) | const |
return true if currently a shape is drawed
Definition at line 1823 of file GNEFrameModules.cpp.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNet::hotkeyEnter(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEViewNet::onRightBtnPress(), GNEViewNet::onRightBtnRelease(), GNEShapeFrame::processClick(), GNETAZFrame::processClick(), and GNEViewNet::processMoveMouseNetwork().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 142 of file FXGroupBoxModule.cpp.
Referenced by FXGroupBoxModule::onCmdLoadButton().
| long GNEFrameModules::DrawingShape::onCmdAbortDrawing | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user press abort drawing button.
Definition at line 1855 of file GNEFrameModules.cpp.
|
inherited |
collapse GroupBoxModule
Definition at line 101 of file FXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), FXGroupBoxModule::myCollapsableFrame, FXGroupBoxModule::myCollapseButton, FXGroupBoxModule::myCollapsed, and UNCOLLAPSE.
|
inherited |
load contents
Definition at line 123 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::loadContents().
|
inherited |
save contents
Definition at line 117 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::saveContents().
| long GNEFrameModules::DrawingShape::onCmdStartDrawing | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 1841 of file GNEFrameModules.cpp.
| long GNEFrameModules::DrawingShape::onCmdStopDrawing | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user press stop drawing button.
Definition at line 1848 of file GNEFrameModules.cpp.
|
inherited |
draw FXGroupBoxModule
Definition at line 88 of file FXGroupBoxModule.cpp.
| void GNEFrameModules::DrawingShape::removeLastPoint | ( | ) |
remove last added point
Definition at line 1809 of file GNEFrameModules.cpp.
Referenced by GNEShapeFrame::processClick(), and GNETAZFrame::processClick().
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions.
Definition at line 135 of file FXGroupBoxModule.cpp.
Referenced by FXGroupBoxModule::onCmdSaveButton().
| void GNEFrameModules::DrawingShape::setDeleteLastCreatedPoint | ( | bool | value | ) |
enable or disable delete last created point
Definition at line 1829 of file GNEFrameModules.cpp.
Referenced by GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), and GNEViewNet::processMoveMouseNetwork().
|
inherited |
set text
Definition at line 76 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::myLabel.
Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().
| void GNEFrameModules::DrawingShape::showDrawingShape | ( | ) |
show Drawing mode
Definition at line 1742 of file GNEFrameModules.cpp.
Referenced by GNEShapeFrame::tagSelected().
| void GNEFrameModules::DrawingShape::startDrawing | ( | ) |
start drawing
Definition at line 1759 of file GNEFrameModules.cpp.
Referenced by GNEViewNet::hotkeyEnter().
| void GNEFrameModules::DrawingShape::stopDrawing | ( | ) |
stop drawing and check if shape can be created
Definition at line 1771 of file GNEFrameModules.cpp.
Referenced by GNEViewNet::hotkeyEnter().
|
protectedinherited |
enable or disable save buttons
Definition at line 149 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::mySaveButton.
|
private |
button for abort drawing
Definition at line 394 of file GNEFrameModules.h.
Referenced by DrawingShape().
|
privateinherited |
vertical collapsable frame
Definition at line 81 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::getCollapsableFrame(), and FXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
button for collapse elements
Definition at line 87 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 96 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::onCmdCollapseButton().
|
private |
flag to enable/disable delete point mode
Definition at line 382 of file GNEFrameModules.h.
|
private |
pointer to frame parent
Definition at line 379 of file GNEFrameModules.h.
|
private |
Label with information.
Definition at line 397 of file GNEFrameModules.h.
Referenced by DrawingShape().
|
privateinherited |
label used in non collapsable FXGroupBoxModule
Definition at line 84 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::setText().
|
privateinherited |
button for load elements
Definition at line 93 of file FXGroupBoxModule.h.
|
privateinherited |
GroupBoxModule options.
Definition at line 78 of file FXGroupBoxModule.h.
|
privateinherited |
button for save elements
Definition at line 90 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::toogleSaveButton().
|
private |
button for start drawing
Definition at line 388 of file GNEFrameModules.h.
Referenced by DrawingShape().
|
private |
button for stop drawing
Definition at line 391 of file GNEFrameModules.h.
Referenced by DrawingShape().
|
private |
current drawed shape
Definition at line 385 of file GNEFrameModules.h.