class Waveform;
class RGBParade;
class KActionCollection;
-
+class AudioSignal;
class MainWindow : public KXmlGuiWindow
{
/** @brief Initialises the main window.
* @param MltPath (optional) path to MLT environment
* @param Url (optional) file to open
+ * @param clipsToLoad (optional) a comma separated list of clips to import in project
*
* If Url is present, it will be opened, otherwhise, if openlastproject is
* set, latest project will be opened. If no file is open after trying this,
* a default new file will be created. */
explicit MainWindow(const QString &MltPath = QString(),
- const KUrl &Url = KUrl(), QWidget *parent = 0);
+ const KUrl &Url = KUrl(), const QString & clipsToLoad = QString(), QWidget *parent = 0);
virtual ~MainWindow();
/** @brief Locates the MLT environment.
EffectsListView *m_effectList;
//KListWidget *m_effectList;
+ QDockWidget *m_notesDock;
+ KTextEdit *m_notesWidget;
+
QDockWidget *m_effectStackDock;
EffectStackView *m_effectStack;
QDockWidget *m_histogramDock;
Histogram *m_histogram;
+ QDockWidget *m_audiosignalDock;
+ AudioSignal *m_audiosignal;
+
QDockWidget *m_undoViewDock;
QUndoView *m_undoView;
QUndoGroup *m_commandStack;
KAction *m_zoomOut;
KAction *m_loopZone;
KAction *m_playZone;
+ KAction *m_loopClip;
StatusBarMessageLabel *m_messageLabel;
QActionGroup *m_clipTypeGroup;
KActionCollection *m_effectsActionCollection;
* @return The mimetype */
QString getMimeType();
+ /** @brief Populates the "load layout" menu. */
+ void loadLayouts();
+
public slots:
/** @brief Prepares opening @param url.
*
* Checks if already open and whether backup exists */
void openFile(const KUrl &url);
void slotGotProgressInfo(const QString &message, int progress);
+ void slotReloadEffects();
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, bool force = false);
void queryQuit();
void slotEditProfiles();
void slotDetectAudioDriver();
void slotEditProjectSettings();
+ /** @brief Change current document MLT profile. */
+ void slotUpdateProjectProfile(const QString &profile);
void slotDisplayActionMessage(QAction *a);
/** @brief Turns automatic splitting of audio and video on/off. */
void slotCopy();
void slotPaste();
void slotPasteEffects();
- void slotReloadEffects();
void slotAdjustClipMonitor();
void slotAdjustProjectMonitor();
void slotDeleteProjectClips(QStringList ids, QMap<QString, QString> folderids);
void slotShowTitleBars(bool show);
void slotSwitchTitles();
+ /** @brief Update the capture folder if user asked a change. */
+ void slotUpdateCaptureFolder();
+
+ /** @brief Saves the widgets layout */
+ void slotSaveLayout(QAction*);
+ void slotLoadLayout(QAction*);
/** @brief The monitor informs that it needs (or not) to have frames sent by the renderer. */
void slotMonitorRequestRenderFrame(bool request);