#include <ModelSelector.h>
Static Public Member Functions | |
static ModelAndSkin | chooseModel () |
Private Member Functions | |
ModelSelector () | |
ModelAndSkin | showAndBlock () |
GtkWidget * | createTreeView () |
GtkWidget * | createButtons () |
GtkWidget * | createPreviewAndInfoPanel () |
void | initialisePreview () |
void | updateSelected () |
std::string | getSelectedString (gint col) |
int | getSelectedInteger (gint col) |
Static Private Member Functions | |
static void | callbackHide (GtkWidget *, GdkEvent *, ModelSelector *) |
static void | callbackSelChanged (GtkWidget *, ModelSelector *) |
static void | callbackOK (GtkWidget *, ModelSelector *) |
static void | callbackCancel (GtkWidget *, ModelSelector *) |
Private Attributes | |
GtkWidget * | _widget |
ModelPreview | _modelPreview |
GtkTreeStore * | _treeStore |
GtkTreeSelection * | _selection |
GtkListStore * | _infoStore |
std::string | _lastModel |
int | _lastSkin |
Singleton class encapsulating the Model Selector dialog and methods required to display the dialog and retrieve the selected model.
Definition at line 33 of file ModelSelector.h.
ui::ModelSelector::ModelSelector | ( | ) | [private] |
static void ui::ModelSelector::callbackCancel | ( | GtkWidget * | , | |
ModelSelector * | ||||
) | [static, private] |
static void ui::ModelSelector::callbackHide | ( | GtkWidget * | , | |
GdkEvent * | , | |||
ModelSelector * | ||||
) | [static, private] |
static void ui::ModelSelector::callbackOK | ( | GtkWidget * | , | |
ModelSelector * | ||||
) | [static, private] |
static void ui::ModelSelector::callbackSelChanged | ( | GtkWidget * | , | |
ModelSelector * | ||||
) | [static, private] |
static ModelAndSkin ui::ModelSelector::chooseModel | ( | ) | [static] |
Display the Model Selector instance, constructing it on first use, and return the VFS path of the model selected by the user. When the ModelSelector is displayed it will enter a recursive gtk_main loop, blocking execution of the calling function until destroyed.
Referenced by ModelAttribute::browse().
GtkWidget* ui::ModelSelector::createButtons | ( | ) | [private] |
GtkWidget* ui::ModelSelector::createPreviewAndInfoPanel | ( | ) | [private] |
GtkWidget* ui::ModelSelector::createTreeView | ( | ) | [private] |
int ui::ModelSelector::getSelectedInteger | ( | gint | col | ) | [private] |
std::string ui::ModelSelector::getSelectedString | ( | gint | col | ) | [private] |
void ui::ModelSelector::initialisePreview | ( | ) | [private] |
ModelAndSkin ui::ModelSelector::showAndBlock | ( | ) | [private] |
void ui::ModelSelector::updateSelected | ( | ) | [private] |
GtkListStore* ui::ModelSelector::_infoStore [private] |
Definition at line 50 of file ModelSelector.h.
std::string ui::ModelSelector::_lastModel [private] |
Definition at line 54 of file ModelSelector.h.
int ui::ModelSelector::_lastSkin [private] |
Definition at line 55 of file ModelSelector.h.
ModelPreview ui::ModelSelector::_modelPreview [private] |
Definition at line 41 of file ModelSelector.h.
GtkTreeSelection* ui::ModelSelector::_selection [private] |
Definition at line 47 of file ModelSelector.h.
GtkTreeStore* ui::ModelSelector::_treeStore [private] |
Definition at line 44 of file ModelSelector.h.
GtkWidget* ui::ModelSelector::_widget [private] |
Definition at line 38 of file ModelSelector.h.