Change playlist to use Esperanza's playlistmodel
This commit is contained in:
parent
85cf6a8d1c
commit
503385309b
96 changed files with 2010 additions and 412 deletions
48
src/SkinChooser.h
Normal file
48
src/SkinChooser.h
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
#include "MainWindow.h"
|
||||
|
||||
#include <QListWidget>
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
#include <QMainWindow>
|
||||
|
||||
class SkinList : public QListWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SkinList (QWidget *parent);
|
||||
~SkinList () {}
|
||||
|
||||
public slots:
|
||||
void changeSkin (QListWidgetItem *item);
|
||||
};
|
||||
|
||||
class SkinChooserItem : public QListWidgetItem
|
||||
{
|
||||
public:
|
||||
SkinChooserItem (QIcon i, QString n, QString p, QListWidget *parent) :
|
||||
QListWidgetItem (i, n, parent) {
|
||||
m_path = p;
|
||||
}
|
||||
~SkinChooserItem () {}
|
||||
QString getPath (void) { return m_path; }
|
||||
private:
|
||||
QString m_path;
|
||||
|
||||
};
|
||||
|
||||
class SkinChooser : public QMainWindow
|
||||
{
|
||||
public:
|
||||
SkinChooser (QWidget *parent);
|
||||
~SkinChooser (void) {}
|
||||
MainWindow *getMW (void) { return m_mw; }
|
||||
|
||||
private:
|
||||
QVBoxLayout *m_vbox;
|
||||
SkinList *m_skin;
|
||||
QLabel *m_label;
|
||||
QWidget *m_c;
|
||||
MainWindow *m_mw;
|
||||
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue