Mercurial > hg > sonic-visualiser
comparison main/MainWindow.h @ 374:11f804c7582a macness_autotpl
method to map from genre string to template choice; and to use it when importing from itunes
author | Dan Stowell <dan.stowell@eecs.qmul.ac.uk> |
---|---|
date | Fri, 15 Oct 2010 13:30:41 +0100 |
parents | 8b3038e55d50 |
children |
comparison
equal
deleted
inserted
replaced
373:80d91b72ae7d | 374:11f804c7582a |
---|---|
66 public: | 66 public: |
67 MainWindow(bool withAudioOutput = true, | 67 MainWindow(bool withAudioOutput = true, |
68 bool withOSCSupport = true); | 68 bool withOSCSupport = true); |
69 virtual ~MainWindow(); | 69 virtual ~MainWindow(); |
70 | 70 |
71 // maps from known genre tags to template choices | |
72 QString templateNameFromGenre(QString genre); | |
73 | |
71 signals: | 74 signals: |
72 virtual void canChangeSolo(bool); | 75 virtual void canChangeSolo(bool); |
73 virtual void canAlign(bool); | 76 virtual void canAlign(bool); |
74 | 77 |
75 public slots: | 78 public slots: |
276 virtual void updatePositionStatusDisplays() const; | 279 virtual void updatePositionStatusDisplays() const; |
277 | 280 |
278 virtual bool shouldCreateNewSessionForRDFAudio(bool *cancel); | 281 virtual bool shouldCreateNewSessionForRDFAudio(bool *cancel); |
279 | 282 |
280 virtual void connectLayerEditDialog(ModelDataTableDialog *); | 283 virtual void connectLayerEditDialog(ModelDataTableDialog *); |
284 | |
285 void initGenreToTemplateMap(); | |
286 QHash<QString, QString> m_genreToTemplateMap; | |
281 }; | 287 }; |
282 | 288 |
283 | 289 |
284 #endif | 290 #endif |