QTfrontend/ui/page/pagevideos.cpp
changeset 14629 8ffa0c27f434
parent 13691 b5a7f83fa607
child 14836 b9437746bffb
equal deleted inserted replaced
14628:a049926fcdd3 14629:8ffa0c27f434
    46 #include "igbox.h"
    46 #include "igbox.h"
    47 #include "LibavInteraction.h"
    47 #include "LibavInteraction.h"
    48 #include "gameuiconfig.h"
    48 #include "gameuiconfig.h"
    49 #include "recorder.h"
    49 #include "recorder.h"
    50 #include "ask_quit.h"
    50 #include "ask_quit.h"
       
    51 #include "util/MessageDialog.h"
    51 
    52 
    52 static const QSize ThumbnailSize(350, 350*3/5);
    53 static const QSize ThumbnailSize(350, 350*3/5);
    53 
    54 
    54 // columns in table with list of video files
    55 // columns in table with list of video files
    55 enum VideosColumns
    56 enum VideosColumns
   313     progressBar->setMinimum(0);
   314     progressBar->setMinimum(0);
   314     progressBar->setMaximum(10000);
   315     progressBar->setMaximum(10000);
   315     progressBar->setValue(0);
   316     progressBar->setValue(0);
   316     connect(pRecorder, SIGNAL(onProgress(float)), this, SLOT(updateProgress(float)));
   317     connect(pRecorder, SIGNAL(onProgress(float)), this, SLOT(updateProgress(float)));
   317     connect(pRecorder, SIGNAL(encodingFinished(bool)), this, SLOT(encodingFinished(bool)));
   318     connect(pRecorder, SIGNAL(encodingFinished(bool)), this, SLOT(encodingFinished(bool)));
       
   319     connect(pRecorder, SIGNAL(ErrorMessage(const QString &)), this, SLOT(ShowFatalErrorMessage(const QString &)), Qt::QueuedConnection);
   318     filesTable->setCellWidget(row, vcProgress, progressBar);
   320     filesTable->setCellWidget(row, vcProgress, progressBar);
   319 
   321 
   320     numRecorders++;
   322     numRecorders++;
   321 }
   323 }
   322 
   324 
   740         }
   742         }
   741         addRecorder(pRecorder);
   743         addRecorder(pRecorder);
   742     }
   744     }
   743 }
   745 }
   744 
   746 
       
   747 void PageVideos::ShowFatalErrorMessage(const QString & msg)
       
   748 {
       
   749     MessageDialog::ShowFatalMessage(msg, this);
       
   750 }
       
   751