X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmainwindow.h;h=f4d0d3b478be0a7f1989d79d2f0deabd258447f9;hb=39e387e732db729eaf44c1826d86cd45e3878482;hp=a5f22924a0ef4645190e8f4f1537ad19e6f4105f;hpb=91430842a9fcc6ad00a18da81928d24ae821ae0a;p=kdenlive diff --git a/src/mainwindow.h b/src/mainwindow.h index a5f22924..f4d0d3b4 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -45,6 +45,7 @@ #include "statusbarmessagelabel.h" #include "dvdwizard.h" #include "stopmotion/stopmotion.h" +#include "noteswidget.h" class KdenliveDoc; class TrackView; @@ -149,7 +150,7 @@ private: //KListWidget *m_effectList; QDockWidget *m_notesDock; - KTextEdit *m_notesWidget; + NotesWidget *m_notesWidget; QDockWidget *m_effectStackDock; EffectStackView *m_effectStack; @@ -197,9 +198,8 @@ private: QList m_gfxScopesList; QList m_audioScopesList; - QMenu *m_videoEffectsMenu; - QMenu *m_audioEffectsMenu; - QMenu *m_customEffectsMenu; + KActionCategory *m_effectActions; + QMenu *m_effectsMenu; QMenu *m_transitionsMenu; QMenu *m_timelineContextMenu; QMenu *m_timelineContextClipMenu; @@ -255,6 +255,7 @@ private: KAction *m_loopZone; KAction *m_playZone; KAction *m_loopClip; + KSelectAction *m_loadLayout; StatusBarMessageLabel *m_messageLabel; QActionGroup *m_clipTypeGroup; KActionCollection *m_effectsActionCollection; @@ -295,8 +296,9 @@ private: QPixmap createSchemePreviewIcon(const KSharedConfigPtr &config); /** @brief Checks that the Kdenlive mime type is correctly installed. + * @param open If set to true, this will return the mimetype allowed for file opening (adds .tar.gz format) * @return The mimetype */ - QString getMimeType(); + QString getMimeType(bool open = true); /** @brief Populates the "load layout" menu. */ void loadLayouts(); @@ -316,7 +318,6 @@ public slots: private slots: void newFile(bool showProjectSettings = true, bool force = false); - void queryQuit(); void activateDocument(); void connectDocument(TrackView*, KdenliveDoc*); @@ -344,7 +345,7 @@ private slots: /** @brief Reflects setting changes to the GUI. */ void updateConfiguration(); void slotConnectMonitors(); - void slotRaiseMonitor(bool clipMonitor); + void slotRaiseMonitor(AbstractMonitor *monitor); void slotUpdateClip(const QString &id); void slotUpdateMousePosition(int pos); void slotAddEffect(const QDomElement effect); @@ -407,13 +408,11 @@ private slots: void slotSelectAddTimelineClip(); void slotSelectAddTimelineTransition(); void slotAddVideoEffect(QAction *result); - void slotAddAudioEffect(QAction *result); - void slotAddCustomEffect(QAction *result); void slotAddTransition(QAction *result); void slotAddProjectClip(KUrl url); void slotShowClipProperties(DocClipBase *clip); void slotShowClipProperties(QList cliplist, QMap commonproperties); - void slotActivateEffectStackView(); + void slotActivateEffectStackView(ClipItem* item = NULL, int ix = -1, bool raise = true); void slotActivateTransitionView(Transition *); void slotChangeTool(QAction * action); void slotChangeEdit(QAction * action); @@ -476,6 +475,8 @@ private slots: void slotMaximizeCurrent(bool show); void slotTranscode(KUrl::List urls = KUrl::List()); void slotTranscodeClip(); + /** @brief Archive project: creates a copy of the project file with all clips in a new folder. */ + void slotArchiveProject(); void slotSetDocumentRenderProfile(QMap props); void slotPrepareRendering(bool scriptExport, bool zoneOnly, const QString &chapterFile); @@ -527,13 +528,18 @@ private slots: void slotDoUpdateAudioScopeFrameRequest(); /** @brief When switching between monitors, update the visible scopes. */ void slotUpdateColorScopes(); + /** @brief Active monitor deleted, clear scopes. */ + void slotClearColorScopes(); /** @brief Switch current monitor to fullscreen. */ void slotSwitchFullscreen(); /** @brief Open the stopmotion dialog. */ void slotOpenStopmotion(); /** @brief Implements all the actions that are int he ActionsCollection. */ void slotDoAction(const QString& action_name); - + /** @brief Update project because the use of proxy clips was enabled / disabled. */ + void slotUpdateProxySettings(); + /** @brief Insert current project's timecode into the notes widget. */ + void slotInsertNotesTimecode(); signals: Q_SCRIPTABLE void abortRenderJob(const QString &url); };