From e15961ca711cefd401edf605aec307550a7c6a7f Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Tue, 28 Jan 2014 00:38:44 +0000 Subject: [PATCH] Call dialog box before open the raw sequence --- source/ImageInterface.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/ImageInterface.cpp b/source/ImageInterface.cpp index d76ef27..72e0588 100644 --- a/source/ImageInterface.cpp +++ b/source/ImageInterface.cpp @@ -26,6 +26,7 @@ #include #include +#include "ConfigureResolutionDialog.h" #include "ImageInterface.h" #include "viewarea.h" @@ -70,7 +71,14 @@ bool ImageInterface::loadFile( const QString &fileName ) { QApplication::setOverrideCursor( Qt::WaitCursor ); - m_currStream.init( fileName, 1024, 768 ); + ConfigureResolutionDialog resolutionDialog; + + if( resolutionDialog.exec() == QDialog::Rejected ) + { + return false; + } + + m_currStream.init( fileName, resolutionDialog.getResolution().width(), resolutionDialog.getResolution().height() ); m_currStream.readFrame(); if( m_currStream.checkErrors( READING ) )