Change InputStream class name and minor fix in open function

This commit is contained in:
jfmcarreira committed 2014-06-17 17:28:59 +01:00
1 parent cf9edc1b59
commit aaaeb9da14
10 files changed
+52 -52

No files matched your search

+1 -1
View File
@@ -123,7 +123,7 @@ QSize StreamPropertiesSideBar::sizeHint() const
return bestSize( size() );
}
Void StreamPropertiesSideBar::setData( InputStream* pcStream )
Void StreamPropertiesSideBar::setData( PlaYUVerStream* pcStream )
{
// Clear information.
labelFormatValue->clear();
+2 -2
View File
@@ -49,10 +49,10 @@ public:
QSize sizeHint() const;
Void setData( InputStream* m_pcStream );
Void setData( PlaYUVerStream* m_pcStream );
private:
InputStream* m_pcStream;
PlaYUVerStream* m_pcStream;
Bool m_bIsVisible;
QLabel* labelFormatValue;
+10 -10
View File
@@ -55,7 +55,7 @@ SubWindowHandle::SubWindowHandle( QWidget * parent, Bool isModule ) :
m_cScrollArea->setWidgetResizable( true );
m_pCurrStream = NULL;
//m_pCurrStream = new InputStream;
//m_pCurrStream = new PlaYUVerStream;
m_pcCurrFrame = NULL;
m_pcCurrentModule = NULL;
@@ -80,19 +80,19 @@ Void SubWindowHandle::reloadFile()
seekAbsoluteEvent( currFrameNum );
}
Bool SubWindowHandle::loadFile( const QString &rcFilename, Bool bForceDialog )
Bool SubWindowHandle::loadFile( QString cFilename, Bool bForceDialog )
{
UInt Width = 0, Height = 0, FrameRate = 30;
Int InputFormat = -1;
if( !m_pCurrStream )
{
m_pCurrStream = new InputStream;
m_pCurrStream = new PlaYUVerStream;
}
m_pCurrStream->getFormat( Width, Height, InputFormat, FrameRate );
if( m_pCurrStream->guessFormat( rcFilename, Width, Height, InputFormat, FrameRate ) || bForceDialog )
if( m_pCurrStream->guessFormat( cFilename, Width, Height, InputFormat, FrameRate ) || bForceDialog )
{
ConfigureFormatDialog formatDialog( this );
if( formatDialog.runConfigureFormatDialog( Width, Height, InputFormat, FrameRate ) == QDialog::Rejected )
@@ -102,7 +102,7 @@ Bool SubWindowHandle::loadFile( const QString &rcFilename, Bool bForceDialog )
}
QApplication::setOverrideCursor( Qt::WaitCursor );
QApplication::restoreOverrideCursor();
if( !m_pCurrStream->open( rcFilename, Width, Height, InputFormat, FrameRate ) )
if( !m_pCurrStream->open( cFilename, Width, Height, InputFormat, FrameRate ) )
{
return false;
}
@@ -113,7 +113,7 @@ Bool SubWindowHandle::loadFile( const QString &rcFilename, Bool bForceDialog )
refreshFrame();
m_cCurrFileName = rcFilename;
m_cCurrFileName = cFilename;
m_cWindowName = m_pCurrStream->getStreamInformationString();
setWindowTitle( m_cWindowName );
return true;
@@ -194,13 +194,13 @@ Void SubWindowHandle::refreshFrame()
Bool SubWindowHandle::save()
{
QString supported = tr( "Supported Files" );
QString formats = InputStream::supportedWriteFormats();
QString formats = PlaYUVerStream::supportedWriteFormats();
formats.prepend( " (" );
formats.append( ")" );
supported.append( formats ); // supported=="Supported Files (*.pbm *.jpg...)"
QStringList filter;
filter << supported
<< InputStream::supportedWriteFormatsList()
<< PlaYUVerStream::supportedWriteFormatsList()
<< tr( "All Files (*)" );
QString fileName = QFileDialog::getSaveFileName( this, tr( "Save As" ), m_cCurrFileName, filter.join( ";;" ) );
if( fileName.isEmpty() )
@@ -231,12 +231,12 @@ Int SubWindowHandle::playEvent()
{
m_pCurrStream->setNextFrame();
refreshFrame();
if( m_pCurrStream->checkErrors( InputStream::END_OF_SEQ ) )
if( m_pCurrStream->checkErrors( PlaYUVerStream::END_OF_SEQ ) )
{
return -2;
}
m_pCurrStream->readNextFrame();
if( m_pCurrStream->checkErrors( InputStream::READING ) )
if( m_pCurrStream->checkErrors( PlaYUVerStream::READING ) )
{
QMessageBox::warning( this, tr( "plaYUVer" ), tr( "Cannot read %1." ).arg( m_cCurrFileName ) );
return -3;
+3 -3
View File
@@ -50,7 +50,7 @@ private:
PlaYUVerModuleIf* m_pcCurrentModule;
InputStream* m_pCurrStream;
PlaYUVerStream* m_pCurrStream;
PlaYUVerFrame* m_pcCurrFrame;
QString m_cWindowName;
@@ -66,7 +66,7 @@ public:
~SubWindowHandle();
Bool mayClose();
Bool loadFile( const QString &rcFilename, Bool bForceDialog = false );
Bool loadFile( QString cFilename, Bool bForceDialog = false );
Void reloadFile();
Bool save();
@@ -88,7 +88,7 @@ public:
Void refreshFrame();
Void setCurrFrame( PlaYUVerFrame* pcCurrFrame );
InputStream* getInputStream()
PlaYUVerStream* getInputStream()
{
return m_pCurrStream;
}
+2 -2
View File
@@ -875,12 +875,12 @@ void ViewArea::updateMask( const QRect &rect )
}
void ViewArea::setInputStream( InputStream *stream )
void ViewArea::setInputStream( PlaYUVerStream *stream )
{
m_pStream = stream;
}
InputStream* ViewArea::getInputStream()
PlaYUVerStream* ViewArea::getInputStream()
{
return m_pStream;
}
+4 -4
View File
@@ -38,7 +38,7 @@
namespace plaYUVer
{
class InputStream;
class PlaYUVerStream;
/**
*
@@ -99,8 +99,8 @@ public:
return m_maskColor;
}
void setInputStream( InputStream *stream );
InputStream* getInputStream();
void setInputStream( PlaYUVerStream *stream );
PlaYUVerStream* getInputStream();
Void zoomChangeEvent(Double factor, QPoint center);
Double getZoomFactor();
@@ -167,7 +167,7 @@ private:
bool m_snapToGrid;
bool m_cursorInGrid;
InputStream *m_pStream;
PlaYUVerStream *m_pStream;
};
+2 -2
View File
@@ -189,14 +189,14 @@ Void plaYUVerApp::loadFile( QString fileName )
Void plaYUVerApp::open()
{
QString supported = tr( "Supported Files" );
QString formats = InputStream::supportedReadFormats();
QString formats = PlaYUVerStream::supportedReadFormats();
formats.prepend( " (" );
formats.append( ")" );
supported.append( formats ); // supported=="Supported Files (*.pbm *.jpg...)"
QStringList filter;
filter << supported
<< InputStream::supportedReadFormatsList()
<< PlaYUVerStream::supportedReadFormatsList()
<< tr( "All Files (*)" );
QString fileName = QFileDialog::getOpenFileName( this, tr( "Open File" ), m_cLastOpenPath, filter.join( ";;" ) );
+1 -1
View File
@@ -40,7 +40,7 @@ namespace plaYUVer
{
class SubWindowHandle;
class InputStream;
class PlaYUVerStream;
class plaYUVerApp: public QMainWindow
{