mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-17 12:20:00 +01:00
working on goto frame window
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
GotoWindow::GotoWindow(QWidget *parent) : QDialog(parent) {
|
GotoWindow::GotoWindow(QWidget *parent) : QDialog(parent) {
|
||||||
createControls();
|
createControls();
|
||||||
|
setFixedSize(400, 150);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GotoWindow::setDisplayWindow(DisplayWindow *win) {
|
void GotoWindow::setDisplayWindow(DisplayWindow *win) {
|
||||||
|
|||||||
@@ -72,9 +72,10 @@ AC_MainWindow::AC_MainWindow(QWidget *parent) : QMainWindow(parent) {
|
|||||||
search_box->main_window = this;
|
search_box->main_window = this;
|
||||||
statusBar()->showMessage(tr("Acid Cam v2 Loaded - Use File Menu to Start"));
|
statusBar()->showMessage(tr("Acid Cam v2 Loaded - Use File Menu to Start"));
|
||||||
take_snapshot = false;
|
take_snapshot = false;
|
||||||
|
goto_window = new GotoWindow(this);
|
||||||
disp = new DisplayWindow(this);
|
disp = new DisplayWindow(this);
|
||||||
playback = new Playback();
|
playback = new Playback();
|
||||||
goto_window = new GotoWindow(this);
|
//goto_window->show();
|
||||||
goto_window->setDisplayWindow(disp);
|
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()));
|
||||||
@@ -978,10 +979,12 @@ void AC_MainWindow::controls_Pause() {
|
|||||||
controls_pause->setText("Paused");
|
controls_pause->setText("Paused");
|
||||||
controls_pause->setChecked(true);
|
controls_pause->setChecked(true);
|
||||||
paused = true;
|
paused = true;
|
||||||
|
goto_window->show();
|
||||||
playback->Stop();
|
playback->Stop();
|
||||||
} else {
|
} else {
|
||||||
controls_pause->setText("Pause");
|
controls_pause->setText("Pause");
|
||||||
controls_pause->setChecked(false);
|
controls_pause->setChecked(false);
|
||||||
|
goto_window->hide();
|
||||||
playback->Play();
|
playback->Play();
|
||||||
paused = false;
|
paused = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user