45 lines
801 B
C++
45 lines
801 B
C++
#ifndef PROGPANEL_H
|
|
#define PROGPANEL_H
|
|
|
|
#include "gutil/qgui.h"
|
|
#include <QPushButton>
|
|
#include <QSettings>
|
|
#include <QTableWidget>
|
|
#include <QDialog>
|
|
|
|
class MediaTree : public TreeWidget {
|
|
Q_OBJECT
|
|
public:
|
|
using TreeWidget::TreeWidget;
|
|
|
|
protected:
|
|
void dropEvent(QDropEvent *event) override;
|
|
};
|
|
|
|
class MediaPanel : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit MediaPanel(QWidget *parent = 0);
|
|
|
|
MediaTree *tree;
|
|
protected:
|
|
void changeEvent(QEvent *) override;
|
|
void transUi();
|
|
|
|
private:
|
|
QString mProgsDir;
|
|
QPushButton *bnNew;
|
|
QPushButton *bnDelete;
|
|
QPushButton *bnRename;
|
|
};
|
|
|
|
class MediaItem : public TreeWidgetItem {
|
|
public:
|
|
explicit MediaItem(const QString &dir, TreeWidget *parent);
|
|
|
|
QString file;
|
|
QImage profile;
|
|
};
|
|
|
|
#endif // PROGPANEL_H
|