![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEVClassesDialog.h>
Data Structures | |
| class | VClassRow |
| FOX-declaration. More... | |
Public Types | |
basic dialog type | |
| enum class | Buttons { OK , YES_NO , YES_NO_CANCEL , ACCEPT , ACCEPT_CANCEL , ACCEPT_CANCEL_RESET , SAVE_DONTSAVE_CANCEL , RUN_CANCEL_RESET , RUN_ADVANCED_CANCEL , RERUN_BACK_OK , OK_COPY_REPORT } |
| enum class | OpenType { MODAL , NON_MODAL } |
| Open dialog type. More... | |
Public Member Functions | |
| std::string | getModifiedVClasses () const |
| get vClasses modified by this dialog | |
| GNEVClassesDialog (GNEApplicationWindow *applicationWindow, GNEDialog *parentDialog, SumoXMLAttr attr, const std::string originalVClasses) | |
| Constructor with parent dialog. | |
| GNEVClassesDialog (GNEApplicationWindow *applicationWindow, SumoXMLAttr attr, const std::string originalVClasses) | |
| Constructor. | |
| void | runInternalTest (const InternalTestStep::DialogArgument *dialogArgument) |
| run internal test | |
| ~GNEVClassesDialog () | |
| destructor | |
FOX-callbacks | |
| long | onCmdSelectAll (FXObject *, FXSelector, void *) |
| event when user press select all VClasses button | |
| long | onCmdUnselectAll (FXObject *, FXSelector, void *) |
| event when user press unselect all VClasses button | |
| long | onCmdSelectOnlyRoad (FXObject *, FXSelector, void *) |
| event when user press select only road button | |
| long | onCmdSelectOnlyRail (FXObject *, FXSelector, void *) |
| event when user press select only rail button | |
| long | onCmdAccept (FXObject *, FXSelector, void *) |
| event after press accept button | |
| long | onCmdCancel (FXObject *, FXSelector, void *) |
| event after press cancel button | |
| long | onCmdReset (FXObject *, FXSelector, void *) |
| event after press reset button | |
FOX-callbacks | |
| virtual long | onCmdAbort (FXObject *, FXSelector, void *) |
| called when abort is called either closing dialog or pressing abort button (can be reimplemented in children) | |
| virtual long | onCmdRun (FXObject *, FXSelector, void *) |
| called when run button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdBack (FXObject *, FXSelector, void *) |
| called when back button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdAdvanced (FXObject *, FXSelector, void *) |
| called when advanced button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdCopy (FXObject *, FXSelector, void *) |
| called when copy button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdReport (FXObject *, FXSelector, void *) |
| called when report button is pressed (must be reimplemented in children depending of Buttons) | |
| long | onKeyPress (FXObject *obj, FXSelector sel, void *ptr) |
| called when user presses a key on the dialog | |
| long | onKeyRelease (FXObject *obj, FXSelector sel, void *ptr) |
| called when user releases a key on the dialog | |
Protected Member Functions | |
| long | closeDialogAborting () |
| close dialog aborting the changes | |
| long | closeDialogAccepting () |
| close dialog accepting the changes | |
| long | closeDialogCanceling () |
| close dialog declining the changes | |
| void | openDialog (FXWindow *focusableElement=nullptr) |
| open dialog | |
| void | updateIcon (GUIIcon newIcon) |
| update icon | |
| void | updateTitle (const std::string &newTitle) |
| update title | |
Protected Attributes | |
| FXButton * | myAbortButton = nullptr |
| abort button | |
| FXButton * | myAcceptButton = nullptr |
| accept button | |
| FXButton * | myAdvancedButton = nullptr |
| advanced button | |
| GNEApplicationWindow * | myApplicationWindow = nullptr |
| FOX needs this. | |
| FXButton * | myBackButton = nullptr |
| back button | |
| FXButton * | myCancelButton = nullptr |
| cancel button | |
| FXVerticalFrame * | myContentFrame = nullptr |
| content frame | |
| FXButton * | myCopyButton = nullptr |
| copy button | |
| std::string | myEditedVClasses |
| edited vClasses | |
| const std::string | myOriginalVClasses |
| FOX need this. | |
| GNEDialog * | myParentDialog = nullptr |
| parent dialog used for restoring focus after closing dialog | |
| FXButton * | myReportButton = nullptr |
| report button | |
| FXButton * | myResetButton = nullptr |
| reset button | |
| Result | myResult = Result::CANCEL |
| result to indicate if this dialog was closed accepting or rejecting changes | |
| FXButton * | myRunButton = nullptr |
| run button | |
| DialogType | myType = DialogType::DEFAULT |
| dialog type | |
| std::map< SUMOVehicleClass, VClassRow * > | myVClassMap |
| map with the buttons for every VClass | |
Private Member Functions | |
| void | buildDialog (GUIIcon titleIcon, Buttons buttons) |
| build dialog | |
| void | builder () |
| builder | |
| GNEVClassesDialog (const GNEVClassesDialog &)=delete | |
| Invalidated copy constructor. | |
| GNEVClassesDialog & | operator= (const GNEVClassesDialog &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| FXButton * | myFocusButton = nullptr |
| focus button, used for focusing the default button when dialog is opened | |
| OpenType | myOpenType |
| open type | |
| bool | myTesting = false |
| flag to indicate if this dialog is being tested using internal test | |
Resize mode | |
| Result | getResult () const |
| get result to indicate if this dialog was closed accepting or rejecting changes | |
| GNEApplicationWindow * | getApplicationWindow () const |
| get pointer to the application window | |
| FXVerticalFrame * | getContentFrame () const |
| get content frame | |
| enum class | ResizeMode { STATIC , RESIZABLE } |
| enum class | Result { ACCEPT , CANCEL , ABORT , ACCEPT_ALL , CANCEL_ALL } |
| list of possible results when closing the dialog More... | |
Definition at line 37 of file GNEVClassesDialog.h.
|
stronginherited |
| Enumerator | |
|---|---|
| OK | |
| YES_NO | |
| YES_NO_CANCEL | |
| ACCEPT | |
| ACCEPT_CANCEL | |
| ACCEPT_CANCEL_RESET | |
| SAVE_DONTSAVE_CANCEL | |
| RUN_CANCEL_RESET | |
| RUN_ADVANCED_CANCEL | |
| RERUN_BACK_OK | |
| OK_COPY_REPORT | |
Definition at line 43 of file GNEDialog.h.
|
stronginherited |
|
stronginherited |
| Enumerator | |
|---|---|
| STATIC | |
| RESIZABLE | |
Definition at line 64 of file GNEDialog.h.
|
stronginherited |
list of possible results when closing the dialog
| Enumerator | |
|---|---|
| ACCEPT | |
| CANCEL | |
| ABORT | |
| ACCEPT_ALL | |
| CANCEL_ALL | |
Definition at line 70 of file GNEDialog.h.
| GNEVClassesDialog::GNEVClassesDialog | ( | GNEApplicationWindow * | applicationWindow, |
| SumoXMLAttr | attr, | ||
| const std::string | originalVClasses ) |
Constructor.
Definition at line 116 of file GNEVClassesDialog.cpp.
References builder(), GNEDialog::GNEDialog(), myEditedVClasses, myOriginalVClasses, TLF, and toString().
Referenced by GNEVClassesDialog(), operator=(), GNEVClassesDialog::VClassRow::operator=(), and GNEVClassesDialog::VClassRow::VClassRow().
| GNEVClassesDialog::GNEVClassesDialog | ( | GNEApplicationWindow * | applicationWindow, |
| GNEDialog * | parentDialog, | ||
| SumoXMLAttr | attr, | ||
| const std::string | originalVClasses ) |
Constructor with parent dialog.
Definition at line 127 of file GNEVClassesDialog.cpp.
References builder(), GNEDialog::GNEDialog(), myEditedVClasses, myOriginalVClasses, TLF, and toString().
| GNEVClassesDialog::~GNEVClassesDialog | ( | ) |
destructor
Definition at line 138 of file GNEVClassesDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
References GNEVClassesDialog().
|
privateinherited |
build dialog
Definition at line 365 of file GNEDialog.cpp.
References ACCEPT, ACCEPT_CANCEL, ACCEPT_CANCEL_RESET, BACK, GUIDesigns::buildFXButton(), CANCEL, COPY, GUIIconSubSys::getIcon(), GITHUB, GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonDialog, GUIDesignDialogButtonsHorizontalFrame, GUIDesignDialogContentFrame, GUIDesignHorizontalSeparator, MID_GNE_ABORT, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_ADVANCED, MID_GNE_BUTTON_BACK, MID_GNE_BUTTON_CANCEL, MID_GNE_BUTTON_COPY, MID_GNE_BUTTON_REPORT, MID_GNE_BUTTON_RESET, MID_GNE_BUTTON_RUN, myAbortButton, myAcceptButton, myAdvancedButton, myBackButton, myCancelButton, myContentFrame, myCopyButton, myFocusButton, myReportButton, myResetButton, myRunButton, NO, OK, OK_COPY_REPORT, OPTIONS, RERUN_BACK_OK, RESET, RUN_ADVANCED_CANCEL, RUN_CANCEL_RESET, SAVE, SAVE_DONTSAVE_CANCEL, START, TL, YES, YES_NO, and YES_NO_CANCEL.
|
private |
builder
Definition at line 278 of file GNEVClassesDialog.cpp.
References GUIDesigns::buildFXButton(), CANCEL, GNEDialog::getContentFrame(), GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrameUniform, GUIDesignButtonIcon, GUIDesignContentsFrame, GUIDesignLabel, GUIDesignLabelThick, MID_GNE_ALLOWVCLASSES_ONLY_RAIL, MID_GNE_ALLOWVCLASSES_ONLY_ROAD, MID_GNE_ALLOWVCLASSES_SELECTALL, MID_GNE_ALLOWVCLASSES_UNSELECTALL, myVClassMap, OK, onCmdReset(), GNEDialog::openDialog(), SVC_AIRCRAFT, SVC_ARMY, SVC_AUTHORITY, SVC_BICYCLE, SVC_BUS, SVC_CABLE_CAR, SVC_COACH, SVC_CONTAINER, SVC_CUSTOM1, SVC_CUSTOM2, SVC_DELIVERY, SVC_DRONE, SVC_E_VEHICLE, SVC_EMERGENCY, SVC_HOV, SVC_MOPED, SVC_MOTORCYCLE, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_PRIVATE, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_FAST, SVC_RAIL_URBAN, SVC_SCOOTER, SVC_SHIP, SVC_SUBWAY, SVC_TAXI, SVC_TRAILER, SVC_TRAM, SVC_TRUCK, SVC_VIP, SVC_WHEELCHAIR, TL, VCLASS_AIRCRAFT, VCLASS_ARMY, VCLASS_AUTHORITY, VCLASS_BICYCLE, VCLASS_BUS, VCLASS_CABLE_CAR, VCLASS_COACH, VCLASS_CONTAINER, VCLASS_CUSTOM1, VCLASS_CUSTOM2, VCLASS_DELIVERY, VCLASS_DRONE, VCLASS_EMERGENCY, VCLASS_EVEHICLE, VCLASS_HOV, VCLASS_MOPED, VCLASS_MOTORCYCLE, VCLASS_PASSENGER, VCLASS_PEDESTRIAN, VCLASS_PRIVATE, VCLASS_RAIL, VCLASS_RAIL_ELECTRIC, VCLASS_RAIL_FAST, VCLASS_RAIL_URBAN, VCLASS_SCOOTER, VCLASS_SHIP, VCLASS_SUBWAY, VCLASS_TAXI, VCLASS_TRAILER, VCLASS_TRAM, VCLASS_TRUCK, VCLASS_VIP, and VCLASS_WHEELCHAIR.
Referenced by GNEVClassesDialog(), and GNEVClassesDialog().
|
protectedinherited |
close dialog aborting the changes
Definition at line 333 of file GNEDialog.cpp.
References ABORT, MODAL, myApplicationWindow, myOpenType, myParentDialog, myResult, and myTesting.
Referenced by onCmdAbort(), GNEOverwriteElement::onCmdAbort(), GNETemplateElementDialog< T >::onCmdAbort(), and GNEFixElementsDialog< GNEAdditional * >::updateIcon().
|
protectedinherited |
close dialog accepting the changes
Definition at line 293 of file GNEDialog.cpp.
References ACCEPT, MODAL, myApplicationWindow, myOpenType, myParentDialog, myResult, and myTesting.
Referenced by GNETemplateElementDialog< T >::acceptElementDialog(), onCmdAccept(), GNEDistributionRefDialog::onCmdAccept(), GNEFileDialog::onCmdAccept(), GNEFixElementsDialog< T >::onCmdAccept(), GNEOverwriteElement::onCmdAccept(), GNEParametersDialog::onCmdAccept(), GNESaveDialog::onCmdAccept(), GNEVClassesDialog::onCmdAccept(), and GNEPythonToolDialog::onCmdRun().
|
protectedinherited |
close dialog declining the changes
Definition at line 313 of file GNEDialog.cpp.
References CANCEL, MODAL, myApplicationWindow, myOpenType, myParentDialog, myResult, and myTesting.
Referenced by GNERunDialog::onCmdAbort(), GNEDistributionRefDialog::onCmdAccept(), GNEFixElementsDialog< T >::onCmdAccept(), GNERunNetgenerateDialog::onCmdAccept(), GNERunPythonToolDialog::onCmdAccept(), GNEVClassesDialog::onCmdAccept(), GNENetgenerateDialog::onCmdAdvanced(), GNERunNetgenerateDialog::onCmdBack(), GNERunPythonToolDialog::onCmdBack(), onCmdCancel(), GNEFilePathDialog::onCmdCancel(), GNENeteditOptionsDialog::onCmdCancel(), GNENetgenerateOptionsDialog::onCmdCancel(), GNEOverwriteElement::onCmdCancel(), GNESaveDialog::onCmdCancel(), GNESumoOptionsDialog::onCmdCancel(), GNETemplateElementDialog< T >::onCmdCancel(), GNEVClassesDialog::onCmdCancel(), GNENetgenerateDialog::onCmdRun(), and GNENetgenerateOptionsDialog::onCmdRun().
|
inherited |
get pointer to the application window
Definition at line 139 of file GNEDialog.cpp.
References myApplicationWindow.
Referenced by GNEPythonToolDialog::buildArguments().
|
inherited |
get content frame
Definition at line 145 of file GNEDialog.cpp.
References myContentFrame.
Referenced by GNEColorDialog::builder(), and GNEVClassesDialog::builder().
| std::string GNEVClassesDialog::getModifiedVClasses | ( | ) | const |
get vClasses modified by this dialog
Definition at line 161 of file GNEVClassesDialog.cpp.
References myEditedVClasses.
Referenced by GNEVClassesDialog::VClassRow::operator=().
|
inherited |
get result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 133 of file GNEDialog.cpp.
References myResult.
Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement(), GNEViewNet::addRestrictedLane(), GNEViewNet::aksChangeSupermode(), GNESelectorFrame::SelectionOperation::askContinueIfLock(), GNEViewNet::askMergeJunctions(), GNENetHelper::SavingStatus::askSaveAdditionalElements(), GNENetHelper::SavingStatus::askSaveDataElements(), GNENetHelper::SavingStatus::askSaveDemandElements(), GNENetHelper::SavingStatus::askSaveMeanDataElements(), GNENetHelper::SavingStatus::askSaveNetwork(), GNEDataHandler::checkDuplicatedDataSet(), GNEMeanDataHandler::checkDuplicatedMeanDataElement(), GNEAdditionalHandler::checkElement(), GNERouteHandler::checkElement(), GNENet::cleanInvalidCrossings(), GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNETypeFrame::TypeEditor::deleteType(), GNETLSEditorFrame::isTLSSaved(), GNENet::joinSelectedJunctions(), GNEApplicationWindow::loadOSM(), GNEFileSelector::onCmdAccept(), GNEDistributionFrame::DistributionValuesEditor::onCmdAddRow(), GNEFileSelector::onCmdCopy(), GNEFileSelector::onCmdDelete(), GNEPythonToolDialog::onCmdLoad(), GNEOptionsEditor::onCmdLoadOptions(), GNEFileSelector::onCmdMove(), GNEApplicationWindow::onCmdOpenAdditionalElements(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEOptionsEditorRow::OptionFilename::onCmdOpenDialog(), GNEApplicationWindow::onCmdOpenEdgeTypes(), GNEAttributesEditorType::onCmdOpenEditParametersDialog(), GNEAttributesEditorType::onCmdOpenExtendedAttributesDialog(), GNEAttributesEditorRow::onCmdOpenFileDialog(), GNEApplicationWindow::onCmdOpenForeign(), GNEApplicationWindow::onCmdOpenMeanDataElements(), GNEApplicationWindow::onCmdOpenNetconvertConfig(), GNEApplicationWindow::onCmdOpenNeteditConfig(), GNEApplicationWindow::onCmdOpenNetwork(), GNEApplicationWindow::onCmdOpenOptionsDialog(), GNENetgenerateDialog::onCmdOpenOutputFile(), GNEVehicleTypeDialog::VTypeAttributes::onCmdOpenParametersEditor(), GNEApplicationWindow::onCmdOpenSumoConfig(), GNEApplicationWindow::onCmdOpenSumoOptionsDialog(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNETLSEditorFrame::TLSAttributes::onCmdParametersDialog(), GNEPythonToolDialog::onCmdSave(), GNEApplicationWindow::onCmdSaveAdditionalElementsAs(), GNEApplicationWindow::onCmdSaveAdditionalElementsUnified(), GNEApplicationWindow::onCmdSaveDataElementsAs(), GNEApplicationWindow::onCmdSaveDataElementsUnified(), GNEApplicationWindow::onCmdSaveDemandElementsAs(), GNEApplicationWindow::onCmdSaveDemandElementsUnified(), GNEApplicationWindow::onCmdSaveEdgeTypesAs(), GNEApplicationWindow::onCmdSaveJoinedJunctionsAs(), GNEApplicationWindow::onCmdSaveJuPedSimElementsAs(), GNERunDialog::onCmdSaveLog(), GNEApplicationWindow::onCmdSaveMeanDataElementsAs(), GNEApplicationWindow::onCmdSaveMeanDataElementsUnified(), GNEApplicationWindow::onCmdSaveNeteditConfigAs(), GNEApplicationWindow::onCmdSaveNetwork(), GNEApplicationWindow::onCmdSaveNetworkAs(), GNEOptionsEditor::onCmdSaveOptions(), GNEApplicationWindow::onCmdSavePlainXMLAs(), GNEApplicationWindow::onCmdSaveSumoConfigAs(), GNEApplicationWindow::onCmdSaveTLSProgramsAs(), GNEViewNet::onCmdSetCustomGeometryPoint(), GNETAZFrame::TAZChildDefaultParameters::onCmdSetZeroFringeProbabilities(), GNEViewNet::removeRestrictedLane(), GNEViewNet::restrictLane(), GNENet::saveAdditionals(), GNENet::saveDemandElements(), and GNEPythonToolDialogElements::FileNameArgument::updateFromDialog().
|
virtualinherited |
called when abort is called either closing dialog or pressing abort button (can be reimplemented in children)
Reimplemented in GNEOverwriteElement, GNERunDialog, GNERunNetgenerateDialog, GNETemplateElementDialog< T >, GNETemplateElementDialog< elementDialogType >, GNETemplateElementDialog< GNEAdditional >, GNETemplateElementDialog< GNEAttributeCarrier >, and GNETemplateElementDialog< GNEDemandElement >.
Definition at line 163 of file GNEDialog.cpp.
References closeDialogAborting().
Referenced by FXDEFMAP(), and openDialog().
|
virtual |
event after press accept button
Reimplemented from GNEDialog.
Definition at line 215 of file GNEVClassesDialog.cpp.
References GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), joinToString(), myEditedVClasses, myOriginalVClasses, and myVClassMap.
Referenced by GNEVClassesDialog::VClassRow::operator=().
|
virtualinherited |
called when advanced button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNENetgenerateDialog.
Definition at line 187 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtualinherited |
called when back button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNERunDialog, GNERunNetgenerateDialog, GNERunNetgenerateDialog, and GNERunPythonToolDialog.
Definition at line 181 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtual |
event after press cancel button
Reimplemented from GNEDialog.
Definition at line 242 of file GNEVClassesDialog.cpp.
References GNEDialog::closeDialogCanceling(), myEditedVClasses, and myOriginalVClasses.
Referenced by GNEVClassesDialog::VClassRow::operator=().
|
virtualinherited |
called when copy button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNECrashDialog.
Definition at line 193 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtualinherited |
called when report button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNECrashDialog.
Definition at line 199 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtual |
event after press reset button
Reimplemented from GNEDialog.
Definition at line 251 of file GNEVClassesDialog.cpp.
References StringTokenizer::getVector(), getVehicleClassNames(), myEditedVClasses, myOriginalVClasses, and myVClassMap.
Referenced by builder(), and GNEVClassesDialog::VClassRow::operator=().
|
virtualinherited |
called when run button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNENetgenerateDialog, GNENetgenerateOptionsDialog, GNEPythonToolDialog, and GNERunDialog.
Definition at line 175 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
| long GNEVClassesDialog::onCmdSelectAll | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
event when user press select all VClasses button
Definition at line 167 of file GNEVClassesDialog.cpp.
References myVClassMap.
Referenced by FXDEFMAP(), GNEVClassesDialog::VClassRow::operator=(), and runInternalTest().
| long GNEVClassesDialog::onCmdSelectOnlyRail | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
event when user press select only rail button
Definition at line 201 of file GNEVClassesDialog.cpp.
References myVClassMap, and SVC_RAIL_CLASSES.
Referenced by FXDEFMAP(), GNEVClassesDialog::VClassRow::operator=(), and runInternalTest().
| long GNEVClassesDialog::onCmdSelectOnlyRoad | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
event when user press select only road button
Definition at line 187 of file GNEVClassesDialog.cpp.
References myVClassMap, SVC_NON_ROAD, and SVC_PEDESTRIAN.
Referenced by FXDEFMAP(), GNEVClassesDialog::VClassRow::operator=(), and runInternalTest().
| long GNEVClassesDialog::onCmdUnselectAll | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
event when user press unselect all VClasses button
Definition at line 177 of file GNEVClassesDialog.cpp.
References myVClassMap.
Referenced by FXDEFMAP(), GNEVClassesDialog::VClassRow::operator=(), and runInternalTest().
|
inherited |
called when user presses a key on the dialog
Definition at line 205 of file GNEDialog.cpp.
References myApplicationWindow, and myTesting.
Referenced by FXDEFMAP().
|
inherited |
called when user releases a key on the dialog
Definition at line 228 of file GNEDialog.cpp.
References myApplicationWindow, and myTesting.
Referenced by FXDEFMAP().
|
protectedinherited |
open dialog
Definition at line 238 of file GNEDialog.cpp.
References InternalTestStep::DialogArgument::ABORT, InternalTestStep::DialogArgument::ACCEPT, InternalTestStep::DialogArgument::CANCEL, InternalTestStep::DIALOG, MODAL, myApplicationWindow, myFocusButton, myOpenType, myTesting, myType, onCmdAbort(), onCmdAccept(), onCmdCancel(), onCmdReset(), InternalTestStep::DialogArgument::RESET, and runInternalTest().
Referenced by GNEBasicDialog::builder(), GNEColorDialog::builder(), GNEParametersDialog::builder(), GNESaveDialog::builder(), GNEVClassesDialog::builder(), GNEFileDialog::buildFileDialog(), GNEAboutDialog::GNEAboutDialog(), GNECrashDialog::GNECrashDialog(), GNEDistributionRefDialog::GNEDistributionRefDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNENeteditOptionsDialog::GNENeteditOptionsDialog(), GNENetgenerateDialog::GNENetgenerateDialog(), GNENetgenerateOptionsDialog::GNENetgenerateOptionsDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEPythonToolDialog::GNEPythonToolDialog(), GNERunNetgenerateDialog::GNERunNetgenerateDialog(), GNERunPythonToolDialog::GNERunPythonToolDialog(), GNESumoOptionsDialog::GNESumoOptionsDialog(), and GNEUndoListDialog::GNEUndoListDialog().
|
privatedelete |
Invalidated assignment operator.
References GNEVClassesDialog().
|
virtual |
run internal test
Implements GNEDialog.
Definition at line 143 of file GNEVClassesDialog.cpp.
References InternalTestStep::DialogArgument::getCustomAction(), getVehicleClassID(), myVClassMap, onCmdSelectAll(), onCmdSelectOnlyRail(), onCmdSelectOnlyRoad(), onCmdUnselectAll(), SumoVehicleClassStrings, and WRITE_ERROR.
Referenced by GNEVClassesDialog::VClassRow::operator=().
|
protectedinherited |
update icon
Definition at line 359 of file GNEDialog.cpp.
References GUIIconSubSys::getIcon().
Referenced by GNEFileDialog::buildFileDialog().
|
protectedinherited |
update title
Definition at line 353 of file GNEDialog.cpp.
Referenced by GNEFileDialog::buildFileDialog().
|
protectedinherited |
|
protectedinherited |
accept button
Definition at line 162 of file GNEDialog.h.
Referenced by buildDialog(), GNEFileDialog::buildFileDialog(), GNEDistributionRefDialog::onCmdSetProbability(), GNEDistributionRefDialog::onCmdSetReference(), and GNERunDialog::updateDialogButtons().
|
protectedinherited |
advanced button
Definition at line 180 of file GNEDialog.h.
Referenced by buildDialog(), and GNENetgenerateDialog::updateRunButtons().
|
protectedinherited |
FOX needs this.
pointer to the main window
Definition at line 153 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), getApplicationWindow(), GNEFixElementsDialog< T >::getApplicationWindow(), GNEDialog(), GNEDialog(), GNENetgenerateDialog::GNENetgenerateDialog(), GNEUndoListDialog::GNEUndoListDialog(), GNERunDialog::onCmdAbort(), GNEParametersDialog::onCmdAccept(), GNERunNetgenerateDialog::onCmdAccept(), GNERunPythonToolDialog::onCmdAccept(), GNENetgenerateDialog::onCmdAdvanced(), GNERunNetgenerateDialog::onCmdBack(), GNERunPythonToolDialog::onCmdBack(), GNEPythonToolDialog::onCmdLoad(), GNENetgenerateDialog::onCmdOpenOutputFile(), GNENetgenerateDialog::onCmdRun(), GNENetgenerateOptionsDialog::onCmdRun(), GNEPythonToolDialog::onCmdRun(), GNERunDialog::onCmdRun(), GNEPythonToolDialog::onCmdSave(), GNERunDialog::onCmdSaveLog(), GNEUndoListDialog::onCmdSelectRow(), GNENetgenerateDialog::onCmdSetGridNetwork(), GNENetgenerateDialog::onCmdSetOutput(), GNENetgenerateDialog::onCmdSetRandomNetwork(), GNENetgenerateDialog::onCmdSetRandomNetworkGridNetwork(), GNENetgenerateDialog::onCmdSetSpiderNetwork(), GNEPythonToolDialog::onCmdShowToolTipsMenu(), onKeyPress(), onKeyRelease(), openDialog(), GNERunDialog::updateDialogButtons(), and GNEUndoListDialog::updateList().
|
protectedinherited |
back button
Definition at line 177 of file GNEDialog.h.
Referenced by buildDialog(), and GNERunDialog::updateDialogButtons().
|
protectedinherited |
|
protectedinherited |
content frame
Definition at line 159 of file GNEDialog.h.
Referenced by buildDialog(), GNEBasicDialog::builder(), GNEParametersDialog::builder(), GNESaveDialog::builder(), getContentFrame(), GNEAboutDialog::GNEAboutDialog(), GNECrashDialog::GNECrashDialog(), GNEDistributionRefDialog::GNEDistributionRefDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEFixElementsDialog< T >::GNEFixElementsDialog(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNENetgenerateDialog::GNENetgenerateDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEPythonToolDialog::GNEPythonToolDialog(), GNERunDialog::GNERunDialog(), and GNEUndoListDialog::GNEUndoListDialog().
|
protectedinherited |
copy button
Definition at line 183 of file GNEDialog.h.
Referenced by buildDialog(), and GNECrashDialog::GNECrashDialog().
|
protected |
edited vClasses
Definition at line 141 of file GNEVClassesDialog.h.
Referenced by getModifiedVClasses(), GNEVClassesDialog(), GNEVClassesDialog(), onCmdAccept(), onCmdCancel(), and onCmdReset().
|
privateinherited |
focus button, used for focusing the default button when dialog is opened
Definition at line 214 of file GNEDialog.h.
Referenced by buildDialog(), and openDialog().
|
privateinherited |
open type
Definition at line 217 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), GNEDialog(), GNEDialog(), and openDialog().
|
protected |
FOX need this.
original vClasses (used for reset)
Definition at line 138 of file GNEVClassesDialog.h.
Referenced by GNEVClassesDialog(), GNEVClassesDialog(), onCmdAccept(), onCmdCancel(), and onCmdReset().
|
protectedinherited |
parent dialog used for restoring focus after closing dialog
Definition at line 156 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), and GNEDialog().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 192 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), getResult(), GNESaveDialog::onCmdAccept(), and GNESaveDialog::onCmdCancel().
|
protectedinherited |
run button
Definition at line 174 of file GNEDialog.h.
Referenced by buildDialog(), GNERunDialog::updateDialogButtons(), and GNENetgenerateDialog::updateRunButtons().
|
privateinherited |
flag to indicate if this dialog is being tested using internal test
Definition at line 220 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), onKeyPress(), onKeyRelease(), and openDialog().
|
protectedinherited |
dialog type
Definition at line 189 of file GNEDialog.h.
Referenced by GNEDialog(), GNEDialog(), and openDialog().
|
protected |
map with the buttons for every VClass
Definition at line 144 of file GNEVClassesDialog.h.
Referenced by builder(), onCmdAccept(), onCmdReset(), onCmdSelectAll(), onCmdSelectOnlyRail(), onCmdSelectOnlyRoad(), onCmdUnselectAll(), and runInternalTest().