iRoCS Toolbox  1.1.0
Public Slots | Signals | Public Member Functions | Protected Attributes
IntControlElement Class Reference

#include <IntControlElement.hh>

Inheritance diagram for IntControlElement:
Collaboration diagram for IntControlElement:

Public Slots

void setValue (const int value)
 
void setValue (const std::string &value)
 

Signals

void activationStateChanged (bool)
 
void valueChanged (int)
 
void valueChanged ()
 

Public Member Functions

 IntControlElement (const QString &label, const int value=-1, QWidget *parent=0)
 
 ~IntControlElement ()
 
QWidget * controlWidget ()
 
bool isActive () const
 
QString label () const
 
QWidget * labelWidget ()
 
void setActive (const bool active)
 
void setLabel (const QString &label)
 
void setRange (const int min, const int max)
 
void setSpecialValueText (QString const &text)
 If specified, the given text is shown if the spin box is at its minimum value instead of that value. More...
 
void setSuffix (QString const &text)
 If specified, the given text is appended to the value in the spinbox. More...
 
void setSwitchable (const bool switchable)
 
bool switchable () const
 
std::string toStdString () const
 
int value () const
 

Protected Attributes

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

Detailed Description

Definition at line 36 of file IntControlElement.hh.

Constructor & Destructor Documentation

◆ IntControlElement()

IntControlElement::IntControlElement ( const QString &  label,
const int  value = -1,
QWidget *  parent = 0 
)

◆ ~IntControlElement()

IntControlElement::~IntControlElement ( )

Member Function Documentation

◆ setRange()

void IntControlElement::setRange ( const int  min,
const int  max 
)

◆ setSpecialValueText()

void IntControlElement::setSpecialValueText ( QString const &  text)

If specified, the given text is shown if the spin box is at its minimum value instead of that value.

If you pass a NULL (empty) string it will be reset to show the value again.

Parameters
textThe text to output instead of the spinbox's minimum value

◆ setSuffix()

void IntControlElement::setSuffix ( QString const &  text)

If specified, the given text is appended to the value in the spinbox.

Parameters
textThe text to append (e.g. unit)

◆ value()

int IntControlElement::value ( ) const

◆ toStdString()

std::string IntControlElement::toStdString ( ) const
virtual

◆ valueChanged [1/2]

void IntControlElement::valueChanged ( int  )
signal

◆ setValue [1/2]

void IntControlElement::setValue ( const int  value)
slot

◆ setValue [2/2]

void IntControlElement::setValue ( const std::string &  value)
slot

◆ setSwitchable()

void AbstractControlElement::setSwitchable ( const bool  switchable)
inherited

◆ switchable()

bool AbstractControlElement::switchable ( ) const
inherited

◆ setActive()

void AbstractControlElement::setActive ( const bool  active)
inherited

◆ isActive()

bool AbstractControlElement::isActive ( ) const
inherited

◆ label()

QString AbstractControlElement::label ( ) const
inherited

◆ setLabel()

void AbstractControlElement::setLabel ( const QString &  label)
inherited

◆ labelWidget()

QWidget* AbstractControlElement::labelWidget ( )
inherited

◆ controlWidget()

QWidget* AbstractControlElement::controlWidget ( )
inherited

◆ activationStateChanged

void AbstractControlElement::activationStateChanged ( bool  )
signalinherited

◆ valueChanged [2/2]

void AbstractControlElement::valueChanged ( )
signalinherited

Field Documentation

◆ p_labelLayout

QHBoxLayout* AbstractControlElement::p_labelLayout
protectedinherited

Definition at line 85 of file AbstractControlElement.hh.

◆ p_controlLayout

QHBoxLayout* AbstractControlElement::p_controlLayout
protectedinherited

Definition at line 86 of file AbstractControlElement.hh.

◆ p_switch

QCheckBox* AbstractControlElement::p_switch
protectedinherited

Definition at line 88 of file AbstractControlElement.hh.

◆ p_label

QLabel* AbstractControlElement::p_label
protectedinherited

Definition at line 89 of file AbstractControlElement.hh.


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