comparison main/MainWindow.h @ 439:6d5ee6860682 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. The main part of the process is handled in MainWindow::toggleViewMode(). The toggle view mode option appears in the View Menu and is associated with a new toolbar button. Two icons have been added in the resources. They come from: http://www.iconfinder.com/icondetails/42115/32/ In a working state, but the resizing of the main window and the audio file overview can be improved. Some menus or menu actions can be deleted/disabled in the minimal mode (although the changes are active in the hidden pane(s) and do not cause the application to crash). See TO-DO list in MainWindow::toggleViewMode(). In sonic-visualiser.pro: -lvamp-hostsdk has been added to the LIBS (the sonic-visualiser.pro file may be to be removed from the tracked files since the modification seems to depend on the system).
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Tue, 21 Jun 2011 22:04:55 +0100
parents 210a409e135a
children 4d9e4053c120
comparison
equal deleted inserted replaced
438:868f73825b37 439:6d5ee6860682
173 virtual void help(); 173 virtual void help();
174 virtual void about(); 174 virtual void about();
175 virtual void keyReference(); 175 virtual void keyReference();
176 virtual void newerVersionAvailable(QString); 176 virtual void newerVersionAvailable(QString);
177 177
178 virtual void toggleViewMode(); //to switch between minimal and full modes
179
178 protected: 180 protected:
179 Overview *m_overview; 181 Overview *m_overview;
180 Fader *m_fader; 182 Fader *m_fader;
181 AudioDial *m_playSpeed; 183 AudioDial *m_playSpeed;
182 WaveformLayer *m_panLayer; 184 WaveformLayer *m_panLayer;
183 185
184 bool m_mainMenusCreated; 186 bool m_mainMenusCreated;
185 QMenu *m_paneMenu; 187 QMenu *m_paneMenu;
186 QMenu *m_layerMenu; 188 QMenu *m_layerMenu;
187 QMenu *m_transformsMenu; 189 QMenu *m_transformsMenu;
188 QMenu *m_playbackMenu; 190 QMenu *m_playbackMenu;
189 QMenu *m_existingLayersMenu; 191 QMenu *m_existingLayersMenu;
193 QMenu *m_rightButtonMenu; 195 QMenu *m_rightButtonMenu;
194 QMenu *m_rightButtonLayerMenu; 196 QMenu *m_rightButtonLayerMenu;
195 QMenu *m_rightButtonTransformsMenu; 197 QMenu *m_rightButtonTransformsMenu;
196 QMenu *m_rightButtonPlaybackMenu; 198 QMenu *m_rightButtonPlaybackMenu;
197 199
200 QMenu *m_fileMenu;
201 QMenu *m_editMenu;
202 QMenu *m_viewMenu;
203 QMenu *m_helpMenu;
204
198 QAction *m_deleteSelectedAction; 205 QAction *m_deleteSelectedAction;
199 QAction *m_soloAction; 206 QAction *m_soloAction;
200 QAction *m_rwdStartAction; 207 QAction *m_rwdStartAction;
201 QAction *m_rwdSimilarAction; 208 QAction *m_rwdSimilarAction;
202 QAction *m_rwdAction; 209 QAction *m_rwdAction;
205 QAction *m_ffwdEndAction; 212 QAction *m_ffwdEndAction;
206 QAction *m_playAction; 213 QAction *m_playAction;
207 QAction *m_playSelectionAction; 214 QAction *m_playSelectionAction;
208 QAction *m_playLoopAction; 215 QAction *m_playLoopAction;
209 216
217 QAction *m_importAnnotationLayerAction;
218 QAction *m_exportAnnotationLayerAction;
219 QAction *m_showNoOverlaysAction;
220 QAction *m_showMinimalOverlaysAction;
221 QAction *m_showStandardOverlaysAction;
222 QAction *m_showAllOverlaysAction;
223 QAction *m_showAllTimeRulersAction;
224 QAction *m_showZoomWheelsAction;
225 QAction *m_showPropertyBoxesAction;
226 QAction *m_showStatusBarAction;
227
228 QToolBar *m_fileToolBar;
229 QToolBar *m_playbackToolBar;
230 QToolBar *m_viewToolBar;
231 QToolBar *m_playModeToolBar;
232 QToolBar *m_editToolBar;
233 QToolBar *m_toolsToolBar;
234
210 bool m_soloModified; 235 bool m_soloModified;
211 bool m_prevSolo; 236 bool m_prevSolo;
212 237
213 QFrame *m_playControlsSpacer; 238 QFrame *m_playControlsSpacer;
214 int m_playControlsWidth; 239 int m_playControlsWidth;