50 #include "VideoCaptureDialog.hh" 53 VideoCaptureDialog::VideoCaptureDialog(QWidget *parent) : QDialog(parent)
57 connect(cancelButton, SIGNAL(clicked()),
this, SLOT(reject()) );
58 connect(findButton, SIGNAL(clicked()),
this, SLOT(findFile()) );
59 connect(resButton, SIGNAL(clicked()),
this, SLOT(slotChangeResolution()) );
60 connect(startButton, SIGNAL(clicked()),
this, SLOT(slotStartVideoCapture()) );
63 void VideoCaptureDialog::slotChangeResolution()
65 if ( captureViewers->isChecked() )
66 emit resizeViewers(videoWidth->value(), videoHeight->value());
68 emit resizeApplication(videoWidth->value(), videoHeight->value());
71 void VideoCaptureDialog::slotStartVideoCapture()
74 if (filename->text() ==
""){
76 msgBox.setText(tr(
"The Filename is empty!"));
81 if ( captureViewers->isChecked() )
82 emit resizeViewers(videoWidth->value(), videoHeight->value());
84 emit resizeApplication(videoWidth->value(), videoHeight->value());
86 emit startVideoCapture( filename->text(), fps->value(), captureViewers->isChecked() );
91 void VideoCaptureDialog::findFile()
94 QString file = QFileDialog::getSaveFileName(
this, tr(
"Output File"),
95 OpenFlipper::Options::applicationDirStr() + OpenFlipper::Options::dirSeparator() +
"untitled.jpg",
96 tr(
"Images (*.jpg)"));
99 filename->setText( file );