comparison main/MainWindow.h @ 634:ba338234c001 imaf_enc

IMAF load code from Jesus Corral Garcia
author Chris Cannam
date Mon, 04 Nov 2013 17:15:52 +0000
parents 0b094b0fdcc4
children f45af8d8091e
comparison
equal deleted inserted replaced
633:a8da6db5a2c9 634:ba338234c001
3 /* 3 /*
4 Sonic Visualiser 4 Sonic Visualiser
5 An audio file viewer and annotation editor. 5 An audio file viewer and annotation editor.
6 Centre for Digital Music, Queen Mary, University of London. 6 Centre for Digital Music, Queen Mary, University of London.
7 This file copyright 2006-2007 Chris Cannam and QMUL. 7 This file copyright 2006-2007 Chris Cannam and QMUL.
8 8
9 This program is free software; you can redistribute it and/or 9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as 10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
58 class KeyReference; 58 class KeyReference;
59 class Labeller; 59 class Labeller;
60 class ActivityLog; 60 class ActivityLog;
61 class QFileSystemWatcher; 61 class QFileSystemWatcher;
62 class QScrollArea; 62 class QScrollArea;
63 class VersionTester;
64 63
65 class MainWindow : public MainWindowBase 64 class MainWindow : public MainWindowBase
66 { 65 {
67 Q_OBJECT 66 Q_OBJECT
68 67
184 virtual void website(); 183 virtual void website();
185 virtual void help(); 184 virtual void help();
186 virtual void about(); 185 virtual void about();
187 virtual void keyReference(); 186 virtual void keyReference();
188 virtual void newerVersionAvailable(QString); 187 virtual void newerVersionAvailable(QString);
188 virtual void exportIMAF();
189 virtual void importIMAF();
190 virtual void openMP3IMAF();
191 virtual void insertLyrics(size_t frame, QString text);
189 192
190 protected: 193 protected:
191 Overview *m_overview; 194 Overview *m_overview;
192 Fader *m_fader; 195 Fader *m_fader;
193 AudioDial *m_playSpeed; 196 AudioDial *m_playSpeed;
194 WaveformLayer *m_panLayer; 197 WaveformLayer *m_panLayer;
195 198
196 QScrollArea *m_mainScroll; 199 QScrollArea *m_mainScroll;
197 200
198 bool m_mainMenusCreated; 201 bool m_mainMenusCreated;
199 QMenu *m_paneMenu; 202 QMenu *m_paneMenu;
200 QMenu *m_layerMenu; 203 QMenu *m_layerMenu;
244 ActivityLog *m_activityLog; 247 ActivityLog *m_activityLog;
245 KeyReference *m_keyReference; 248 KeyReference *m_keyReference;
246 249
247 QFileSystemWatcher *m_templateWatcher; 250 QFileSystemWatcher *m_templateWatcher;
248 251
249 VersionTester *m_versionTester;
250
251 struct LayerConfiguration { 252 struct LayerConfiguration {
252 LayerConfiguration(LayerFactory::LayerType _layer 253 LayerConfiguration(LayerFactory::LayerType _layer
253 = LayerFactory::TimeRuler, 254 = LayerFactory::TimeRuler,
254 Model *_source = 0, 255 Model *_source = 0,
255 int _channel = -1) : 256 int _channel = -1) :
256 layer(_layer), sourceModel(_source), channel(_channel) { } 257 layer(_layer), sourceModel(_source), channel(_channel) { }
257 LayerFactory::LayerType layer; 258 LayerFactory::LayerType layer;
258 Model *sourceModel; 259 Model *sourceModel;
259 int channel; 260 int channel;
260 }; 261 };
261 262
262 typedef std::map<QAction *, LayerConfiguration> PaneActionMap; 263 typedef std::map<QAction *, LayerConfiguration> PaneActionMap;
263 PaneActionMap m_paneActions; 264 PaneActionMap m_paneActions;
264 265
298 299
299 virtual void updateVisibleRangeDisplay(Pane *p) const; 300 virtual void updateVisibleRangeDisplay(Pane *p) const;
300 virtual void updatePositionStatusDisplays() const; 301 virtual void updatePositionStatusDisplays() const;
301 302
302 virtual bool shouldCreateNewSessionForRDFAudio(bool *cancel); 303 virtual bool shouldCreateNewSessionForRDFAudio(bool *cancel);
303 304
304 virtual void connectLayerEditDialog(ModelDataTableDialog *); 305 virtual void connectLayerEditDialog(ModelDataTableDialog *);
305 }; 306 };
306 307
307 308
308 #endif 309 #endif