Mercurial > hg > sonic-visualiser
comparison main/MainWindow.h @ 69:76cc2c424268
* Update the main sv.prf for compatibility with Qt 4.2 qmake instead of
that from 4.1. Add a README.Qt41 describing how to build with 4.1 if
preferred.
* Add OSC support for control from external scripts etc (work in progress).
author | Chris Cannam |
---|---|
date | Fri, 10 Nov 2006 13:27:57 +0000 |
parents | cf27fc7feb7a |
children | e269ae6ed008 |
comparison
equal
deleted
inserted
replaced
68:050d764df239 | 69:76cc2c424268 |
---|---|
46 class AudioDial; | 46 class AudioDial; |
47 class QLabel; | 47 class QLabel; |
48 class QCheckBox; | 48 class QCheckBox; |
49 class PreferencesDialog; | 49 class PreferencesDialog; |
50 class QPushButton; | 50 class QPushButton; |
51 class OSCQueue; | |
52 class OSCMessage; | |
51 | 53 |
52 | 54 |
53 class MainWindow : public QMainWindow | 55 class MainWindow : public QMainWindow |
54 { | 56 { |
55 Q_OBJECT | 57 Q_OBJECT |
193 void setupRecentFilesMenu(); | 195 void setupRecentFilesMenu(); |
194 void setupRecentTransformsMenu(); | 196 void setupRecentTransformsMenu(); |
195 | 197 |
196 void showLayerTree(); | 198 void showLayerTree(); |
197 | 199 |
200 void pollOSC(); | |
201 void handleOSCMessage(const OSCMessage &); | |
202 | |
198 void website(); | 203 void website(); |
199 void help(); | 204 void help(); |
200 void about(); | 205 void about(); |
201 | 206 |
202 protected: | 207 protected: |
217 | 222 |
218 bool m_audioOutput; | 223 bool m_audioOutput; |
219 AudioCallbackPlaySource *m_playSource; | 224 AudioCallbackPlaySource *m_playSource; |
220 AudioCallbackPlayTarget *m_playTarget; | 225 AudioCallbackPlayTarget *m_playTarget; |
221 | 226 |
227 OSCQueue *m_oscQueue; | |
228 | |
222 RecentFiles m_recentFiles; | 229 RecentFiles m_recentFiles; |
223 RecentFiles m_recentTransforms; | 230 RecentFiles m_recentTransforms; |
224 | 231 |
225 bool m_mainMenusCreated; | 232 bool m_mainMenusCreated; |
226 QMenu *m_paneMenu; | 233 QMenu *m_paneMenu; |
278 void setupHelpMenu(); | 285 void setupHelpMenu(); |
279 void setupExistingLayersMenu(); | 286 void setupExistingLayersMenu(); |
280 void setupToolbars(); | 287 void setupToolbars(); |
281 | 288 |
282 Pane *addPaneToStack(); | 289 Pane *addPaneToStack(); |
290 | |
291 void addPane(const PaneConfiguration &configuration, QString text); | |
283 | 292 |
284 class PaneCallback : public SVFileReaderPaneCallback | 293 class PaneCallback : public SVFileReaderPaneCallback |
285 { | 294 { |
286 public: | 295 public: |
287 PaneCallback(MainWindow *mw) : m_mw(mw) { } | 296 PaneCallback(MainWindow *mw) : m_mw(mw) { } |