summaryrefslogtreecommitdiffstats
path: root/src/viewmpeg2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/viewmpeg2.cpp')
-rw-r--r--src/viewmpeg2.cpp229
1 files changed, 229 insertions, 0 deletions
diff --git a/src/viewmpeg2.cpp b/src/viewmpeg2.cpp
new file mode 100644
index 0000000..66a966a
--- /dev/null
+++ b/src/viewmpeg2.cpp
@@ -0,0 +1,229 @@
+#include <klocale.h>
+/****************************************************************************
+** Form implementation generated from reading ui file './viewmpeg2.ui'
+**
+** Created: dim. oct. 26 08:57:36 2008
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+
+#include "viewmpeg2.h"
+
+#include <qvariant.h>
+#include <qpushbutton.h>
+#include <qframe.h>
+#include <qtoolbutton.h>
+#include <qslider.h>
+#include <qlabel.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+#include <qimage.h>
+#include <qpixmap.h>
+
+static const unsigned char img0_viewmpeg2[] = {
+ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
+ 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
+ 0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff, 0x61, 0x00, 0x00, 0x02,
+ 0xe7, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0x5d, 0x93, 0xb9, 0x6f, 0x5c,
+ 0x55, 0x14, 0xc6, 0x7f, 0xe7, 0xde, 0xfb, 0xb6, 0xd9, 0xbc, 0x66, 0xe2,
+ 0x19, 0xdb, 0x63, 0x27, 0x40, 0x6c, 0x30, 0x91, 0x85, 0xe4, 0x88, 0x86,
+ 0x06, 0xd2, 0x01, 0x2d, 0x2d, 0x12, 0x1d, 0x2d, 0xff, 0x4d, 0x94, 0x92,
+ 0x86, 0x86, 0x16, 0x29, 0x91, 0xc2, 0x92, 0x20, 0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 0xae, 0x42, 0x60, 0x82
+};
+
+static const unsigned char img1_viewmpeg2[] = {
+ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
+ 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20,
+ 0x08, 0x06, 0x00, 0x00, 0x00, 0x73, 0x7a, 0x7a, 0xf4, 0x00, 0x00, 0x00,
+ 0x47, 0x49, 0x44, 0x41, 0x54, 0x58, 0x85, 0xed, 0xd7, 0xb1, 0x0d, 0x00,
+ 0x20, 0x0c, 0x03, 0x41, 0x82, 0x98, 0xca, 0xfb, 0xcb, 0x6b, 0x91, 0x0d,
+ 0xa0, 0xa0, 0x30, 0xc5, 0xa7, 0x75, 0x24, 0x9f, 0xd2, 0xa5, 0x6c, 0x8f,
+ 0xe4, 0xcc, 0x68, 0x3b, 0x00, 0x00, 0x00, 0x7e, 0x00, 0xac, 0xdb, 0x82,
+ 0xa4, 0xfd, 0x52, 0x60, 0xbb, 0x4e, 0x79, 0xfc, 0x02, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x80, 0xe2, 0x31, 0x01, 0x00, 0x20, 0x0d, 0x68,
+ 0xfa, 0xa1, 0x08, 0xe5, 0x16, 0xc9, 0x6b, 0xf3, 0x00, 0x00, 0x00, 0x00,
+ 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
+};
+
+static const unsigned char img2_viewmpeg2[] = {
+ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
+ 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20,
+ 0x08, 0x06, 0x00, 0x00, 0x00, 0x73, 0x7a, 0x7a, 0xf4, 0x00, 0x00, 0x00,
+ 0x79, 0x49, 0x44, 0x41, 0x54, 0x58, 0x85, 0xed, 0xd7, 0x41, 0x0a, 0xc0,
+ 0x20, 0x0c, 0x44, 0xd1, 0xa4, 0xf4, 0x54, 0x73, 0x7f, 0x72, 0x2d, 0xbb,
+ 0x12, 0xba, 0xd4, 0x64, 0x24, 0x94, 0x8e, 0x6b, 0xe1, 0xbf, 0x45, 0x22,
+ 0xe8, 0x11, 0x61, 0x9d, 0xe7, 0x6a, 0xad, 0x0b, 0x20, 0x80, 0x00, 0x9f,
+ 0x01, 0x00, 0x18, 0x00, 0x46, 0x1b, 0xe0, 0x0d, 0x69, 0x05, 0x4c, 0x04,
+ 0x13, 0x92, 0x9e, 0x01, 0x16, 0xa4, 0x3c, 0x84, 0x55, 0x08, 0x6d, 0x0b,
+ 0xb2, 0x10, 0xfa, 0x1a, 0xee, 0x42, 0x8e, 0xbd, 0x03, 0xab, 0x88, 0x63,
+ 0x80, 0x88, 0xf0, 0x95, 0x7b, 0x77, 0x57, 0x98, 0x0e, 0xd8, 0x0d, 0xd3,
+ 0x00, 0xd9, 0x70, 0x19, 0x50, 0x0d, 0xa7, 0x01, 0xac, 0xf0, 0x3c, 0x5b,
+ 0x5b, 0xc0, 0x8e, 0x9b, 0x99, 0xb9, 0xfe, 0x05, 0x02, 0x08, 0xf0, 0x7b,
+ 0xc0, 0x03, 0xaa, 0x86, 0x2c, 0xa8, 0x26, 0x27, 0x76, 0xfe, 0x00, 0x00,
+ 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
+};
+
+
+/*
+ * Constructs a ViewMPEG2 as a child of 'parent', with the
+ * name 'name' and widget flags set to 'f'.
+ */
+ViewMPEG2::ViewMPEG2( QWidget* parent, const char* name, WFlags fl )
+ : QWidget( parent, name, fl )
+{
+ QImage img;
+ img.loadFromData( img0_viewmpeg2, sizeof( img0_viewmpeg2 ), "PNG" );
+ image0 = img;
+ img.loadFromData( img1_viewmpeg2, sizeof( img1_viewmpeg2 ), "PNG" );
+ image1 = img;
+ img.loadFromData( img2_viewmpeg2, sizeof( img2_viewmpeg2 ), "PNG" );
+ image2 = img;
+ if ( !name )
+ setName( "ViewMPEG2" );
+ setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
+ setSizeIncrement( QSize( 0, 0 ) );
+ setBaseSize( QSize( 0, 0 ) );
+ setIcon( image0 );
+ ViewMPEG2Layout = new QGridLayout( this, 1, 1, 2, 6, "ViewMPEG2Layout");
+
+ frame7 = new QFrame( this, "frame7" );
+ frame7->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, frame7->sizePolicy().hasHeightForWidth() ) );
+ frame7->setMaximumSize( QSize( 32767, 50 ) );
+ frame7->setFrameShape( QFrame::StyledPanel );
+ frame7->setFrameShadow( QFrame::Raised );
+ frame7Layout = new QGridLayout( frame7, 1, 1, 11, 6, "frame7Layout");
+
+ bStop = new QToolButton( frame7, "bStop" );
+ bStop->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, bStop->sizePolicy().hasHeightForWidth() ) );
+ bStop->setIconSet( QIconSet( image1 ) );
+
+ frame7Layout->addWidget( bStop, 0, 0 );
+
+ bPlay = new QToolButton( frame7, "bPlay" );
+ bPlay->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, bPlay->sizePolicy().hasHeightForWidth() ) );
+ bPlay->setIconSet( QIconSet( image2 ) );
+
+ frame7Layout->addWidget( bPlay, 0, 1 );
+
+ slider = new QSlider( frame7, "slider" );
+ slider->setOrientation( QSlider::Horizontal );
+
+ frame7Layout->addWidget( slider, 0, 2 );
+
+ ViewMPEG2Layout->addWidget( frame7, 1, 0 );
+
+ label = new QLabel( this, "label" );
+ label->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)2, (QSizePolicy::SizeType)2, 0, 0, label->sizePolicy().hasHeightForWidth() ) );
+
+ ViewMPEG2Layout->addWidget( label, 0, 0 );
+ languageChange();
+ resize( QSize(320, 320).expandedTo(minimumSizeHint()) );
+ clearWState( WState_Polished );
+
+ // signals and slots connections
+ connect( bStop, SIGNAL( clicked() ), this, SLOT( bStopClick() ) );
+ connect( bPlay, SIGNAL( clicked() ), this, SLOT( bPlayClick() ) );
+ connect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) );
+ connect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) );
+}
+
+/*
+ * Destroys the object and frees any allocated resources
+ */
+ViewMPEG2::~ViewMPEG2()
+{
+ // no need to delete child widgets, Qt does it all for us
+}
+
+/*
+ * Sets the strings of the subwidgets using the current
+ * language.
+ */
+void ViewMPEG2::languageChange()
+{
+ setCaption( tr2i18n( "k9Copy - Title Preview" ) );
+ bStop->setText( QString::null );
+ bPlay->setText( QString::null );
+}
+
+void ViewMPEG2::sliderReleased()
+{
+ qWarning( "ViewMPEG2::sliderReleased(): Not implemented yet" );
+}
+
+void ViewMPEG2::bStopClick()
+{
+ qWarning( "ViewMPEG2::bStopClick(): Not implemented yet" );
+}
+
+void ViewMPEG2::bPlayClick()
+{
+ qWarning( "ViewMPEG2::bPlayClick(): Not implemented yet" );
+}
+
+void ViewMPEG2::sliderPressed()
+{
+ qWarning( "ViewMPEG2::sliderPressed(): Not implemented yet" );
+}
+
+#include "viewmpeg2.moc"