CEBL  2.1
Static Public Member Functions
WidgetUtils Class Reference

#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

Detailed Description

Definition at line 35 of file WidgetUtils.hpp.


Member Function Documentation

void WidgetUtils::Alert ( const char *  title,
const char *  text,
GtkMessageType  type 
)
static

Show an alert.

Definition at line 34 of file WidgetUtils.cpp.

Referenced by Alert(), AlertError(), and AlertWarning().

void WidgetUtils::Alert ( const string  title,
const string  text,
GtkMessageType  type 
)
static

Definition at line 48 of file WidgetUtils.cpp.

References Alert().

void WidgetUtils::AlertError ( const char *  title,
const char *  text 
)
static

Show an alert with an error icon.

Definition at line 61 of file WidgetUtils.cpp.

References Alert().

Referenced by AlertError().

void WidgetUtils::AlertError ( const string  title,
const string  text 
)
static

Definition at line 65 of file WidgetUtils.cpp.

References AlertError().

void WidgetUtils::AlertWarning ( const char *  title,
const char *  text 
)
static

Show an alert with an info icon.

Definition at line 53 of file WidgetUtils.cpp.

References Alert().

Referenced by AlertWarning().

void WidgetUtils::AlertWarning ( const string  title,
const string  text 
)
static

Definition at line 57 of file WidgetUtils.cpp.

References AlertWarning().

bool WidgetUtils::Confirm ( const char *  title,
const char *  text,
GtkMessageType  type 
)
static

Show a confirm and return the response value.

Definition at line 70 of file WidgetUtils.cpp.

Referenced by Confirm(), and selectSaveFile().

bool WidgetUtils::Confirm ( const char *  title,
const char *  text 
)
static

Definition at line 85 of file WidgetUtils.cpp.

References Confirm().

bool WidgetUtils::Confirm ( const string  title,
const string  text 
)
static

Definition at line 89 of file WidgetUtils.cpp.

References Confirm().

bool WidgetUtils::Confirm ( const string  title,
const string  text,
GtkMessageType  type 
)
static

Definition at line 93 of file WidgetUtils.cpp.

References Confirm().

static GtkWidget* WidgetUtils::getMainWindow ( )
inlinestatic

Definition at line 55 of file WidgetUtils.hpp.

Referenced by selectLoadFile(), and selectSaveFile().

string WidgetUtils::selectLoadFile ( )
static

select a file to load from

Definition at line 153 of file WidgetUtils.cpp.

References getMainWindow().

string WidgetUtils::selectSaveFile ( string  extension = "")
static

select a file to save to

Definition at line 101 of file WidgetUtils.cpp.

References Confirm(), FileUtils::fileExists(), and getMainWindow().

static void WidgetUtils::setMainWindow ( GtkWidget *  mw)
inlinestatic

Definition at line 53 of file WidgetUtils.hpp.

bool WidgetUtils::waitBoxCancelled ( )
static

Definition at line 204 of file WidgetUtils.cpp.

void WidgetUtils::waitBoxHide ( )
static

Definition at line 194 of file WidgetUtils.cpp.

void WidgetUtils::waitBoxSetCancelAvailable ( bool  available)
static

Definition at line 216 of file WidgetUtils.cpp.

void WidgetUtils::waitBoxSetProgress ( double  percent)
static

Definition at line 199 of file WidgetUtils.cpp.

void WidgetUtils::waitBoxSetText ( const char *  text)
static

Definition at line 209 of file WidgetUtils.cpp.

void WidgetUtils::waitBoxShow ( const char *  text,
bool  progress = true 
)
static

Lock the gui and wait.

Definition at line 188 of file WidgetUtils.cpp.


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