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