Mercurial > hg > svapp
diff framework/MainWindowBase.h @ 654:4f53620962d9 osc-script
Toward running an OSC script in batch
author | Chris Cannam |
---|---|
date | Mon, 25 Mar 2019 15:49:23 +0000 |
parents | 163573a73ebe |
children | 94f518af106c |
line wrap: on
line diff
--- a/framework/MainWindowBase.h Fri Mar 22 17:49:23 2019 +0000 +++ b/framework/MainWindowBase.h Mon Mar 25 15:49:23 2019 +0000 @@ -34,6 +34,7 @@ #include "data/fileio/FileFinder.h" #include "data/fileio/FileSource.h" #include "data/osc/OSCQueue.h" +#include "data/osc/OSCMessageCallback.h" #include <map> class Document; @@ -58,6 +59,7 @@ class QTreeView; class QPushButton; class OSCMessage; +class OSCScript; class MIDIInput; class KeyReference; class Labeller; @@ -81,7 +83,9 @@ * to use different subclasses retaining the same general structure. */ -class MainWindowBase : public QMainWindow, public FrameTimer +class MainWindowBase : public QMainWindow, + public FrameTimer, + public OSCMessageCallback { Q_OBJECT @@ -135,6 +139,8 @@ virtual bool saveSessionFile(QString path); virtual bool saveSessionTemplate(QString path); + void cueOSCScript(QString filename); + /// Implementation of FrameTimer interface method sv_frame_t getFrame() const override; @@ -320,7 +326,7 @@ virtual void oscReady(); virtual void pollOSC(); - virtual void handleOSCMessage(const OSCMessage &) = 0; + virtual void oscScriptFinished(); virtual void contextHelpChanged(const QString &); virtual void inProgressSelectionChanged(); @@ -367,7 +373,11 @@ OSCQueue *m_oscQueue; OSCQueueStarter *m_oscQueueStarter; + OSCScript *m_oscScript; + QString m_oscScriptFile; + void startOSCQueue(); + void startOSCScript(); MIDIInput *m_midiInput;