[vlmc-devel] commit: PreviewWidget: Do something with the renderer errors. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Thu May 27 22:50:43 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu May 27 22:48:47 2010 +0200| [f67c2b1c11ce8b6c844c45115b4dee76147f7271] | committer: Hugo Beauzée-Luyssen
PreviewWidget: Do something with the renderer errors.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=f67c2b1c11ce8b6c844c45115b4dee76147f7271
---
src/Gui/preview/PreviewWidget.cpp | 11 +++++++++++
src/Gui/preview/PreviewWidget.h | 1 +
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/Gui/preview/PreviewWidget.cpp b/src/Gui/preview/PreviewWidget.cpp
index 39a12f7..7091af9 100644
--- a/src/Gui/preview/PreviewWidget.cpp
+++ b/src/Gui/preview/PreviewWidget.cpp
@@ -27,6 +27,8 @@
#include "ClipRenderer.h"
#include "Clip.h"
+#include <QMessageBox>
+
PreviewWidget::PreviewWidget( GenericRenderer* genericRenderer, QWidget *parent ) :
QWidget( parent ),
m_ui( new Ui::PreviewWidget ),
@@ -69,6 +71,7 @@ PreviewWidget::PreviewWidget( GenericRenderer* genericRenderer, QWidget *parent
connect( m_renderer, SIGNAL( endReached() ), this, SLOT( endReached() ) );
connect( m_ui->rulerWidget, SIGNAL( frameChanged(qint64, MainWorkflow::FrameChangedReason) ),
m_renderer, SLOT( previewWidgetCursorChanged(qint64) ) );
+ connect( m_renderer, SIGNAL( error() ), this, SLOT( error() ) );
connect( m_ui->pushButtonMarkerStart, SIGNAL( clicked() ), this, SLOT( markerStartClicked() ) );
connect( m_ui->pushButtonMarkerStop, SIGNAL( clicked() ), this, SLOT( markerStopClicked() ) );
@@ -212,3 +215,11 @@ void PreviewWidget::createNewClipFromMarkers()
if ( clip->addSubclip( part ) == false )
delete part;
}
+
+void
+PreviewWidget::error()
+{
+ QMessageBox::warning( this, tr( "Rendering error" ),
+ tr( "An error occured while rendering.\nPlease check your VLC installation"
+ " before reporting the issue.") );
+}
diff --git a/src/Gui/preview/PreviewWidget.h b/src/Gui/preview/PreviewWidget.h
index 7ff6d2c..386276e 100644
--- a/src/Gui/preview/PreviewWidget.h
+++ b/src/Gui/preview/PreviewWidget.h
@@ -69,6 +69,7 @@ private slots:
void markerStartClicked();
void markerStopClicked();
void createNewClipFromMarkers();
+ void error();
};
#endif // PREVIEWWIDGET_H
More information about the Vlmc-devel
mailing list