![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFixNetworkElements.h>
Data Structures | |
| class | FixCrossingOptions |
| groupbox for all radio buttons related with fix crossing options More... | |
| class | FixEdgeOptions |
| groupbox for all radio buttons related with fix edges options More... | |
Public Types | |
basic dialog type | |
| enum | Buttons |
| enum | OpenType |
| Open dialog type. More... | |
Public Member Functions | |
| GNEApplicationWindow * | getApplicationWindow () |
| pointer to the main window | |
| GNEFixNetworkElements (GNEApplicationWindow *mainWindow, const std::vector< GNENetworkElement * > &elements) | |
| Constructor. | |
| void | registerFixOptions (FixOptions *fixOptions) |
| register fix options to the dialog (called automatically during FixOptions constructor) | |
| void | runInternalTest (const InternalTestStep::DialogArgument *dialogArgument) |
| run internal test | |
| ~GNEFixNetworkElements () | |
| destructor | |
FOX-callbacks | |
| long | onCmdSelectOption (FXObject *obj, FXSelector, void *) |
| event when user select a option | |
FOX-callbacks | |
| long | onCmdAccept (FXObject *, FXSelector, void *) |
| event after press accept button | |
FOX-callbacks | |
| virtual long | onCmdCancel (FXObject *, FXSelector, void *) |
| called when cancel or no button is pressed (can be reimplemented in children) | |
| 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 | onCmdReset (FXObject *, FXSelector, void *) |
| called when reset button is pressed (must be reimplemented in children depending of Buttons) | |
| 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 |
| abort button | |
| FXButton * | myAcceptButton |
| accept button | |
| FXButton * | myAdvancedButton |
| advanced button | |
| GNEApplicationWindow * | myApplicationWindow |
| FOX needs this. | |
| FXButton * | myBackButton |
| back button | |
| FXButton * | myCancelButton |
| cancel button | |
| FXVerticalFrame * | myContentFrame |
| content frame | |
| FXButton * | myCopyButton |
| copy button | |
| FixCrossingOptions * | myFixCrossingOptions = nullptr |
| fix crossing options | |
| FixEdgeOptions * | myFixEdgeOptions = nullptr |
| fix edge options | |
| std::vector< GNEFixElementsDialog::FixOptions * > | myFixOptions |
| vector with all fix options | |
| FXVerticalFrame * | myLeftFrame |
| left frame for fix options | |
| FXButton * | myReportButton |
| report button | |
| FXButton * | myResetButton |
| reset button | |
| FXWindow * | myRestoringFocusWindow |
| FXWindows that restoring focus window. | |
| Result | myResult |
| result to indicate if this dialog was closed accepting or rejecting changes | |
| FXVerticalFrame * | myRightFrame |
| right frame for fix options | |
| FXButton * | myRunButton |
| run button | |
| DialogType | myType |
| dialog type | |
Private Member Functions | |
| void | buildDialog (GUIIcon titleIcon, Buttons buttons) |
| build dialog | |
| GNEFixNetworkElements (const GNEFixNetworkElements &)=delete | |
| Invalidated copy constructor. | |
| GNEFixNetworkElements & | operator= (const GNEFixNetworkElements &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| FXButton * | myFocusButton |
| focus button, used for focusing the default button when dialog is opened | |
| OpenType | myOpenType |
| open type | |
| bool | myTesting |
| flag to indicate if this dialog is being tested using internal test | |
Resize mode | |
| GNEApplicationWindow * | getApplicationWindow () const |
| get pointer to the application window | |
| Result | getResult () const |
| get result to indicate if this dialog was closed accepting or rejecting changes | |
| FXVerticalFrame * | getContentFrame () const |
| get content frame | |
| void | setRestoringFocusWindow (FXWindow *window) |
| wet FXWindows uses for restoring focus | |
| enum | ResizeMode |
| enum | Result |
| list of possible results when closing the dialog More... | |
Definition at line 35 of file GNEFixNetworkElements.h.
|
stronginherited |
Definition at line 43 of file GNEDialog.h.
|
stronginherited |
Open dialog type.
Definition at line 58 of file GNEDialog.h.
|
stronginherited |
Definition at line 64 of file GNEDialog.h.
|
stronginherited |
list of possible results when closing the dialog
Definition at line 70 of file GNEDialog.h.
| GNEFixNetworkElements::GNEFixNetworkElements | ( | GNEApplicationWindow * | mainWindow, |
| const std::vector< GNENetworkElement * > & | elements ) |
Constructor.
Definition at line 231 of file GNEFixNetworkElements.cpp.
References GNEFixElementsDialog< GNENetworkElement * >::GNEFixElementsDialog(), myFixCrossingOptions, myFixEdgeOptions, GNEFixElementsDialog< GNENetworkElement * >::openDialog(), SUMO_TAG_CROSSING, SUMO_TAG_EDGE, and TL.
Referenced by GNEFixNetworkElements::FixCrossingOptions::FixCrossingOptions(), GNEFixNetworkElements::FixEdgeOptions::FixEdgeOptions(), GNEFixNetworkElements(), GNEFixNetworkElements::FixCrossingOptions::operator=(), and operator=().
| GNEFixNetworkElements::~GNEFixNetworkElements | ( | ) |
destructor
Definition at line 263 of file GNEFixNetworkElements.cpp.
|
privatedelete |
Invalidated copy constructor.
References GNEFixNetworkElements().
|
privateinherited |
build dialog
Definition at line 216 of file GNEDialog.cpp.
|
protectedinherited |
close dialog aborting the changes
Definition at line 197 of file GNEDialog.cpp.
|
protectedinherited |
close dialog accepting the changes
Definition at line 191 of file GNEDialog.cpp.
|
protectedinherited |
close dialog declining the changes
Definition at line 194 of file GNEDialog.cpp.
|
inlineinherited |
pointer to the main window
Definition at line 273 of file GNEFixElementsDialog.h.
|
inherited |
get pointer to the application window
Definition at line 92 of file GNEDialog.cpp.
|
inherited |
get content frame
Definition at line 95 of file GNEDialog.cpp.
|
inherited |
get result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 89 of file GNEDialog.cpp.
|
virtualinherited |
called when abort is called either closing dialog or pressing abort button (can be reimplemented in children)
Definition at line 113 of file GNEDialog.cpp.
|
inlinevirtualinherited |
event after press accept button
Reimplemented from GNEDialog.
Definition at line 294 of file GNEFixElementsDialog.h.
|
virtualinherited |
called when advanced button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 125 of file GNEDialog.cpp.
|
virtualinherited |
called when back button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 122 of file GNEDialog.cpp.
|
virtualinherited |
called when cancel or no button is pressed (can be reimplemented in children)
Definition at line 110 of file GNEDialog.cpp.
|
virtualinherited |
called when copy button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 128 of file GNEDialog.cpp.
|
virtualinherited |
called when report button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 131 of file GNEDialog.cpp.
|
virtualinherited |
called when reset button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 116 of file GNEDialog.cpp.
|
virtualinherited |
called when run button is pressed (must be reimplemented in children depending of Buttons)
Definition at line 119 of file GNEDialog.cpp.
| long GNEFixNetworkElements::onCmdSelectOption | ( | FXObject * | obj, |
| FXSelector | , | ||
| void * | ) |
event when user select a option
References onCmdSelectOption().
Referenced by onCmdSelectOption().
|
inherited |
called when user presses a key on the dialog
Definition at line 134 of file GNEDialog.cpp.
|
inherited |
called when user releases a key on the dialog
Definition at line 137 of file GNEDialog.cpp.
|
protectedinherited |
open dialog
Definition at line 188 of file GNEDialog.cpp.
Referenced by GNEFixNetworkElements::GNEFixNetworkElements().
|
privatedelete |
Invalidated assignment operator.
References GNEFixNetworkElements().
|
inlineinherited |
register fix options to the dialog (called automatically during FixOptions constructor)
Definition at line 278 of file GNEFixElementsDialog.h.
|
inlinevirtualinherited |
|
inherited |
wet FXWindows uses for restoring focus
Definition at line 101 of file GNEDialog.cpp.
|
protectedinherited |
update icon
Definition at line 203 of file GNEDialog.cpp.
|
protectedinherited |
update title
Definition at line 200 of file GNEDialog.cpp.
|
protectedinherited |
abort button
Definition at line 161 of file GNEDialog.h.
|
protectedinherited |
accept button
Definition at line 155 of file GNEDialog.h.
|
protectedinherited |
advanced button
Definition at line 173 of file GNEDialog.h.
|
protectedinherited |
|
protectedinherited |
back button
Definition at line 170 of file GNEDialog.h.
|
protectedinherited |
cancel button
Definition at line 158 of file GNEDialog.h.
|
protectedinherited |
content frame
Definition at line 152 of file GNEDialog.h.
|
protectedinherited |
copy button
Definition at line 176 of file GNEDialog.h.
|
protected |
fix crossing options
Definition at line 146 of file GNEFixNetworkElements.h.
Referenced by GNEFixNetworkElements().
|
protected |
fix edge options
Definition at line 143 of file GNEFixNetworkElements.h.
Referenced by GNEFixNetworkElements().
|
protectedinherited |
vector with all fix options
Definition at line 315 of file GNEFixElementsDialog.h.
|
privateinherited |
focus button, used for focusing the default button when dialog is opened
Definition at line 207 of file GNEDialog.h.
|
protectedinherited |
left frame for fix options
Definition at line 318 of file GNEFixElementsDialog.h.
Referenced by GNEFixNetworkElements::FixCrossingOptions::FixCrossingOptions(), and GNEFixNetworkElements::FixEdgeOptions::FixEdgeOptions().
|
privateinherited |
open type
Definition at line 210 of file GNEDialog.h.
|
protectedinherited |
report button
Definition at line 179 of file GNEDialog.h.
|
protectedinherited |
reset button
Definition at line 164 of file GNEDialog.h.
|
protectedinherited |
FXWindows that restoring focus window.
Definition at line 149 of file GNEDialog.h.
|
protectedinherited |
result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 185 of file GNEDialog.h.
|
protectedinherited |
right frame for fix options
Definition at line 321 of file GNEFixElementsDialog.h.
|
protectedinherited |
run button
Definition at line 167 of file GNEDialog.h.
|
privateinherited |
flag to indicate if this dialog is being tested using internal test
Definition at line 213 of file GNEDialog.h.
|
protectedinherited |
dialog type
Definition at line 182 of file GNEDialog.h.