aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplistwindow.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/qmpplistwindow.hpp
parentcf7eafca1fbc9aae495d7b7d7e1fb4bc92e6819f (diff)
downloadQMidiPlayer-70fd2d85c1bd6fb8732e680e8fda9d36c317c732.tar.xz
Too young too simple.
Diffstat (limited to 'qmidiplayer-desktop/qmpplistwindow.hpp')
-rw-r--r--qmidiplayer-desktop/qmpplistwindow.hpp57
1 files changed, 57 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpplistwindow.hpp b/qmidiplayer-desktop/qmpplistwindow.hpp
new file mode 100644
index 0000000..6ceeb60
--- /dev/null
+++ b/qmidiplayer-desktop/qmpplistwindow.hpp
@@ -0,0 +1,57 @@
+#ifndef QMPPLISTWINDOW_H
+#define QMPPLISTWINDOW_H
+
+#include <QDialog>
+#include <QShowEvent>
+#include <QCloseEvent>
+#include <QMoveEvent>
+#include <QDropEvent>
+#include <QDragEnterEvent>
+#include <QListWidgetItem>
+
+namespace Ui {
+ class qmpPlistWindow;
+}
+
+class qmpPlistWindow : public QDialog
+{
+ Q_OBJECT
+
+ public:
+ explicit qmpPlistWindow(QWidget *parent=0);
+ ~qmpPlistWindow();
+ void showEvent(QShowEvent *event);
+ void closeEvent(QCloseEvent *event);
+ void moveEvent(QMoveEvent *event);
+ void dropEvent(QDropEvent *event);
+ void dragEnterEvent(QDragEnterEvent *event);
+ int getRepeat();
+ QString getFirstItem();
+ QString getNextItem();
+ QString getPrevItem();
+ QString getSelectedItem();
+ void emptyList();
+ void insertItem(QString i);
+ void insertItems(QStringList il);
+ signals:
+ void dialogClosing();
+ void selectionChanging();
+
+ public slots:
+ void on_pbAdd_clicked();
+ private slots:
+ void on_pbAddFolder_clicked();
+ void on_pbRemove_clicked();
+ void on_pbClear_clicked();
+ void on_pbRepeat_clicked();
+ void on_pbShuffle_clicked();
+ void on_lwFiles_itemDoubleClicked();
+ void on_pbSave_clicked();
+ void on_pbLoad_clicked();
+
+ private:
+ Ui::qmpPlistWindow *ui;
+ int shuffle,repeat;//rep 0=off 1=one 2=all
+};
+
+#endif // QMPPLISTWINDOW_H