]> git.sesse.net Git - kdenlive/blobdiff - src/recmonitor.h
Fetch audio thumbs one after another, so that we don't create hundreds of threads:
[kdenlive] / src / recmonitor.h
index a7159d4c585887ff6abe8f5a60acc80cbae53639..f216a1134fa9214ee6a2522fd6491830bf68ebe1 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef RECMONITOR_H
 #define RECMONITOR_H
 
+#include "ui_recmonitor_ui.h"
+
 #include <QToolBar>
 #include <QTimer>
 #include <QProcess>
@@ -36,9 +38,7 @@
 #include <kcapacitybar.h>
 #endif
 
-#include "ui_recmonitor_ui.h"
-
-class RecMonitor : public QWidget
+class RecMonitor : public QWidget, public Ui::RecMonitor_UI
 {
     Q_OBJECT
 
@@ -54,13 +54,14 @@ protected:
     virtual void mousePressEvent(QMouseEvent * event);
 
 private:
-    Ui::RecMonitor_UI m_ui;
     QString m_name;
     bool m_isActive;
     KDateTime m_captureTime;
+    QLabel m_dvinfo;
 
 #if KDE_IS_VERSION(4,2,0)
     KCapacityBar *m_freeSpace;
+    QTimer m_spaceTimer;
 #endif
 
     KUrl m_captureFile;
@@ -85,10 +86,6 @@ private:
     QPixmap mergeSideBySide(const QPixmap& pix, const QString txt);
     void manageCapturedFiles();
 
-#if KDE_IS_VERSION(4,2,0)
-    void updatedFreeSpace();
-#endif
-
 private slots:
     void slotStartCapture(bool play = true);
     void slotStopCapture();
@@ -100,6 +97,8 @@ private slots:
     void slotDisconnect();
     //void slotStartGrab(const QRect &rect);
     void slotConfigure();
+    void slotReadDvgrabInfo();
+    void slotUpdateFreeSpace();
 
 public slots:
     void refreshRecMonitor(bool visible);