BaseInspectorDialog Class Reference

Base Dialog for a specific inspector dialog. More...

#include <BaseInspectorDialog.hh>

Inherits QDialog.

Inherited by LevelInspectorDialog, StairsInspectorDialog, WallInspectorDialog, and WindowDoorInspectorDialog.

Signals

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

Public Member Functions

 BaseInspectorDialog (QWidget *_parent)
 Constructor. More...
 
 ~BaseInspectorDialog ()
 Destructor. More...
 
common::Color Color () const
 Get the color. More...
 
void InitColorComboBox ()
 Initiate color combo box. More...
 
void InitTextureComboBox ()
 Initiate texture combo box. More...
 
void SetColor (const common::Color &_color)
 Set the color. More...
 
void SetTexture (const std::string &_texture)
 Set the texture. 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

Base Dialog for a specific inspector dialog.

Constructor & Destructor Documentation

BaseInspectorDialog ( QWidget *  _parent)

Constructor.

Parameters
[in]_parentParent QWidget

Destructor.

Member Function Documentation

void Applied ( )
signal

Qt signal emitted to indicate that changes should be applied.

common::Color Color ( ) const

Get the color.

Returns
Color.
void InitColorComboBox ( )

Initiate color combo box.

void InitTextureComboBox ( )

Initiate texture combo box.

void OnApply ( )
protectedslot

Qt callback when the Apply button is pressed.

void OnCancel ( )
protectedslot

Qt callback when the Cancel button is pressed.

void OnOK ( )
protectedslot

Qt callback when the Ok button is pressed.

void SetColor ( const common::Color _color)

Set the color.

Parameters
[in]_colorColor.
void SetTexture ( const std::string &  _texture)

Set the texture.

Parameters
[in]_textureTexture.
std::string Texture ( ) const

Get the texture.

Returns
Texture.

Member Data Documentation

QComboBox* colorComboBox
protected

Combo box for selecting the color.

QComboBox* textureComboBox
protected

Combo box for selecting the texture.


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