QwwNavigationBar Class

The QwwNavigationBar class provides a widget similar to MS Outlook navigation bar. More...

Header: #include <QwwNavigationBar>

Properties

Public Functions

QwwNavigationBar(QWidget * parent = 0)
void addWidget(QWidget * child, const QIcon & icon, const QString & label = QString::null)
void addWidget(QWidget * child, const QString & label = QString::null)
const QPushButton * button(int index) const
int currentIndex() const
int indexOf(QWidget * widget) const
void insertWidget(int index, QWidget * child, const QIcon & icon, const QString & label = QString::null)
void insertWidget(int index, QWidget * child, const QString & label = QString::null)
void removeWidget(int index)
void setCurrentWidget(QWidget * widget)
void setWidgetIcon(int index, const QIcon & icon)
void setWidgetLabel(int index, const QString & label)
bool topWidgetIsVisible() const
QWidget * widget(int index) const
int widgetCount() const
QIcon widgetIcon(int index) const
QString widgetLabel(int index) const

Public Slots

void setCurrentIndex(int index)
void setTopWidgetVisible(bool v)

Signals

void currentIndexChanged(int index)
void topWidgetVisibleChanged(bool vis)
void widgetIconChanged(const QIcon & icon)
void widgetIconChanged(int index, const QIcon &)
void widgetLabelChanged(const QString & label)
void widgetLabelChanged(int index, const QString &)

Protected Functions

bool eventFilter(QObject *, QEvent *)

Detailed Description

The QwwNavigationBar class provides a widget similar to MS Outlook navigation bar.

Navigation bar

Action management

Actions can be added to a navigation bar which causes buttons representing them to appear in the bottom of the widget.

Property Documentation

currentIndex : int

This property holds this property holds the index position of the current bar.

Access functions:

int currentIndex() const
void setCurrentIndex(int index)

topWidgetVisible : bool

This property holds this property holds whether the top widget is visible.

If this property is true then a widget containing the current group is shown at the top of the widget. This property is true by default.

Access functions:

bool topWidgetIsVisible() const
void setTopWidgetVisible(bool v)

Member Function Documentation

QwwNavigationBar::QwwNavigationBar(QWidget * parent = 0)

Constructs a navigation bar widget with a given parent

void QwwNavigationBar::addWidget(QWidget * child, const QIcon & icon, const QString & label = QString::null)

Adds child with icon and label to the navigation bar at the last position.

void QwwNavigationBar::addWidget(QWidget * child, const QString & label = QString::null)

This is an overloaded function.

const QPushButton * QwwNavigationBar::button(int index) const

returns pointer to a button associated with a child under index

void QwwNavigationBar::currentIndexChanged(int index) [signal]

This signal is emitted whenever the current index of the widget changes to index

bool QwwNavigationBar::eventFilter(QObject *, QEvent *) [protected]

int QwwNavigationBar::indexOf(QWidget * widget) const

Returns an index of widget in the navigation bar

void QwwNavigationBar::insertWidget(int index, QWidget * child, const QIcon & icon, const QString & label = QString::null)

Inserts widget specified by child with icon and label to the navigation bar under position index

void QwwNavigationBar::insertWidget(int index, QWidget * child, const QString & label = QString::null)

This is an overloaded function.

void QwwNavigationBar::removeWidget(int index)

Removes widget specified by index from the navigation bar

void QwwNavigationBar::setCurrentWidget(QWidget * widget)

Sets widget as the currently visible widget.

void QwwNavigationBar::setWidgetIcon(int index, const QIcon & icon)

Associates icon with a widget under index

See also widgetIcon().

void QwwNavigationBar::setWidgetLabel(int index, const QString & label)

Sets label as the title for the widget under index

See also widgetLabel().

void QwwNavigationBar::topWidgetVisibleChanged(bool vis) [signal]

This signal is emitted whenever visibility of the top widget changes to vis

QWidget * QwwNavigationBar::widget(int index) const

Returns a pointer to the widget at position index

int QwwNavigationBar::widgetCount() const

Returns the number of widgets in the navigation bar.

QIcon QwwNavigationBar::widgetIcon(int index) const

returns icon of the widget under index

See also setWidgetIcon().

void QwwNavigationBar::widgetIconChanged(const QIcon & icon) [signal]

This signal is emitted when the icon of the current widget changes to icon.

void QwwNavigationBar::widgetIconChanged(int index, const QIcon &) [signal]

QString QwwNavigationBar::widgetLabel(int index) const

Returns label of the widget under index

See also setWidgetLabel().

void QwwNavigationBar::widgetLabelChanged(const QString & label) [signal]

This signal is emitted when the label of the current widget changes to label.

void QwwNavigationBar::widgetLabelChanged(int index, const QString &) [signal]