comparison main/MainWindow.h @ 1150:5e6e1e074080 3.0-plus-imaf

Merge branches 3.0-integration and imaf_enc to 3.0-plus-imaf
author Chris Cannam
date Wed, 20 Apr 2016 12:06:28 +0100
parents b3b5885e7c2c bfd68cc71a25
children
comparison
equal deleted inserted replaced
1149:3ba5bee2ace0 1150:5e6e1e074080
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.
155 virtual void website(); 155 virtual void website();
156 virtual void help(); 156 virtual void help();
157 virtual void about(); 157 virtual void about();
158 virtual void keyReference(); 158 virtual void keyReference();
159 virtual void newerVersionAvailable(QString); 159 virtual void newerVersionAvailable(QString);
160 virtual void exportIMAF();
161 virtual void importIMAF();
162 virtual void openMP3IMAF();
163 virtual void insertLyrics(size_t frame, QString text);
160 164
161 protected: 165 protected:
162 Overview *m_overview; 166 Overview *m_overview;
163 Fader *m_fader; 167 Fader *m_fader;
164 AudioDial *m_playSpeed; 168 AudioDial *m_playSpeed;
165 WaveformLayer *m_panLayer; 169 WaveformLayer *m_panLayer;
166 170
167 QScrollArea *m_mainScroll; 171 QScrollArea *m_mainScroll;
168 172
169 bool m_mainMenusCreated; 173 bool m_mainMenusCreated;
170 QMenu *m_paneMenu; 174 QMenu *m_paneMenu;
171 QMenu *m_layerMenu; 175 QMenu *m_layerMenu;
221 225
222 Surveyer *m_surveyer; 226 Surveyer *m_surveyer;
223 VersionTester *m_versionTester; 227 VersionTester *m_versionTester;
224 228
225 struct LayerConfiguration { 229 struct LayerConfiguration {
226 LayerConfiguration(LayerFactory::LayerType _layer 230 LayerConfiguration(LayerFactory::LayerType _layer
227 = LayerFactory::TimeRuler, 231 = LayerFactory::TimeRuler,
228 Model *_source = 0, 232 Model *_source = 0,
229 int _channel = -1) : 233 int _channel = -1) :
230 layer(_layer), sourceModel(_source), channel(_channel) { } 234 layer(_layer), sourceModel(_source), channel(_channel) { }
231 LayerFactory::LayerType layer; 235 LayerFactory::LayerType layer;
232 Model *sourceModel; 236 Model *sourceModel;
233 int channel; 237 int channel;
234 }; 238 };
235 239
236 typedef std::map<QAction *, LayerConfiguration> PaneActionMap; 240 typedef std::map<QAction *, LayerConfiguration> PaneActionMap;
237 PaneActionMap m_paneActions; 241 PaneActionMap m_paneActions;
238 242
274 278
275 virtual void updateVisibleRangeDisplay(Pane *p) const; 279 virtual void updateVisibleRangeDisplay(Pane *p) const;
276 virtual void updatePositionStatusDisplays() const; 280 virtual void updatePositionStatusDisplays() const;
277 281
278 virtual bool shouldCreateNewSessionForRDFAudio(bool *cancel); 282 virtual bool shouldCreateNewSessionForRDFAudio(bool *cancel);
279 283
280 virtual void connectLayerEditDialog(ModelDataTableDialog *); 284 virtual void connectLayerEditDialog(ModelDataTableDialog *);
281 }; 285 };
282 286
283 287
284 #endif 288 #endif