13 #ifndef QmitkExtWorkbenchWindowAdvisor_h
14 #define QmitkExtWorkbenchWindowAdvisor_h
55 void ShowViewToolbar(
bool show);
57 void ShowPerspectiveToolbar(
bool show);
59 void ShowVersionInfo(
bool show);
61 void ShowMitkVersionInfo(
bool show);
63 void ShowViewMenuItem(
bool show);
65 void ShowNewWindowMenuItem(
bool show);
67 void ShowClosePerspectiveMenuItem(
bool show);
69 bool GetShowClosePerspectiveMenuItem();
71 void ShowMemoryIndicator(
bool show);
73 bool GetShowMemoryIndicator();
76 void SetProductName(
const QString& product);
77 void SetWindowIcon(
const QString& wndIcon);
79 void SetPerspectiveExcludeList(
const QList<QString> &v);
80 QList<QString> GetPerspectiveExcludeList();
82 void SetViewExcludeList(
const QList<QString> &v);
83 QList<QString> GetViewExcludeList();
87 virtual void onIntro();
88 virtual void onHelp();
89 virtual void onHelpOpenHelpPerspective();
90 virtual void onAbout();
101 QString ComputeTitle();
103 void RecomputeTitle();
105 QString GetQSettingsFile()
const;
112 void UpdateTitle(
bool editorHidden);
116 static QString QT_SETTINGS_FILENAME;
118 QScopedPointer<berry::IPartListener> titlePartListener;
119 QScopedPointer<berry::IPerspectiveListener> titlePerspectiveListener;
120 QScopedPointer<berry::IPerspectiveListener> menuPerspectiveListener;
121 QScopedPointer<berry::IPartListener> imageNavigatorPartListener;
122 QScopedPointer<berry::IPartListener> viewNavigatorPartListener;
123 QScopedPointer<berry::IPropertyChangeListener> editorPropertyListener;
125 friend class PartListenerForTitle;
126 friend class PerspectiveListenerForTitle;
127 friend class PerspectiveListenerForMenu;
128 friend class PartListenerForImageNavigator;
129 friend class PartListenerForViewNavigator;
134 QString lastEditorTitle;
138 bool showViewToolbar;
139 bool showPerspectiveToolbar;
140 bool showVersionInfo;
141 bool showMitkVersionInfo;
142 bool showViewMenuItem;
143 bool showNewWindowMenuItem;
144 bool showClosePerspectiveMenuItem;
145 bool viewNavigatorFound;
146 bool showMemoryIndicator;
151 QScopedPointer<berry::IDropTargetListener> dropTargetListener;
154 QList<QString> perspectiveExcludeList;
157 QList<QString> viewExcludeList;
160 QHash<QString, QAction*> mapPerspIdToAction;
163 QList<QAction*> viewActions;
164 QAction* fileSaveProjectAction;
165 QAction* closeProjectAction;
168 QAction* imageNavigatorAction;
169 QAction* viewNavigatorAction;
170 QAction* resetPerspAction;
171 QAction* closePerspAction;
172 QAction* openDicomEditorAction;
173 QAction* openStdMultiWidgetEditorAction;
174 QAction* openMxNMultiWidgetEditorAction;