comparison framework/MainWindowBase.h @ 161:f90e277d2876

* Somewhat better MIDI-based time instant timing
author Chris Cannam
date Wed, 25 Feb 2009 11:15:22 +0000
parents 64b09e5bda21
children c17284397aa9
comparison
equal deleted inserted replaced
160:64b09e5bda21 161:f90e277d2876
25 25
26 #include "base/Command.h" 26 #include "base/Command.h"
27 #include "view/ViewManager.h" 27 #include "view/ViewManager.h"
28 #include "base/PropertyContainer.h" 28 #include "base/PropertyContainer.h"
29 #include "base/RecentFiles.h" 29 #include "base/RecentFiles.h"
30 #include "base/FrameTimer.h"
30 #include "layer/LayerFactory.h" 31 #include "layer/LayerFactory.h"
31 #include "transform/Transform.h" 32 #include "transform/Transform.h"
32 #include "SVFileReader.h" 33 #include "SVFileReader.h"
33 #include "widgets/FileFinder.h" 34 #include "widgets/FileFinder.h"
34 #include "data/fileio/FileSource.h" 35 #include "data/fileio/FileSource.h"
67 * menu structures or editing tools, and if a function needs to open a 68 * menu structures or editing tools, and if a function needs to open a
68 * dialog, it shouldn't be in here. This permits "variations on SV" 69 * dialog, it shouldn't be in here. This permits "variations on SV"
69 * to use different subclasses retaining the same general structure. 70 * to use different subclasses retaining the same general structure.
70 */ 71 */
71 72
72 class MainWindowBase : public QMainWindow 73 class MainWindowBase : public QMainWindow, public FrameTimer
73 { 74 {
74 Q_OBJECT 75 Q_OBJECT
75 76
76 public: 77 public:
77 MainWindowBase(bool withAudioOutput, bool withOSCSupport); 78 MainWindowBase(bool withAudioOutput, bool withOSCSupport, bool withMIDIInput);
78 virtual ~MainWindowBase(); 79 virtual ~MainWindowBase();
79 80
80 enum AudioFileOpenMode { 81 enum AudioFileOpenMode {
81 ReplaceMainModel, 82 ReplaceMainModel,
82 CreateAdditionalModel, 83 CreateAdditionalModel,
101 102
102 virtual FileOpenStatus openSessionFile(QString fileOrUrl); 103 virtual FileOpenStatus openSessionFile(QString fileOrUrl);
103 virtual FileOpenStatus openSession(FileSource source); 104 virtual FileOpenStatus openSession(FileSource source);
104 105
105 virtual bool saveSessionFile(QString path); 106 virtual bool saveSessionFile(QString path);
107
108 /// Implementation of FrameTimer interface method
109 virtual unsigned long getFrame() const;
106 110
107 signals: 111 signals:
108 // Used to toggle the availability of menu actions 112 // Used to toggle the availability of menu actions
109 void canAddPane(bool); 113 void canAddPane(bool);
110 void canDeleteCurrentPane(bool); 114 void canDeleteCurrentPane(bool);