aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpsettingswindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-06 16:54:29 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-04-06 16:54:29 +0800
commit70fd2d85c1bd6fb8732e680e8fda9d36c317c732 (patch)
tree4f048e7af294a2d40d3cabb9ea0ff266aa1fc36c /qmidiplayer-desktop/qmpsettingswindow.hpp
parentcf7eafca1fbc9aae495d7b7d7e1fb4bc92e6819f (diff)
downloadQMidiPlayer-70fd2d85c1bd6fb8732e680e8fda9d36c317c732.tar.xz
Too young too simple.
Diffstat (limited to 'qmidiplayer-desktop/qmpsettingswindow.hpp')
-rw-r--r--qmidiplayer-desktop/qmpsettingswindow.hpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpsettingswindow.hpp b/qmidiplayer-desktop/qmpsettingswindow.hpp
new file mode 100644
index 0000000..c506de4
--- /dev/null
+++ b/qmidiplayer-desktop/qmpsettingswindow.hpp
@@ -0,0 +1,47 @@
+#ifndef QMPSETTINGSWINDOW_H
+#define QMPSETTINGSWINDOW_H
+
+#include <QDialog>
+#include <QCloseEvent>
+#include <QSettings>
+#include <QListWidget>
+
+namespace Ui {
+ class qmpSettingsWindow;
+}
+
+class qmpSettingsWindow:public QDialog
+{
+ Q_OBJECT
+
+ public:
+ explicit qmpSettingsWindow(QWidget *parent=0);
+ ~qmpSettingsWindow();
+ void closeEvent(QCloseEvent *event);
+ void settingsInit();
+ QListWidget* getSFWidget();
+ signals:
+ void dialogClosing();
+
+ private slots:
+ void on_buttonBox_accepted();
+ void on_buttonBox_rejected();
+
+ 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 QSettings* getSettingsIntf(){return settings;}
+};
+
+#endif // QMPSETTINGSWINDOW_H