17 #ifndef QMITKEXTWORKBENCHWINDOWADVISOR_H_
18 #define QMITKEXTWORKBENCHWINDOWADVISOR_H_
59 void ShowViewToolbar(
bool show);
61 void ShowPerspectiveToolbar(
bool show);
63 void ShowVersionInfo(
bool show);
65 void ShowMitkVersionInfo(
bool show);
67 void ShowViewMenuItem(
bool show);
69 void ShowNewWindowMenuItem(
bool show);
71 void ShowClosePerspectiveMenuItem(
bool show);
73 bool GetShowClosePerspectiveMenuItem();
75 void ShowMemoryIndicator(
bool show);
77 bool GetShowMemoryIndicator();
80 void SetProductName(
const QString& product);
81 void SetWindowIcon(
const QString& wndIcon);
83 void SetPerspectiveExcludeList(
const QList<QString> &v);
84 QList<QString> GetPerspectiveExcludeList();
86 void SetViewExcludeList(
const QList<QString> &v);
87 QList<QString> GetViewExcludeList();
91 virtual void onIntro();
92 virtual void onHelp();
93 virtual void onHelpOpenHelpPerspective();
94 virtual void onAbout();
105 QString ComputeTitle();
107 void RecomputeTitle();
109 QString GetQSettingsFile()
const;
116 void UpdateTitle(
bool editorHidden);
120 static QString QT_SETTINGS_FILENAME;
122 QScopedPointer<berry::IPartListener> titlePartListener;
123 QScopedPointer<berry::IPerspectiveListener> titlePerspectiveListener;
124 QScopedPointer<berry::IPerspectiveListener> menuPerspectiveListener;
125 QScopedPointer<berry::IPartListener> imageNavigatorPartListener;
126 QScopedPointer<berry::IPartListener> viewNavigatorPartListener;
127 QScopedPointer<berry::IPropertyChangeListener> editorPropertyListener;
129 friend class PartListenerForTitle;
130 friend class PerspectiveListenerForTitle;
131 friend class PerspectiveListenerForMenu;
132 friend class PartListenerForImageNavigator;
133 friend class PartListenerForViewNavigator;
138 QString lastEditorTitle;
142 bool showViewToolbar;
143 bool showPerspectiveToolbar;
144 bool showVersionInfo;
145 bool showMitkVersionInfo;
146 bool showViewMenuItem;
147 bool showNewWindowMenuItem;
148 bool showClosePerspectiveMenuItem;
149 bool viewNavigatorFound;
150 bool showMemoryIndicator;
155 QScopedPointer<berry::IDropTargetListener> dropTargetListener;
158 QList<QString> perspectiveExcludeList;
161 QList<QString> viewExcludeList;
164 QHash<QString, QAction*> mapPerspIdToAction;
167 QList<QAction*> viewActions;
168 QAction* fileSaveProjectAction;
169 QAction* closeProjectAction;
172 QAction* imageNavigatorAction;
173 QAction* viewNavigatorAction;
174 QAction* resetPerspAction;
175 QAction* closePerspAction;
176 QAction* openDicomEditorAction;
virtual void PostWindowClose()
virtual SmartPointer< ActionBarAdvisor > CreateActionBarAdvisor(SmartPointer< IActionBarConfigurer > configurer)
virtual void PostWindowCreate()
virtual void PostWindowOpen()
virtual void PreWindowOpen()
#define MITK_QT_COMMON_EXT_EXPORT
virtual QWidget * CreateEmptyWindowContents(QWidget *parent)