aboutsummaryrefslogtreecommitdiff
path: root/qmpplistwindow.hpp
blob: 17d7420f3e52b352a93818293941ff87d7de18ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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