diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-27 23:45:24 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-27 23:45:24 +0800 |
commit | 8eac5088101595422753030b1b259411d63f83a8 (patch) | |
tree | 43c4c3e9b92657bbf6c7c55cf75d297ec85a5b7f /visualization/qmpvisualization.hpp | |
parent | dfcc193d4070c99bf217ac74a492160968dba766 (diff) | |
download | QMidiPlayer-8eac5088101595422753030b1b259411d63f83a8.tar.xz |
Handle pitch bend in visualization.
Handle mute and solo in the default visualization.
Show file name in window title.
A little plugin sdk documentaion...
Remove stupid things.
Diffstat (limited to 'visualization/qmpvisualization.hpp')
-rw-r--r-- | visualization/qmpvisualization.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/visualization/qmpvisualization.hpp b/visualization/qmpvisualization.hpp index 438b98a..afc57a4 100644 --- a/visualization/qmpvisualization.hpp +++ b/visualization/qmpvisualization.hpp @@ -35,6 +35,7 @@ struct MidiVisualEvent class qmpVisualization:public qmpPluginIntf { friend class CHandlerCallBack; + friend class CloseHandler; private: qmpPluginAPI* api; CReaderCallBack* cb; @@ -47,7 +48,7 @@ class qmpVisualization:public qmpPluginIntf SMELT *sm; SMTRG tdscn; SMTEX chequer; - smTTFont font; + smTTFont font,font2; float pos[3],rot[3],lastx,lasty; uint32_t ctc,ctk,fintk,elb; double etps; @@ -83,8 +84,12 @@ class CMidiVisualHandler:public smHandler bool handlerFunc(){return p->update();} }; -class RefuseCloseHandler:public smHandler +class CloseHandler:public smHandler { + private: + qmpVisualization *p; + public: + CloseHandler(qmpVisualization* par){p=par;} public: bool handlerFunc(){return true;} }; |