71 Q_PROPERTY(
bool isCanCustomize READ isCanCustomize WRITE setCanCustomize)
72 Q_PROPERTY(QString categoryName READ categoryName WRITE setCategoryName)
82 QString categoryName()
const;
85 void setCategoryName(
const QString& title);
100 Q_INVOKABLE
void addPanel(QWidget* panel);
109 SARibbonPanel* panelByObjectName(
const QString& objname)
const;
118 void movePanel(
int from,
int to);
127 bool removePanel(
int index);
130 QList< SARibbonPanel* > panelList()
const;
133 bool isContextCategory()
const;
136 int panelCount()
const;
139 bool isCanCustomize()
const;
141 void setCanCustomize(
bool b);
144 int panelTitleHeight()
const;
146 void setPanelTitleHeight(
int h);
149 bool isEnableShowPanelTitle()
const;
151 void setEnableShowPanelTitle(
bool on);
154 void setCategoryAlignment(SARibbonAlignment al);
156 SARibbonAlignment categoryAlignment()
const;
159 void setPanelSpacing(
int n);
161 int panelSpacing()
const;
164 void setPanelLargeIconSize(
const QSize& largeSize);
165 QSize panelLargeIconSize()
const;
168 void setPanelSmallIconSize(
const QSize& smallSize);
169 QSize panelSmallIconSize()
const;
172 void setPanelToolButtonIconSize(
const QSize& smallSize,
const QSize& largeSize);
174 QPair< QSize, QSize > panelToolButtonIconSize()
const;
180 void updateItemGeometry();
183 void setUseAnimatingScroll(
bool useAnimating);
185 bool isUseAnimatingScroll()
const;
188 void setWheelScrollStep(
int step);
190 int wheelScrollStep()
const;
193 void setAnimationDuration(
int duration);
195 int animationDuration()
const;
198 bool isEnableWordWrap()
const;
201 qreal buttonMaximumAspectRatio()
const;
204 bool iteratePanel(FpPanelIterate fp)
const;
206 QSize sizeHint()
const Q_DECL_OVERRIDE;
221 virtual bool event(QEvent* e)
override;
223 void wheelEvent(QWheelEvent* event)
override;
225 void changeEvent(QEvent* event)
override;
228 void markIsContextCategory(
bool isContextCategory =
true);
234 void setEnableWordWrap(
bool on);
237 void setButtonMaximumAspectRatio(qreal fac = 1.4);
管理上下文标签的类
Definition SARibbonContextCategory.h:11