#include <QProgressBar>
#include <QEvent>
#include <QTimer>
+#include <QShortcut>
#include <KXmlGuiWindow>
#include <KTextEdit>
* This function is called when it is time for the app to save its
* properties for session management purposes.
*/
- void saveProperties(KConfig *);
+ virtual void saveProperties(KConfigGroup &config);
/**
* This function is called when this app is restored. The KConfig
* object points to the session management config file that was saved
* with @ref saveProperties
*/
- void readProperties(KConfig *);
+ virtual void readProperties(const KConfigGroup &config);
private:
KTabWidget* m_timelineArea;
QMenu *m_timelineContextMenu;
QMenu *m_timelineContextClipMenu;
QMenu *m_timelineContextTransitionMenu;
+ KUrl m_startUrl;
+
+ /**
+ * Shortcut to remove the focus of any element. Allows to get out
+ * of e.g. text input fields and to press another shortcut.
+ */
+ QShortcut* m_shortcutRemoveFocus;
RenderWidget *m_renderWidget;
#endif /* NO_JOGSHUTTLE */
KRecentFilesAction *m_fileOpenRecent;
+ KAction *m_fileRevert;
KAction *m_projectSearch;
KAction *m_projectSearchNext;
void slotRaiseMonitor(bool clipMonitor);
void slotUpdateClip(const QString &id);
void slotUpdateMousePosition(int pos);
- void slotAddEffect(QDomElement effect, GenTime pos = GenTime(), int track = -1);
+ void slotAddEffect(const QDomElement effect, GenTime pos = GenTime(), int track = -1);
void slotEditProfiles();
+ void slotDetectAudioDriver();
void slotEditProjectSettings();
void slotDisplayActionMessage(QAction *a);
void slotSwitchVideoThumbs();
void slotSwitchMarkersComments();
void slotSwitchSnap();
void slotRenderProject();
- void slotDoRender(const QStringList args, const QStringList overlay_args);
void slotFullScreen();
void slotUpdateDocumentState(bool modified);
void slotZoomIn();
void slotZoomOut();
void slotFitZoom();
- void closeCurrentDocument();
+ void closeCurrentDocument(bool saveChanges = true);
void slotDeleteTimelineClip();
void slotAddClipMarker();
void slotDeleteClipMarker();
void slotPaste();
void slotPasteEffects();
void slotReloadEffects();
- void slotChangeClipSpeed();
void slotAdjustClipMonitor();
void slotAdjustProjectMonitor();
void slotUpdateClipType(QAction *action);
void slotShowTimeline(bool show);
void slotMaximizeCurrent(bool show);
- void slotTranscode();
+ void slotTranscode(KUrl::List urls = KUrl::List());
+ void slotTranscodeClip();
+ void slotSetDocumentRenderProfile(const QString &dest, const QString &name, const QString &file);
+ void slotPrepareRendering(bool scriptExport, bool zoneOnly, const QString &chapterFile);
+ void slotUpdateTimecodeFormat(int ix);
+ /** Removes the focus of anything */
+ void slotRemoveFocus();
+ void slotCleanProject();
+ void slotSetZoom(int value);
+ void slotUpdateClipMarkers(DocClipBase *clip);
+ void slotRevert();
+ void slotShutdown();
+ void slotUpdateTrackInfo();
+ /** \brief Change color scheme */
+ void slotChangePalette(QAction *action, const QString &themename = QString());
signals:
Q_SCRIPTABLE void abortRenderJob(const QString &url);