Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkComboBoxStepThrough Class Reference

Extension of QComboBox which offers stepping through the values. More...

#include <QmitkComboBoxStepThrough.h>

Inheritance diagram for QmitkComboBoxStepThrough:
Collaboration diagram for QmitkComboBoxStepThrough:

Public Slots

void OnSetPreviousIndex ()
 
void OnSetNextIndex ()
 

Signals

void SignalReachedEnd (bool)
 
void SignalReachedBegin (bool)
 

Public Member Functions

 QmitkComboBoxStepThrough (QWidget *parent=nullptr)
 
 ~QmitkComboBoxStepThrough ()
 
void addItem (const QString &text, const QVariant &userData=QVariant())
 
void addItem (const QIcon &icon, const QString &text, const QVariant &userData=QVariant())
 
void addItems (const QStringList &texts)
 
void insertItem (int index, const QString &text, const QVariant &userData=QVariant())
 
void insertItem (int index, const QIcon &icon, const QString &text, const QVariant &userData=QVariant())
 
void insertItems (int index, const QStringList &list)
 

Detailed Description

Extension of QComboBox which offers stepping through the values.

Slots added for setting index to the next position and the previous position. Signals added for signaling if the begin or the end of the values is reached.

Definition at line 28 of file QmitkComboBoxStepThrough.h.

Constructor & Destructor Documentation

QmitkComboBoxStepThrough::QmitkComboBoxStepThrough ( QWidget *  parent = nullptr)

Definition at line 19 of file QmitkComboBoxStepThrough.cpp.

QmitkComboBoxStepThrough::~QmitkComboBoxStepThrough ( )

Definition at line 25 of file QmitkComboBoxStepThrough.cpp.

Member Function Documentation

void QmitkComboBoxStepThrough::addItem ( const QString &  text,
const QVariant &  userData = QVariant() 
)

Definition at line 79 of file QmitkComboBoxStepThrough.cpp.

void QmitkComboBoxStepThrough::addItem ( const QIcon &  icon,
const QString &  text,
const QVariant &  userData = QVariant() 
)

Definition at line 87 of file QmitkComboBoxStepThrough.cpp.

void QmitkComboBoxStepThrough::addItems ( const QStringList &  texts)

Definition at line 95 of file QmitkComboBoxStepThrough.cpp.

void QmitkComboBoxStepThrough::insertItem ( int  index,
const QString &  text,
const QVariant &  userData = QVariant() 
)

Definition at line 103 of file QmitkComboBoxStepThrough.cpp.

void QmitkComboBoxStepThrough::insertItem ( int  index,
const QIcon &  icon,
const QString &  text,
const QVariant &  userData = QVariant() 
)

Definition at line 111 of file QmitkComboBoxStepThrough.cpp.

void QmitkComboBoxStepThrough::insertItems ( int  index,
const QStringList &  list 
)

Definition at line 119 of file QmitkComboBoxStepThrough.cpp.

void QmitkComboBoxStepThrough::OnSetNextIndex ( )
slot

Set index of the combo box to next index. If current index is already the last index, nothing is done.

Definition at line 40 of file QmitkComboBoxStepThrough.cpp.

void QmitkComboBoxStepThrough::OnSetPreviousIndex ( )
slot

Set index of the combo box to previous index. If current index is already the first index, nothing is done.

Definition at line 29 of file QmitkComboBoxStepThrough.cpp.

void QmitkComboBoxStepThrough::SignalReachedBegin ( bool  )
signal

True if the begin of the available values is reached. False if index was the first possible index and is now another index.

void QmitkComboBoxStepThrough::SignalReachedEnd ( bool  )
signal

True if the end of the available values is reached. False if index was the last possible index and is now another index.


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