QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlNamedIntComboBox Class Reference

A subclass of QComboBox which takes its list of values from a QtlNamedIntSet. More...

Inheritance diagram for QtlNamedIntComboBox:

Signals

void currentValueChanged (quint32 currentValue)
 Emitted when the current integer value in the combo box changes. More...
 

Public Member Functions

 QtlNamedIntComboBox (QWidget *parent=0)
 Constructor. More...
 
quint32 currentValue () const
 Get the current integer value in the combo box. More...
 
quint32 maximum () const
 Get the maximum acceptable value. More...
 
quint32 minimum () const
 Get the minimum acceptable value. More...
 
QtlNamedIntSet names () const
 Get the set of named values. More...
 
void setCurrentValue (quint32 currentValue)
 Set the current integer value in the combo box. More...
 
void setEditable (bool editable)
 Set the editable flag in the combo box. More...
 
void setMaximum (quint32 maximum)
 Set the maximum acceptable value. More...
 
void setMinimum (quint32 minimum)
 Set the minimum acceptable value. More...
 
void setNames (const QtlNamedIntSet &names)
 Set the set of named values. More...
 
void setRange (quint32 minimum, quint32 maximum)
 Set the minimum and maximum acceptable values. More...
 

Private Slots

void receiveCurrentText (const QString &text)
 Received when the current text has changed in the combo box. More...
 

Private Attributes

QtlNamedIntSet _names
 Validate input (when editable). More...
 
QtlIntValidator_validator
 

Detailed Description

A subclass of QComboBox which takes its list of values from a QtlNamedIntSet.

When the QtlNamedIntComboBox is editable, a decimal or hexadecimal value can be entered.

Constructor & Destructor Documentation

◆ QtlNamedIntComboBox()

QtlNamedIntComboBox::QtlNamedIntComboBox ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
[in]parentOptional parent widget.

Member Function Documentation

◆ minimum()

quint32 QtlNamedIntComboBox::minimum ( ) const
inline

Get the minimum acceptable value.

Returns
The minimum acceptable value.

◆ setMinimum()

void QtlNamedIntComboBox::setMinimum ( quint32  minimum)
inline

Set the minimum acceptable value.

Parameters
[in]minimumThe minimum acceptable value.

◆ maximum()

quint32 QtlNamedIntComboBox::maximum ( ) const
inline

Get the maximum acceptable value.

Returns
The maximum acceptable value.

◆ setMaximum()

void QtlNamedIntComboBox::setMaximum ( quint32  maximum)
inline

Set the maximum acceptable value.

Parameters
[in]maximumThe maximum acceptable value.

◆ setRange()

void QtlNamedIntComboBox::setRange ( quint32  minimum,
quint32  maximum 
)
inline

Set the minimum and maximum acceptable values.

Parameters
[in]minimumThe minimum acceptable value.
[in]maximumThe maximum acceptable value.

◆ names()

QtlNamedIntSet QtlNamedIntComboBox::names ( ) const
inline

Get the set of named values.

Returns
The set of named values.

◆ setNames()

void QtlNamedIntComboBox::setNames ( const QtlNamedIntSet names)

Set the set of named values.

Parameters
[in]namesThe set of named values.

◆ currentValue()

quint32 QtlNamedIntComboBox::currentValue ( ) const

Get the current integer value in the combo box.

Returns
The current integer value in the combo box.

◆ setCurrentValue()

void QtlNamedIntComboBox::setCurrentValue ( quint32  currentValue)

Set the current integer value in the combo box.

Parameters
[in]currentValueThe current integer value in the combo box.

◆ setEditable()

void QtlNamedIntComboBox::setEditable ( bool  editable)

Set the editable flag in the combo box.

Reimplemented from QComboBox.

Parameters
[in]editableThe editable flag in the combo box.

◆ currentValueChanged

void QtlNamedIntComboBox::currentValueChanged ( quint32  currentValue)
signal

Emitted when the current integer value in the combo box changes.

Parameters
[in]currentValueThe current integer value in the combo box.

◆ receiveCurrentText

void QtlNamedIntComboBox::receiveCurrentText ( const QString &  text)
privateslot

Received when the current text has changed in the combo box.

Parameters
[in]textThe current text in the combo box.

Member Data Documentation

◆ _validator

QtlIntValidator* QtlNamedIntComboBox::_validator
private

◆ _names

QtlNamedIntSet QtlNamedIntComboBox::_names
private

Validate input (when editable).


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