#include <ModalInfoDialog.h>
Public Member Functions | |
ModalInfoDialog (GtkWindow *parent, const std::string &title) | |
~ModalInfoDialog () | |
void | setText (const std::string &text) |
Static Private Member Functions | |
static gboolean | _onDelete (GtkWidget *widget, gpointer data) |
Private Attributes | |
GtkWidget * | _widget |
GtkWidget * | _label |
A simple dialog containing a Label which can be updated by the owning process to indicate the progress of a task, such as the loading of textures.
Definition at line 18 of file ModalInfoDialog.h.
gtkutil::ModalInfoDialog::ModalInfoDialog | ( | GtkWindow * | parent, | |
const std::string & | title | |||
) | [inline] |
Constructor accepts window to be modal for and the dialog title.
Definition at line 40 of file ModalInfoDialog.h.
References _label, _onDelete(), and _widget.
gtkutil::ModalInfoDialog::~ModalInfoDialog | ( | ) | [inline] |
Destructor. Destroys window and contained widgets.
Definition at line 64 of file ModalInfoDialog.h.
References _widget.
static gboolean gtkutil::ModalInfoDialog::_onDelete | ( | GtkWidget * | widget, | |
gpointer | data | |||
) | [inline, static, private] |
Definition at line 30 of file ModalInfoDialog.h.
Referenced by ModalInfoDialog().
void gtkutil::ModalInfoDialog::setText | ( | const std::string & | text | ) | [inline] |
Set the text to display in the label.
Definition at line 71 of file ModalInfoDialog.h.
References _label.
GtkWidget* gtkutil::ModalInfoDialog::_label [private] |
Definition at line 24 of file ModalInfoDialog.h.
Referenced by ModalInfoDialog(), and setText().
GtkWidget* gtkutil::ModalInfoDialog::_widget [private] |
Definition at line 21 of file ModalInfoDialog.h.
Referenced by ModalInfoDialog(), and ~ModalInfoDialog().