comparison 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
comparison
equal deleted inserted replaced
587:4806715f7a19 588:707d43018f59
186 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; } 186 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; }
187 187
188 void setGlobalDarkBackground(bool dark); 188 void setGlobalDarkBackground(bool dark);
189 bool getGlobalDarkBackground() const; 189 bool getGlobalDarkBackground() const;
190 190
191 void setMinimalModeEnabled(bool enable);
192 bool getMinimalModeEnabled() const { return m_minimalModeEnabled; };
193
191 signals: 194 signals:
192 /** Emitted when user causes the global centre frame to change. */ 195 /** Emitted when user causes the global centre frame to change. */
193 void globalCentreFrameChanged(unsigned long frame); 196 void globalCentreFrameChanged(unsigned long frame);
194 197
195 /** Emitted when user scrolls a view, but doesn't affect global centre. */ 198 /** Emitted when user scrolls a view, but doesn't affect global centre. */
235 /** Emitted when the zoom wheels have been toggled. */ 238 /** Emitted when the zoom wheels have been toggled. */
236 void zoomWheelsEnabledChanged(); 239 void zoomWheelsEnabledChanged();
237 240
238 /** Emitted when any loggable activity has occurred. */ 241 /** Emitted when any loggable activity has occurred. */
239 void activity(QString); 242 void activity(QString);
243
244 /** Emitted when the view mode has been toggled. */
245 //no slot associated yet with this signal but may be useful;
246 //changes currently handled by the slot MainWindow::toggleViewMode()
247 void minimalModeEnabledChanged();
240 248
241 public slots: 249 public slots:
242 void viewCentreFrameChanged(unsigned long, bool, PlaybackFollowMode); 250 void viewCentreFrameChanged(unsigned long, bool, PlaybackFollowMode);
243 void viewZoomLevelChanged(unsigned long, bool); 251 void viewZoomLevelChanged(unsigned long, bool);
244 void setGlobalCentreFrame(unsigned long); 252 void setGlobalCentreFrame(unsigned long);
295 OverlayMode m_overlayMode; 303 OverlayMode m_overlayMode;
296 bool m_zoomWheelsEnabled; 304 bool m_zoomWheelsEnabled;
297 bool m_illuminateLocalFeatures; 305 bool m_illuminateLocalFeatures;
298 bool m_showWorkTitle; 306 bool m_showWorkTitle;
299 307
308 bool m_minimalModeEnabled;
309
300 QPalette m_lightPalette; 310 QPalette m_lightPalette;
301 QPalette m_darkPalette; 311 QPalette m_darkPalette;
302 }; 312 };
303 313
304 #endif 314 #endif