diff view/ViewManager.h @ 588:707d43018f59 toggle

Add a new feature to allow users to toggle between minimal and full modes. This is done by hiding/showing the pane stack, menu actions, and toolbars. Changes in ViewManager (header and source) to emit an activity signal when the view mode is toggled.
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Tue, 21 Jun 2011 22:11:00 +0100
parents 73a58a4dfebd
children 5fa210337bee
line wrap: on
line diff
--- a/view/ViewManager.h	Tue Jun 14 15:27:05 2011 +0100
+++ b/view/ViewManager.h	Tue Jun 21 22:11:00 2011 +0100
@@ -188,6 +188,9 @@
     void setGlobalDarkBackground(bool dark);
     bool getGlobalDarkBackground() const;
 
+    void setMinimalModeEnabled(bool enable);
+    bool getMinimalModeEnabled() const { return m_minimalModeEnabled; };
+
 signals:
     /** Emitted when user causes the global centre frame to change. */
     void globalCentreFrameChanged(unsigned long frame);
@@ -238,6 +241,11 @@
     /** Emitted when any loggable activity has occurred. */
     void activity(QString);
 
+    /** Emitted when the view mode has been toggled. */
+    //no slot associated yet with this signal but may be useful;
+    //changes currently handled by the slot MainWindow::toggleViewMode()
+    void minimalModeEnabledChanged();
+
 public slots:
     void viewCentreFrameChanged(unsigned long, bool, PlaybackFollowMode);
     void viewZoomLevelChanged(unsigned long, bool);
@@ -297,6 +305,8 @@
     bool m_illuminateLocalFeatures;
     bool m_showWorkTitle;
 
+    bool m_minimalModeEnabled;
+
     QPalette m_lightPalette;
     QPalette m_darkPalette;
 };