#ifndef RENDERWIDGET_H
#define RENDERWIDGET_H
-#include <QDialog>
#include <QPushButton>
#include <QPainter>
#include <QItemDelegate>
#include "definitions.h"
#include "ui_renderwidget_ui.h"
+class QDomElement;
+
// RenderViewDelegate is used to draw the progress bars.
-class RenderViewDelegate : public QItemDelegate {
+class RenderViewDelegate : public QItemDelegate
+{
Q_OBJECT
public:
RenderViewDelegate(QWidget *parent) : QItemDelegate(parent) {}
// RenderScriptDelegate is used to draw the script items.
-class RenderScriptDelegate : public QItemDelegate {
+class RenderScriptDelegate : public QItemDelegate
+{
Q_OBJECT
public:
RenderScriptDelegate(QWidget *parent) : QItemDelegate(parent) {}
}
};
-class RenderWidget : public QDialog {
+class RenderWidget : public QDialog
+{
Q_OBJECT
public:
- RenderWidget(const QString &projectfolder, QWidget * parent = 0);
+ explicit RenderWidget(const QString &projectfolder, QWidget * parent = 0);
void setGuides(QDomElement guidesxml, double duration);
void focusFirstVisibleItem();
void setProfile(MltVideoProfile profile);
void refreshParams();
void slotSaveProfile();
void slotEditProfile();
- void slotDeleteProfile();
+ void slotDeleteProfile(bool refresh = true);
void slotUpdateGuideBox();
void slotCheckStartGuidePosition();
void slotCheckEndGuidePosition();
void parseScriptFiles();
void slotCheckScript();
void slotCheckJob();
+ void slotEditItem(QListWidgetItem *item);
private:
Ui::RenderWidget_UI m_view;
MltVideoProfile m_profile;
QString m_projectFolder;
- void parseProfiles(QString group = QString(), QString profile = QString());
+ void parseProfiles(QString meta = QString(), QString group = QString(), QString profile = QString());
void parseFile(QString exportFile, bool editable);
void updateButtons();
KUrl filenameWithExtension(KUrl url, QString extension);