diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-01 23:49:05 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-01 23:49:05 +0800 |
commit | 85ccf22f3d2340e80ce2a109bbe610da1b92ca7d (patch) | |
tree | 8127dc287d9a4df6a6c7985e55087491153b5523 /include | |
parent | 90f018721ae7ee6ac154d757516378b9c45ec1bf (diff) | |
download | QMidiPlayer-85ccf22f3d2340e80ce2a109bbe610da1b92ca7d.tar.xz |
Give the visualization a clearer look...
Now highlights playing notes.
Avoid a crash in file reading.
Diffstat (limited to 'include')
-rw-r--r-- | include/qmpcorepublic.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qmpcorepublic.hpp b/include/qmpcorepublic.hpp index 54365b6..e17bf84 100644 --- a/include/qmpcorepublic.hpp +++ b/include/qmpcorepublic.hpp @@ -71,16 +71,23 @@ class qmpPluginAPI virtual int registerEventHandlerIntf(IMidiCallBack* cb,void* userdata); virtual void unregisterEventHandlerIntf(int intfhandle); + //if desc=="", the option won't be visible in the settings form. + //it will only show up in the configuration file. virtual void registerOptionInt(std::string desc,std::string key,int min,int max,int defaultval); virtual int getOptionInt(std::string key); + virtual void setOptionInt(std::string key,int val); virtual void registerOptionUint(std::string desc,std::string key,unsigned min,unsigned max,unsigned defaultval); virtual unsigned getOptionUint(std::string key); + virtual void setOptionUint(std::string key,unsigned val); virtual void registerOptionBool(std::string desc,std::string key,bool defaultval); virtual bool getOptionBool(std::string key); + virtual void setOptionBool(std::string key,bool val); virtual void registerOptionDouble(std::string desc,std::string key,double min,double max,double defaultval); virtual double getOptionDouble(std::string key); + virtual void setOptionDouble(std::string key,double val); virtual void registerOptionString(std::string desc,std::string key,std::string defaultval); virtual std::string getOptionString(std::string key); + virtual void setOptionString(std::string key,std::string val); }; #ifdef QMP_MAIN } |