ui::LightDialog Class Reference

#include <LightDialog.h>

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

Public Member Functions

 LightDialog ()
 ~LightDialog ()
void show ()
Vector3 getColor ()
std::string getIntensity ()
bool isAborted ()

Private Member Functions

GtkWidgetcreateColorSelector ()
GtkWidgetcreateIntensity ()
GtkWidgetcreateButtons ()
Vector3 getNormalizedColor ()

Static Private Member Functions

static gboolean _onDelete (GtkWidget *w, GdkEvent *e, LightDialog *self)
static void _onOK (GtkWidget *, LightDialog *)
static void _onCancel (GtkWidget *, LightDialog *)

Private Attributes

GtkWidget_widget
GtkColorSelection * _colorSelector
gtkutil::TextPanel _intensityEntry
Vector3 _color
std::string _intensity
bool _aborted

Detailed Description

Modal dialog for selecting the light intensity and color

Definition at line 17 of file LightDialog.h.


Constructor & Destructor Documentation

ui::LightDialog::LightDialog (  ) 

Constructor creates widgets.

ui::LightDialog::~LightDialog (  ) 

Destroys the created widgets.


Member Function Documentation

static void ui::LightDialog::_onCancel ( GtkWidget ,
LightDialog  
) [static, private]
static gboolean ui::LightDialog::_onDelete ( GtkWidget w,
GdkEvent *  e,
LightDialog self 
) [static, private]
static void ui::LightDialog::_onOK ( GtkWidget ,
LightDialog  
) [static, private]
GtkWidget* ui::LightDialog::createButtons (  )  [private]
GtkWidget* ui::LightDialog::createColorSelector (  )  [private]
GtkWidget* ui::LightDialog::createIntensity (  )  [private]
Vector3 ui::LightDialog::getColor (  ) 
Returns:
The selected color as RGB. This is only set if the dialog was closed with a click to the ok button, and not if you close it or hit the cancel button
std::string ui::LightDialog::getIntensity (  ) 
Returns:
The intensity for the light. This is only set if the dialog was closed with a click to the ok button, and not if you close it or hit the cancel button
Vector3 ui::LightDialog::getNormalizedColor (  )  [private]
bool ui::LightDialog::isAborted (  ) 
Returns:
true if the dialog was aborted by hitting the cancel button
void ui::LightDialog::show (  ) 

Show and block


Field Documentation

bool ui::LightDialog::_aborted [private]

Definition at line 32 of file LightDialog.h.

Definition at line 28 of file LightDialog.h.

GtkColorSelection* ui::LightDialog::_colorSelector [private]

Definition at line 23 of file LightDialog.h.

Definition at line 30 of file LightDialog.h.

Definition at line 26 of file LightDialog.h.

Definition at line 20 of file LightDialog.h.


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

Generated by  doxygen 1.6.2