X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmainwindow.h;h=2292a3a7ef281dc50a3b1e4c9c8f4275750a357a;hb=92808fa9ff91c1e44866a488dbe917431fa150cc;hp=ca7d7a81d0e48994443ed71aa420a338d70ec815;hpb=64bfc766fdc06622b5a6fae7ed2512de7736bdf8;p=kdenlive diff --git a/src/mainwindow.h b/src/mainwindow.h index ca7d7a81..2292a3a7 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -41,6 +41,7 @@ #include "gentime.h" #include "definitions.h" #include "statusbarmessagelabel.h" +#include "dvdwizard.h" class KdenliveDoc; class TrackView; @@ -58,9 +59,11 @@ class JogShuttle; #endif /* NO_JOGSHUTTLE */ class DocClipBase; class Render; +class Transition; class MainWindow : public KXmlGuiWindow { Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.kdenlive.MainWindow") public: /** Constructor @@ -71,7 +74,7 @@ public: * The constructor inits the main window. If Url is present, it will be opened. * If Url is not present, and openLastproject is set, last project will be set * If no file is open after trying this, a default "newfile" will be created. */ - MainWindow(const QString &MltPath = QString(), const KUrl & Url = KUrl(), QWidget *parent = 0); + explicit MainWindow(const QString &MltPath = QString(), const KUrl & Url = KUrl(), QWidget *parent = 0); void parseProfiles(const QString &mltPath = QString()); static EffectsList videoEffects; @@ -164,6 +167,8 @@ private: KAction *m_saveAction; KAction *m_closeAction; QSlider *m_zoomSlider; + QAction *m_loopZone; + QAction *m_playZone; StatusBarMessageLabel *m_messageLabel; bool m_findActivated; @@ -181,10 +186,19 @@ private: void findAhead(); void doOpenFile(const KUrl &url, KAutoSaveFile *stale); void recoverFiles(QList staleFiles); + void loadPlugins(); + void populateMenus(QObject *plugin); + void addToMenu(QObject *plugin, const QStringList &texts, + QMenu *menu, const char *member, + QActionGroup *actionGroup); + void aboutPlugins(); + QStringList m_pluginFileNames; public slots: void openFile(const KUrl &url); void slotGotProgressInfo(const QString &message, int progress); + Q_SCRIPTABLE void setRenderingProgress(const QString &url, int progress); + Q_SCRIPTABLE void setRenderingFinished(const QString &url, int status, const QString &error); private slots: void newFile(bool showProjectSettings = true); @@ -211,7 +225,7 @@ private slots: void slotSwitchMarkersComments(); void slotSwitchSnap(); void slotRenderProject(); - void slotDoRender(const QString &dest, const QString &render, const QStringList &overlay_args, const QStringList &avformat_args, bool zoneOnly, bool playAfter, double guideStart, double guideEnd); + void slotDoRender(const QString &dest, const QString &render, const QStringList &overlay_args, const QStringList &avformat_args, bool zoneOnly, bool playAfter, double guideStart, double guideEnd, bool resizeProfile, const QString &scriptExport); void slotFullScreen(); void slotUpdateDocumentState(bool modified); void slotZoomIn(); @@ -234,7 +248,7 @@ private slots: #endif /* NO_JOGSHUTTLE */ void slotShowClipProperties(DocClipBase *clip); void slotActivateEffectStackView(); - void slotActivateTransitionView(); + void slotActivateTransitionView(Transition *); void slotChangeTool(QAction * action); void slotSetTool(PROJECTTOOL tool); void slotSnapForward(); @@ -269,6 +283,18 @@ private slots: void slotInsertTrack(int ix = 0); void slotDeleteTrack(int ix = 0); void slotChangeTrack(int ix = 0); + void slotGetNewLumaStuff(); + void slotGetNewRenderStuff(); + void slotGetNewMltProfileStuff(); + void slotAutoTransition(); + void slotRunWizard(); + void generateClip(); + void slotZoneMoved(int start, int end); + void slotUpdatePreviewSettings(); + void slotDvdWizard(const QString &url = QString(), const QString &profile = "dv_pal"); + +signals: + Q_SCRIPTABLE void abortRenderJob(const QString &url); };