X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmainwindow.h;h=4e0320ec09a2b8cb637f54007b486ecd2f0201a3;hb=4ae3260592acc87712db77b7d3fe0cc2be7d76bc;hp=04861cd0471eecde29f2f9c2389f8f2e4d06c12a;hpb=f41ee253ade9dfda45752f232ea0ff35e26dce95;p=kdenlive diff --git a/src/mainwindow.h b/src/mainwindow.h index 04861cd0..4e0320ec 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -41,7 +41,6 @@ #include #include #include -#include #include "effectslist.h" #include "gentime.h" @@ -62,7 +61,6 @@ class EffectStackView2; class TransitionSettings; class Monitor; class RecMonitor; -class CustomTrackView; class RenderWidget; #ifdef USE_JOGSHUTTLE class JogShuttle; @@ -78,7 +76,6 @@ class Waveform; class RGBParade; class KActionCollection; class AudioSignal; -class AbstractAudioScopeWidget; class AudioSpectrum; class Spectrogram; @@ -205,7 +202,7 @@ private: QUndoView *m_undoView; QUndoGroup *m_commandStack; - KComboBox *m_timecodeFormat; + KSelectAction *m_timeFormatButton; /** This list holds all the scopes used in Kdenlive, allowing to manage some global settings */ QList m_gfxScopesList; @@ -243,9 +240,6 @@ private: KAction *m_projectSearch; KAction *m_projectSearchNext; - KAction **m_videoEffects; - KAction **m_audioEffects; - KAction **m_customEffects; KAction **m_transitions; KAction *m_buttonAudioThumbs; KAction *m_buttonVideoThumbs; @@ -306,7 +300,7 @@ private: QStringList m_pluginFileNames; QByteArray m_timelineState; void loadTranscoders(); - void loadStabilize(); + void loadClipActions(); QPixmap createSchemePreviewIcon(const KSharedConfigPtr &config); /** @brief Checks that the Kdenlive mime type is correctly installed. @@ -319,7 +313,8 @@ private: StopmotionWidget *m_stopmotion; QTime m_timer; - + /** @brief The last selected clip in timeline. */ + ClipItem *m_mainClip; /** @brief Update statusbar stylesheet (in case of color theme change). */ void setStatusBarStyleSheet(const QPalette &p); @@ -328,7 +323,7 @@ public slots: * * Checks if already open and whether backup exists */ void openFile(const KUrl &url); - void slotGotProgressInfo(const QString &message, int progress); + void slotGotProgressInfo(const QString &message, int progress, MessageType type = DefaultMessage); void slotReloadEffects(); Q_SCRIPTABLE void setRenderingProgress(const QString &url, int progress); Q_SCRIPTABLE void setRenderingFinished(const QString &url, int status, const QString &error); @@ -365,7 +360,8 @@ private slots: void slotConnectMonitors(); void slotUpdateClip(const QString &id); void slotUpdateMousePosition(int pos); - void slotAddEffect(const QDomElement effect); + void slotUpdateProjectDuration(int pos); + void slotAddEffect(const QDomElement &effect); void slotEditProfiles(); void slotDetectAudioDriver(); void slotEditProjectSettings(); @@ -426,12 +422,12 @@ private slots: void slotSelectAddTimelineTransition(); void slotAddVideoEffect(QAction *result); void slotAddTransition(QAction *result); - void slotAddProjectClip(KUrl url, const QString &comment = QString()); - void slotAddProjectClipList(KUrl::List urls); + void slotAddProjectClip(const KUrl &url, const stringMap &data = stringMap()); + void slotAddProjectClipList(const KUrl::List &urls); void slotShowClipProperties(DocClipBase *clip); - void slotShowClipProperties(QList cliplist, QMap commonproperties); + void slotShowClipProperties(const QList &cliplist, const QMap &commonproperties); void slotTimelineClipSelected(ClipItem* item, bool raise = true); - void slotTrackSelected(int index, TrackInfo info, bool raise = true); + void slotTrackSelected(int index, const TrackInfo &info, bool raise = true); void slotActivateTransitionView(Transition *); void slotChangeTool(QAction * action); void slotChangeEdit(QAction * action); @@ -462,7 +458,7 @@ private slots: void slotAdjustClipMonitor(); void slotAdjustProjectMonitor(); - void slotSaveZone(Render *render, QPoint zone, DocClipBase *baseClip = NULL, KUrl path = KUrl()); + void slotSaveZone(Render *render, const QPoint &zone, DocClipBase *baseClip = NULL, KUrl path = KUrl()); void slotSetInPoint(); void slotSetOutPoint(); @@ -486,7 +482,7 @@ private slots: /** @brief Lets the sampleplugin create a generator. */ void generateClip(); void slotZoneMoved(int start, int end); - void slotDvdWizard(const QString &url = QString(), const QString &profile = "dv_pal"); + void slotDvdWizard(const QString &url = QString()); void slotGroupClips(); void slotUnGroupClips(); void slotEditItemDuration(); @@ -498,12 +494,12 @@ private slots: void slotUpdateClipType(QAction *action); void slotShowTimeline(bool show); void slotMaximizeCurrent(bool show); - void slotTranscode(KUrl::List urls = KUrl::List()); - void slotStabilize(); + void slotTranscode(const KUrl::List &urls = KUrl::List()); + void slotStartClipAction(); 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 slotSetDocumentRenderProfile(const QMap &props); void slotPrepareRendering(bool scriptExport, bool zoneOnly, const QString &chapterFile); /** @brief Switches between displaying frames or timecode. @@ -528,14 +524,14 @@ private slots: /** @brief Deletes items from timeline and document. * @param ids The ids of the clips to delete. * @param folderids The names and ids of the folders to delete. */ - void slotDeleteProjectClips(QStringList ids, QMap folderids); + void slotDeleteProjectClips(const QStringList &ids, const QMap &folderids); void slotShowTitleBars(bool show); void slotSwitchTitles(); /** @brief Update the capture folder if user asked a change. */ void slotUpdateCaptureFolder(); /** @brief Apply new properties to a clip */ - void slotApplyNewClipProperties(const QString id, QMap props, QMap newprops, bool refresh, bool reload); + void slotApplyNewClipProperties(const QString &id, const QMap &props, const QMap &newprops, bool refresh, bool reload); /** @brief Delete a clip from current project */ void slotDeleteClip(const QString &id); @@ -555,7 +551,7 @@ private slots: /** @brief Insert current project's timecode into the notes widget. */ void slotInsertNotesTimecode(); /** @brief Open the project's backupdialog. */ - void slotOpenBackupDialog(const KUrl url = KUrl()); + void slotOpenBackupDialog(const KUrl &url = KUrl()); /** @brief Disable proxies for this project. */ void slotDisableProxies(); @@ -566,6 +562,14 @@ private slots: void slotChangePalette(); /** @brief Save current timeline clip as mlt playlist. */ void slotSaveTimelineClip(); + /** @brief Process keyframe data sent from a clip to effect / transition stack. */ + void slotProcessImportKeyframes(GRAPHICSRECTITEM type, const QString& data, int maximum); + /** @brief Move playhead to mouse curser position if defined key is pressed */ + void slotAlignPlayheadToMousePos(); + /** @brief Set MLT's consumer deinterlace method */ + void slotSetDeinterlacer(int ix); + /** @brief Set MLT's consumer interpolation method */ + void slotSetInterpolation(int ix); signals: Q_SCRIPTABLE void abortRenderJob(const QString &url);