updated formatting, changed location of combobox, upped version number

This commit is contained in:
lostjared
2018-11-18 10:59:48 -08:00
parent b1addfb21c
commit a93038a9ba
14 changed files with 32 additions and 32 deletions

View File

@@ -102,13 +102,13 @@ void ChromaWindow::createControls() {
highButton->setGeometry(300, 90, 25, 20);
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 Image");
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->setGeometry(85, 265, 400-85-25, 20);

View File

@@ -12,7 +12,7 @@ public:
bool checkEdit(QLineEdit *edit);
void setEditFromColor(int val, QColor color);
void enableKey(bool op);
public slots:
public slots:
void openColorSelectRange();
void openColorSelectTolerance();
void colorAdd();

View File

@@ -2,7 +2,7 @@
* Acid Cam v2 - Qt/OpenCV Edition
* written by Jared Bruni ( http://lostsidedead.com )
* (C) 2017 GPL
*/
*/
#ifndef __DISPLAY_WINDOW_H__

View File

@@ -28,7 +28,7 @@ private:
QLineEdit *goto_sec, *goto_frame;
QPushButton *goto_jump;
Playback *playback_thread;
public slots:
public slots:
void pressedGo();
void slideChanged(int pos);

View File

@@ -3,7 +3,7 @@
* Acid Cam v2 - Qt/OpenCV Edition
* written by Jared Bruni ( http://lostsidedead.com )
* (C) 2017 GPL
*/
*/
#ifndef __MAIN_WINDOW_H__
#define __MAIN_WINDOW_H__
@@ -55,7 +55,7 @@ public:
void updateList();
void setSubFilter(const QString &num);
void setFrameIndex(int i);
public slots:
public slots:
void addClicked();
void rmvClicked();
void upClicked();

View File

@@ -3,7 +3,7 @@
* Acid Cam v2 - Qt/OpenCV Edition
* written by Jared Bruni ( http://lostsidedead.com )
* (C) 2017 GPL
*/
*/
#include "new_dialog.h"
@@ -36,7 +36,7 @@ void CaptureCamera::createControls() {
stream << i;
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);
output_dir = new QLineEdit("", this);
output_dir->setGeometry(110, 65, 175, 20);

View File

@@ -3,7 +3,7 @@
* Acid Cam v2 - Qt/OpenCV Edition
* written by Jared Bruni ( http://lostsidedead.com )
* (C) 2017 GPL
*/
*/
#ifndef _NEW_DIALOG_H_
#define _NEW_DIALOG_H_
@@ -13,7 +13,7 @@
class AC_MainWindow;
class CaptureCamera : public QDialog {
Q_OBJECT
Q_OBJECT
public:
CaptureCamera(QWidget *parent = 0);
void createControls();
@@ -24,7 +24,7 @@ public:
QCheckBox *chk_record;
QPushButton *btn_start, *btn_select;
QComboBox *video_type;
public slots:
public slots:
void btn_Select();
void btn_Start();
@@ -44,7 +44,7 @@ public:
QCheckBox *chk_record;
QComboBox *video_type;
public slots:
public slots:
void btn_SetSourceFile();
void btn_SetOutputDir();
void btn_Start();

View File

@@ -2,7 +2,7 @@
* Acid Cam v2 - Qt/OpenCV Edition
* written by Jared Bruni ( http://lostsidedead.com )
* (C) 2017 GPL
*/
*/
#include"playback_thread.h"
@@ -112,7 +112,7 @@ void Playback::setOptions(bool n, int c) {
void Playback::reset_filters() {
mutex.lock();
if(ac::reset_alpha == false) {
ac::reset_alpha = true;
ac::reset_alpha = true;
}
ac::frames_released = true;
mutex.unlock();
@@ -247,7 +247,7 @@ void Playback::run() {
msleep(duration/2);
mutex.unlock();
} else if(cur.size()>0) {
mutex.lock();
mutex.lock();
ac::in_custom = true;
for(unsigned int i = 0; i < cur.size(); ++i) {
if(i == cur.size()-1)
@@ -308,8 +308,8 @@ bool Playback::getFrame(QImage &img, const int &index) {
mutex.lock();
cv::Mat frame;
if(mode == MODE_VIDEO && capture.read(frame)) {
cv::cvtColor(frame, rgb_frame, CV_BGR2RGB);
img = QImage((const unsigned char*)(rgb_frame.data), rgb_frame.cols, rgb_frame.rows, QImage::Format_RGB888);
cv::cvtColor(frame, rgb_frame, CV_BGR2RGB);
img = QImage((const unsigned char*)(rgb_frame.data), rgb_frame.cols, rgb_frame.rows, QImage::Format_RGB888);
mutex.unlock();
setFrameIndex(index);
return true;

View File

@@ -3,7 +3,7 @@
* Acid Cam v2 - Qt/OpenCV Edition
* written by Jared Bruni ( http://lostsidedead.com )
* (C) 2017 GPL
*/
*/
#ifndef __PLAYBACK_WINDOW_H__
#define __PLAYBACK_WINDOW_H__

View File

@@ -21,7 +21,7 @@ void add_directory(QDir &cdir, std::vector<std::string> &files) {
#else
platform = ".dll";
#endif
while(pos < list.size()) {
while(pos < list.size()) {
QFileInfo info = list.at(pos);
if(info.isDir() && info.fileName() != "." && info.fileName() != "..") {
QDir cdir = info.dir();
@@ -45,7 +45,7 @@ void init_plugins() {
for(unsigned int i = 0; i < files.size(); ++i) {
Plugin *p = new Plugin();
if(p->loadPlugin(files[i]))
plugins.plugin_list.push_back(p);
plugins.plugin_list.push_back(p);
}
}
}

View File

@@ -2,11 +2,11 @@
* Acid Cam v2 - Qt/OpenCV Edition
* written by Jared Bruni ( http://lostsidedead.com )
* (C) 2017 GPL
*/
*/
#ifndef _QT_HEADERS__
#define _QT_HEADERS__
#define ac_version "v1.20.0"
#define ac_version "v1.20.1"
#include<QApplication>
#include<QMainWindow>
#include<QDialog>

View File

@@ -51,7 +51,7 @@ void SearchWindow::search_filter() {
std::string search_items = lowerString(filters->itemText(i).toStdString());
for(unsigned q = 0; q < tokens.size(); ++q) {
if(search_items.find(tokens[q]) != std::string::npos) {
search_list->addItem(filters->itemText(i));
search_list->addItem(filters->itemText(i));
}
}
}

View File

@@ -12,7 +12,7 @@ public:
SearchWindow(QWidget *parent = 0);
void createControls();
void setFiltersControl(QComboBox *filter_box, QListWidget *custom);
public slots:
public slots:
void search_filter();
void add_current();
void set_subf();