Eclipse SUMO - Simulation of Urban MObility
|
#include <GUISaveDialog.h>
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. | |
long | onCmdCancel (FXObject *, FXSelector, void *) |
called when user press cancel | |
long | onCmdClicked (FXObject *, FXSelector, void *) |
called when user click over button | |
Static Public Member Functions | |
static FXuint | question (FXApp *app, const char *caption, const char *message,...) |
Show modal question message, in free floating window. | |
Protected Member Functions | |
GUISaveDialog () | |
FOX need this. | |
Private Member Functions | |
GUISaveDialog (const GUISaveDialog &)=delete | |
invalidate default constructor | |
void | initialize (const FXString &text, FXIcon *ic) |
initialize save dialog | |
GUISaveDialog & | operator= (const GUISaveDialog &)=delete |
invalidate copy operator | |
Static Private Attributes | |
static const unsigned char | myQuestionIcon [] |
question icon | |
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.
anonymous enum |
enums
Enumerator | |
---|---|
CLICKED_SAVE | |
CLICKED_DISCARD | |
CLICKED_ABORT |
Definition at line 40 of file GUISaveDialog.h.
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.
|
inlineprotected |
FOX need this.
Definition at line 60 of file GUISaveDialog.h.
|
privatedelete |
invalidate default constructor
|
private |
initialize save dialog
Definition at line 79 of file GUISaveDialog.cpp.
References GUIDesigns::buildFXButton(), CLICKED_ABORT, CLICKED_DISCARD, CLICKED_SAVE, GUIDesignSaveDialogButton, GUIDesignSaveDialogButtonInitial, and TL.
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().
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().
|
privatedelete |
invalidate copy operator
|
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().
|
staticprivate |
question icon
Definition at line 95 of file GUISaveDialog.h.
Referenced by question().