![]() |
SARibbon 2.5.2
SARibbon wiki
|
#include <SARibbonSystemButtonBar.h>
类 | |
| class | PrivateData |
| The SARibbonSystemButtonBar class | |
Public 成员函数 | |
| SARibbonSystemButtonBar (QWidget *parent) | |
| Constructor for SARibbonSystemButtonBar | |
| SARibbonSystemButtonBar (QWidget *parent, Qt::WindowFlags flags) | |
| Constructor with window flags | |
| ~SARibbonSystemButtonBar () | |
| Destructor for SARibbonSystemButtonBar | |
| void | setupMinimizeButton (bool on) |
| Setup minimize button | |
| void | setupMaximizeButton (bool on) |
| Setup maximize button | |
| void | setupCloseButton (bool on) |
| Setup close button | |
| void | updateWindowFlag () |
| Use the WindowFlag of the top-level widget as WindowFlag | |
| void | updateWindowFlag (Qt::WindowFlags flags) |
| Update window flag with specified flags | |
| void | setButtonWidthStretch (int close=4, int max=3, int min=3) |
| Set button width ratio, final button width will be set according to this ratio | |
| void | setWindowTitleHeight (int h) |
| Set title bar height | |
| int | windowTitleHeight () const |
| Get title bar height | |
| void | setWindowButtonWidth (int w) |
| Set standard system button width | |
| int | windowButtonWidth () const |
| Get standard system button width | |
| void | setWindowStates (Qt::WindowStates s) |
| Set Qt::WindowStates | |
| Qt::WindowFlags | windowButtonFlags () const |
| Get button states only | |
| QAbstractButton * | minimizeButton () const |
| Get minimize button | |
| QAbstractButton * | maximizeButton () const |
| Get maximize button | |
| QAbstractButton * | closeButton () const |
| Get close button | |
| void | setIconSize (const QSize &ic) |
| Set icon size | |
| QSize | iconSize () const |
| Get icon size | |
| void | addAction (QAction *a) |
| Generate and add an action | |
| void | addMenuAction (QAction *menuAction, QToolButton::ToolButtonPopupMode popupMode=QToolButton::InstantPopup) |
| Add menu action | |
| QAction * | addMenuAction (QMenu *menu, QToolButton::ToolButtonPopupMode popupMode=QToolButton::InstantPopup) |
| Add menu action and return the action | |
| QAction * | addSeparator () |
| Add separator | |
| QAction * | addWidget (QWidget *w) |
| Add widget | |
| virtual QSize | sizeHint () const Q_DECL_OVERRIDE |
| Get size hint | |
| bool | eventFilter (QObject *obj, QEvent *event) override |
| Capture mainwindow events | |
Protected 槽 | |
| Q_SLOT void | closeWindow () |
| Close window slot | |
| Q_SLOT void | minimizeWindow () |
| Minimize window slot | |
| Q_SLOT void | maximizeWindow () |
| Maximize window slot | |
Protected 成员函数 | |
| virtual void | resizeEvent (QResizeEvent *e) Q_DECL_OVERRIDE |
| Handle resize event | |
|
explicit |
Constructor for SARibbonSystemButtonBar
|
explicit |
Constructor with window flags
| SARibbonSystemButtonBar::~SARibbonSystemButtonBar | ( | ) |
Destructor for SARibbonSystemButtonBar
| void SARibbonSystemButtonBar::addAction | ( | QAction * | a | ) |
Generate and add an action
| void SARibbonSystemButtonBar::addMenuAction | ( | QAction * | menuAction, |
| QToolButton::ToolButtonPopupMode | popupMode = QToolButton::InstantPopup |
||
| ) |
Add menu action
| QAction * SARibbonSystemButtonBar::addMenuAction | ( | QMenu * | menu, |
| QToolButton::ToolButtonPopupMode | popupMode = QToolButton::InstantPopup |
||
| ) |
Add menu action and return the action
| QAction * SARibbonSystemButtonBar::addSeparator | ( | ) |
Add separator
| QAction * SARibbonSystemButtonBar::addWidget | ( | QWidget * | w | ) |
Add widget
| QAbstractButton * SARibbonSystemButtonBar::closeButton | ( | ) | const |
Get close button
|
protectedslot |
Close window slot
|
override |
Capture mainwindow events
| QSize SARibbonSystemButtonBar::iconSize | ( | ) | const |
Get icon size
| QAbstractButton * SARibbonSystemButtonBar::maximizeButton | ( | ) | const |
Get maximize button
|
protectedslot |
Maximize window slot
| QAbstractButton * SARibbonSystemButtonBar::minimizeButton | ( | ) | const |
Get minimize button
|
protectedslot |
Minimize window slot
|
protectedvirtual |
Handle resize event
| void SARibbonSystemButtonBar::setButtonWidthStretch | ( | int | close = 4, |
| int | max = 3, |
||
| int | min = 3 |
||
| ) |
Set button width ratio, final button width will be set according to this ratio
| void SARibbonSystemButtonBar::setIconSize | ( | const QSize & | ic | ) |
Set icon size
| void SARibbonSystemButtonBar::setupCloseButton | ( | bool | on | ) |
Setup close button
| void SARibbonSystemButtonBar::setupMaximizeButton | ( | bool | on | ) |
Setup maximize button
| void SARibbonSystemButtonBar::setupMinimizeButton | ( | bool | on | ) |
Setup minimize button
| void SARibbonSystemButtonBar::setWindowButtonWidth | ( | int | w | ) |
Set standard system button width
| void SARibbonSystemButtonBar::setWindowStates | ( | Qt::WindowStates | s | ) |
Set Qt::WindowStates
| void SARibbonSystemButtonBar::setWindowTitleHeight | ( | int | h | ) |
Set title bar height
|
virtual |
Get size hint
| void SARibbonSystemButtonBar::updateWindowFlag | ( | ) |
Use the WindowFlag of the top-level widget as WindowFlag
| void SARibbonSystemButtonBar::updateWindowFlag | ( | Qt::WindowFlags | flags | ) |
Update window flag with specified flags
| Qt::WindowFlags SARibbonSystemButtonBar::windowButtonFlags | ( | ) | const |
Get button states only
| int SARibbonSystemButtonBar::windowButtonWidth | ( | ) | const |
Get standard system button width
| int SARibbonSystemButtonBar::windowTitleHeight | ( | ) | const |
Get title bar height