43 :
berry::ActionBarAdvisor(configurer)
45 window = configurer->GetWindowConfigurer()->GetWindow().
GetPointer();
51 QIcon::fromTheme(
"document-open",
52 QIcon(
":/org_mitk_icons/icons/tango/scalable/actions/document-open.svg")),
54 fileOpenAction->setShortcut(QKeySequence::Open);
58 QIcon(
":/org.mitk.gui.qt.ext/Save_48.png"),
60 fileSaveAction->setShortcut(QKeySequence::Save);
64 fileSaveProjectAction->setIcon(QIcon::fromTheme(
"document-save",
65 QIcon(
":/org_mitk_icons/icons/tango/scalable/actions/document-save.svg")));
69 closeProjectAction->setIcon(QIcon::fromTheme(
"edit-delete",
70 QIcon(
":/org_mitk_icons/icons/tango/scalable/actions/edit-delete.svg")));
74 fileExitAction->setIcon(QIcon::fromTheme(
"system-log-out", QIcon(
":/org_mitk_icons/icons/tango/scalable/actions/system-log-out.svg")));
75 fileExitAction->setShortcut(QKeySequence::Quit);
81 menuBar->
Add(CreateFileMenu());
82 menuBar->
Add(CreateEditMenu());
84 menuBar->
Add(CreateWindowMenu());
85 menuBar->
Add(CreateHelpMenu());
100 QString newText =
"&New";
101 QString newId =
"org.blueberry.ui.newWizard";
103 newMenu->SetCommandId(
"org.blueberry.ui.file.newQuickMenu");
231 AddPerspectiveActions(
menu.GetPointer());
245 menu->Add(openPreferencesItem);
257 changePerspMenuMgr->Add(changePerspMenuItem);
258 menu->
Add(changePerspMenuMgr);
264 showViewMenuMgr->Add(showViewMenu);
265 menu->
Add(showViewMenuMgr);
276 const QString& tooltip,
const QIcon& icon,
const QKeySequence& shortcut)
281 param->label = label;
282 param->tooltip = tooltip;
283 param->shortcut = shortcut;
static const QString FILE_END
itk::SmartPointer< Self > Pointer
static const QString M_WINDOW
static const QString EDIT_START
static const QString NEW_EXT
virtual QAction * GetAction(const QString &id) const
static const QString HELP_ABOUT
static const QString WINDOW_CLOSE_ALL_PERSPECTIVES
static const QString EDIT_UNDO
static const QString HELP_START
static const QString WINDOW_CLOSE_PERSPECTIVE
static const QString EDIT_REDO
static const QString HELP_HELP_CONTENTS
static const QString WINDOW_SAVE_PERSPECTIVE_AS
virtual IIntroManager * GetIntroManager() const =0
static const QString HELP_WELCOME
QmitkExtActionBarAdvisor(berry::SmartPointer< berry::IActionBarConfigurer > configurer)
static const QString MB_ADDITIONS
static const QString WINDOW_PREFERENCES
static const QString HELP_DYNAMIC_HELP
static const QString FILE_START
virtual bool HasIntro() const =0
void FillMenuBar(berry::IMenuManager *menuBar) override
void Add(QAction *action, const QString &id) override
static const QScopedPointer< ContributionItemFactory > REOPEN_EDITORS
static const QString CLOSE_EXT
static const QScopedPointer< ContributionItemFactory > PERSPECTIVES_SHORTLIST
static const QString SAVE_EXT
void MakeActions(berry::IWorkbenchWindow *window) override
static const QString FILE_EXIT
static const QString UNDO_EXT
static const QString HELP_END
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
static const QString PROJECT_SAVE
static const QString M_FILE
static const QString EDIT_END
static const QString FILE_OPEN
static const QString M_HELP
ObjectType * GetPointer() const
void FillToolBar(berry::IToolBarManager *toolBar) override
static const QString WINDOW_RESET_PERSPECTIVE
static const QString PROJECT_CLOSE
static const QScopedPointer< ContributionItemFactory > VIEWS_SHORTLIST
virtual void Add(const SmartPointer< IContributionItem > &item)=0
static const QString FILE_SAVE
virtual IWorkbench * GetWorkbench() const =0
static const QString M_EDIT
static const QScopedPointer< ContributionItemFactory > OPEN_WINDOWS