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

#include <GNEVehicleTypeDialog.h>

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

Data Structures

class  CarFollowingModelParameters
 class for CarFollowingModel More...
class  VTypeAttributes
 class for VClasses More...

Public Types

basic dialog type
enum  Buttons
enum  OpenType
 Open dialog type. More...

Public Member Functions

GNEDemandElementgetElement () const
 get edited element
 GNEVehicleTypeDialog (GNEDemandElement *vehicleType)
 constructor
void runInternalTest (const InternalTestStep::DialogArgument *dialogArgument)
 run internal test
 ~GNEVehicleTypeDialog ()
 destructor
FOX-callbacks
long onCmdAccept (FXObject *, FXSelector, void *)
 event after press accept button
long onCmdReset (FXObject *, FXSelector, void *)
 event after press reset button
FOX-callbacks

event after press accept button

long onCmdCancel (FXObject *, FXSelector, void *)
 called when cancel or no button is pressed
long onCmdAbort (FXObject *, FXSelector, void *)
 called when abort is called either closing dialog or pressing abort button
FOX-callbacks
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 acceptElementDialog ()
 close dialog commiting changes
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 resetChanges ()
 reset changes did in this 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
GNEDemandElementmyElement
 pointer to edited element
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
FXButton * myRunButton
 run button
DialogType myType
 dialog type

Private Member Functions

void buildDialog (GUIIcon titleIcon, Buttons buttons)
 build dialog
 GNEVehicleTypeDialog (const GNEVehicleTypeDialog &)=delete
 Invalidated copy constructor.
GNEVehicleTypeDialogoperator= (const GNEVehicleTypeDialog &)=delete
 Invalidated assignment operator.

Private Attributes

CarFollowingModelParametersmyCarFollowingModelParameters
 Car Following model parameters.
std::string myChangesDescription
 description of changes did in this element dialog
FXButton * myFocusButton
 focus button, used for focusing the default button when dialog is opened
SumoXMLAttr myInvalidAttr
 current sumo attribute invalid
OpenType myOpenType
 open type
bool myTesting
 flag to indicate if this dialog is being tested using internal test
bool myVehicleTypeValid
 flag to check if current vehicleType is valid
VTypeAttributesmyVTypeAttributes
 Vehicle Type Common Attributes.

Resize mode

Result getResult () const
 get result to indicate if this dialog was closed accepting or rejecting changes
GNEApplicationWindowgetApplicationWindow () const
 get pointer to the application window
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 39 of file GNEVehicleTypeDialog.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

◆ GNEVehicleTypeDialog() [1/2]

◆ ~GNEVehicleTypeDialog()

GNEVehicleTypeDialog::~GNEVehicleTypeDialog ( )

destructor

Definition at line 1788 of file GNEVehicleTypeDialog.cpp.

◆ GNEVehicleTypeDialog() [2/2]

GNEVehicleTypeDialog::GNEVehicleTypeDialog ( const GNEVehicleTypeDialog & )
privatedelete

Invalidated copy constructor.

References GNEVehicleTypeDialog().

Member Function Documentation

◆ acceptElementDialog()

long GNETemplateElementDialog< GNEDemandElement >::acceptElementDialog ( )
inlineprotectedinherited

close dialog commiting changes

Definition at line 88 of file GNETemplateElementDialog.h.

Referenced by GNEVehicleTypeDialog::onCmdAccept().

Here is the caller graph for this function:

◆ 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()

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.

◆ getElement()

GNEDemandElement * GNETemplateElementDialog< GNEDemandElement >::getElement ( ) const
inlineinherited

get edited element

Definition at line 50 of file GNETemplateElementDialog.h.

◆ getResult()

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

Definition at line 89 of file GNEDialog.cpp.

◆ onCmdAbort()

long GNETemplateElementDialog< GNEDemandElement >::onCmdAbort ( FXObject * ,
FXSelector ,
void *  )
inlinevirtualinherited

called when abort is called either closing dialog or pressing abort button

Reimplemented from GNEDialog.

Definition at line 72 of file GNETemplateElementDialog.h.

◆ onCmdAccept()

long GNEVehicleTypeDialog::onCmdAccept ( FXObject * ,
FXSelector ,
void *  )
virtual

◆ 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 GNETemplateElementDialog< GNEDemandElement >::onCmdCancel ( FXObject * ,
FXSelector ,
void *  )
inlinevirtualinherited

called when cancel or no button is pressed

Reimplemented from GNEDialog.

Definition at line 66 of file GNETemplateElementDialog.h.

◆ 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 GNEVehicleTypeDialog::onCmdReset ( FXObject * ,
FXSelector ,
void *  )
virtual

◆ 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.

◆ 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 GNEVehicleTypeDialog::GNEVehicleTypeDialog().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

References GNEVehicleTypeDialog().

◆ resetChanges()

void GNETemplateElementDialog< GNEDemandElement >::resetChanges ( )
inlineprotectedinherited

reset changes did in this dialog.

Definition at line 94 of file GNETemplateElementDialog.h.

Referenced by GNEVehicleTypeDialog::onCmdReset().

Here is the caller graph for this function:

◆ runInternalTest()

void GNEVehicleTypeDialog::runInternalTest ( const InternalTestStep::DialogArgument * dialogArgument)
virtual

run internal test

Implements GNETemplateElementDialog< GNEDemandElement >.

Definition at line 1792 of file GNEVehicleTypeDialog.cpp.

◆ 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.

◆ myCarFollowingModelParameters

CarFollowingModelParameters* GNEVehicleTypeDialog::myCarFollowingModelParameters
private

Car Following model parameters.

Definition at line 654 of file GNEVehicleTypeDialog.h.

Referenced by GNEVehicleTypeDialog(), and onCmdReset().

◆ myChangesDescription

std::string GNETemplateElementDialog< GNEDemandElement >::myChangesDescription
privateinherited

description of changes did in this element dialog

Definition at line 102 of file GNETemplateElementDialog.h.

◆ myContentFrame

FXVerticalFrame* GNEDialog::myContentFrame
protectedinherited

content frame

Definition at line 152 of file GNEDialog.h.

Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().

◆ myCopyButton

FXButton* GNEDialog::myCopyButton
protectedinherited

copy button

Definition at line 176 of file GNEDialog.h.

◆ myElement

GNEDemandElement* GNETemplateElementDialog< GNEDemandElement >::myElement
protectedinherited

pointer to edited element

Definition at line 85 of file GNETemplateElementDialog.h.

Referenced by GNEVehicleTypeDialog::onCmdAccept().

◆ 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.

◆ myInvalidAttr

SumoXMLAttr GNEVehicleTypeDialog::myInvalidAttr
private

current sumo attribute invalid

Definition at line 648 of file GNEVehicleTypeDialog.h.

Referenced by GNEVehicleTypeDialog(), and onCmdAccept().

◆ 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.

◆ 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.

◆ myVehicleTypeValid

bool GNEVehicleTypeDialog::myVehicleTypeValid
private

flag to check if current vehicleType is valid

Definition at line 645 of file GNEVehicleTypeDialog.h.

Referenced by GNEVehicleTypeDialog(), and onCmdAccept().

◆ myVTypeAttributes

VTypeAttributes* GNEVehicleTypeDialog::myVTypeAttributes
private

Vehicle Type Common Attributes.

Definition at line 651 of file GNEVehicleTypeDialog.h.

Referenced by GNEVehicleTypeDialog(), and onCmdReset().


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