iRoCS Toolbox  1.1.0
Public Slots | Signals | Public Member Functions | Protected Attributes
AbstractControlElement Class Referenceabstract

#include <AbstractControlElement.hh>

Inheritance diagram for AbstractControlElement:
Collaboration diagram for AbstractControlElement:

Public Slots

virtual void setValue (const std::string &value)=0
 

Signals

void activationStateChanged (bool)
 
void valueChanged ()
 

Public Member Functions

 AbstractControlElement (const QString &label, QWidget *parent=0)
 
virtual ~AbstractControlElement ()
 
QWidget * controlWidget ()
 
bool isActive () const
 
QString label () const
 
QWidget * labelWidget ()
 
void setActive (const bool active)
 
void setLabel (const QString &label)
 
void setSwitchable (const bool switchable)
 
bool switchable () const
 
virtual std::string toStdString () const =0
 

Protected Attributes

QHBoxLayout * p_controlLayout
 
QLabel * p_label
 
QHBoxLayout * p_labelLayout
 
QCheckBox * p_switch
 

Detailed Description

Definition at line 49 of file AbstractControlElement.hh.

Constructor & Destructor Documentation

◆ AbstractControlElement()

AbstractControlElement::AbstractControlElement ( const QString &  label,
QWidget *  parent = 0 
)

◆ ~AbstractControlElement()

virtual AbstractControlElement::~AbstractControlElement ( )
virtual

Member Function Documentation

◆ setSwitchable()

void AbstractControlElement::setSwitchable ( const bool  switchable)

◆ switchable()

bool AbstractControlElement::switchable ( ) const

◆ setActive()

void AbstractControlElement::setActive ( const bool  active)

◆ isActive()

bool AbstractControlElement::isActive ( ) const

◆ label()

QString AbstractControlElement::label ( ) const

◆ setLabel()

void AbstractControlElement::setLabel ( const QString &  label)

◆ toStdString()

virtual std::string AbstractControlElement::toStdString ( ) const
pure virtual

◆ labelWidget()

QWidget* AbstractControlElement::labelWidget ( )

◆ controlWidget()

QWidget* AbstractControlElement::controlWidget ( )

◆ activationStateChanged

void AbstractControlElement::activationStateChanged ( bool  )
signal

◆ valueChanged

void AbstractControlElement::valueChanged ( )
signal

◆ setValue

virtual void AbstractControlElement::setValue ( const std::string &  value)
pure virtualslot

Field Documentation

◆ p_labelLayout

QHBoxLayout* AbstractControlElement::p_labelLayout
protected

Definition at line 85 of file AbstractControlElement.hh.

◆ p_controlLayout

QHBoxLayout* AbstractControlElement::p_controlLayout
protected

Definition at line 86 of file AbstractControlElement.hh.

◆ p_switch

QCheckBox* AbstractControlElement::p_switch
protected

Definition at line 88 of file AbstractControlElement.hh.

◆ p_label

QLabel* AbstractControlElement::p_label
protected

Definition at line 89 of file AbstractControlElement.hh.


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