]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.h
Add action to show / hide timeline
[kdenlive] / src / mainwindow.h
index c9ef5e9f343a8b5e4e0382b951aec4e4c836e023..a24780e5d60b811525a2ee8cdcc911ff50847bc8 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;
@@ -164,6 +167,8 @@ private:
     KAction *m_saveAction;
     KAction *m_closeAction;
     QSlider *m_zoomSlider;
+    QAction *m_loopZone;
+    QAction *m_playZone;
     StatusBarMessageLabel *m_messageLabel;
 
     bool m_findActivated;
@@ -181,10 +186,20 @@ private:
     void findAhead();
     void doOpenFile(const KUrl &url, KAutoSaveFile *stale);
     void recoverFiles(QList<KAutoSaveFile *> staleFiles);
+    void loadPlugins();
+    void populateMenus(QObject *plugin);
+    void addToMenu(QObject *plugin, const QStringList &texts,
+                   QMenu *menu, const char *member,
+                   QActionGroup *actionGroup);
+    void aboutPlugins();
+    QStringList m_pluginFileNames;
+    QByteArray m_timelineState;
 
 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);
@@ -211,7 +226,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);
+    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();
@@ -234,7 +249,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();
@@ -269,7 +284,25 @@ 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");
+    void slotGroupClips();
+    void slotUnGroupClips();
+    void slotSplitAudio();
+    void slotVideoOnly();
+    void slotAudioOnly();
+    void slotShowTimeline(bool show);
+    void slotMaximizeCurrent(bool show);
+
+signals:
+    Q_SCRIPTABLE void abortRenderJob(const QString &url);
 };