comparison main/MainWindow.h @ 66:cf27fc7feb7a

* Add Pane menu entries for generating spectrogram etc from non-main models * Some restructuring of MainWindow menu setup code
author Chris Cannam
date Fri, 20 Oct 2006 16:47:13 +0000
parents 77c083741589
children 76cc2c424268
comparison
equal deleted inserted replaced
65:77c083741589 66:cf27fc7feb7a
241 void createDocument(); 241 void createDocument();
242 242
243 struct PaneConfiguration { 243 struct PaneConfiguration {
244 PaneConfiguration(LayerFactory::LayerType _layer 244 PaneConfiguration(LayerFactory::LayerType _layer
245 = LayerFactory::TimeRuler, 245 = LayerFactory::TimeRuler,
246 Model *_source = 0,
246 int _channel = -1) : 247 int _channel = -1) :
247 layer(_layer), channel(_channel) { } 248 layer(_layer), sourceModel(_source), channel(_channel) { }
248 LayerFactory::LayerType layer; 249 LayerFactory::LayerType layer;
250 Model *sourceModel;
249 int channel; 251 int channel;
250 }; 252 };
251 253
252 typedef std::map<QAction *, PaneConfiguration> PaneActionMap; 254 typedef std::map<QAction *, PaneConfiguration> PaneActionMap;
253 PaneActionMap m_paneActions; 255 PaneActionMap m_paneActions;
266 268
267 typedef std::map<ViewManager::ToolMode, QAction *> ToolActionMap; 269 typedef std::map<ViewManager::ToolMode, QAction *> ToolActionMap;
268 ToolActionMap m_toolActions; 270 ToolActionMap m_toolActions;
269 271
270 void setupMenus(); 272 void setupMenus();
273 void setupFileMenu();
274 void setupEditMenu();
275 void setupViewMenu();
276 void setupPaneAndLayerMenus();
277 void setupTransformsMenu();
278 void setupHelpMenu();
271 void setupExistingLayersMenu(); 279 void setupExistingLayersMenu();
272 void setupToolbars(); 280 void setupToolbars();
281
273 Pane *addPaneToStack(); 282 Pane *addPaneToStack();
274 283
275 class PaneCallback : public SVFileReaderPaneCallback 284 class PaneCallback : public SVFileReaderPaneCallback
276 { 285 {
277 public: 286 public: