From b4c4cefb706f9c43a54fecb18cb8ee50f0f0e19a Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 11 Nov 2019 23:38:09 +0800 Subject: New UI hook "main.seek". Fix SysExc. message sending. API documentation update. Simple visualization no longer have notes stuck after seeking. System exclusive messages longer than 256 bytes are now sent correctly. --- simple-visualization/simplevisualization.cpp | 2 ++ simple-visualization/simplevisualization.hpp | 1 + 2 files changed, 3 insertions(+) (limited to 'simple-visualization') diff --git a/simple-visualization/simplevisualization.cpp b/simple-visualization/simplevisualization.cpp index d45d101..71dac7a 100644 --- a/simple-visualization/simplevisualization.cpp +++ b/simple-visualization/simplevisualization.cpp @@ -14,12 +14,14 @@ void qmpSimpleVisualization::init() } p=new qmpKeyboardWindow(api,(QWidget*)api->getMainWindow()); uihs=api->registerUIHook("main.stop",[this](const void*,void*){this->p->resetAll();},nullptr); + uihsk=api->registerUIHook("main.seek",[this](const void*,void*){this->p->resetAll();},nullptr); } void qmpSimpleVisualization::deinit() { if(!api)return;close(); api->unregisterFunctionality("Keyboard"); api->unregisterUIHook("main.stop",uihs); + api->unregisterUIHook("main.seek",uihsk); delete p; } const char* qmpSimpleVisualization::pluginGetName() diff --git a/simple-visualization/simplevisualization.hpp b/simple-visualization/simplevisualization.hpp index d79eef0..58b02ac 100644 --- a/simple-visualization/simplevisualization.hpp +++ b/simple-visualization/simplevisualization.hpp @@ -10,6 +10,7 @@ class qmpSimpleVisualization:public qmpPluginIntf,public qmpFuncBaseIntf qmpPluginAPI* api; qmpKeyboardWindow *p; int uihs; + int uihsk; public: qmpSimpleVisualization(qmpPluginAPI* _api); void show(); -- cgit v1.2.3