From 85ccf22f3d2340e80ce2a109bbe610da1b92ca7d Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 1 May 2016 23:49:05 +0800 Subject: Give the visualization a clearer look... Now highlights playing notes. Avoid a crash in file reading. --- qmidiplayer-desktop/qmpplugin.cpp | 5 +++++ qmidiplayer-desktop/qmpsettingswindow.cpp | 2 -- qmidiplayer-desktop/qmpsettingswindow.hpp | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'qmidiplayer-desktop') diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp index 7a250ff..ce041ec 100644 --- a/qmidiplayer-desktop/qmpplugin.cpp +++ b/qmidiplayer-desktop/qmpplugin.cpp @@ -120,11 +120,16 @@ void qmpPluginAPI::unregisterVisualizationIntf(int intfhandle) void qmpPluginAPI::registerOptionInt(std::string,std::string,int,int,int){} int qmpPluginAPI::getOptionInt(std::string){return 0;} +void qmpPluginAPI::setOptionInt(std::string,int){} void qmpPluginAPI::registerOptionUint(std::string,std::string,unsigned,unsigned,unsigned){} unsigned qmpPluginAPI::getOptionUint(std::string){return 0;} +void qmpPluginAPI::setOptionUint(std::string,unsigned){} void qmpPluginAPI::registerOptionBool(std::string,std::string,bool){} bool qmpPluginAPI::getOptionBool(std::string){return false;} +void qmpPluginAPI::setOptionBool(std::string,bool){} void qmpPluginAPI::registerOptionDouble(std::string,std::string,double,double,double){} double qmpPluginAPI::getOptionDouble(std::string){return 0;} +void qmpPluginAPI::setOptionDouble(std::string,double){} void qmpPluginAPI::registerOptionString(std::string,std::string,std::string){} std::string qmpPluginAPI::getOptionString(std::string){return "";} +void qmpPluginAPI::setOptionString(std::string,std::string){} diff --git a/qmidiplayer-desktop/qmpsettingswindow.cpp b/qmidiplayer-desktop/qmpsettingswindow.cpp index d59d2be..a0daf48 100644 --- a/qmidiplayer-desktop/qmpsettingswindow.cpp +++ b/qmidiplayer-desktop/qmpsettingswindow.cpp @@ -265,9 +265,7 @@ void qmpSettingsWindow::on_pbAdd_clicked() { QStringList sl=QFileDialog::getOpenFileNames(this,"Add File","","SoundFont files (*.sf2)"); for(int i=0;ilwSoundfont->addItem(new QListWidgetItem(sl.at(i))); - } } void qmpSettingsWindow::on_pbRemove_clicked() diff --git a/qmidiplayer-desktop/qmpsettingswindow.hpp b/qmidiplayer-desktop/qmpsettingswindow.hpp index f7bfae9..554afd3 100644 --- a/qmidiplayer-desktop/qmpsettingswindow.hpp +++ b/qmidiplayer-desktop/qmpsettingswindow.hpp @@ -1,11 +1,13 @@ #ifndef QMPSETTINGSWINDOW_H #define QMPSETTINGSWINDOW_H +#include #include #include #include #include #include +#include #include "qmpplugin.hpp" namespace Ui { @@ -23,6 +25,7 @@ class qmpSettingsWindow:public QDialog void settingsInit(); QListWidget* getSFWidget(); void updatePluginList(qmpPluginManager *pmgr); + int getOptionInt(std::string key); signals: void dialogClosing(); @@ -43,6 +46,8 @@ class qmpSettingsWindow:public QDialog private: Ui::qmpSettingsWindow *ui; void settingsUpdate(); + std::map customOptWidgets; + std::map customOptPages; static QSettings *settings; static QComboBox* outwidget; public: -- cgit v1.2.3