37 Q_PROPERTY(
bool isCanCustomize READ isCanCustomize WRITE setCanCustomize)
38 Q_PROPERTY(QString categoryName READ categoryName WRITE setCategoryName)
51 QString categoryName()
const;
54 void setCategoryName(
const QString& title);
69 Q_INVOKABLE
void addPanel(QWidget* panel);
81 SARibbonPanel* panelByObjectName(
const QString& objname)
const;
90 void movePanel(
int from,
int to);
99 bool removePanel(
int index);
102 QList< SARibbonPanel* > panelList()
const;
105 bool isContextCategory()
const;
108 int panelCount()
const;
111 bool isCanCustomize()
const;
113 void setCanCustomize(
bool b);
116 int panelTitleHeight()
const;
118 void setPanelTitleHeight(
int h);
121 bool isEnableShowPanelTitle()
const;
123 void setEnableShowPanelTitle(
bool on);
126 void setCategoryAlignment(SARibbonAlignment al);
128 SARibbonAlignment categoryAlignment()
const;
131 void setPanelSpacing(
int n);
133 int panelSpacing()
const;
136 void setPanelLargeIconSize(
const QSize& largeSize);
138 QSize panelLargeIconSize()
const;
141 void setPanelSmallIconSize(
const QSize& smallSize);
143 QSize panelSmallIconSize()
const;
146 void setPanelToolButtonIconSize(
const QSize& smallSize,
const QSize& largeSize);
148 QPair< QSize, QSize > panelToolButtonIconSize()
const;
154 void updateItemGeometry();
157 void setUseAnimatingScroll(
bool useAnimating);
159 bool isUseAnimatingScroll()
const;
162 void setWheelScrollStep(
int step);
164 int wheelScrollStep()
const;
167 void setAnimationDuration(
int duration);
169 int animationDuration()
const;
172 bool isEnableWordWrap()
const;
175 qreal buttonMaximumAspectRatio()
const;
178 bool iteratePanel(FpPanelIterate fp)
const;
180 QSize sizeHint()
const Q_DECL_OVERRIDE;
189 virtual bool event(QEvent* e)
override;
191 void wheelEvent(QWheelEvent* event)
override;
193 void changeEvent(QEvent* event)
override;
196 void markIsContextCategory(
bool isContextCategory =
true);
202 void setEnableWordWrap(
bool on);
205 void setButtonMaximumAspectRatio(qreal fac = 1.4);
Definition SARibbonContextCategory.h:19