13 #ifndef QmitkExtWorkbenchWindowAdvisor_h 
   14 #define QmitkExtWorkbenchWindowAdvisor_h 
   57     void ShowViewToolbar(
bool show);
 
   59     void ShowPerspectiveToolbar(
bool show);
 
   61     void ShowVersionInfo(
bool show);
 
   63     void ShowMitkVersionInfo(
bool show);
 
   65     void ShowViewMenuItem(
bool show);
 
   67     void ShowNewWindowMenuItem(
bool show);
 
   69     void ShowClosePerspectiveMenuItem(
bool show);
 
   71     bool GetShowClosePerspectiveMenuItem();
 
   73     void ShowMemoryIndicator(
bool show);
 
   75     bool GetShowMemoryIndicator();
 
   78     void SetProductName(
const QString& product);
 
   79     void SetWindowIcon(
const QString& wndIcon);
 
   81     void SetPerspectiveExcludeList(
const QList<QString> &v);
 
   82     QList<QString> GetPerspectiveExcludeList();
 
   84     void SetViewExcludeList(
const QList<QString> &v);
 
   85     QList<QString> GetViewExcludeList();
 
   89     virtual void onIntro();
 
   90     virtual void onHelp();
 
   91     virtual void onHelpOpenHelpPerspective();
 
   92     virtual void onAbout();
 
  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;