RibbonBackstageView Class

The class for rendering backstage view window in ribbon concept. Can be top level window or placed on other windows. More...

Header: #include <RibbonBackstageView>
Inherits: QWidget

Public Functions

RibbonBackstageView(QWidget *parent = Q_NULL)
virtual ~RibbonBackstageView()
QRect actionGeometry(QAction *action) const
QWidget *activePage() const
QAction *addAction(const QIcon &icon, const QString &text)
QAction *addPage(QWidget *widget)
QAction *addSeparator()
bool isClosePrevented() const
QRect menuGeometry() const
void setActivePage(QWidget *widget)
void setClosePrevented(bool prevent)

Public Slots

void open()

Signals

void aboutToHide()
void aboutToShow()

Reimplemented Protected Functions

virtual void actionEvent(QActionEvent *event) override
virtual bool event(QEvent *event) override
virtual bool eventFilter(QObject *object, QEvent *event) override
virtual void hideEvent(QHideEvent *event) override
virtual void paintEvent(QPaintEvent *event) override
virtual void resizeEvent(QResizeEvent *event) override
virtual void showEvent(QShowEvent *event) override
virtual void wheelEvent(QWheelEvent *event) override

Detailed Description

Member Function Documentation

[explicit] RibbonBackstageView::RibbonBackstageView(QWidget *parent = Q_NULL)

Constructs RibbonBackstageView object with the given parent.

[virtual noexcept] RibbonBackstageView::~RibbonBackstageView()

Destructor of the RibbonBackstageView object.

[signal] void RibbonBackstageView::aboutToHide()

Signal is emitted just before the RibbonBackstageView is shown to the user.

[signal] void RibbonBackstageView::aboutToShow()

Signal is emitted just before the RibbonBackstageView is shown to the user.

[override virtual protected] void RibbonBackstageView::actionEvent(QActionEvent *event)

Reimplements: QWidget::actionEvent(QActionEvent *event).

QRect RibbonBackstageView::actionGeometry(QAction *action) const

Returns the rectangle that contains the given action.

QWidget *RibbonBackstageView::activePage() const

Returns an active widget from the current view.

See also setActivePage().

QAction *RibbonBackstageView::addAction(const QIcon &icon, const QString &text)

Creates a new action with an icon and some text. The function adds the newly created action to the view's list of actions, and returns it.

QAction *RibbonBackstageView::addPage(QWidget *widget)

Adding the new page to the view. Parameter widget is a pointer to the QWidget which will be placed onto page. Adding a page leads to the causing of tab on the left side of the view. To set the title of the page please use the fucntion QWidget::setWindowTitle()

QAction *RibbonBackstageView::addSeparator()

Adds page separator to the ribbon backstage view.

[override virtual protected] bool RibbonBackstageView::event(QEvent *event)

Reimplements: QWidget::event(QEvent *event).

[override virtual protected] bool RibbonBackstageView::eventFilter(QObject *object, QEvent *event)

Reimplements: QObject::eventFilter(QObject *watched, QEvent *event).

[override virtual protected] void RibbonBackstageView::hideEvent(QHideEvent *event)

Reimplements: QWidget::hideEvent(QHideEvent *event).

Returns the rectangle that contains the menu.

[slot] void RibbonBackstageView::open()

Opens the backstage view window.

[override virtual protected] void RibbonBackstageView::paintEvent(QPaintEvent *event)

Reimplements: QWidget::paintEvent(QPaintEvent *event).

[override virtual protected] void RibbonBackstageView::resizeEvent(QResizeEvent *event)

Reimplements: QWidget::resizeEvent(QResizeEvent *event).

void RibbonBackstageView::setActivePage(QWidget *widget)

Sets an active widget for the current view.

See also activePage().

[override virtual protected] void RibbonBackstageView::showEvent(QShowEvent *event)

Reimplements: QWidget::showEvent(QShowEvent *event).

[override virtual protected] void RibbonBackstageView::wheelEvent(QWheelEvent *event)

Reimplements: QWidget::wheelEvent(QWheelEvent *event).