mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-17 12:20:00 +01:00
working on goto window
This commit is contained in:
@@ -2,9 +2,21 @@
|
|||||||
|
|
||||||
|
|
||||||
GotoWindow::GotoWindow(QWidget *parent) : QDialog(parent) {
|
GotoWindow::GotoWindow(QWidget *parent) : QDialog(parent) {
|
||||||
|
createControls();
|
||||||
|
}
|
||||||
|
|
||||||
|
void GotoWindow::setDisplayWindow(DisplayWindow *win) {
|
||||||
|
disp_window = win;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GotoWindow::createControls() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GotoWindow::setVideo(cv::VideoCapture *cap) {
|
void GotoWindow::setFrameIndex(const long &i) {
|
||||||
capture = cap;
|
index = i;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GotoWindow::ShowImage() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,20 @@
|
|||||||
#ifndef __GOTO_WINDOW__H_
|
#ifndef __GOTO_WINDOW__H_
|
||||||
#define __GOTO_WINDOW__H_
|
#define __GOTO_WINDOW__H_
|
||||||
|
|
||||||
|
|
||||||
#include "qtheaders.h"
|
#include "qtheaders.h"
|
||||||
|
#include "display_window.h"
|
||||||
|
|
||||||
class GotoWindow : public QDialog {
|
class GotoWindow : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
GotoWindow(QWidget *parent);
|
GotoWindow(QWidget *parent);
|
||||||
void setVideo(cv::VideoCapture *cap);
|
void setDisplayWindow(DisplayWindow *win);
|
||||||
|
void createControls();
|
||||||
|
void setFrameIndex(const long &index);
|
||||||
|
void ShowImage();
|
||||||
private:
|
private:
|
||||||
cv::VideoCapture *capture;
|
long index;
|
||||||
|
DisplayWindow *disp_window;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -74,6 +74,8 @@ AC_MainWindow::AC_MainWindow(QWidget *parent) : QMainWindow(parent) {
|
|||||||
take_snapshot = false;
|
take_snapshot = false;
|
||||||
disp = new DisplayWindow(this);
|
disp = new DisplayWindow(this);
|
||||||
playback = new Playback();
|
playback = new Playback();
|
||||||
|
goto_window = new GotoWindow(this);
|
||||||
|
goto_window->setDisplayWindow(disp);
|
||||||
QObject::connect(playback, SIGNAL(procImage(QImage)), this, SLOT(updateFrame(QImage)));
|
QObject::connect(playback, SIGNAL(procImage(QImage)), this, SLOT(updateFrame(QImage)));
|
||||||
QObject::connect(playback, SIGNAL(stopRecording()), this, SLOT(stopRecording()));
|
QObject::connect(playback, SIGNAL(stopRecording()), this, SLOT(stopRecording()));
|
||||||
QObject::connect(playback, SIGNAL(frameIncrement()), this, SLOT(frameInc()));
|
QObject::connect(playback, SIGNAL(frameIncrement()), this, SLOT(frameInc()));
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
#include "display_window.h"
|
#include "display_window.h"
|
||||||
#include "playback_thread.h"
|
#include "playback_thread.h"
|
||||||
#include "search_box.h"
|
#include "search_box.h"
|
||||||
|
#include "goto_window.h"
|
||||||
|
|
||||||
class SearchWindow;
|
class SearchWindow;
|
||||||
|
|
||||||
@@ -105,6 +106,7 @@ private:
|
|||||||
CaptureCamera *cap_camera;
|
CaptureCamera *cap_camera;
|
||||||
CaptureVideo *cap_video;
|
CaptureVideo *cap_video;
|
||||||
SearchWindow *search_box;
|
SearchWindow *search_box;
|
||||||
|
GotoWindow *goto_window;
|
||||||
cv::VideoCapture capture_camera, capture_video;
|
cv::VideoCapture capture_camera, capture_video;
|
||||||
cv::VideoWriter writer;
|
cv::VideoWriter writer;
|
||||||
unsigned long video_frames;
|
unsigned long video_frames;
|
||||||
|
|||||||
Reference in New Issue
Block a user