#include <ModalProgressDialog.h>
Public Member Functions | |
ModalProgressDialog (GtkWindow *parent, const std::string &title) | |
~ModalProgressDialog () | |
void | setText (const std::string &text) |
Private Member Functions | |
void | handleEvents () |
Static Private Member Functions | |
static gboolean | _onDelete (GtkWidget *widget, gpointer data) |
Private Attributes | |
GtkWidget * | _widget |
GtkWidget * | _label |
GtkWidget * | _progressBar |
A simple dialog containing a progress bar and 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 15 of file ModalProgressDialog.h.
gtkutil::ModalProgressDialog::ModalProgressDialog | ( | GtkWindow * | parent, | |
const std::string & | title | |||
) |
Constructor accepts window to be modal for and the dialog title.
gtkutil::ModalProgressDialog::~ModalProgressDialog | ( | ) | [inline] |
Destructor. Destroys window and contained widgets.
Definition at line 48 of file ModalProgressDialog.h.
References _widget.
static gboolean gtkutil::ModalProgressDialog::_onDelete | ( | GtkWidget * | widget, | |
gpointer | data | |||
) | [inline, static, private] |
Definition at line 30 of file ModalProgressDialog.h.
void gtkutil::ModalProgressDialog::handleEvents | ( | ) | [private] |
void gtkutil::ModalProgressDialog::setText | ( | const std::string & | text | ) |
Set the text to display in the label.
GtkWidget* gtkutil::ModalProgressDialog::_label [private] |
Definition at line 21 of file ModalProgressDialog.h.
Definition at line 24 of file ModalProgressDialog.h.
GtkWidget* gtkutil::ModalProgressDialog::_widget [private] |
Definition at line 18 of file ModalProgressDialog.h.
Referenced by ~ModalProgressDialog().