LevelInspectorDialog Class Reference

Dialog for configuring a building level. More...

#include <LevelInspectorDialog.hh>

Inherits BaseInspectorDialog.

Signals

void Applied ()
 Qt signal emitted to indicate that changes should be applied. More...
 

Public Member Functions

 LevelInspectorDialog (QWidget *_parent=0)
 Constructor. More...
 
 ~LevelInspectorDialog ()
 Destructor. More...
 
ignition::math::Color Color () const
 Get the color. More...
 
double Height () const
 Get the height of the level. More...
 
void InitColorComboBox ()
 Initiate color combo box. More...
 
void InitTextureComboBox ()
 Initiate texture combo box. More...
 
std::string LevelName () const
 Get the name of the level. More...
 
void SetColor (const ignition::math::Color &_color)
 Set the color. More...
 
void SetHeight (const double _height)
 Set the height of the level. More...
 
void SetLevelName (const std::string &_levelName)
 Set the name of the level. More...
 
void SetTexture (const std::string &_texture)
 Set the texture. More...
 
void ShowFloorWidget (const bool _show)
 Show or hide the floor widget. More...
 
std::string Texture () const
 Get the texture. More...
 

Protected Slots

void OnApply ()
 Qt callback when the Apply button is pressed. More...
 
void OnCancel ()
 Qt callback when the Cancel button is pressed. More...
 
void OnOK ()
 Qt callback when the Ok button is pressed. More...
 

Protected Attributes

QComboBox * colorComboBox
 Combo box for selecting the color. More...
 
QComboBox * textureComboBox
 Combo box for selecting the texture. More...
 

Detailed Description

Dialog for configuring a building level.

Constructor & Destructor Documentation

LevelInspectorDialog ( QWidget *  _parent = 0)
explicit

Constructor.

Parameters
[in]_parentParent QWidget.

Destructor.

Member Function Documentation

void Applied ( )
signalinherited

Qt signal emitted to indicate that changes should be applied.

ignition::math::Color Color ( ) const
inherited

Get the color.

Returns
Color.
double Height ( ) const

Get the height of the level.

Returns
The level height in pixels.
void InitColorComboBox ( )
inherited

Initiate color combo box.

void InitTextureComboBox ( )
inherited

Initiate texture combo box.

std::string LevelName ( ) const

Get the name of the level.

Returns
The level name.
void OnApply ( )
protectedslotinherited

Qt callback when the Apply button is pressed.

void OnCancel ( )
protectedslotinherited

Qt callback when the Cancel button is pressed.

void OnOK ( )
protectedslotinherited

Qt callback when the Ok button is pressed.

void SetColor ( const ignition::math::Color &  _color)
inherited

Set the color.

Parameters
[in]_colorColor.
void SetHeight ( const double  _height)

Set the height of the level.

Parameters
[in]_heightLevel height in pixels.
void SetLevelName ( const std::string &  _levelName)

Set the name of the level.

Parameters
[in]_levelNameNew level name.
void SetTexture ( const std::string &  _texture)
inherited

Set the texture.

Parameters
[in]_textureTexture.
void ShowFloorWidget ( const bool  _show)

Show or hide the floor widget.

Parameters
[in]_showTrue to show the widget, false to hide.
std::string Texture ( ) const
inherited

Get the texture.

Returns
Texture.

Member Data Documentation

QComboBox* colorComboBox
protectedinherited

Combo box for selecting the color.

QComboBox* textureComboBox
protectedinherited

Combo box for selecting the texture.


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