![]() |
SARibbon 2.5.2
SARibbon wiki
|
#include <SARibbonBar.h>
类 | |
| class | PrivateData |
Public 类型 | |
| enum | RibbonStyleFlag { RibbonStyleLoose = 0x0001 , RibbonStyleCompact = 0x0002 , RibbonStyleThreeRow = 0x0010 , RibbonStyleTwoRow = 0x0020 , RibbonStyleLooseThreeRow = RibbonStyleLoose | RibbonStyleThreeRow , RibbonStyleCompactThreeRow = RibbonStyleCompact | RibbonStyleThreeRow , RibbonStyleLooseTwoRow = RibbonStyleLoose | RibbonStyleTwoRow , RibbonStyleCompactTwoRow = RibbonStyleCompact | RibbonStyleTwoRow } |
| enum | RibbonMode { MinimumRibbonMode , NormalRibbonMode } |
| 定义当前ribbon 的状态 更多... | |
| using | FpCategoryIterate = std::function< bool(SARibbonCategory *) > |
| using | FpPanelIterate = SARibbonCategory::FpPanelIterate |
| using | FpContextCategoryHighlight = std::function< QColor(const QColor &) > |
| 这是针对上下文标签的高亮颜色绘制,用户可以设置一个函数指针,来针对上下文标签的高亮颜色进行调整 | |
信号 | |
| void | applicationButtonClicked () |
| void | currentRibbonTabChanged (int index) |
| void | ribbonModeChanged (SARibbonBar::RibbonMode nowState) |
| void | ribbonStyleChanged (SARibbonBar::RibbonStyles nowStyle) |
| void | titleBarHeightChanged (int oldHeight, int newHeight) |
| void | actionTriggered (QAction *action) |
Public 成员函数 | |
| SARibbonBar (QWidget *parent=nullptr) | |
| Constructor | |
| ~SARibbonBar () | |
| Destructor | |
| QAbstractButton * | applicationButton () |
| Get application button | |
| void | setApplicationButton (QAbstractButton *btn) |
| Set application button | |
| SARibbonTabBar * | ribbonTabBar () |
| Get ribbon tab bar | |
| SARibbonCategory * | addCategoryPage (const QString &title) |
| Add a category page | |
| void | addCategoryPage (SARibbonCategory *category) |
| Add a category page | |
| Q_INVOKABLE void | addCategoryPage (QWidget *category) |
| Overloaded function for Qt designer support | |
| SARibbonCategory * | insertCategoryPage (const QString &title, int index) |
| Insert a category page at specified index | |
| void | insertCategoryPage (SARibbonCategory *category, int index) |
| Insert a category page at specified index | |
| SARibbonCategory * | categoryByName (const QString &title) const |
| Find category by name | |
| SARibbonCategory * | categoryByObjectName (const QString &objname) const |
| Find category by object name | |
| SARibbonCategory * | categoryByIndex (int index) const |
| Find category by index | |
| void | hideCategory (SARibbonCategory *category) |
| Hide category (not delete) | |
| void | showCategory (SARibbonCategory *category) |
| Show hidden category | |
| bool | isCategoryVisible (const SARibbonCategory *c) const |
| Check if category is visible | |
| int | categoryIndex (const SARibbonCategory *c) const |
| Get category index | |
| void | moveCategory (int from, int to) |
| Move category from one index to another | |
| QList< SARibbonCategory * > | categoryPages (bool getAll=true) const |
| Get all category pages | |
| void | removeCategory (SARibbonCategory *category) |
| Remove category | |
| SARibbonContextCategory * | addContextCategory (const QString &title, const QColor &color=QColor(), const QVariant &id=QVariant()) |
| Add a context category | |
| void | addContextCategory (SARibbonContextCategory *context) |
| Add a context category | |
| void | showContextCategory (SARibbonContextCategory *context) |
| Show context category | |
| void | hideContextCategory (SARibbonContextCategory *context) |
| Hide context category | |
| bool | isContextCategoryVisible (SARibbonContextCategory *context) |
| Check if context category is visible | |
| void | setContextCategoryVisible (SARibbonContextCategory *context, bool visible) |
| Set context category visibility | |
| QList< SARibbonContextCategory * > | contextCategoryList () const |
| Get all context categories | |
| void | destroyContextCategory (SARibbonContextCategory *context) |
| Destroy context category | |
| QList< int > | currentVisibleContextCategoryTabIndexs () const |
| Get current visible context category tab indexes | |
| void | setMinimumMode (bool isHide) |
| Set minimum mode | |
| bool | isMinimumMode () const |
| Check if in minimum mode | |
| void | showMinimumModeButton (bool isShow=true) |
| Show minimum mode button | |
| bool | haveShowMinimumModeButton () const |
| Check if minimum mode button is shown | |
| QAction * | minimumModeAction () const |
| Get minimum mode action | |
| bool | isEnableTabDoubleClickToMinimumMode () const |
| Check if tab double click enables minimum mode | |
| void | setTabDoubleClickToMinimumMode (bool on=true) const |
| Set tab double click to enable minimum mode | |
| RibbonMode | currentRibbonState () const |
| Get current ribbon state | |
| int | tabBarHeight () const |
| Get tab bar height | |
| void | setTabBarHeight (int h, bool resizeByNow=true) |
| Set tab bar height | |
| int | titleBarHeight () const |
| Get title bar height | |
| void | setTitleBarHeight (int h, bool resizeByNow=true) |
| Set title bar height | |
| int | categoryHeight () const |
| Get category height | |
| void | setCategoryHeight (int h, bool resizeByNow=true) |
| Set category height | |
| int | normalModeMainBarHeight () const |
| Get main bar height in normal mode | |
| int | minimumModeMainBarHeight () const |
| Get main bar height in minimum mode | |
| SARibbonButtonGroupWidget * | activeRightButtonGroup () |
| Get active right button group | |
| SARibbonButtonGroupWidget * | rightButtonGroup () |
| Get right button group | |
| SARibbonQuickAccessBar * | activeQuickAccessBar () |
| Get active quick access bar | |
| SARibbonQuickAccessBar * | quickAccessBar () |
| Get quick access bar | |
| SARibbonTitleIconWidget * | titleIconWidget () const |
| Get title icon widget | |
| void | setTitleIconVisible (bool on=true) |
| Set title icon visibility | |
| bool | isTitleIconVisible () const |
| Check if title icon is visible | |
| void | setRibbonStyle (RibbonStyles v) |
| Set ribbon style | |
| RibbonStyles | currentRibbonStyle () const |
| Get current ribbon style | |
| void | setCurrentIndex (int index) |
| Set current ribbon index | |
| int | currentIndex () |
| Get current tab index | |
| void | raiseCategory (SARibbonCategory *category) |
| Raise category to show it | |
| bool | isTwoRowStyle () const |
| Check if current style is two-row | |
| bool | isThreeRowStyle () const |
| Check if current style is three-row | |
| bool | isLooseStyle () const |
| Check if current style is loose | |
| bool | isCompactStyle () const |
| Check if current style is compact | |
| void | updateRibbonGeometry () |
| Update ribbon geometry | |
| SARibbonPanel::PanelLayoutMode | panelLayoutMode () const |
| Get panel layout mode | |
| void | setPanelLayoutMode (SARibbonPanel::PanelLayoutMode m) |
| Set panel layout mode | |
| void | setTabOnTitle (bool on) |
| Set tab on title | |
| bool | isTabOnTitle () const |
| Check if tab is on title | |
| void | setTabBarBaseLineColor (const QColor &clr) |
| Set tab bar baseline color | |
| QColor | tabBarBaseLineColor () const |
| Get tab bar baseline color | |
| void | setWindowTitleTextColor (const QColor &clr) |
| Set window title text color | |
| QColor | windowTitleTextColor () const |
| Get window title text color | |
| void | setTitleVisible (bool on=false) |
| Set title visibility | |
| bool | isTitleVisible () const |
| Check if title is visible | |
| void | setWindowTitleBackgroundBrush (const QBrush &bk) |
| Set window title background brush | |
| QBrush | windowTitleBackgroundBrush () const |
| Get window title background brush | |
| void | setWindowTitleAligment (Qt::Alignment al) |
| Set window title alignment | |
| Qt::Alignment | windowTitleAligment () const |
| Get window title alignment | |
| void | setEnableWordWrap (bool on) |
| Set enable word wrap | |
| bool | isEnableWordWrap () const |
| Check if word wrap is enabled | |
| void | setButtonMaximumAspectRatio (qreal fac=1.4) |
| Set button maximum aspect ratio | |
| qreal | buttonMaximumAspectRatio () const |
| Get button maximum aspect ratio | |
| void | setPanelTitleHeight (int h) |
| Set panel title height | |
| int | panelTitleHeight () const |
| Get panel title height | |
| void | setEnableShowPanelTitle (bool on) |
| Set enable show panel title | |
| bool | isEnableShowPanelTitle () const |
| Check if panel title is shown | |
| void | setPanelSpacing (int n) |
| Set panel spacing | |
| int | panelSpacing () const |
| Get panel spacing | |
| void | setPanelToolButtonIconSize (const QSize &smallSize, const QSize &largeSize) |
| Set panel tool button icon sizes | |
| QPair< QSize, QSize > | panelToolButtonIconSize () const |
| Get panel tool button icon sizes | |
| void | setPanelLargeIconSize (const QSize &largeSize) |
| Set panel large icon size | |
| QSize | panelLargeIconSize () const |
| Get panel large icon size | |
| void | setPanelSmallIconSize (const QSize &smallSize) |
| Set panel small icon size | |
| QSize | panelSmallIconSize () const |
| Get panel small icon size | |
| SARibbonStackedWidget * | ribbonStackedWidget () |
| Get ribbon stacked widget | |
| void | setContextCategoryColorList (const QList< QColor > &cls) |
| Set context category color list | |
| QList< QColor > | contextCategoryColorList () const |
| Get context category color list | |
| void | setContextCategoryTitleTextColor (const QColor &clr) |
| Set context category title text color | |
| QColor | contextCategoryTitleTextColor () const |
| Get context category title text color | |
| void | setContextCategoryColorHighLight (FpContextCategoryHighlight fp) |
| Set context category color highlight function | |
| void | setRibbonAlignment (SARibbonAlignment al) |
| Set ribbon alignment | |
| SARibbonAlignment | ribbonAlignment () const |
| Get ribbon alignment | |
| bool | iterateCategory (FpCategoryIterate fp) const |
| Iterate through all categories | |
| bool | iteratePanel (FpPanelIterate fp) const |
| Iterate through all panels | |
| void | setCornerWidgetVisible (bool on, Qt::Corner c=Qt::TopLeftCorner) |
| Set corner widget visibility | |
| void | setApplicationButtonVerticalExpansion (bool on=true) |
| Set application button vertical expansion | |
| bool | isApplicationButtonVerticalExpansion () const |
| Check if application button is vertically expanded | |
| QList< QAction * > | allActions () const |
| Get all actions in panels | |
| bool | isUseRibbonFrame () const |
| Check if ribbon frame is used | |
静态 Public 成员函数 | |
| static bool | isTwoRowStyle (RibbonStyles s) |
| Check if the ribbon style is two-row mode | |
| static bool | isThreeRowStyle (RibbonStyles s) |
| Check if the ribbon style is three-row mode | |
| static bool | isLooseStyle (RibbonStyles s) |
| Check if the ribbon style is loose (Office) style | |
| static bool | isCompactStyle (RibbonStyles s) |
| Check if the ribbon style is compact (WPS) style | |
| static QString | versionString () |
| Get version information | |
| static QList< QColor > | defaultContextCategoryColorList () |
| Get default context category color list | |
| static void | initHighDpi () |
| Initialize high DPI support | |
Protected 槽 | |
| void | onWindowTitleChanged (const QString &title) |
| Slot for window title changed | |
| void | onWindowIconChanged (const QIcon &i) |
| Slot for window icon changed | |
| void | onCategoryWindowTitleChanged (const QString &title) |
| Slot for category window title changed | |
| void | onStackWidgetHided () |
| Slot for stack widget hided | |
| virtual void | onCurrentRibbonTabChanged (int index) |
| Slot for current ribbon tab changed | |
| virtual void | onCurrentRibbonTabClicked (int index) |
| Slot for current ribbon tab clicked | |
| virtual void | onCurrentRibbonTabDoubleClicked (int index) |
| Slot for current ribbon tab double clicked | |
| void | onContextsCategoryPageAdded (SARibbonCategory *category) |
| Slot for contexts category page added | |
| void | onContextsCategoryCategoryNameChanged (SARibbonCategory *category, const QString &title) |
| Slot for contexts category name changed | |
| void | onTabMoved (int from, int to) |
| Slot for tab moved | |
Protected 成员函数 | |
| bool | eventFilter (QObject *obj, QEvent *e) override |
| Event filter | |
| int | calcMinTabBarWidth () const |
| Calculate minimum tab bar width | |
| void | updateCategoryTitleToTabName () |
| Update category title to tab name | |
| void | setSystemButtonGroupSize (const QSize &s) |
| Set system button group size | |
| void | setMainWindowStyles (SARibbonMainWindowStyles s) |
| Set main window styles | |
| void | setRibbonMainwindowStyle () |
| Set ribbon main window style | |
| virtual void | paintEvent (QPaintEvent *e) override |
| Paint event handler | |
| virtual void | moveEvent (QMoveEvent *e) override |
| Move event handler | |
| virtual void | changeEvent (QEvent *e) override |
| Change event handler | |
| virtual void | paintTabbarBaseLine (QPainter &painter) |
| Paint tab bar baseline | |
| virtual void | paintWindowTitle (QPainter &painter, const QString &title, const QRect &titleRegion) |
| Paint window title | |
| virtual void | paintContextCategoryTab (QPainter &painter, const QString &title, const QRect &contextRect, const QColor &color) |
| Paint context category tab | |
属性 | |
| RibbonStyles | ribbonStyle |
| bool | minimumMode |
| bool | minimumModeButton |
| QColor | windowTitleTextColor |
| QColor | tabBarBaseLineColor |
| Qt::Alignment | windowTitleAligment |
| bool | enableWordWrap |
| bool | enableShowPanelTitle |
| bool | tabOnTitle |
| SARibbonPanel::PanelLayoutMode | panelLayoutMode |
友元 | |
| class | SARibbonMainWindow |
| class | SARibbonSystemButtonBar |
|
explicit |
Constructor
|
signal |
| SARibbonQuickAccessBar * SARibbonBar::activeQuickAccessBar | ( | ) |
Get active quick access bar
| SARibbonButtonGroupWidget * SARibbonBar::activeRightButtonGroup | ( | ) |
Get active right button group
| SARibbonCategory * SARibbonBar::addCategoryPage | ( | const QString & | title | ) |
Add a category page
| void SARibbonBar::addCategoryPage | ( | QWidget * | category | ) |
Overloaded function for Qt designer support
| void SARibbonBar::addCategoryPage | ( | SARibbonCategory * | category | ) |
Add a category page
| SARibbonContextCategory * SARibbonBar::addContextCategory | ( | const QString & | title, |
| const QColor & | color = QColor(), |
||
| const QVariant & | id = QVariant() |
||
| ) |
Add a context category
| void SARibbonBar::addContextCategory | ( | SARibbonContextCategory * | context | ) |
Add a context category
| QList< QAction * > SARibbonBar::allActions | ( | ) | const |
Get all actions in panels
| QAbstractButton * SARibbonBar::applicationButton | ( | ) |
Get application button
|
signal |
| qreal SARibbonBar::buttonMaximumAspectRatio | ( | ) | const |
Get button maximum aspect ratio
|
protected |
Calculate minimum tab bar width
| SARibbonCategory * SARibbonBar::categoryByIndex | ( | int | index | ) | const |
Find category by index
| SARibbonCategory * SARibbonBar::categoryByName | ( | const QString & | title | ) | const |
Find category by name
| SARibbonCategory * SARibbonBar::categoryByObjectName | ( | const QString & | objname | ) | const |
Find category by object name
| int SARibbonBar::categoryHeight | ( | ) | const |
Get category height
| int SARibbonBar::categoryIndex | ( | const SARibbonCategory * | c | ) | const |
Get category index
| QList< SARibbonCategory * > SARibbonBar::categoryPages | ( | bool | getAll = true | ) | const |
Get all category pages
|
overrideprotectedvirtual |
Change event handler
这种是针对先new 一个对象,再设置到MainWindow的情况,例如 SARibbonBar* ribbon = new SARibbonBar(); mainwinodw->setRibbonBar(ribbon);
这种方式,构造的时候由于没有设置父窗口,因此,如果在构造函数绑定信号槽就有可能绑定不上(parent为空) 所以在事件里绑定
| QList< QColor > SARibbonBar::contextCategoryColorList | ( | ) | const |
Get context category color list
| QList< SARibbonContextCategory * > SARibbonBar::contextCategoryList | ( | ) | const |
Get all context categories
| QColor SARibbonBar::contextCategoryTitleTextColor | ( | ) | const |
Get context category title text color
| int SARibbonBar::currentIndex | ( | ) |
Get current tab index
| SARibbonBar::RibbonMode SARibbonBar::currentRibbonState | ( | ) | const |
Get current ribbon state
| SARibbonBar::RibbonStyles SARibbonBar::currentRibbonStyle | ( | ) | const |
Get current ribbon style
|
signal |
| QList< int > SARibbonBar::currentVisibleContextCategoryTabIndexs | ( | ) | const |
Get current visible context category tab indexes
|
static |
Get default context category color list
| void SARibbonBar::destroyContextCategory | ( | SARibbonContextCategory * | context | ) |
Destroy context category
1、如果上下文标签显示中,先隐藏
2、删除上下文标签的相关内容
|
overrideprotected |
Event filter
| bool SARibbonBar::haveShowMinimumModeButton | ( | ) | const |
Check if minimum mode button is shown
| void SARibbonBar::hideCategory | ( | SARibbonCategory * | category | ) |
Hide category (not delete)
| void SARibbonBar::hideContextCategory | ( | SARibbonContextCategory * | context | ) |
Hide context category
|
static |
Initialize high DPI support
| SARibbonCategory * SARibbonBar::insertCategoryPage | ( | const QString & | title, |
| int | index | ||
| ) |
Insert a category page at specified index
| void SARibbonBar::insertCategoryPage | ( | SARibbonCategory * | category, |
| int | index | ||
| ) |
Insert a category page at specified index
| bool SARibbonBar::isApplicationButtonVerticalExpansion | ( | ) | const |
Check if application button is vertically expanded
| bool SARibbonBar::isCategoryVisible | ( | const SARibbonCategory * | c | ) | const |
Check if category is visible
| bool SARibbonBar::isCompactStyle | ( | ) | const |
Check if current style is compact
|
static |
Check if the ribbon style is compact (WPS) style
| bool SARibbonBar::isContextCategoryVisible | ( | SARibbonContextCategory * | context | ) |
Check if context category is visible
| bool SARibbonBar::isEnableShowPanelTitle | ( | ) | const |
Check if panel title is shown
| bool SARibbonBar::isEnableTabDoubleClickToMinimumMode | ( | ) | const |
Check if tab double click enables minimum mode
| bool SARibbonBar::isEnableWordWrap | ( | ) | const |
Check if word wrap is enabled
| bool SARibbonBar::isLooseStyle | ( | ) | const |
Check if current style is loose
| bool SARibbonBar::isMinimumMode | ( | ) | const |
Check if in minimum mode
| bool SARibbonBar::isTabOnTitle | ( | ) | const |
Check if tab is on title
| bool SARibbonBar::isThreeRowStyle | ( | ) | const |
Check if current style is three-row
|
static |
Check if the ribbon style is three-row mode
| bool SARibbonBar::isTitleIconVisible | ( | ) | const |
Check if title icon is visible
| bool SARibbonBar::isTitleVisible | ( | ) | const |
Check if title is visible
| bool SARibbonBar::isTwoRowStyle | ( | ) | const |
Check if current style is two-row
|
static |
Check if the ribbon style is two-row mode
| bool SARibbonBar::isUseRibbonFrame | ( | ) | const |
Check if ribbon frame is used
| bool SARibbonBar::iterateCategory | ( | FpCategoryIterate | fp | ) | const |
Iterate through all categories
| bool SARibbonBar::iteratePanel | ( | FpPanelIterate | fp | ) | const |
Iterate through all panels
| QAction * SARibbonBar::minimumModeAction | ( | ) | const |
Get minimum mode action
| int SARibbonBar::minimumModeMainBarHeight | ( | ) | const |
Get main bar height in minimum mode
| void SARibbonBar::moveCategory | ( | int | from, |
| int | to | ||
| ) |
Move category from one index to another
|
overrideprotectedvirtual |
Move event handler
| int SARibbonBar::normalModeMainBarHeight | ( | ) | const |
Get main bar height in normal mode
|
protectedslot |
Slot for category window title changed
|
protectedslot |
Slot for contexts category name changed
|
protectedslot |
Slot for contexts category page added
|
protectedvirtualslot |
Slot for current ribbon tab changed
|
protectedvirtualslot |
Slot for current ribbon tab clicked
|
protectedvirtualslot |
Slot for current ribbon tab double clicked
|
protectedslot |
Slot for stack widget hided
|
protectedslot |
Slot for tab moved
|
protectedslot |
Slot for window icon changed
|
protectedslot |
Slot for window title changed
|
protectedvirtual |
Paint context category tab
|
protectedvirtual |
Paint tab bar baseline
|
protectedvirtual |
Paint window title
| QSize SARibbonBar::panelLargeIconSize | ( | ) | const |
Get panel large icon size
| SARibbonPanel::PanelLayoutMode SARibbonBar::panelLayoutMode | ( | ) | const |
Get panel layout mode
| QSize SARibbonBar::panelSmallIconSize | ( | ) | const |
Get panel small icon size
| int SARibbonBar::panelSpacing | ( | ) | const |
Get panel spacing
| int SARibbonBar::panelTitleHeight | ( | ) | const |
Get panel title height
| QPair< QSize, QSize > SARibbonBar::panelToolButtonIconSize | ( | ) | const |
Get panel tool button icon sizes
| SARibbonQuickAccessBar * SARibbonBar::quickAccessBar | ( | ) |
Get quick access bar
| void SARibbonBar::raiseCategory | ( | SARibbonCategory * | category | ) |
Raise category to show it
| void SARibbonBar::removeCategory | ( | SARibbonCategory * | category | ) |
Remove category
| SARibbonAlignment SARibbonBar::ribbonAlignment | ( | ) | const |
Get ribbon alignment
|
signal |
| SARibbonStackedWidget * SARibbonBar::ribbonStackedWidget | ( | ) |
Get ribbon stacked widget
|
signal |
| SARibbonTabBar * SARibbonBar::ribbonTabBar | ( | ) |
Get ribbon tab bar
| SARibbonButtonGroupWidget * SARibbonBar::rightButtonGroup | ( | ) |
Get right button group
| void SARibbonBar::setApplicationButton | ( | QAbstractButton * | btn | ) |
Set application button
| void SARibbonBar::setApplicationButtonVerticalExpansion | ( | bool | on = true | ) |
Set application button vertical expansion
| void SARibbonBar::setButtonMaximumAspectRatio | ( | qreal | fac = 1.4 | ) |
Set button maximum aspect ratio
| void SARibbonBar::setCategoryHeight | ( | int | h, |
| bool | resizeByNow = true |
||
| ) |
Set category height
| void SARibbonBar::setContextCategoryColorHighLight | ( | FpContextCategoryHighlight | fp | ) |
Set context category color highlight function
| void SARibbonBar::setContextCategoryColorList | ( | const QList< QColor > & | cls | ) |
Set context category color list
| void SARibbonBar::setContextCategoryTitleTextColor | ( | const QColor & | clr | ) |
Set context category title text color
| void SARibbonBar::setContextCategoryVisible | ( | SARibbonContextCategory * | context, |
| bool | visible | ||
| ) |
Set context category visibility
| void SARibbonBar::setCornerWidgetVisible | ( | bool | on, |
| Qt::Corner | c = Qt::TopLeftCorner |
||
| ) |
Set corner widget visibility
| void SARibbonBar::setCurrentIndex | ( | int | index | ) |
Set current ribbon index
| void SARibbonBar::setEnableShowPanelTitle | ( | bool | on | ) |
Set enable show panel title
| void SARibbonBar::setEnableWordWrap | ( | bool | on | ) |
Set enable word wrap
|
protected |
Set main window styles
更新标题栏的区域位置
| void SARibbonBar::setMinimumMode | ( | bool | isMinimum | ) |
Set minimum mode
| void SARibbonBar::setPanelLargeIconSize | ( | const QSize & | largeSize | ) |
Set panel large icon size
| void SARibbonBar::setPanelLayoutMode | ( | SARibbonPanel::PanelLayoutMode | m | ) |
Set panel layout mode
| void SARibbonBar::setPanelSmallIconSize | ( | const QSize & | smallSize | ) |
Set panel small icon size
| void SARibbonBar::setPanelSpacing | ( | int | n | ) |
Set panel spacing
| void SARibbonBar::setPanelTitleHeight | ( | int | h | ) |
Set panel title height
| void SARibbonBar::setPanelToolButtonIconSize | ( | const QSize & | smallSize, |
| const QSize & | largeSize | ||
| ) |
Set panel tool button icon sizes
| void SARibbonBar::setRibbonAlignment | ( | SARibbonAlignment | al | ) |
Set ribbon alignment
| void SARibbonBar::setRibbonStyle | ( | RibbonStyles | v | ) |
Set ribbon style
|
protected |
Set system button group size
| void SARibbonBar::setTabBarBaseLineColor | ( | const QColor & | clr | ) |
Set tab bar baseline color
| void SARibbonBar::setTabBarHeight | ( | int | h, |
| bool | resizeByNow = true |
||
| ) |
Set tab bar height
| void SARibbonBar::setTabDoubleClickToMinimumMode | ( | bool | on = true | ) | const |
Set tab double click to enable minimum mode
| void SARibbonBar::setTabOnTitle | ( | bool | on | ) |
Set tab on title
| void SARibbonBar::setTitleBarHeight | ( | int | h, |
| bool | resizeByNow = true |
||
| ) |
Set title bar height
| void SARibbonBar::setTitleIconVisible | ( | bool | on = true | ) |
Set title icon visibility
| void SARibbonBar::setTitleVisible | ( | bool | on = false | ) |
Set title visibility
| void SARibbonBar::setWindowTitleAligment | ( | Qt::Alignment | al | ) |
Set window title alignment
| void SARibbonBar::setWindowTitleBackgroundBrush | ( | const QBrush & | bk | ) |
Set window title background brush
| void SARibbonBar::setWindowTitleTextColor | ( | const QColor & | clr | ) |
Set window title text color
| void SARibbonBar::showCategory | ( | SARibbonCategory * | category | ) |
Show hidden category
| void SARibbonBar::showContextCategory | ( | SARibbonContextCategory * | context | ) |
Show context category
| void SARibbonBar::showMinimumModeButton | ( | bool | isShow = true | ) |
Show minimum mode button
| QColor SARibbonBar::tabBarBaseLineColor | ( | ) | const |
Get tab bar baseline color
| int SARibbonBar::tabBarHeight | ( | ) | const |
Get tab bar height
| int SARibbonBar::titleBarHeight | ( | ) | const |
Get title bar height
|
signal |
| SARibbonTitleIconWidget * SARibbonBar::titleIconWidget | ( | ) | const |
Get title icon widget
|
protected |
Update category title to tab name
| void SARibbonBar::updateRibbonGeometry | ( | ) |
Update ribbon geometry
|
static |
Get version information
| Qt::Alignment SARibbonBar::windowTitleAligment | ( | ) | const |
Get window title alignment
| QBrush SARibbonBar::windowTitleBackgroundBrush | ( | ) | const |
Get window title background brush
| QColor SARibbonBar::windowTitleTextColor | ( | ) | const |
Get window title text color