Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEFixNetworkElements Class Reference

#include <GNEFixNetworkElements.h>

Inheritance diagram for GNEFixNetworkElements:
[legend]
Collaboration diagram for GNEFixNetworkElements:
[legend]

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

GNEApplicationWindowgetApplicationWindow ()
 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
GNEApplicationWindowmyApplicationWindow
 FOX needs this.
FXButton * myBackButton
 back button
FXButton * myCancelButton
 cancel button
FXVerticalFrame * myContentFrame
 content frame
FXButton * myCopyButton
 copy button
FixCrossingOptionsmyFixCrossingOptions = nullptr
 fix crossing options
FixEdgeOptionsmyFixEdgeOptions = 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.
GNEFixNetworkElementsoperator= (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

GNEApplicationWindowgetApplicationWindow () 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...

Detailed Description

Definition at line 35 of file GNEFixNetworkElements.h.

Member Enumeration Documentation

◆ Buttons

enum GNEDialog::Buttons
stronginherited

Definition at line 43 of file GNEDialog.h.

◆ OpenType

enum GNEDialog::OpenType
stronginherited

Open dialog type.

Definition at line 58 of file GNEDialog.h.

◆ ResizeMode

enum GNEDialog::ResizeMode
stronginherited

Definition at line 64 of file GNEDialog.h.

◆ Result

enum GNEDialog::Result
stronginherited

list of possible results when closing the dialog

Definition at line 70 of file GNEDialog.h.

Constructor & Destructor Documentation

◆ GNEFixNetworkElements() [1/2]

GNEFixNetworkElements::GNEFixNetworkElements ( GNEApplicationWindow * mainWindow,
const std::vector< GNENetworkElement * > & elements )

◆ ~GNEFixNetworkElements()

GNEFixNetworkElements::~GNEFixNetworkElements ( )

destructor

Definition at line 263 of file GNEFixNetworkElements.cpp.

◆ GNEFixNetworkElements() [2/2]

GNEFixNetworkElements::GNEFixNetworkElements ( const GNEFixNetworkElements & )
privatedelete

Invalidated copy constructor.

References GNEFixNetworkElements().

Member Function Documentation

◆ buildDialog()

void GNEDialog::buildDialog ( GUIIcon titleIcon,
GNEDialog::Buttons buttons )
privateinherited

build dialog

Definition at line 216 of file GNEDialog.cpp.

◆ closeDialogAborting()

long GNEDialog::closeDialogAborting ( )
protectedinherited

close dialog aborting the changes

Definition at line 197 of file GNEDialog.cpp.

◆ closeDialogAccepting()

long GNEDialog::closeDialogAccepting ( )
protectedinherited

close dialog accepting the changes

Definition at line 191 of file GNEDialog.cpp.

◆ closeDialogCanceling()

long GNEDialog::closeDialogCanceling ( )
protectedinherited

close dialog declining the changes

Definition at line 194 of file GNEDialog.cpp.

◆ getApplicationWindow() [1/2]

GNEApplicationWindow * GNEFixElementsDialog< GNENetworkElement * >::getApplicationWindow ( )
inlineinherited

pointer to the main window

Definition at line 273 of file GNEFixElementsDialog.h.

◆ getApplicationWindow() [2/2]

get pointer to the application window

Definition at line 92 of file GNEDialog.cpp.

◆ getContentFrame()

FXVerticalFrame * GNEDialog::getContentFrame ( ) const
inherited

get content frame

Definition at line 95 of file GNEDialog.cpp.

◆ getResult()

get result to indicate if this dialog was closed accepting or rejecting changes

Definition at line 89 of file GNEDialog.cpp.

◆ onCmdAbort()

long GNEDialog::onCmdAbort ( FXObject * ,
FXSelector ,
void *  )
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.

◆ onCmdAccept()

long GNEFixElementsDialog< GNENetworkElement * >::onCmdAccept ( FXObject * ,
FXSelector ,
void *  )
inlinevirtualinherited

event after press accept button

Reimplemented from GNEDialog.

Definition at line 294 of file GNEFixElementsDialog.h.

◆ onCmdAdvanced()

long GNEDialog::onCmdAdvanced ( FXObject * ,
FXSelector ,
void *  )
virtualinherited

called when advanced button is pressed (must be reimplemented in children depending of Buttons)

Definition at line 125 of file GNEDialog.cpp.

◆ onCmdBack()

long GNEDialog::onCmdBack ( FXObject * ,
FXSelector ,
void *  )
virtualinherited

called when back button is pressed (must be reimplemented in children depending of Buttons)

Definition at line 122 of file GNEDialog.cpp.

◆ onCmdCancel()

long GNEDialog::onCmdCancel ( FXObject * ,
FXSelector ,
void *  )
virtualinherited

called when cancel or no button is pressed (can be reimplemented in children)

Definition at line 110 of file GNEDialog.cpp.

◆ onCmdCopy()

long GNEDialog::onCmdCopy ( FXObject * ,
FXSelector ,
void *  )
virtualinherited

called when copy button is pressed (must be reimplemented in children depending of Buttons)

Definition at line 128 of file GNEDialog.cpp.

◆ onCmdReport()

long GNEDialog::onCmdReport ( FXObject * ,
FXSelector ,
void *  )
virtualinherited

called when report button is pressed (must be reimplemented in children depending of Buttons)

Definition at line 131 of file GNEDialog.cpp.

◆ onCmdReset()

long GNEDialog::onCmdReset ( FXObject * ,
FXSelector ,
void *  )
virtualinherited

called when reset button is pressed (must be reimplemented in children depending of Buttons)

Definition at line 116 of file GNEDialog.cpp.

◆ onCmdRun()

long GNEDialog::onCmdRun ( FXObject * ,
FXSelector ,
void *  )
virtualinherited

called when run button is pressed (must be reimplemented in children depending of Buttons)

Definition at line 119 of file GNEDialog.cpp.

◆ onCmdSelectOption()

long GNEFixNetworkElements::onCmdSelectOption ( FXObject * obj,
FXSelector ,
void *  )

event when user select a option

References onCmdSelectOption().

Referenced by onCmdSelectOption().

Here is the caller graph for this function:

◆ onKeyPress()

long GNEDialog::onKeyPress ( FXObject * obj,
FXSelector sel,
void * ptr )
inherited

called when user presses a key on the dialog

Definition at line 134 of file GNEDialog.cpp.

◆ onKeyRelease()

long GNEDialog::onKeyRelease ( FXObject * obj,
FXSelector sel,
void * ptr )
inherited

called when user releases a key on the dialog

Definition at line 137 of file GNEDialog.cpp.

◆ openDialog()

void GNEDialog::openDialog ( FXWindow * focusableElement = nullptr)
protectedinherited

open dialog

Definition at line 188 of file GNEDialog.cpp.

Referenced by GNEFixNetworkElements::GNEFixNetworkElements().

Here is the caller graph for this function:

◆ operator=()

GNEFixNetworkElements & GNEFixNetworkElements::operator= ( const GNEFixNetworkElements & )
privatedelete

Invalidated assignment operator.

References GNEFixNetworkElements().

◆ registerFixOptions()

void GNEFixElementsDialog< GNENetworkElement * >::registerFixOptions ( FixOptions * fixOptions)
inlineinherited

register fix options to the dialog (called automatically during FixOptions constructor)

Definition at line 278 of file GNEFixElementsDialog.h.

◆ runInternalTest()

void GNEFixElementsDialog< GNENetworkElement * >::runInternalTest ( const InternalTestStep::DialogArgument * dialogArgument)
inlinevirtualinherited

run internal test

Implements GNEDialog.

Definition at line 283 of file GNEFixElementsDialog.h.

◆ setRestoringFocusWindow()

void GNEDialog::setRestoringFocusWindow ( FXWindow * window)
inherited

wet FXWindows uses for restoring focus

Definition at line 101 of file GNEDialog.cpp.

◆ updateIcon()

void GNEDialog::updateIcon ( GUIIcon newIcon)
protectedinherited

update icon

Definition at line 203 of file GNEDialog.cpp.

◆ updateTitle()

void GNEDialog::updateTitle ( const std::string & newTitle)
protectedinherited

update title

Definition at line 200 of file GNEDialog.cpp.

Field Documentation

◆ myAbortButton

FXButton* GNEDialog::myAbortButton
protectedinherited

abort button

Definition at line 161 of file GNEDialog.h.

◆ myAcceptButton

FXButton* GNEDialog::myAcceptButton
protectedinherited

accept button

Definition at line 155 of file GNEDialog.h.

◆ myAdvancedButton

FXButton* GNEDialog::myAdvancedButton
protectedinherited

advanced button

Definition at line 173 of file GNEDialog.h.

◆ myApplicationWindow

FOX needs this.

pointer to the main window

Definition at line 146 of file GNEDialog.h.

◆ myBackButton

FXButton* GNEDialog::myBackButton
protectedinherited

back button

Definition at line 170 of file GNEDialog.h.

◆ myCancelButton

FXButton* GNEDialog::myCancelButton
protectedinherited

cancel button

Definition at line 158 of file GNEDialog.h.

◆ myContentFrame

FXVerticalFrame* GNEDialog::myContentFrame
protectedinherited

content frame

Definition at line 152 of file GNEDialog.h.

◆ myCopyButton

FXButton* GNEDialog::myCopyButton
protectedinherited

copy button

Definition at line 176 of file GNEDialog.h.

◆ myFixCrossingOptions

FixCrossingOptions* GNEFixNetworkElements::myFixCrossingOptions = nullptr
protected

fix crossing options

Definition at line 146 of file GNEFixNetworkElements.h.

Referenced by GNEFixNetworkElements().

◆ myFixEdgeOptions

FixEdgeOptions* GNEFixNetworkElements::myFixEdgeOptions = nullptr
protected

fix edge options

Definition at line 143 of file GNEFixNetworkElements.h.

Referenced by GNEFixNetworkElements().

◆ myFixOptions

std::vector<GNEFixElementsDialog::FixOptions*> GNEFixElementsDialog< GNENetworkElement * >::myFixOptions
protectedinherited

vector with all fix options

Definition at line 315 of file GNEFixElementsDialog.h.

◆ myFocusButton

FXButton* GNEDialog::myFocusButton
privateinherited

focus button, used for focusing the default button when dialog is opened

Definition at line 207 of file GNEDialog.h.

◆ myLeftFrame

FXVerticalFrame* GNEFixElementsDialog< GNENetworkElement * >::myLeftFrame
protectedinherited

◆ myOpenType

OpenType GNEDialog::myOpenType
privateinherited

open type

Definition at line 210 of file GNEDialog.h.

◆ myReportButton

FXButton* GNEDialog::myReportButton
protectedinherited

report button

Definition at line 179 of file GNEDialog.h.

◆ myResetButton

FXButton* GNEDialog::myResetButton
protectedinherited

reset button

Definition at line 164 of file GNEDialog.h.

◆ myRestoringFocusWindow

FXWindow* GNEDialog::myRestoringFocusWindow
protectedinherited

FXWindows that restoring focus window.

Definition at line 149 of file GNEDialog.h.

◆ myResult

Result GNEDialog::myResult
protectedinherited

result to indicate if this dialog was closed accepting or rejecting changes

Definition at line 185 of file GNEDialog.h.

◆ myRightFrame

FXVerticalFrame* GNEFixElementsDialog< GNENetworkElement * >::myRightFrame
protectedinherited

right frame for fix options

Definition at line 321 of file GNEFixElementsDialog.h.

◆ myRunButton

FXButton* GNEDialog::myRunButton
protectedinherited

run button

Definition at line 167 of file GNEDialog.h.

◆ myTesting

bool GNEDialog::myTesting
privateinherited

flag to indicate if this dialog is being tested using internal test

Definition at line 213 of file GNEDialog.h.

◆ myType

DialogType GNEDialog::myType
protectedinherited

dialog type

Definition at line 182 of file GNEDialog.h.


The documentation for this class was generated from the following files: