13 #ifndef QmitkExtWorkbenchWindowAdvisor_h
14 #define QmitkExtWorkbenchWindowAdvisor_h
103 QString ComputeTitle();
105 void RecomputeTitle();
107 QString GetQSettingsFile()
const;
114 void UpdateTitle(
bool editorHidden);
118 void OnUndoStackChanged();
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;
177 QAction* openStdMultiWidgetEditorAction;
178 QAction* openMxNMultiWidgetEditorAction;
void ShowNewWindowMenuItem(bool show)
bool GetShowMemoryIndicator()
void ShowMitkVersionInfo(bool show)
void ShowClosePerspectiveMenuItem(bool show)
void ShowVersionInfo(bool show)
QList< QString > GetViewExcludeList()
void PostWindowOpen() override
void PreWindowOpen() override
void ShowViewToolbar(bool show)
bool GetShowClosePerspectiveMenuItem()
void SetPerspectiveExcludeList(const QList< QString > &v)
berry::SmartPointer< berry::ActionBarAdvisor > CreateActionBarAdvisor(berry::SmartPointer< berry::IActionBarConfigurer > configurer) override
void SetWindowIcon(const QString &wndIcon)
void SetProductName(const QString &product)
void PostWindowClose() override
void ShowViewMenuItem(bool show)
void ShowMemoryIndicator(bool show)
QWidget * CreateEmptyWindowContents(QWidget *parent) override
QList< QString > GetPerspectiveExcludeList()
virtual void onHelpOpenHelpPerspective()
~QmitkExtWorkbenchWindowAdvisor() override
void ShowPerspectiveToolbar(bool show)
void SetViewExcludeList(const QList< QString > &v)
QmitkExtWorkbenchWindowAdvisor(berry::WorkbenchAdvisor *wbAdvisor, berry::IWorkbenchWindowConfigurer::Pointer configurer)
void PostWindowCreate() override
Implements transparent reference counting.
implements a WeakPointer class to deal with circular reference problems.
Convenience class that helps to manage the lifetime of itk event observers.
#define MITK_QT_COMMON_EXT_EXPORT