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 = QString(),
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);
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);
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
mitk::Image::Pointer image