]> git.sesse.net Git - kdenlive/blobdiff - src/renderwidget.h
svn path=/trunk/kdenlive/; revision=3350
[kdenlive] / src / renderwidget.h
index 4093dac0bb0abeb6022481ebb06e6b56fcedc99e..d245976a0397dc2ccd09489044ae50c17d5ee623 100644 (file)
@@ -21,7 +21,6 @@
 #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) {}
@@ -96,7 +98,8 @@ public:
 
 
 // RenderScriptDelegate is used to draw the script items.
-class RenderScriptDelegate : public QItemDelegate {
+class RenderScriptDelegate : public QItemDelegate
+{
     Q_OBJECT
 public:
     RenderScriptDelegate(QWidget *parent) : QItemDelegate(parent) {}
@@ -130,11 +133,12 @@ public:
     }
 };
 
-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);
@@ -151,7 +155,7 @@ private slots:
     void refreshParams();
     void slotSaveProfile();
     void slotEditProfile();
-    void slotDeleteProfile();
+    void slotDeleteProfile(bool refresh = true);
     void slotUpdateGuideBox();
     void slotCheckStartGuidePosition();
     void slotCheckEndGuidePosition();
@@ -163,12 +167,13 @@ private slots:
     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);