WindowDoorInspectorDialog Class Reference

Dialog for configuring a window or door item. More...

#include <WindowDoorInspectorDialog.hh>

Inherits BaseInspectorDialog.

Public Types

enum  mode { WINDOW, DOOR }
 Dialog modes. More...
 

Signals

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

Public Member Functions

 WindowDoorInspectorDialog (int _mode=WINDOW, QWidget *_parent=0)
 Constructor. More...
 
 ~WindowDoorInspectorDialog ()
 Destructor. More...
 
ignition::math::Color Color () const
 Get the color. More...
 
double Depth () const
 Get the item depth. More...
 
double Elevation () const
 Get the item elevation. More...
 
double Height () const
 Get the item height. More...
 
void InitColorComboBox ()
 Initiate color combo box. More...
 
void InitTextureComboBox ()
 Initiate texture combo box. More...
 
ignition::math::Vector2d Position () const
 Get the item position. More...
 
void SetColor (const ignition::math::Color &_color)
 Set the color. More...
 
void SetDepth (const double _depth)
 Set the item depth. More...
 
void SetElevation (const double _elevation)
 Set the item elevation. More...
 
void SetHeight (const double _height)
 Set the item height. More...
 
void SetName (const std::string &_name)
 Set the item name. More...
 
void SetPosition (const ignition::math::Vector2d &_pos)
 Set the item scene position. More...
 
void SetTexture (const std::string &_texture)
 Set the texture. More...
 
void SetType (const std::string &_type)
 Set the item type. More...
 
void SetWidth (const double _width)
 Set the item width. More...
 
std::string Texture () const
 Get the texture. More...
 
std::string Type () const
 Get the item type. More...
 
double Width () const
 Get the item width. 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 window or door item.

Member Enumeration Documentation

◆ mode

enum mode

Dialog modes.

Enumerator
WINDOW 

Window mode.

DOOR 

Door mode.

Constructor & Destructor Documentation

◆ WindowDoorInspectorDialog()

WindowDoorInspectorDialog ( int  _mode = WINDOW,
QWidget *  _parent = 0 
)

Constructor.

Parameters
[in]_modeDialog mode
[in]_parentParent QWidget.

◆ ~WindowDoorInspectorDialog()

Destructor.

Member Function Documentation

◆ Applied

void Applied ( )
signalinherited

Qt signal emitted to indicate that changes should be applied.

◆ Color()

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

Get the color.

Returns
Color.

◆ Depth()

double Depth ( ) const

Get the item depth.

Returns
Depth in pixels.

◆ Elevation()

double Elevation ( ) const

Get the item elevation.

Returns
Item elevation in pixels.

◆ Height()

double Height ( ) const

Get the item height.

Returns
Height in pixels.

◆ InitColorComboBox()

void InitColorComboBox ( )
inherited

Initiate color combo box.

◆ InitTextureComboBox()

void InitTextureComboBox ( )
inherited

Initiate texture combo box.

◆ OnApply

void OnApply ( )
protectedslotinherited

Qt callback when the Apply button is pressed.

◆ OnCancel

void OnCancel ( )
protectedslotinherited

Qt callback when the Cancel button is pressed.

◆ OnOK

void OnOK ( )
protectedslotinherited

Qt callback when the Ok button is pressed.

◆ Position()

ignition::math::Vector2d Position ( ) const

Get the item position.

Returns
Item position in pixel coordinates.

◆ SetColor()

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

Set the color.

Parameters
[in]_colorColor.

◆ SetDepth()

void SetDepth ( const double  _depth)

Set the item depth.

Parameters
[in]_depthDepth in pixels.

◆ SetElevation()

void SetElevation ( const double  _elevation)

Set the item elevation.

Parameters
[in]_elevationItem elevation in pixels.

◆ SetHeight()

void SetHeight ( const double  _height)

Set the item height.

Parameters
[in]_heightHeight in pixels.

◆ SetName()

void SetName ( const std::string &  _name)

Set the item name.

Parameters
[in]_nameName to set to.

◆ SetPosition()

void SetPosition ( const ignition::math::Vector2d &  _pos)

Set the item scene position.

Parameters
[in]_posPosition in pixel coordinates.

◆ SetTexture()

void SetTexture ( const std::string &  _texture)
inherited

Set the texture.

Parameters
[in]_textureTexture.

◆ SetType()

void SetType ( const std::string &  _type)

Set the item type.

Parameters
[in]_typeItem type.

◆ SetWidth()

void SetWidth ( const double  _width)

Set the item width.

Parameters
[in]_widthWidth in pixels.

◆ Texture()

std::string Texture ( ) const
inherited

Get the texture.

Returns
Texture.

◆ Type()

std::string Type ( ) const

Get the item type.

Returns
Item type.

◆ Width()

double Width ( ) const

Get the item width.

Returns
Width in pixels.

Member Data Documentation

◆ colorComboBox

QComboBox* colorComboBox
protectedinherited

Combo box for selecting the color.

◆ textureComboBox

QComboBox* textureComboBox
protectedinherited

Combo box for selecting the texture.


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