ui::EntityClassChooser Class Reference

#include <EntityClassChooser.h>

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

Public Member Functions

 EntityClassChooser ()
 Constructor. Creates the GTK widgets.
void show (const Vector3 &point)

Static Public Member Functions

static void displayInstance (const Vector3 &point)

Private Member Functions

GtkWidgetcreateTreeView ()
GtkWidgetcreateUsagePanel ()
GtkWidgetcreateButtonPanel ()
void updateUsageInfo (const std::string &eclass)

Static Private Member Functions

static void addEntity (EntityClassChooser *)
static void callbackHide (GtkWidget *, GdkEvent *, EntityClassChooser *)
static void callbackCancel (GtkWidget *, EntityClassChooser *)
static void callbackAdd (GtkWidget *, EntityClassChooser *)
static void callbackSelectionChanged (GtkWidget *, EntityClassChooser *)
static gint callbackKeyPress (GtkWidget *widget, GdkEventKey *event, EntityClassChooser *)
static gint callbackMouseButtonPress (GtkWidget *widget, GdkEventButton *event, EntityClassChooser *)

Private Attributes

GtkWidget_widget
GtkTreeStore * _treeStore
GtkTreeSelection_selection
GtkWidget_usageTextView
GtkWidget_addButton
Vector3 _lastPoint

Detailed Description

Dialog window displaying a tree of Entity Classes, allowing the selection of a class to create at the current location. This widget is displayed by the OrthoContextMenu.

Definition at line 15 of file EntityClassChooser.h.


Constructor & Destructor Documentation

ui::EntityClassChooser::EntityClassChooser (  ) 

Constructor. Creates the GTK widgets.


Member Function Documentation

static void ui::EntityClassChooser::addEntity ( EntityClassChooser  )  [static, private]
static void ui::EntityClassChooser::callbackAdd ( GtkWidget ,
EntityClassChooser  
) [static, private]
static void ui::EntityClassChooser::callbackCancel ( GtkWidget ,
EntityClassChooser  
) [static, private]
static void ui::EntityClassChooser::callbackHide ( GtkWidget ,
GdkEvent *  ,
EntityClassChooser  
) [static, private]
static gint ui::EntityClassChooser::callbackKeyPress ( GtkWidget widget,
GdkEventKey *  event,
EntityClassChooser  
) [static, private]
static gint ui::EntityClassChooser::callbackMouseButtonPress ( GtkWidget widget,
GdkEventButton *  event,
EntityClassChooser  
) [static, private]
static void ui::EntityClassChooser::callbackSelectionChanged ( GtkWidget ,
EntityClassChooser  
) [static, private]
GtkWidget* ui::EntityClassChooser::createButtonPanel (  )  [private]
GtkWidget* ui::EntityClassChooser::createTreeView (  )  [private]
GtkWidget* ui::EntityClassChooser::createUsagePanel (  )  [private]
static void ui::EntityClassChooser::displayInstance ( const Vector3 point  )  [static]

Obtain the singleton instance and show it, passing in the required entity creation coordinates.

Parameters:
point The point at which the new entity should be created
void ui::EntityClassChooser::show ( const Vector3 point  ) 

Show the dialog and choose an entity class.

Parameters:
point The point at which the new entity should be created
void ui::EntityClassChooser::updateUsageInfo ( const std::string eclass  )  [private]

Field Documentation

Definition at line 33 of file EntityClassChooser.h.

Definition at line 36 of file EntityClassChooser.h.

Definition at line 26 of file EntityClassChooser.h.

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

Definition at line 23 of file EntityClassChooser.h.

Definition at line 29 of file EntityClassChooser.h.

Definition at line 20 of file EntityClassChooser.h.


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

Generated by  doxygen 1.6.2