working on goto frame window

This commit is contained in:
lostjared
2018-08-29 20:35:24 -07:00
parent 7686b59460
commit 72bd7d2473
2 changed files with 5 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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;
} }