- ui.control_frame_firewire->setLayout(layout);
-
- slotVideoDeviceChanged(ui.device_selector->currentIndex());
- displayProcess = new QProcess;
- captureProcess = new QProcess;
-
- connect(captureProcess, SIGNAL(stateChanged(QProcess::ProcessState)), this, SLOT(slotProcessStatus(QProcess::ProcessState)));
+ layout->addWidget(&m_logger);
+ layout->addWidget(&m_dvinfo);
+ m_logger.setMaxCount(10);
+ m_logger.setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ m_logger.setFrame(false);
+ //m_logger.setInsertPolicy(QComboBox::InsertAtTop);
+
+#if KDE_IS_VERSION(4,2,0)
+ m_freeSpace = new KCapacityBar(KCapacityBar::DrawTextInline, this);
+ m_freeSpace->setMaximumWidth(150);
+ QFontMetricsF fontMetrics(font());
+ m_freeSpace->setMaximumHeight(fontMetrics.height() * 1.2);
+ slotUpdateFreeSpace();
+ layout->addWidget(m_freeSpace);
+ connect(&m_spaceTimer, SIGNAL(timeout()), this, SLOT(slotUpdateFreeSpace()));
+ m_spaceTimer.setInterval(30000);
+ m_spaceTimer.setSingleShot(false);
+#endif
+
+ control_frame_firewire->setLayout(layout);
+
+ slotVideoDeviceChanged(device_selector->currentIndex());
+ m_displayProcess = new QProcess;
+ m_captureProcess = new QProcess;
+
+ connect(m_captureProcess, SIGNAL(stateChanged(QProcess::ProcessState)), this, SLOT(slotProcessStatus(QProcess::ProcessState)));
+ connect(m_captureProcess, SIGNAL(readyReadStandardError()), this, SLOT(slotReadDvgrabInfo()));