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...
 
ignition::math::Color Color () const
 Get the color. More...
 
void InitColorComboBox ()
 Initiate color combo box. More...
 
void InitTextureComboBox ()
 Initiate texture combo box. More...
 
void SetColor (const ignition::math::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()

BaseInspectorDialog ( QWidget *  _parent)
explicit

Constructor.

Parameters
[in]_parentParent QWidget

◆ ~BaseInspectorDialog()

Destructor.

Member Function Documentation

◆ Applied

void Applied ( )
signal

Qt signal emitted to indicate that changes should be applied.

◆ Color()

ignition::math::Color Color ( ) const

Get the color.

Returns
Color.

◆ InitColorComboBox()

void InitColorComboBox ( )

Initiate color combo box.

◆ InitTextureComboBox()

void InitTextureComboBox ( )

Initiate texture combo box.

◆ OnApply

void OnApply ( )
protectedslot

Qt callback when the Apply button is pressed.

◆ OnCancel

void OnCancel ( )
protectedslot

Qt callback when the Cancel button is pressed.

◆ OnOK

void OnOK ( )
protectedslot

Qt callback when the Ok button is pressed.

◆ SetColor()

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

Set the color.

Parameters
[in]_colorColor.

◆ SetTexture()

void SetTexture ( const std::string &  _texture)

Set the texture.

Parameters
[in]_textureTexture.

◆ Texture()

std::string Texture ( ) const

Get the texture.

Returns
Texture.

Member Data Documentation

◆ colorComboBox

QComboBox* colorComboBox
protected

Combo box for selecting the color.

◆ textureComboBox

QComboBox* textureComboBox
protected

Combo box for selecting the texture.


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