Eclipse SUMO - Simulation of Urban MObility
GUISaveDialog Class Reference

#include <GUISaveDialog.h>

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

Public Types

enum  { CLICKED_SAVE = FXDialogBox::ID_LAST , CLICKED_DISCARD , CLICKED_ABORT }
 enums More...
 

Public Member Functions

 GUISaveDialog (FXApp *app, const FXString &caption, const FXString &text, FXIcon *ic)
 Construct free floating message box with given caption, icon, and message text. More...
 
long onCmdCancel (FXObject *, FXSelector, void *)
 called when user press cancel More...
 
long onCmdClicked (FXObject *, FXSelector, void *)
 called when user click over button More...
 

Static Public Member Functions

static FXuint question (FXApp *app, const char *caption, const char *message,...)
 Show modal question message, in free floating window. More...
 

Protected Member Functions

 GUISaveDialog ()
 FOX need this. More...
 

Private Member Functions

 GUISaveDialog (const GUISaveDialog &)=delete
 invalidate default constructor More...
 
void initialize (const FXString &text, FXIcon *ic)
 initialize save dialog More...
 
GUISaveDialogoperator= (const GUISaveDialog &)=delete
 invalidate copy operator More...
 

Static Private Attributes

static const unsigned char myQuestionIcon []
 question icon More...
 

Detailed Description

A Message Box is a convenience class which provides a dialog for very simple common yes/no type interactions with the user. The message box has an optional icon, a title string, and the question which is presented to the user. It also has up to three buttons which furnish standard responses to the question. Message boxes are usually ran modally: the question must be answered before the program may continue.

Definition at line 35 of file GUISaveDialog.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

enums

Enumerator
CLICKED_SAVE 
CLICKED_DISCARD 
CLICKED_ABORT 

Definition at line 40 of file GUISaveDialog.h.

Constructor & Destructor Documentation

◆ GUISaveDialog() [1/3]

GUISaveDialog::GUISaveDialog ( FXApp *  app,
const FXString &  caption,
const FXString &  text,
FXIcon *  ic 
)

Construct free floating message box with given caption, icon, and message text.

Definition at line 41 of file GUISaveDialog.cpp.

◆ GUISaveDialog() [2/3]

GUISaveDialog::GUISaveDialog ( )
inlineprotected

FOX need this.

Definition at line 60 of file GUISaveDialog.h.

◆ GUISaveDialog() [3/3]

GUISaveDialog::GUISaveDialog ( const GUISaveDialog )
privatedelete

invalidate default constructor

Member Function Documentation

◆ initialize()

void GUISaveDialog::initialize ( const FXString &  text,
FXIcon *  ic 
)
private

◆ onCmdCancel()

long GUISaveDialog::onCmdCancel ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

called when user press cancel

Definition at line 62 of file GUISaveDialog.cpp.

References onCmdClicked().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdClicked()

long GUISaveDialog::onCmdClicked ( FXObject *  ,
FXSelector  sel,
void *   
)

called when user click over button

Definition at line 48 of file GUISaveDialog.cpp.

References CLICKED_ABORT, CLICKED_DISCARD, and CLICKED_SAVE.

Referenced by FXDEFMAP(), and onCmdCancel().

Here is the caller graph for this function:

◆ operator=()

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

invalidate copy operator

◆ question()

FXuint GUISaveDialog::question ( FXApp *  app,
const char *  caption,
const char *  message,
  ... 
)
static

Show modal question message, in free floating window.

Definition at line 68 of file GUISaveDialog.cpp.

References myQuestionIcon.

Referenced by GNEApplicationWindow::continueWithUnsavedAdditionalChanges(), GNEApplicationWindow::continueWithUnsavedChanges(), GNEApplicationWindow::continueWithUnsavedDataElementChanges(), GNEApplicationWindow::continueWithUnsavedDemandElementChanges(), and GNEApplicationWindow::continueWithUnsavedMeanDataElementChanges().

Here is the caller graph for this function:

Field Documentation

◆ myQuestionIcon

const unsigned char GUISaveDialog::myQuestionIcon
staticprivate
Initial value:
= {
0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x20, 0x00, 0x20, 0x00, 0xf2, 0x00, 0x00, 0x80, 0x80, 0x80,
0xc0, 0xc0, 0xc0, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x03,
0x97, 0x08, 0xba, 0xdc, 0xfe, 0xf0, 0x05, 0x41, 0x6b, 0x88, 0x58, 0xcd, 0xca, 0xf9, 0xcd, 0xcc,
0xd6, 0x8d, 0x16, 0x08, 0x90, 0x02, 0x30, 0x0c, 0x80, 0xc8, 0x11, 0x18, 0x19, 0xac, 0xf4, 0xe0,
0x56, 0xf0, 0x23, 0xdb, 0x54, 0x7d, 0x53, 0xb9, 0x10, 0x69, 0xc5, 0xa9, 0xc9, 0x82, 0x0a, 0x94,
0x51, 0xb0, 0x1c, 0x21, 0x7f, 0x3d, 0x9a, 0x60, 0x26, 0x3d, 0x2e, 0x50, 0xd3, 0xd5, 0xa4, 0x49,
0x0a, 0x62, 0x3d, 0x55, 0xac, 0xf7, 0x1b, 0x1d, 0x90, 0x05, 0x63, 0xb2, 0xf6, 0x9c, 0xfe, 0x12,
0xd9, 0x0b, 0xe8, 0xd9, 0x7a, 0xfd, 0x52, 0xe5, 0xb8, 0x06, 0x9e, 0x19, 0xa6, 0x33, 0xdc, 0x7d,
0x4e, 0x0f, 0x04, 0x58, 0x77, 0x62, 0x11, 0x84, 0x73, 0x82, 0x18, 0x04, 0x7b, 0x23, 0x01, 0x48,
0x88, 0x8d, 0x67, 0x90, 0x91, 0x19, 0x04, 0x98, 0x3f, 0x95, 0x96, 0x26, 0x0a, 0x98, 0x93, 0x40,
0x9d, 0x26, 0x89, 0x68, 0xa2, 0x20, 0xa4, 0x9c, 0xa6, 0x0d, 0x89, 0xa9, 0xaa, 0x0c, 0x84, 0xad,
0xae, 0x0b, 0x98, 0xb2, 0xb5, 0xb6, 0xaa, 0x09, 0x00, 0x3b
}

question icon

Definition at line 67 of file GUISaveDialog.h.

Referenced by question().


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