#ifndef PROGPANEL_H #define PROGPANEL_H #include "gutil/qgui.h" #include #include #include #include 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