X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmainwindow.h;h=8b631dab44c8a145460c9e0ef353ac4ddb62c0d5;hb=a3eee7be24126f5a3458d488f44cd61c66135e17;hp=141c7e246621c8ab7819631d95086a3e4f17cba0;hpb=76c9abb930245e56533fb0282b919deb33a6d126;p=kdenlive diff --git a/src/mainwindow.h b/src/mainwindow.h index 141c7e24..8b631dab 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -48,7 +48,7 @@ #include "statusbarmessagelabel.h" #include "dvdwizard.h" #include "stopmotion/stopmotion.h" -#include "noteswidget.h" +#include "widgets/noteswidget.h" #include "ui_backupdialog_ui.h" class KdenliveDoc; @@ -61,7 +61,6 @@ class EffectStackView2; class TransitionSettings; class Monitor; class RecMonitor; -class CustomTrackView; class RenderWidget; #ifdef USE_JOGSHUTTLE class JogShuttle; @@ -77,9 +76,9 @@ class Waveform; class RGBParade; class KActionCollection; class AudioSignal; -class AbstractAudioScopeWidget; class AudioSpectrum; class Spectrogram; +class QGLWidget; class MainWindow : public KXmlGuiWindow { @@ -143,6 +142,8 @@ protected: virtual void readProperties(const KConfigGroup &config); private: + QGLWidget* m_glContext; + KTabWidget* m_timelineArea; QProgressBar *m_statusProgressBar; @@ -204,7 +205,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; @@ -242,9 +243,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; @@ -284,7 +282,7 @@ private: void connectDocumentInfo(KdenliveDoc *doc); void findAhead(); void doOpenFile(const KUrl &url, KAutoSaveFile *stale); - void recoverFiles(QList staleFiles, const KUrl &originUrl); + void recoverFiles(const QList &staleFiles, const KUrl &originUrl); /** @brief Loads static and dynamic plugins. * @@ -365,7 +363,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,16 +425,16 @@ private slots: void slotSelectAddTimelineTransition(); void slotAddVideoEffect(QAction *result); void slotAddTransition(QAction *result); - void slotAddProjectClip(KUrl url, stringMap data = stringMap()); - 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 slotActivateTransitionView(Transition *); + void slotTrackSelected(int index, const TrackInfo &info, bool raise = true); + void slotActivateTransitionView(Transition *transition); void slotChangeTool(QAction * action); void slotChangeEdit(QAction * action); - void slotSetTool(PROJECTTOOL tool); + void slotSetTool(ProjectTool tool); void slotSnapForward(); void slotSnapRewind(); void slotClipStart(); @@ -462,7 +461,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(); @@ -498,12 +497,12 @@ private slots: void slotUpdateClipType(QAction *action); void slotShowTimeline(bool show); void slotMaximizeCurrent(bool show); - void slotTranscode(KUrl::List urls = KUrl::List()); + 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 +527,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 +554,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(); @@ -567,7 +566,13 @@ private slots: /** @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); + 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);