17 #ifndef BERRYMENUMANAGER_H_
18 #define BERRYMENUMANAGER_H_
94 bool removeAllWhenShown;
100 QString definitionId;
104 Q_SLOT
void HandleAboutToShow();
105 Q_SLOT
void HandleAboutToHide();
128 MenuManager(const QString& text = QString(), const QString&
id = QString());
140 MenuManager(const QString& text, const QIcon& image,
143 bool IsDirty() const override;
156 QMenu* CreateContextMenu(QWidget* parent);
167 QMenuBar* CreateMenuBar(QWidget* parent);
169 void AddMenuListener(QObject* listener) override;
170 void RemoveMenuListener(QObject *listener) override;
175 void Fill(QStatusBar* parent) override;
180 void Fill(QToolBar* parent, QAction *index) override;
185 void Fill(QMenu* parent, QAction *before) override;
190 void Fill(QMenuBar* parent, QAction *before) override;
208 QString GetId() const override;
215 QMenu* GetMenu() const;
223 QString GetMenuText() const;
230 QIcon GetImage() const;
247 bool GetRemoveAllWhenShown() const override;
252 bool IsDynamic() const override;
265 bool IsEnabled() const override;
270 bool IsGroupMarker() const override;
275 bool IsSeparator() const override;
280 bool IsVisible() const override;
286 void MarkDirty() override;
296 void SaveWidgetState() override;
313 void SetRemoveAllWhenShown(
bool removeAll) override;
318 void SetVisible(
bool visible) override;
328 void SetCommandId(const QString& definitionId);
335 void Update(const QString& property) override;
343 void Update(
bool force) override;
348 void UpdateAll(
bool force) override;
355 void InitializeMenu();
367 void UpdateMenuItem();
369 void FillMenu(QWidget* parent, QAction* before);
371 void DumpActionInfo(QMenuProxy* menu);
372 void DumpActionInfo(QWidget* widget,
int level);
401 void Update(
bool force,
bool recursive);
static void Update(vtkPolyData *)
Implements transparent reference counting.
#define berryObjectMacro(...)
The custom viewer plugin implements simple viewer functionality presented in a customized look and feel It was developed to demonstrate extensibility and customizability of the blueberry application framework As an example for the GUI customization capabilities provided by the BlueBerry application the custom viewer plugin was developed It features simple viewer functionality presented in a customized look and feel The custom viewer consists of two i e a viewer perspective and a DICOM perspective As part of the viewer an instance of QmitkDataManagerView allows for data selection Visualization of the selected data is then performed by a simple render window view According data can either be directly loaded from file or be imported as DICOM data DICOM import functionality is accessible from the DICOM perspective incorporating the QmitkDicomExternalDataWidget The customization of Qt Stylesheets is used to give the application a non native look and feel This is further emphasized by a Tab Widget like unification of the perspectives with the according perspective bar In addition to an absence of menu