SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIDialog_AppSettings Class Reference

The dialog to change the application (gui) settings. More...

#include <GUIDialog_AppSettings.h>

Inheritance diagram for GUIDialog_AppSettings:
FXDialogBox

Public Member Functions

 GUIDialog_AppSettings (FXMainWindow *parent)
 Constructor.
 ~GUIDialog_AppSettings ()
 Destructor.
FOX-callbacks
long onCmdOk (FXObject *, FXSelector, void *)
 Called on OK-button pressure.
long onCmdCancel (FXObject *, FXSelector, void *)
 Called on Cancel-button pressure.
long onCmdQuitOnEnd (FXObject *, FXSelector, void *)
 Called on "Quit on end"-button change.
long onCmdAllowTextures (FXObject *, FXSelector, void *)
 Called on "Allow textures"-button change.

Protected Member Functions

 GUIDialog_AppSettings ()
 default constructor (needed by FOX)

Private Attributes

bool myAllowTextures
 Information whether textures may be used.
bool myAppQuitOnEnd
 Information whether the application shall be quit.

Detailed Description

The dialog to change the application (gui) settings.

Definition at line 44 of file GUIDialog_AppSettings.h.

Constructor & Destructor Documentation

GUIDialog_AppSettings::GUIDialog_AppSettings ( FXMainWindow parent)

Constructor.

Parameters
[in]parentThe parent window

Definition at line 59 of file GUIDialog_AppSettings.cpp.

References GUIIconSubSys::getIcon(), ICON_EMPTY, MID_ALLOWTEXTURES, MID_QUITONSIMEND, MID_SETTINGS_CANCEL, and MID_SETTINGS_OK.

GUIDialog_AppSettings::~GUIDialog_AppSettings ( )

Destructor.

Definition at line 79 of file GUIDialog_AppSettings.cpp.

GUIDialog_AppSettings::GUIDialog_AppSettings ( )
inlineprotected

default constructor (needed by FOX)

Definition at line 87 of file GUIDialog_AppSettings.h.

Member Function Documentation

long GUIDialog_AppSettings::onCmdAllowTextures ( FXObject ,
FXSelector  ,
void *   
)

Called on "Allow textures"-button change.

Definition at line 106 of file GUIDialog_AppSettings.cpp.

References myAllowTextures.

long GUIDialog_AppSettings::onCmdCancel ( FXObject ,
FXSelector  ,
void *   
)

Called on Cancel-button pressure.

Definition at line 92 of file GUIDialog_AppSettings.cpp.

long GUIDialog_AppSettings::onCmdOk ( FXObject ,
FXSelector  ,
void *   
)

Called on OK-button pressure.

Definition at line 83 of file GUIDialog_AppSettings.cpp.

References gAllowTextures, GUIGlobals::gQuitOnEnd, myAllowTextures, and myAppQuitOnEnd.

long GUIDialog_AppSettings::onCmdQuitOnEnd ( FXObject ,
FXSelector  ,
void *   
)

Called on "Quit on end"-button change.

Definition at line 99 of file GUIDialog_AppSettings.cpp.

References myAppQuitOnEnd.

Field Documentation

bool GUIDialog_AppSettings::myAllowTextures
private

Information whether textures may be used.

Definition at line 82 of file GUIDialog_AppSettings.h.

Referenced by onCmdAllowTextures(), and onCmdOk().

bool GUIDialog_AppSettings::myAppQuitOnEnd
private

Information whether the application shall be quit.

Definition at line 79 of file GUIDialog_AppSettings.h.

Referenced by onCmdOk(), and onCmdQuitOnEnd().


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