Video::PreviewManager::PreviewManager() : QObject(&VideoRendererManager::instance())
{
   connect(&VideoRendererManager::instance(), &VideoRendererManager::previewStateChanged, [this](bool startStop) {
      emit previewStateChanged(startStop);
   });
   connect(&VideoRendererManager::instance(), &VideoRendererManager::previewStarted     , [this](Video::Renderer* renderer) {
      emit previewStarted(renderer);
   });
   connect(&VideoRendererManager::instance(), &VideoRendererManager::previewStopped     , [this](Video::Renderer* renderer) {
      emit previewStopped(renderer);
   });
}
Example #2
0
void WizardController::updateDialogWizardStep()
{
    emit wizardStepChanged(m_wizardStep);
    emit previewStateChanged(QLatin1String(
        m_wizardStep == WizardStepInputImage ?  "image"
        : m_wizardStep == WizardStepOverlapping ? "overlapping"
        : m_wizardStep == WizardStepPaperSize ? "paper"
        : "poster" // WizardStepPosterSize, WizardStepSavePoster
    ));
    emit prevButtonEnabled(m_wizardStep != previousAvailableStep());
    emit nextButtonEnabled(
        m_wizardStep != nextAvailableStep()
        && m_imageWasLoaded
    );
    updateDialogWizardStepDescription();
}