]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.h
Rewrote the handling of timeline in QGraphicsView. Now we use the built in zoom featu...
[kdenlive] / src / mainwindow.h
index 2a0deea1c26d2fe23f9807c342e245b67901dbf0..07a54664b3f50c7bd86673fd69b68fb2b49d8866 100644 (file)
@@ -26,6 +26,7 @@
 #include <QLabel>
 #include <QProgressBar>
 #include <QEvent>
+#include <QTimer>
 
 #include <KXmlGuiWindow>
 #include <KTextEdit>
@@ -68,6 +69,20 @@ public:
 protected:
     virtual bool queryClose();
     virtual void customEvent(QEvent * e);
+    virtual void keyPressEvent(QKeyEvent *ke);
+    bool eventFilter(QObject *obj, QEvent *ev);
+    /**
+     * This function is called when it is time for the app to save its
+     * properties for session management purposes.
+     */
+    void saveProperties(KConfig *);
+
+    /**
+     * 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 *);
 
 private:
     KTabWidget* m_timelineArea;
@@ -108,6 +123,7 @@ private:
     QDockWidget *overviewDock;
     CustomTrackView *m_overView;
 
+    QMenu *m_customEffectsMenu;
     QMenu *m_timelineContextMenu;
     QMenu *m_timelineContextClipMenu;
     QMenu *m_timelineContextTransitionMenu;
@@ -117,6 +133,8 @@ private:
     JogShuttle *m_jogProcess;
 
     KRecentFilesAction *m_fileOpenRecent;
+    KAction *m_projectSearch;
+    KAction *m_projectSearchNext;
 
     QAction *m_buttonAudioThumbs;
     QAction *m_buttonVideoThumbs;
@@ -129,11 +147,17 @@ private:
     QSlider *m_zoomSlider;
     StatusBarMessageLabel *m_messageLabel;
 
+    bool m_findActivated;
+    QString m_findString;
+    QTimer m_findTimer;
+    bool m_initialized;
+
     void readOptions();
     void saveOptions();
     void activateShuttleDevice();
     void slotShuttleAction(int code);
     void connectDocumentInfo(KdenliveDoc *doc);
+    void findAhead();
 
 public slots:
     void openFile(const KUrl &url);
@@ -141,16 +165,15 @@ public slots:
 
 private slots:
     void newFile();
-    void undo();
-    void redo();
     void queryQuit();
     void activateDocument();
     void connectDocument(TrackView*, KdenliveDoc*);
     void openFile();
+    void openLastFile();
     void saveFile();
     void saveFileAs();
     void saveFileAs(const QString &outputFileName);
-    void slotPreferences();
+    void slotPreferences(int page = -1, int option = -1);
     void updateConfiguration();
     void slotConnectMonitors();
     void slotRaiseMonitor(bool clipMonitor);
@@ -163,7 +186,7 @@ private slots:
     void slotSwitchVideoThumbs();
     void slotSwitchAudioThumbs();
     void slotSwitchMarkersComments();
-       void slotSwitchSnap();
+    void slotSwitchSnap();
     void slotRenderProject();
     void slotDoRender(const QString &dest, const QString &render, const QStringList &avformat_args, bool zoneOnly, bool playAfter);
     void slotFullScreen();
@@ -175,6 +198,7 @@ private slots:
     void slotDeleteTimelineClip();
     void slotAddClipMarker();
     void slotDeleteClipMarker();
+    void slotDeleteAllClipMarkers();
     void slotEditClipMarker();
     void slotCutTimelineClip();
     void slotAddVideoEffect(QAction *result);
@@ -190,6 +214,26 @@ private slots:
     void slotSetTool(PROJECTTOOL tool);
     void slotSnapForward();
     void slotSnapRewind();
+    void slotClipStart();
+    void slotClipEnd();
+    void slotFind();
+    void findTimeout();
+    void slotFindNext();
+
+    void slotAddGuide();
+    void slotEditGuide();
+    void slotDeleteGuide();
+    void slotDeleteAllGuides();
+
+    void slotCopy();
+    void slotPaste();
+    void slotPasteEffects();
+    void slotReloadEffects();
+    void slotChangeClipSpeed();
+
+    void slotAdjustClipMonitor();
+    void slotAdjustProjectMonitor();
 };
 
+
 #endif