X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Frecmonitor.h;h=316fd3159484625458edeeb4a06c4af1b07998a0;hb=1ea8ebcfd35fd09ff13a3e065c6d635466ce33a1;hp=aeb1029019af80e1a3c171c830a57e6320171f0c;hpb=ce68de86827a11cd0dc96465fba021b2f7ceea55;p=kdenlive diff --git a/src/recmonitor.h b/src/recmonitor.h index aeb10290..316fd315 100644 --- a/src/recmonitor.h +++ b/src/recmonitor.h @@ -43,6 +43,10 @@ #include #include +#if KDE_IS_VERSION(4,7,0) +#include +#endif + class MonitorManager; class MltDeviceCapture; class AbstractRender; @@ -100,7 +104,12 @@ private: VideoContainer *m_videoBox; QAction *m_addCapturedClip; QAction *m_previewSettings; - + QString m_error; + +#if KDE_IS_VERSION(4,7,0) + KMessageWidget *m_infoMessage; +#endif + bool m_analyse; void checkDeviceAvailability(); QPixmap mergeSideBySide(const QPixmap& pix, const QString &txt); @@ -108,7 +117,9 @@ private: /** @brief Build MLT producer for device, using path as profile. */ void buildMltDevice(const QString &path); /** @brief Create string containing an XML playlist for v4l capture. */ - const QString getV4lXmlPlaylist(MltVideoProfile profile); + const QString getV4lXmlPlaylist(MltVideoProfile profile, bool *isXml); + /** @brief Display an error message to user. */ + void showWarningMessage(const QString &text, bool logAction = false); private slots: void slotStartPreview(bool play = true); @@ -120,12 +131,14 @@ private slots: void slotDisconnect(); //void slotStartGrab(const QRect &rect); void slotConfigure(); - void slotReadDvgrabInfo(); + void slotReadProcessInfo(); void slotUpdateFreeSpace(); void slotSetInfoMessage(const QString &message); void slotDroppedFrames(int dropped); /** @brief Change setting for preview while recording. */ void slotChangeRecordingPreview(bool enable); + /** @brief Show last jog error log. */ + void slotShowLog(); public slots: void refreshRecMonitor(bool visible);