ui::ModelSelector Class Reference

#include <ModelSelector.h>

Collaboration diagram for ui::ModelSelector:
Collaboration graph
[legend]

Static Public Member Functions

static ModelAndSkin chooseModel ()

Private Member Functions

 ModelSelector ()
ModelAndSkin showAndBlock ()
GtkWidgetcreateTreeView ()
GtkWidgetcreateButtons ()
GtkWidgetcreatePreviewAndInfoPanel ()
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

Detailed Description

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.


Constructor & Destructor Documentation

ui::ModelSelector::ModelSelector (  )  [private]

Member Function Documentation

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]

Field Documentation

Definition at line 50 of file ModelSelector.h.

Definition at line 54 of file ModelSelector.h.

Definition at line 55 of file ModelSelector.h.

Definition at line 41 of file ModelSelector.h.

Definition at line 47 of file ModelSelector.h.

GtkTreeStore* ui::ModelSelector::_treeStore [private]

Definition at line 44 of file ModelSelector.h.

Definition at line 38 of file ModelSelector.h.


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

Generated by  doxygen 1.6.2