13 #ifndef BERRYMENUMANAGER_H_
14 #define BERRYMENUMANAGER_H_
90 bool removeAllWhenShown;
100 Q_SLOT
void HandleAboutToShow();
101 Q_SLOT
void HandleAboutToHide();
124 MenuManager(
const QString& text,
const QString&
id = QString());
136 MenuManager(
const QString& text,
const QIcon& image,
139 bool IsDirty()
const override;
152 QMenu* CreateContextMenu(QWidget* parent);
163 QMenuBar* CreateMenuBar(QWidget* parent);
165 void AddMenuListener(QObject* listener)
override;
166 void RemoveMenuListener(QObject *listener)
override;
171 void Fill(QStatusBar* parent)
override;
176 void Fill(QToolBar* parent, QAction *index)
override;
181 void Fill(QMenu* parent, QAction *before)
override;
186 void Fill(QMenuBar* parent, QAction *before)
override;
204 QString GetId()
const override;
211 QMenu* GetMenu()
const;
219 QString GetMenuText()
const;
226 QIcon GetImage()
const;
243 bool GetRemoveAllWhenShown()
const override;
248 bool IsDynamic()
const override;
261 bool IsEnabled()
const override;
266 bool IsGroupMarker()
const override;
271 bool IsSeparator()
const override;
276 bool IsVisible()
const override;
282 void MarkDirty()
override;
292 void SaveWidgetState()
override;
309 void SetRemoveAllWhenShown(
bool removeAll)
override;
314 void SetVisible(
bool visible)
override;
324 void SetCommandId(
const QString& definitionId);
329 void Update()
override;
331 void Update(
const QString& property)
override;
339 void Update(
bool force)
override;
344 void UpdateAll(
bool force)
override;
351 void InitializeMenu();
363 void UpdateMenuItem();
365 void FillMenu(QWidget* parent, QAction* before);
367 void DumpActionInfo(QMenuProxy*
menu);
368 void DumpActionInfo(QWidget* widget,
int level);
397 void Update(
bool force,
bool recursive);