aboutsummaryrefslogtreecommitdiff
path: root/qmpplistwindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-27 23:25:05 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-27 23:25:05 +0800
commita17d580f623dfc3a6eb33c540203798d6200a5fc (patch)
tree765e611d8416754f6924fd89c8448d86acc4abc7 /qmpplistwindow.hpp
parent246949269f370fac5ddb581ee0598480d529a48a (diff)
downloadQMidiPlayer-a17d580f623dfc3a6eb33c540203798d6200a5fc.tar.xz
Ultimate truth. (WTF)
Diffstat (limited to 'qmpplistwindow.hpp')
-rw-r--r--qmpplistwindow.hpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/qmpplistwindow.hpp b/qmpplistwindow.hpp
new file mode 100644
index 0000000..3c2e712
--- /dev/null
+++ b/qmpplistwindow.hpp
@@ -0,0 +1,51 @@
+#ifndef QMPPLISTWINDOW_H
+#define QMPPLISTWINDOW_H
+
+#include <QDialog>
+#include <QCloseEvent>
+#include <QListWidgetItem>
+
+namespace Ui {
+ class qmpplistwindow;
+}
+
+class qmpplistwindow : public QDialog
+{
+ Q_OBJECT
+
+ public:
+ explicit qmpplistwindow(QWidget *parent=0);
+ ~qmpplistwindow();
+ void closeEvent(QCloseEvent *event);
+ int getRepeat();
+ QString getFirstItem();
+ QString getNextItem();
+ QString getPrevItem();
+ QString getSelectedItem();
+ //void loadPList(const char*);
+ //void savePList(const char*);
+ signals:
+ void dialogClosing();
+ void selectionChanging();
+
+ private slots:
+ void on_pbAdd_clicked();
+
+ void on_pbAddFolder_clicked();
+
+ void on_pbRemove_clicked();
+
+ void on_pbClear_clicked();
+
+ void on_pbRepeat_clicked();
+
+ void on_pbShuffle_clicked();
+
+ void on_lwFiles_itemDoubleClicked();
+
+ private:
+ Ui::qmpplistwindow *ui;
+ int shuffle,repeat;//rep 0=off 1=one 2=all
+};
+
+#endif // QMPPLISTWINDOW_H