mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-14 10:50:01 +01:00
updated formatting, changed location of combobox, upped version number
This commit is contained in:
@@ -102,13 +102,13 @@ void ChromaWindow::createControls() {
|
|||||||
highButton->setGeometry(300, 90, 25, 20);
|
highButton->setGeometry(300, 90, 25, 20);
|
||||||
|
|
||||||
select_mode = new QComboBox(this);
|
select_mode = new QComboBox(this);
|
||||||
select_mode->setGeometry(15, 235, 290, 25);
|
select_mode->setGeometry(10, 235, 295, 25);
|
||||||
|
|
||||||
select_mode->addItem("Replace with Filter");
|
select_mode->addItem("Replace with Filter");
|
||||||
select_mode->addItem("Replace with Image");
|
select_mode->addItem("Replace with Image");
|
||||||
|
|
||||||
select_setimage = new QPushButton("Image", this);
|
select_setimage = new QPushButton("Image", this);
|
||||||
select_setimage->setGeometry(20, 265, 60, 20);
|
select_setimage->setGeometry(15, 265, 60, 20);
|
||||||
|
|
||||||
select_image_path = new QLabel("Test Path", this);
|
select_image_path = new QLabel("Test Path", this);
|
||||||
select_image_path->setGeometry(85, 265, 400-85-25, 20);
|
select_image_path->setGeometry(85, 265, 400-85-25, 20);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public:
|
|||||||
bool checkEdit(QLineEdit *edit);
|
bool checkEdit(QLineEdit *edit);
|
||||||
void setEditFromColor(int val, QColor color);
|
void setEditFromColor(int val, QColor color);
|
||||||
void enableKey(bool op);
|
void enableKey(bool op);
|
||||||
public slots:
|
public slots:
|
||||||
void openColorSelectRange();
|
void openColorSelectRange();
|
||||||
void openColorSelectTolerance();
|
void openColorSelectTolerance();
|
||||||
void colorAdd();
|
void colorAdd();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Acid Cam v2 - Qt/OpenCV Edition
|
* Acid Cam v2 - Qt/OpenCV Edition
|
||||||
* written by Jared Bruni ( http://lostsidedead.com )
|
* written by Jared Bruni ( http://lostsidedead.com )
|
||||||
* (C) 2017 GPL
|
* (C) 2017 GPL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef __DISPLAY_WINDOW_H__
|
#ifndef __DISPLAY_WINDOW_H__
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ private:
|
|||||||
QLineEdit *goto_sec, *goto_frame;
|
QLineEdit *goto_sec, *goto_frame;
|
||||||
QPushButton *goto_jump;
|
QPushButton *goto_jump;
|
||||||
Playback *playback_thread;
|
Playback *playback_thread;
|
||||||
public slots:
|
public slots:
|
||||||
void pressedGo();
|
void pressedGo();
|
||||||
void slideChanged(int pos);
|
void slideChanged(int pos);
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Acid Cam v2 - Qt/OpenCV Edition
|
* Acid Cam v2 - Qt/OpenCV Edition
|
||||||
* written by Jared Bruni ( http://lostsidedead.com )
|
* written by Jared Bruni ( http://lostsidedead.com )
|
||||||
* (C) 2017 GPL
|
* (C) 2017 GPL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __MAIN_WINDOW_H__
|
#ifndef __MAIN_WINDOW_H__
|
||||||
#define __MAIN_WINDOW_H__
|
#define __MAIN_WINDOW_H__
|
||||||
@@ -55,7 +55,7 @@ public:
|
|||||||
void updateList();
|
void updateList();
|
||||||
void setSubFilter(const QString &num);
|
void setSubFilter(const QString &num);
|
||||||
void setFrameIndex(int i);
|
void setFrameIndex(int i);
|
||||||
public slots:
|
public slots:
|
||||||
void addClicked();
|
void addClicked();
|
||||||
void rmvClicked();
|
void rmvClicked();
|
||||||
void upClicked();
|
void upClicked();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Acid Cam v2 - Qt/OpenCV Edition
|
* Acid Cam v2 - Qt/OpenCV Edition
|
||||||
* written by Jared Bruni ( http://lostsidedead.com )
|
* written by Jared Bruni ( http://lostsidedead.com )
|
||||||
* (C) 2017 GPL
|
* (C) 2017 GPL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "new_dialog.h"
|
#include "new_dialog.h"
|
||||||
@@ -36,7 +36,7 @@ void CaptureCamera::createControls() {
|
|||||||
stream << i;
|
stream << i;
|
||||||
combo_device->addItem(*stream.string());
|
combo_device->addItem(*stream.string());
|
||||||
}
|
}
|
||||||
btn_select = new QPushButton(tr("Save Directory"), this);
|
btn_select = new QPushButton(tr("Save Directory"), this);
|
||||||
btn_select->setGeometry(10, 65, 100, 20);
|
btn_select->setGeometry(10, 65, 100, 20);
|
||||||
output_dir = new QLineEdit("", this);
|
output_dir = new QLineEdit("", this);
|
||||||
output_dir->setGeometry(110, 65, 175, 20);
|
output_dir->setGeometry(110, 65, 175, 20);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Acid Cam v2 - Qt/OpenCV Edition
|
* Acid Cam v2 - Qt/OpenCV Edition
|
||||||
* written by Jared Bruni ( http://lostsidedead.com )
|
* written by Jared Bruni ( http://lostsidedead.com )
|
||||||
* (C) 2017 GPL
|
* (C) 2017 GPL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _NEW_DIALOG_H_
|
#ifndef _NEW_DIALOG_H_
|
||||||
#define _NEW_DIALOG_H_
|
#define _NEW_DIALOG_H_
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
class AC_MainWindow;
|
class AC_MainWindow;
|
||||||
|
|
||||||
class CaptureCamera : public QDialog {
|
class CaptureCamera : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
CaptureCamera(QWidget *parent = 0);
|
CaptureCamera(QWidget *parent = 0);
|
||||||
void createControls();
|
void createControls();
|
||||||
@@ -24,7 +24,7 @@ public:
|
|||||||
QCheckBox *chk_record;
|
QCheckBox *chk_record;
|
||||||
QPushButton *btn_start, *btn_select;
|
QPushButton *btn_start, *btn_select;
|
||||||
QComboBox *video_type;
|
QComboBox *video_type;
|
||||||
public slots:
|
public slots:
|
||||||
void btn_Select();
|
void btn_Select();
|
||||||
void btn_Start();
|
void btn_Start();
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ public:
|
|||||||
QCheckBox *chk_record;
|
QCheckBox *chk_record;
|
||||||
QComboBox *video_type;
|
QComboBox *video_type;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void btn_SetSourceFile();
|
void btn_SetSourceFile();
|
||||||
void btn_SetOutputDir();
|
void btn_SetOutputDir();
|
||||||
void btn_Start();
|
void btn_Start();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Acid Cam v2 - Qt/OpenCV Edition
|
* Acid Cam v2 - Qt/OpenCV Edition
|
||||||
* written by Jared Bruni ( http://lostsidedead.com )
|
* written by Jared Bruni ( http://lostsidedead.com )
|
||||||
* (C) 2017 GPL
|
* (C) 2017 GPL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include"playback_thread.h"
|
#include"playback_thread.h"
|
||||||
@@ -112,7 +112,7 @@ void Playback::setOptions(bool n, int c) {
|
|||||||
void Playback::reset_filters() {
|
void Playback::reset_filters() {
|
||||||
mutex.lock();
|
mutex.lock();
|
||||||
if(ac::reset_alpha == false) {
|
if(ac::reset_alpha == false) {
|
||||||
ac::reset_alpha = true;
|
ac::reset_alpha = true;
|
||||||
}
|
}
|
||||||
ac::frames_released = true;
|
ac::frames_released = true;
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
@@ -247,7 +247,7 @@ void Playback::run() {
|
|||||||
msleep(duration/2);
|
msleep(duration/2);
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
} else if(cur.size()>0) {
|
} else if(cur.size()>0) {
|
||||||
mutex.lock();
|
mutex.lock();
|
||||||
ac::in_custom = true;
|
ac::in_custom = true;
|
||||||
for(unsigned int i = 0; i < cur.size(); ++i) {
|
for(unsigned int i = 0; i < cur.size(); ++i) {
|
||||||
if(i == cur.size()-1)
|
if(i == cur.size()-1)
|
||||||
@@ -308,8 +308,8 @@ bool Playback::getFrame(QImage &img, const int &index) {
|
|||||||
mutex.lock();
|
mutex.lock();
|
||||||
cv::Mat frame;
|
cv::Mat frame;
|
||||||
if(mode == MODE_VIDEO && capture.read(frame)) {
|
if(mode == MODE_VIDEO && capture.read(frame)) {
|
||||||
cv::cvtColor(frame, rgb_frame, CV_BGR2RGB);
|
cv::cvtColor(frame, rgb_frame, CV_BGR2RGB);
|
||||||
img = QImage((const unsigned char*)(rgb_frame.data), rgb_frame.cols, rgb_frame.rows, QImage::Format_RGB888);
|
img = QImage((const unsigned char*)(rgb_frame.data), rgb_frame.cols, rgb_frame.rows, QImage::Format_RGB888);
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
setFrameIndex(index);
|
setFrameIndex(index);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Acid Cam v2 - Qt/OpenCV Edition
|
* Acid Cam v2 - Qt/OpenCV Edition
|
||||||
* written by Jared Bruni ( http://lostsidedead.com )
|
* written by Jared Bruni ( http://lostsidedead.com )
|
||||||
* (C) 2017 GPL
|
* (C) 2017 GPL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PLAYBACK_WINDOW_H__
|
#ifndef __PLAYBACK_WINDOW_H__
|
||||||
#define __PLAYBACK_WINDOW_H__
|
#define __PLAYBACK_WINDOW_H__
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ void add_directory(QDir &cdir, std::vector<std::string> &files) {
|
|||||||
#else
|
#else
|
||||||
platform = ".dll";
|
platform = ".dll";
|
||||||
#endif
|
#endif
|
||||||
while(pos < list.size()) {
|
while(pos < list.size()) {
|
||||||
QFileInfo info = list.at(pos);
|
QFileInfo info = list.at(pos);
|
||||||
if(info.isDir() && info.fileName() != "." && info.fileName() != "..") {
|
if(info.isDir() && info.fileName() != "." && info.fileName() != "..") {
|
||||||
QDir cdir = info.dir();
|
QDir cdir = info.dir();
|
||||||
@@ -45,7 +45,7 @@ void init_plugins() {
|
|||||||
for(unsigned int i = 0; i < files.size(); ++i) {
|
for(unsigned int i = 0; i < files.size(); ++i) {
|
||||||
Plugin *p = new Plugin();
|
Plugin *p = new Plugin();
|
||||||
if(p->loadPlugin(files[i]))
|
if(p->loadPlugin(files[i]))
|
||||||
plugins.plugin_list.push_back(p);
|
plugins.plugin_list.push_back(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
* Acid Cam v2 - Qt/OpenCV Edition
|
* Acid Cam v2 - Qt/OpenCV Edition
|
||||||
* written by Jared Bruni ( http://lostsidedead.com )
|
* written by Jared Bruni ( http://lostsidedead.com )
|
||||||
* (C) 2017 GPL
|
* (C) 2017 GPL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _QT_HEADERS__
|
#ifndef _QT_HEADERS__
|
||||||
#define _QT_HEADERS__
|
#define _QT_HEADERS__
|
||||||
#define ac_version "v1.20.0"
|
#define ac_version "v1.20.1"
|
||||||
#include<QApplication>
|
#include<QApplication>
|
||||||
#include<QMainWindow>
|
#include<QMainWindow>
|
||||||
#include<QDialog>
|
#include<QDialog>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ void SearchWindow::search_filter() {
|
|||||||
std::string search_items = lowerString(filters->itemText(i).toStdString());
|
std::string search_items = lowerString(filters->itemText(i).toStdString());
|
||||||
for(unsigned q = 0; q < tokens.size(); ++q) {
|
for(unsigned q = 0; q < tokens.size(); ++q) {
|
||||||
if(search_items.find(tokens[q]) != std::string::npos) {
|
if(search_items.find(tokens[q]) != std::string::npos) {
|
||||||
search_list->addItem(filters->itemText(i));
|
search_list->addItem(filters->itemText(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public:
|
|||||||
SearchWindow(QWidget *parent = 0);
|
SearchWindow(QWidget *parent = 0);
|
||||||
void createControls();
|
void createControls();
|
||||||
void setFiltersControl(QComboBox *filter_box, QListWidget *custom);
|
void setFiltersControl(QComboBox *filter_box, QListWidget *custom);
|
||||||
public slots:
|
public slots:
|
||||||
void search_filter();
|
void search_filter();
|
||||||
void add_current();
|
void add_current();
|
||||||
void set_subf();
|
void set_subf();
|
||||||
|
|||||||
Reference in New Issue
Block a user