35 void setOptionAction(QAction* action);
38 bool isHaveOptionAction()
const;
47 QWidget* lastWidget()
const;
50 void move(
int from,
int to);
54 void updateGeomArray();
57 int indexByAction(QAction* action)
const;
60 int panelTitleHeight()
const;
63 void setPanelTitleHeight(
int newTitleHeight);
66 bool isEnableShowPanelTitle()
const;
69 void setEnableShowPanelTitle(
bool on);
72 int largeButtonHeight()
const;
75 int panelTitleSpace()
const;
78 void setPanelTitleSpace(
int newTitleSpace);
84 void setToolButtonIconSize(
const QSize& smallSize,
const QSize& largeSize);
86 QPair< QSize, QSize > toolButtonIconSize()
const;
89 void setLargeIconSize(
const QSize& largeSize);
90 QSize largeIconSize()
const;
93 void setSmallIconSize(
const QSize& largeSize);
94 QSize smallIconSize()
const;
97 bool isEnableWordWrap()
const;
99 qreal buttonMaximumAspectRatio()
const;
103 void addItem(QLayoutItem* item) Q_DECL_OVERRIDE;
106 QLayoutItem* itemAt(
int index)
const Q_DECL_OVERRIDE;
109 QLayoutItem* takeAt(
int index) Q_DECL_OVERRIDE;
112 int count()
const Q_DECL_OVERRIDE;
115 bool isEmpty()
const Q_DECL_OVERRIDE;
118 void invalidate() Q_DECL_OVERRIDE;
121 Qt::Orientations expandingDirections()
const Q_DECL_OVERRIDE;
122 void setGeometry(
const QRect& rect) Q_DECL_OVERRIDE;
123 QSize minimumSize()
const Q_DECL_OVERRIDE;
124 QSize sizeHint()
const Q_DECL_OVERRIDE;
128 QSize optionActionButtonSize()
const;
134 void updateGeomArray(
const QRect& setrect);
136 void recalcExpandGeomArray(
const QRect& setrect);
138 void setEnableWordWrap(
bool on);
140 void setButtonMaximumAspectRatio(qreal fac = 1.4);
144 void columnWidthInfo(
int colindex,
int& width,
int& maximum)
const;
150 QList< SARibbonPanelItem* > mItems;
151 int mColumnCount { 0 };
152 bool mExpandFlag {
false };
154 QSize mSmallToolButtonIconSize { 22, 22 };
155 QSize mLargeToolButtonIconSize { 32, 32 };
156 bool mDirty {
true };
157 int mLargeHeight { 0 };
158 int mTitleHeight { 15 };
159 int mTitleSpace { 2 };
160 bool mEnableShowTitle {
true };
162 QRect mTitleLabelGeometry;
163 QToolButton* mOptionActionBtn {
nullptr };
164 QRect mOptionActionBtnGeometry;
165 bool mEnableWordWrap {
true };
166 qreal mButtonMaximumAspectRatio { 1.4 };