#include "gentime.h"
#include "definitions.h"
#include "statusbarmessagelabel.h"
+#include "dvdwizard.h"
class KdenliveDoc;
class TrackView;
#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
* 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;
KAction *m_saveAction;
KAction *m_closeAction;
QSlider *m_zoomSlider;
+ QAction *m_loopZone;
+ QAction *m_playZone;
StatusBarMessageLabel *m_messageLabel;
bool m_findActivated;
void findAhead();
void doOpenFile(const KUrl &url, KAutoSaveFile *stale);
void recoverFiles(QList<KAutoSaveFile *> 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;
+ QByteArray m_timelineState;
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);
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();
#endif /* NO_JOGSHUTTLE */
void slotShowClipProperties(DocClipBase *clip);
void slotActivateEffectStackView();
- void slotActivateTransitionView();
+ void slotActivateTransitionView(Transition *);
void slotChangeTool(QAction * action);
void slotSetTool(PROJECTTOOL tool);
void slotSnapForward();
void slotInsertTrack(int ix = 0);
void slotDeleteTrack(int ix = 0);
void slotChangeTrack(int ix = 0);
- void slotGetNewStuff();
+ 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");
+ void slotGroupClips();
+ void slotUnGroupClips();
+ void slotSplitAudio();
+ void slotVideoOnly();
+ void slotAudioOnly();
+ void slotShowTimeline(bool show);
+ void slotMaximizeCurrent(bool show);
+
+signals:
+ Q_SCRIPTABLE void abortRenderJob(const QString &url);
};