wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions |
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.
enum | Button { NoButtons, FirstButton, PrevButton, Slider, NextButton, LastButton } |
flags | Buttons |
QwwListNavigator ( QWidget * parent = 0 ) | |
bool | autoRaise () const |
Buttons | buttons () const |
void | setButtons ( Buttons b ) |
void | setListWidget ( QwwListWidget * lw ) |
Qt::ToolButtonStyle | toolButtonStyle () const |
void | setAutoRaise ( bool v ) |
void | setOrientation ( Qt::Orientation o ) |
void | setToolButtonStyle ( Qt::ToolButtonStyle v ) |
void | toFirst () |
void | toLast () |
void | toNext () |
void | toPrevious () |
void | first () |
void | last () |
void | next () |
void | previous () |
virtual void | sliderChange ( SliderChange change ) |
The QwwListNavigator class provides a widget letting the user navigate through items in a list.
Constant | Value | Description |
---|---|---|
QwwListNavigator::NoButtons | 0 | No buttons are visible |
QwwListNavigator::FirstButton | 1 | Button for moving onto the first record in the set |
QwwListNavigator::PrevButton | 2 | Button for moving onto previous record in the set |
QwwListNavigator::Slider | 4 | Slider for moving between records |
QwwListNavigator::NextButton | 8 | Button for moving onto next record in the set |
QwwListNavigator::LastButton | 16 | Button 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.
This property holds this property holds whether buttons of the navigator are auto raised.
Access functions:
bool | autoRaise () const |
void | setAutoRaise ( bool v ) |
This property holds this property holds visible buttons of the navigator.
Access functions:
Buttons | buttons () const |
void | setButtons ( Buttons b ) |
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 ) |
This property holds this property holds the style of buttons in the navigator.
Access functions:
Qt::ToolButtonStyle | toolButtonStyle () const |
void | setToolButtonStyle ( Qt::ToolButtonStyle v ) |
Constructs a horizontal list navigator with a given parent.
The signal is emited when the navigator is set on the first record in the set.
See also toFirst().
The signal is emited when the navigator is set on the last record in the set.
See also toLast().
The signal is emited when the navigator is set on the next record in the set.
See also toNext().
The signal is emited when the navigator is set on the previous record in the set.
See also toPrevious().
Associates a QwwListWidget instance with the navigator.
The method observes the list widget lw allowing to navigate through its items using the navigator.
Reimplemented from QAbstractSlider::sliderChange().
This method performs a change of slider value specified by change.
Moves navigator to the first record.
Does nothing if the navigator is already at the first record.
See also first().
Moves navigator to the last record.
Does nothing if the navigator is already at the last record.
See also last().
Moves navigator to the next record.
Does nothing if the navigator is already at the last record.
See also next().
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 |