![]() |
SARibbon 2.5.2
SARibbon wiki
|
#include <SARibbonBarLayout.h>
类 | |
| class | PrivateData |
Protected 成员函数 | |
| void | resizeInLooseStyle () |
| void | resizeInCompactStyle () |
|
explicit |
|
virtual |
|
override |
| QAbstractButton * SARibbonBarLayout::applicationButton | ( | ) | const |
| int SARibbonBarLayout::calcMinTabBarWidth | ( | ) | const |
| int SARibbonBarLayout::categoryHeight | ( | ) | const |
|
override |
|
virtual |
| bool SARibbonBarLayout::isApplicationButtonVerticalExpansion | ( | ) | const |
| bool SARibbonBarLayout::isCompactStyle | ( | ) | const |
| bool SARibbonBarLayout::isLooseStyle | ( | ) | const |
| bool SARibbonBarLayout::isTabOnTitle | ( | ) | const |
|
override |
| void SARibbonBarLayout::layoutCategory | ( | ) |
| void SARibbonBarLayout::layoutStackedContainerWidget | ( | ) |
| void SARibbonBarLayout::layoutTitleRect | ( | ) |
RTL mode: title rect positions are mirrored
LTR mode: original title rect logic unchanged
| int SARibbonBarLayout::minimumModeMainBarHeight | ( | ) | const |
|
override |
| int SARibbonBarLayout::normalModeMainBarHeight | ( | ) | const |
| int SARibbonBarLayout::panelTitleHeight | ( | ) | const |
| SARibbonQuickAccessBar * SARibbonBarLayout::quickAccessBar | ( | ) | const |
| void SARibbonBarLayout::resetSize | ( | ) |
|
protected |
< 记录ribbonBar的最小宽度,这个用于给推荐宽度
RTL mode in compact style: start from right edge, retreat leftward
Right-side elements now advance from left edge (system buttons, corners, rightBtnGroup, quickAccessBar)
LTR mode: original compact style layout logic unchanged
|
protected |
< 记录ribbonBar的最小宽度,这个用于给推荐宽度
RTL mode: widgets are mirrored — start from right edge, retreat leftward
如果Application button是纵向扩展模式,那么不显示titleicon 纵向扩展的Application button将占用title和tab的高度
Application button不是纵向扩展,显示icon
titleBar上的元素布局完成,开始布局第二行 — start from right edge
! 如果是纵向扩展的Application button则只更新x位置,在第2步已经设定了位置
LTR mode: original layout logic unchanged
如果Application button是纵向扩展模式,那么不显示titleicon 纵向扩展的Application button将占用title和tab的高度
Application button不是纵向扩展,显示icon
这里不用SA::scaleSizeByHeight缩减quickAccessBar的比例: quickAccessBarSize = SA::scaleSizeByHeight(quickAccessBarSize, titleBarControlHeight); 原因是,如果quickAccessBar最后是一个widget,如果长度不足,这个widget是不会显示出来,假如默认QToolBar的高度是32, 而titlebar的高度一是28,肯定会导致宽度缩减,如果宽度缩减,且最后是一个窗口,那么这个窗口会不显示 针对工具栏类型的窗口,宽度高度都不进行比例缩减
titleBar上的元素布局完成,开始布局第二行
! 如果是纵向扩展的Application button则只更新x位置,在第2步已经设定了位置
这里不用SA::scaleSizeByHeight缩减rightButtonGroup的比例: rightBtnGroupSize = SA::scaleSizeByHeight(rightBtnGroupSize, tabBarControlHeight); 针对工具栏类型的窗口,宽度高度都不进行比例缩减
| SARibbonBar * SARibbonBarLayout::ribbonBar | ( | ) | const |
| SARibbonTabBar * SARibbonBarLayout::ribbonTabBar | ( | ) | const |
| SARibbonButtonGroupWidget * SARibbonBarLayout::rightButtonGroup | ( | ) | const |
| void SARibbonBarLayout::setApplicationButtonVerticalExpansion | ( | bool | on = true | ) |
| void SARibbonBarLayout::setCategoryHeight | ( | int | h | ) |
|
override |
| void SARibbonBarLayout::setPanelTitleHeight | ( | int | h | ) |
| void SARibbonBarLayout::setSystemButtonSize | ( | const QSize & | size | ) |
| void SARibbonBarLayout::setTabBarHeight | ( | int | h | ) |
| void SARibbonBarLayout::setTabOnTitle | ( | bool | on | ) |
| void SARibbonBarLayout::setTitleBarHeight | ( | int | h | ) |
| void SARibbonBarLayout::setWindowIcon | ( | const QIcon & | icon | ) |
|
override |
| SARibbonStackedWidget * SARibbonBarLayout::stackedContainerWidget | ( | ) | const |
| int SARibbonBarLayout::tabBarHeight | ( | ) | const |
|
override |
| int SARibbonBarLayout::titleBarHeight | ( | ) | const |
| SARibbonTitleIconWidget * SARibbonBarLayout::titleIconWidget | ( | ) | const |
| const QRect & SARibbonBarLayout::titleRect | ( | ) | const |
| QIcon SARibbonBarLayout::windowIcon | ( | ) | const |