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

#include <ChannelSelectionControlElement.hh>

Inheritance diagram for ChannelSelectionControlElement:
Collaboration diagram for ChannelSelectionControlElement:

Public Slots

void setValue (ChannelSpecs *channel)
 
void setValue (const int value)
 
void setValue (const std::string &value)
 

Signals

void activated (int index)
 
void activated (const QString &text)
 
void activationStateChanged (bool)
 
void channelListEmpty (bool)
 
void currentIndexChanged (int index)
 
void currentIndexChanged (const QString &text)
 
void editingFinished ()
 
void editTextChanged (const QString &text)
 
void highlighted (int index)
 
void highlighted (const QString &text)
 
void valueChanged ()
 

Public Member Functions

 ChannelSelectionControlElement (const QString &label, MultiChannelModel *model, ChannelSpecs::ChannelTypes channelTypes=ChannelSpecs::Any, QWidget *parent=0)
 
 ~ChannelSelectionControlElement ()
 
ChannelSpecschannel (int index) const
 
ChannelSpecschannel (std::string const &name) const
 
bool contains (std::string const &channelName) const
 
bool contains (ChannelSpecs *channel) const
 
QWidget * controlWidget ()
 
int indexOf (ChannelSpecs *channel) const
 
bool isActive () const
 
bool isEditable () const
 
QString label () const
 
QWidget * labelWidget ()
 
int nChannels () const
 
ChannelSpecsselectedChannel () const
 
void setActive (const bool active)
 
void setEditable (bool editable)
 
void setLabel (const QString &label)
 
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 42 of file ChannelSelectionControlElement.hh.

Constructor & Destructor Documentation

◆ ChannelSelectionControlElement()

ChannelSelectionControlElement::ChannelSelectionControlElement ( const QString &  label,
MultiChannelModel model,
ChannelSpecs::ChannelTypes  channelTypes = ChannelSpecs::Any,
QWidget *  parent = 0 
)

◆ ~ChannelSelectionControlElement()

ChannelSelectionControlElement::~ChannelSelectionControlElement ( )

Member Function Documentation

◆ contains() [1/2]

bool ChannelSelectionControlElement::contains ( std::string const &  channelName) const

◆ contains() [2/2]

bool ChannelSelectionControlElement::contains ( ChannelSpecs channel) const

◆ indexOf()

int ChannelSelectionControlElement::indexOf ( ChannelSpecs channel) const

◆ nChannels()

int ChannelSelectionControlElement::nChannels ( ) const

◆ isEditable()

bool ChannelSelectionControlElement::isEditable ( ) const

◆ setEditable()

void ChannelSelectionControlElement::setEditable ( bool  editable)

◆ selectedChannel()

ChannelSpecs* ChannelSelectionControlElement::selectedChannel ( ) const

◆ channel() [1/2]

ChannelSpecs* ChannelSelectionControlElement::channel ( int  index) const

◆ channel() [2/2]

ChannelSpecs* ChannelSelectionControlElement::channel ( std::string const &  name) const

◆ value()

int ChannelSelectionControlElement::value ( ) const

◆ toStdString()

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

◆ activated [1/2]

void ChannelSelectionControlElement::activated ( int  index)
signal

◆ activated [2/2]

void ChannelSelectionControlElement::activated ( const QString &  text)
signal

◆ currentIndexChanged [1/2]

void ChannelSelectionControlElement::currentIndexChanged ( int  index)
signal

◆ currentIndexChanged [2/2]

void ChannelSelectionControlElement::currentIndexChanged ( const QString &  text)
signal

◆ editTextChanged

void ChannelSelectionControlElement::editTextChanged ( const QString &  text)
signal

◆ editingFinished

void ChannelSelectionControlElement::editingFinished ( )
signal

◆ highlighted [1/2]

void ChannelSelectionControlElement::highlighted ( int  index)
signal

◆ highlighted [2/2]

void ChannelSelectionControlElement::highlighted ( const QString &  text)
signal

◆ channelListEmpty

void ChannelSelectionControlElement::channelListEmpty ( bool  )
signal

◆ setValue [1/3]

void ChannelSelectionControlElement::setValue ( ChannelSpecs channel)
slot

◆ setValue [2/3]

void ChannelSelectionControlElement::setValue ( const int  value)
slot

◆ setValue [3/3]

void ChannelSelectionControlElement::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

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: