mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-18 04:39:59 +01:00
working on video file dialog
This commit is contained in:
@@ -212,7 +212,16 @@ bool AC_MainWindow::startCamera(int res, int dev, const QString &outdir, bool re
|
||||
// if successful
|
||||
file_new_capture->setEnabled(false);
|
||||
file_new_video->setEnabled(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AC_MainWindow::startVideo(const QString &filename, const QString &outdir, bool record) {
|
||||
|
||||
|
||||
|
||||
// if successful
|
||||
file_new_capture->setEnabled(false);
|
||||
file_new_video->setEnabled(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -244,6 +253,14 @@ void AC_MainWindow::controls_Step() {
|
||||
|
||||
}
|
||||
|
||||
void AC_MainWindow::timer_Camera() {
|
||||
|
||||
}
|
||||
|
||||
void AC_MainWindow::timer_Video() {
|
||||
|
||||
}
|
||||
|
||||
void AC_MainWindow::help_About() {
|
||||
QMessageBox::information(this, tr("About Acid Cam"), tr("Written by <b>Jared Bruni</b><br><br><b>Social Media Accounts</b><br><br>\n\n <a href=\"http://github.com/lostjared\">GitHub</a><br>\n<a href=\"http://youtube.com/lostjared\">YouTube</a><br><a href=\"http://instagram.com/lostjared\">Instagram</a><br><a href=\"http://facebook.com/LostSideDead0x\">Facebook</a><br><br>\n"));
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ public:
|
||||
AC_MainWindow(QWidget *parent = 0);
|
||||
void Log(const QString &s);
|
||||
bool startCamera(int res, int dev, const QString &outdir, bool record);
|
||||
|
||||
bool startVideo(const QString &filename, const QString &outdir, bool record);
|
||||
QListWidget *filters, *custom_filters;
|
||||
QPushButton *btn_add, *btn_remove, *btn_moveup, *btn_movedown;
|
||||
QTextEdit *log_text;
|
||||
@@ -33,14 +33,15 @@ public slots:
|
||||
void controls_Pause();
|
||||
void controls_Step();
|
||||
void help_About();
|
||||
|
||||
|
||||
void timer_Camera();
|
||||
void timer_Video();
|
||||
private:
|
||||
void createControls();
|
||||
void createMenu();
|
||||
|
||||
CaptureCamera *cap_camera;
|
||||
CaptureVideo *cap_video;
|
||||
cv::VideoCapture capture_camera, capture_video;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -65,20 +65,47 @@ void CaptureCamera::btn_Start() {
|
||||
}
|
||||
|
||||
CaptureVideo::CaptureVideo(QWidget *parent) : QDialog(parent) {
|
||||
setFixedSize(640, 480);
|
||||
setFixedSize(330, 100);
|
||||
setWindowTitle(("Capture from Video"));
|
||||
setWindowIcon(QPixmap(":/images/icon.png"));
|
||||
createControls();
|
||||
}
|
||||
|
||||
void CaptureVideo::createControls() {
|
||||
btn_setedit = new QPushButton("Source File", this);
|
||||
btn_setedit->setGeometry(10, 10, 110, 20);
|
||||
edit_src = new QLineEdit(this);
|
||||
edit_src->setGeometry(120, 10, 200, 20);
|
||||
edit_src->setReadOnly(true);
|
||||
btn_setout = new QPushButton("Set Output", this);
|
||||
btn_setout->setGeometry(10, 30, 110, 20);
|
||||
edit_outdir = new QLineEdit(this);
|
||||
edit_outdir->setGeometry(120, 30, 200, 20);
|
||||
edit_outdir->setReadOnly(true);
|
||||
btn_start = new QPushButton("Start", this);
|
||||
btn_start->setGeometry(10, 60, 100, 20);
|
||||
chk_record = new QCheckBox("Record", this);
|
||||
chk_record->setGeometry(110, 60, 100, 20);
|
||||
|
||||
connect(btn_setedit, SIGNAL(clicked()), this, SLOT(btn_SetSourceFile()));
|
||||
connect(btn_setout, SIGNAL(clicked()), this, SLOT(btn_SetOutputDir()));
|
||||
connect(btn_start, SIGNAL(clicked()), this, SLOT(btn_Start()));
|
||||
}
|
||||
|
||||
void CaptureVideo::setParent(AC_MainWindow *p) {
|
||||
win_parent = p;
|
||||
}
|
||||
|
||||
|
||||
void CaptureVideo::btn_SetSourceFile() {
|
||||
|
||||
}
|
||||
|
||||
void CaptureVideo::btn_SetOutputDir() {
|
||||
|
||||
}
|
||||
|
||||
void CaptureVideo::btn_Start() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -33,6 +33,13 @@ public:
|
||||
void createControls();
|
||||
void setParent(AC_MainWindow *p);
|
||||
|
||||
QLineEdit *edit_src, *edit_outdir;
|
||||
QPushButton *btn_setedit, *btn_setout, *btn_start;
|
||||
QCheckBox *chk_record;
|
||||
public slots:
|
||||
void btn_SetSourceFile();
|
||||
void btn_SetOutputDir();
|
||||
void btn_Start();
|
||||
private:
|
||||
AC_MainWindow *win_parent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user