]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.h
Check for invalid producers / entries when opening document:
[kdenlive] / src / mainwindow.h
index afc4b1679c9fc8e999aaa696e1604143b3dbbceb..2292a3a7ef281dc50a3b1e4c9c8f4275750a357a 100644 (file)
@@ -41,6 +41,7 @@
 #include "gentime.h"
 #include "definitions.h"
 #include "statusbarmessagelabel.h"
+#include "dvdwizard.h"
 
 class KdenliveDoc;
 class TrackView;
@@ -58,9 +59,11 @@ class JogShuttle;
 #endif /* NO_JOGSHUTTLE */
 class DocClipBase;
 class Render;
+class Transition;
 
 class MainWindow : public KXmlGuiWindow {
     Q_OBJECT
+    Q_CLASSINFO("D-Bus Interface", "org.kdenlive.MainWindow")
 
 public:
     /** Constructor
@@ -71,7 +74,7 @@ public:
      * The constructor inits the main window. If Url is present, it will be opened.
      * If Url is not present, and openLastproject is set, last project will be set
      * If no file is open after trying this, a default "newfile" will be created. */
-    MainWindow(const QString &MltPath = QString(), const KUrl & Url = KUrl(), QWidget *parent = 0);
+    explicit MainWindow(const QString &MltPath = QString(), const KUrl & Url = KUrl(), QWidget *parent = 0);
     void parseProfiles(const QString &mltPath = QString());
 
     static EffectsList videoEffects;
@@ -194,6 +197,8 @@ private:
 public slots:
     void openFile(const KUrl &url);
     void slotGotProgressInfo(const QString &message, int progress);
+    Q_SCRIPTABLE void setRenderingProgress(const QString &url, int progress);
+    Q_SCRIPTABLE void setRenderingFinished(const QString &url, int status, const QString &error);
 
 private slots:
     void newFile(bool showProjectSettings = true);
@@ -220,7 +225,7 @@ private slots:
     void slotSwitchMarkersComments();
     void slotSwitchSnap();
     void slotRenderProject();
-    void slotDoRender(const QString &dest, const QString &render, const QStringList &overlay_args, const QStringList &avformat_args, bool zoneOnly, bool playAfter, double guideStart, double guideEnd, bool resizeProfile);
+    void slotDoRender(const QString &dest, const QString &render, const QStringList &overlay_args, const QStringList &avformat_args, bool zoneOnly, bool playAfter, double guideStart, double guideEnd, bool resizeProfile, const QString &scriptExport);
     void slotFullScreen();
     void slotUpdateDocumentState(bool modified);
     void slotZoomIn();
@@ -243,7 +248,7 @@ private slots:
 #endif /* NO_JOGSHUTTLE */
     void slotShowClipProperties(DocClipBase *clip);
     void slotActivateEffectStackView();
-    void slotActivateTransitionView();
+    void slotActivateTransitionView(Transition *);
     void slotChangeTool(QAction * action);
     void slotSetTool(PROJECTTOOL tool);
     void slotSnapForward();
@@ -278,12 +283,18 @@ private slots:
     void slotInsertTrack(int ix = 0);
     void slotDeleteTrack(int ix = 0);
     void slotChangeTrack(int ix = 0);
-    void slotGetNewStuff();
+    void slotGetNewLumaStuff();
+    void slotGetNewRenderStuff();
+    void slotGetNewMltProfileStuff();
     void slotAutoTransition();
     void slotRunWizard();
     void generateClip();
     void slotZoneMoved(int start, int end);
     void slotUpdatePreviewSettings();
+    void slotDvdWizard(const QString &url = QString(), const QString &profile = "dv_pal");
+
+signals:
+    Q_SCRIPTABLE void abortRenderJob(const QString &url);
 };