]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.h
Fix crash in DVD Wizard
[kdenlive] / src / mainwindow.h
index 7a7c2ed54af382afda00450e247893decf08cadd..577ce1759efc2ad6d02ea9d4b6d1fb709cb7019a 100644 (file)
@@ -27,6 +27,7 @@
 #include <QProgressBar>
 #include <QEvent>
 #include <QTimer>
+#include <QShortcut>
 
 #include <KXmlGuiWindow>
 #include <KTextEdit>
@@ -93,14 +94,14 @@ protected:
      * This function is called when it is time for the app to save its
      * properties for session management purposes.
      */
-    void saveProperties(KConfig *);
+    virtual void saveProperties(KConfigGroup &config);
 
     /**
      * This function is called when this app is restored.  The KConfig
      * object points to the session management config file that was saved
      * with @ref saveProperties
      */
-    void readProperties(KConfig *);
+    virtual void readProperties(const KConfigGroup &config);
 
 private:
     KTabWidget* m_timelineArea;
@@ -142,6 +143,13 @@ private:
     QMenu *m_timelineContextMenu;
     QMenu *m_timelineContextClipMenu;
     QMenu *m_timelineContextTransitionMenu;
+    KUrl m_startUrl;
+
+    /**
+     * Shortcut to remove the focus of any element. Allows to get out
+     * of e.g. text input fields and to press another shortcut.
+     */
+    QShortcut* m_shortcutRemoveFocus;
 
     RenderWidget *m_renderWidget;
 
@@ -150,6 +158,7 @@ private:
 #endif /* NO_JOGSHUTTLE */
 
     KRecentFilesAction *m_fileOpenRecent;
+    KAction *m_fileRevert;
     KAction *m_projectSearch;
     KAction *m_projectSearchNext;
 
@@ -193,6 +202,7 @@ private:
     QStringList m_pluginFileNames;
     QByteArray m_timelineState;
     void loadTranscoders();
+    QPixmap createSchemePreviewIcon(const KSharedConfigPtr &config);
 
 public slots:
     void openFile(const KUrl &url);
@@ -216,7 +226,7 @@ private slots:
     void slotRaiseMonitor(bool clipMonitor);
     void slotUpdateClip(const QString &id);
     void slotUpdateMousePosition(int pos);
-    void slotAddEffect(QDomElement effect, GenTime pos = GenTime(), int track = -1);
+    void slotAddEffect(const QDomElement effect, GenTime pos = GenTime(), int track = -1);
     void slotEditProfiles();
     void slotDetectAudioDriver();
     void slotEditProjectSettings();
@@ -226,13 +236,12 @@ private slots:
     void slotSwitchMarkersComments();
     void slotSwitchSnap();
     void slotRenderProject();
-    void slotDoRender(const QStringList args, const QStringList overlay_args);
     void slotFullScreen();
     void slotUpdateDocumentState(bool modified);
     void slotZoomIn();
     void slotZoomOut();
     void slotFitZoom();
-    void closeCurrentDocument();
+    void closeCurrentDocument(bool saveChanges = true);
     void slotDeleteTimelineClip();
     void slotAddClipMarker();
     void slotDeleteClipMarker();
@@ -272,7 +281,6 @@ private slots:
     void slotPaste();
     void slotPasteEffects();
     void slotReloadEffects();
-    void slotChangeClipSpeed();
 
     void slotAdjustClipMonitor();
     void slotAdjustProjectMonitor();
@@ -301,7 +309,19 @@ private slots:
     void slotMaximizeCurrent(bool show);
     void slotTranscode(KUrl::List urls = KUrl::List());
     void slotTranscodeClip();
-    void slotSetDocumentRenderProfile(const QString &dest, const QString &name);
+    void slotSetDocumentRenderProfile(const QString &dest, const QString &name, const QString &file);
+    void slotPrepareRendering(bool scriptExport, bool zoneOnly, const QString &chapterFile);
+    void slotUpdateTimecodeFormat(int ix);
+    /** Removes the focus of anything */
+    void slotRemoveFocus();
+    void slotCleanProject();
+    void slotSetZoom(int value);
+    void slotUpdateClipMarkers(DocClipBase *clip);
+    void slotRevert();
+    void slotShutdown();
+    void slotUpdateTrackInfo();
+    /** \brief Change color scheme */
+    void slotChangePalette(QAction *action, const QString &themename = QString());
 
 signals:
     Q_SCRIPTABLE void abortRenderJob(const QString &url);