summaryrefslogtreecommitdiff
path: root/qmpsettingswindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-02 23:57:36 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-02 23:57:36 +0800
commitb886aa1fcafc16fe93bfe19e2f63b4089234f9f6 (patch)
tree929ed0c3fc60b4e9fce421718c21062059c2cbd9 /qmpsettingswindow.hpp
parentd418712c981d9854fa6429d65773368ca63b8dac (diff)
downloadQMidiPlayer-b886aa1fcafc16fe93bfe19e2f63b4089234f9f6.tar.xz
Mystic Flier. (WTF)
Diffstat (limited to 'qmpsettingswindow.hpp')
-rw-r--r--qmpsettingswindow.hpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/qmpsettingswindow.hpp b/qmpsettingswindow.hpp
index 0b5f886..ef9dbab 100644
--- a/qmpsettingswindow.hpp
+++ b/qmpsettingswindow.hpp
@@ -3,6 +3,8 @@
#include <QDialog>
#include <QCloseEvent>
+#include <QSettings>
+#include <QListWidget>
namespace Ui {
class qmpSettingsWindow;
@@ -16,16 +18,30 @@ class qmpSettingsWindow:public QDialog
explicit qmpSettingsWindow(QWidget *parent=0);
~qmpSettingsWindow();
void closeEvent(QCloseEvent *event);
+ void settingsInit();
+ QListWidget* getSFWidget();
signals:
void dialogClosing();
- private slots:
+ private slots:
void on_buttonBox_accepted();
-
void on_buttonBox_rejected();
- private:
+ void on_cbBufSize_currentTextChanged(const QString &s);
+ void on_cbBufCnt_currentTextChanged(const QString &s);
+
+ void on_pbAdd_clicked();
+ void on_pbRemove_clicked();
+ void on_pbUp_clicked();
+ void on_pbDown_clicked();
+
+ void on_cbAutoBS_stateChanged();
+
+ private:
Ui::qmpSettingsWindow *ui;
+ void settingsUpdate();
+ static QSettings *settings;
+ public: static const QSettings* getSettingsIntf(){return settings;}
};
#endif // QMPSETTINGSWINDOW_H