wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions

QwwListNavigator Class Reference
[wwWidgets module]

The QwwListNavigator class provides a widget letting the user navigate through items in a list. More...

 #include <QwwListNavigator>

This class is not part of the Qt GUI Framework Edition.

Inherits QAbstractSlider.


Public Types

enum Button { NoButtons, FirstButton, PrevButton, Slider, NextButton, LastButton }
flags Buttons

Properties


Public Functions

QwwListNavigator ( QWidget * parent = 0 )
bool autoRaise () const
Buttons buttons () const
void setButtons ( Buttons b )
void setListWidget ( QwwListWidget * lw )
Qt::ToolButtonStyle toolButtonStyle () const

Public Slots

void setAutoRaise ( bool v )
void setOrientation ( Qt::Orientation o )
void setToolButtonStyle ( Qt::ToolButtonStyle v )
void toFirst ()
void toLast ()
void toNext ()
void toPrevious ()

Signals

void first ()
void last ()
void next ()
void previous ()

Reimplemented Protected Functions

virtual void sliderChange ( SliderChange change )

Additional Inherited Members


Detailed Description

The QwwListNavigator class provides a widget letting the user navigate through items in a list.

QwwListNavigator


Member Type Documentation

enum QwwListNavigator::Button
flags QwwListNavigator::Buttons

ConstantValueDescription
QwwListNavigator::NoButtons0No buttons are visible
QwwListNavigator::FirstButton1Button for moving onto the first record in the set
QwwListNavigator::PrevButton2Button for moving onto previous record in the set
QwwListNavigator::Slider4Slider for moving between records
QwwListNavigator::NextButton8Button for moving onto next record in the set
QwwListNavigator::LastButton16Button for moving onto the last record in the set

The Buttons type is a typedef for QFlags<Button>. It stores an OR combination of Button values.


Property Documentation

autoRaise : bool

This property holds this property holds whether buttons of the navigator are auto raised.

Access functions:

bool autoRaise () const
void setAutoRaise ( bool v )

buttons : Buttons

This property holds this property holds visible buttons of the navigator.

Access functions:

Buttons buttons () const
void setButtons ( Buttons b )

orientation : Qt::Orientation

This property holds this property holds the orientation of the slider.

The orientation must be Qt::Vertical (the default) or Qt::Horizontal.

Access functions:

void setOrientation ( Qt::Orientation o )

toolButtonStyle : Qt::ToolButtonStyle

This property holds this property holds the style of buttons in the navigator.

Access functions:

Qt::ToolButtonStyle toolButtonStyle () const
void setToolButtonStyle ( Qt::ToolButtonStyle v )

Member Function Documentation

QwwListNavigator::QwwListNavigator ( QWidget * parent = 0 )

Constructs a horizontal list navigator with a given parent.

void QwwListNavigator::first ()   [signal]

The signal is emited when the navigator is set on the first record in the set.

See also toFirst().

void QwwListNavigator::last ()   [signal]

The signal is emited when the navigator is set on the last record in the set.

See also toLast().

void QwwListNavigator::next ()   [signal]

The signal is emited when the navigator is set on the next record in the set.

See also toNext().

void QwwListNavigator::previous ()   [signal]

The signal is emited when the navigator is set on the previous record in the set.

See also toPrevious().

void QwwListNavigator::setListWidget ( QwwListWidget * lw )

Associates a QwwListWidget instance with the navigator.

The method observes the list widget lw allowing to navigate through its items using the navigator.

void QwwListNavigator::sliderChange ( SliderChange change )   [virtual protected]

Reimplemented from QAbstractSlider::sliderChange().

This method performs a change of slider value specified by change.

void QwwListNavigator::toFirst ()   [slot]

Moves navigator to the first record.

Does nothing if the navigator is already at the first record.

See also first().

void QwwListNavigator::toLast ()   [slot]

Moves navigator to the last record.

Does nothing if the navigator is already at the last record.

See also last().

void QwwListNavigator::toNext ()   [slot]

Moves navigator to the next record.

Does nothing if the navigator is already at the last record.

See also next().

void QwwListNavigator::toPrevious ()   [slot]

Moves navigator to the previous record.

Does nothing if the navigator is already at the first record.

See also previous().


Copyright © 2007-2010 Witold Wysota Trademarks
wwWidgets 1.0.0