mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-13 10:20:01 +01:00
39 lines
905 B
C++
Executable File
39 lines
905 B
C++
Executable File
#ifndef __GOTO_WINDOW__H_
|
|
#define __GOTO_WINDOW__H_
|
|
|
|
#include "qtheaders.h"
|
|
#include "display_window.h"
|
|
#include "playback_thread.h"
|
|
|
|
class AC_MainWindow;
|
|
|
|
class GotoWindow : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
GotoWindow(QWidget *parent);
|
|
void setVideoCapture(cv::VideoCapture *cap);
|
|
void setDisplayWindow(DisplayWindow *win);
|
|
void setMainWindow(AC_MainWindow *window);
|
|
void setPlayback(Playback *playb);
|
|
void createControls();
|
|
void setFrameIndex(int index);
|
|
void showImage();
|
|
void showWindow(int frame_index, int min, int max);
|
|
private:
|
|
int frame_index;
|
|
DisplayWindow *disp_window;
|
|
AC_MainWindow *main_window;
|
|
cv::VideoCapture *capture_device;
|
|
QSlider *goto_pos;
|
|
QLineEdit *goto_sec, *goto_frame;
|
|
QPushButton *goto_jump;
|
|
Playback *playback_thread;
|
|
public slots:
|
|
void pressedGo();
|
|
void slideChanged(int pos);
|
|
|
|
};
|
|
|
|
#endif
|
|
|