aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpsettingswindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-03 23:20:16 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-03 23:20:16 +0800
commit015a45c276caf34be3ce9175a1bcce644d736a0b (patch)
tree05ebec5acd744170981e5569c1e0aed4f78ed68f /qmidiplayer-desktop/qmpsettingswindow.hpp
parentbb82e7dfe2c6f3ee40a79f949db68cdd2c28456b (diff)
downloadQMidiPlayer-015a45c276caf34be3ce9175a1bcce644d736a0b.tar.xz
Finish option proxying for all types.
Add more options for the visualization plugin. Bump version to 0.8.0. Package the visualization plugin for debian.
Diffstat (limited to 'qmidiplayer-desktop/qmpsettingswindow.hpp')
-rw-r--r--qmidiplayer-desktop/qmpsettingswindow.hpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpsettingswindow.hpp b/qmidiplayer-desktop/qmpsettingswindow.hpp
index 13442fd..efa69d5 100644
--- a/qmidiplayer-desktop/qmpsettingswindow.hpp
+++ b/qmidiplayer-desktop/qmpsettingswindow.hpp
@@ -34,7 +34,19 @@ class qmpSettingsWindow:public QDialog
void updatePluginList(qmpPluginManager *pmgr);
void registerOptionInt(std::string tab,std::string desc,std::string key,int min,int max,int defaultval);
int getOptionInt(std::string key);
- void SetOptionInt(std::string key,int val);
+ void setOptionInt(std::string key,int val);
+ void registerOptionUint(std::string tab,std::string desc,std::string key,unsigned min,unsigned max,unsigned defaultval);
+ unsigned getOptionUint(std::string key);
+ void setOptionUint(std::string key,unsigned val);
+ void registerOptionBool(std::string tab,std::string desc,std::string key,bool defaultval);
+ bool getOptionBool(std::string key);
+ void setOptionBool(std::string key,bool val);
+ void registerOptionDouble(std::string tab,std::string desc,std::string key,double min,double max,double defaultval);
+ double getOptionDouble(std::string key);
+ void setOptionDouble(std::string key,double val);
+ void registerOptionString(std::string tab,std::string desc,std::string key,std::string defaultval);
+ std::string getOptionString(std::string key);
+ void setOptionString(std::string key,std::string val);
signals:
void dialogClosing();
@@ -56,8 +68,8 @@ class qmpSettingsWindow:public QDialog
Ui::qmpSettingsWindow *ui;
void settingsUpdate();
std::map<std::string,qmpCustomOption> customOptions;
- std::map<std::string,QFormLayout*> customOptPages;
- void updateCustomeOptions();
+ std::map<std::string,QGridLayout*> customOptPages;
+ void updateCustomOptions();
static QSettings *settings;
static QComboBox* outwidget;
public: