CEBL
2.1
|
#include <WidgetUtils.hpp>
Static Public Member Functions | |
static void | setMainWindow (GtkWidget *mw) |
static GtkWidget * | getMainWindow () |
static void | Alert (const char *title, const char *text, GtkMessageType type) |
Show an alert. | |
static void | Alert (const string, const string, GtkMessageType type) |
static void | AlertWarning (const char *title, const char *text) |
Show an alert with an info icon. | |
static void | AlertWarning (const string, const string) |
static void | AlertError (const char *title, const char *text) |
Show an alert with an error icon. | |
static void | AlertError (const string, const string) |
static bool | Confirm (const char *title, const char *text, GtkMessageType type) |
Show a confirm and return the response value. | |
static bool | Confirm (const char *title, const char *text) |
static bool | Confirm (const string, const string) |
static bool | Confirm (const string, const string, GtkMessageType type) |
static void | waitBoxShow (const char *text, bool progress=true) |
Lock the gui and wait. | |
static void | waitBoxSetText (const char *text) |
static void | waitBoxSetCancelAvailable (bool available) |
static void | waitBoxHide () |
static bool | waitBoxCancelled () |
static void | waitBoxSetProgress (double percent) |
static string | selectSaveFile (string extension="") |
select a file to save to | |
static string | selectLoadFile () |
select a file to load from |
Definition at line 35 of file WidgetUtils.hpp.
|
static |
Show an alert.
Definition at line 34 of file WidgetUtils.cpp.
Referenced by Alert(), AlertError(), and AlertWarning().
|
static |
Definition at line 48 of file WidgetUtils.cpp.
References Alert().
|
static |
Show an alert with an error icon.
Definition at line 61 of file WidgetUtils.cpp.
References Alert().
Referenced by AlertError().
|
static |
Definition at line 65 of file WidgetUtils.cpp.
References AlertError().
|
static |
Show an alert with an info icon.
Definition at line 53 of file WidgetUtils.cpp.
References Alert().
Referenced by AlertWarning().
|
static |
Definition at line 57 of file WidgetUtils.cpp.
References AlertWarning().
|
static |
Show a confirm and return the response value.
Definition at line 70 of file WidgetUtils.cpp.
Referenced by Confirm(), and selectSaveFile().
|
static |
Definition at line 85 of file WidgetUtils.cpp.
References Confirm().
|
static |
Definition at line 89 of file WidgetUtils.cpp.
References Confirm().
|
static |
Definition at line 93 of file WidgetUtils.cpp.
References Confirm().
|
inlinestatic |
Definition at line 55 of file WidgetUtils.hpp.
Referenced by selectLoadFile(), and selectSaveFile().
|
static |
select a file to load from
Definition at line 153 of file WidgetUtils.cpp.
References getMainWindow().
|
static |
select a file to save to
Definition at line 101 of file WidgetUtils.cpp.
References Confirm(), FileUtils::fileExists(), and getMainWindow().
|
inlinestatic |
Definition at line 53 of file WidgetUtils.hpp.
|
static |
Definition at line 204 of file WidgetUtils.cpp.
|
static |
Definition at line 194 of file WidgetUtils.cpp.
|
static |
Definition at line 216 of file WidgetUtils.cpp.
|
static |
Definition at line 199 of file WidgetUtils.cpp.
|
static |
Definition at line 209 of file WidgetUtils.cpp.
|
static |
Lock the gui and wait.
Definition at line 188 of file WidgetUtils.cpp.