diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
commit | 0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch) | |
tree | 8578dcddfce4191f3f7a142a37769df7add48475 /src/playbackoptionsw.cpp | |
download | k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.tar.gz k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.zip |
Added old abandoned version of k9copy
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1091546 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/playbackoptionsw.cpp')
-rw-r--r-- | src/playbackoptionsw.cpp | 279 |
1 files changed, 279 insertions, 0 deletions
diff --git a/src/playbackoptionsw.cpp b/src/playbackoptionsw.cpp new file mode 100644 index 0000000..a6a4860 --- /dev/null +++ b/src/playbackoptionsw.cpp @@ -0,0 +1,279 @@ +#include <klocale.h> +/**************************************************************************** +** Form implementation generated from reading ui file './playbackoptionsw.ui' +** +** Created: dim. oct. 26 08:57:35 2008 +** +** WARNING! All changes made in this file will be lost! +****************************************************************************/ + +#include "playbackoptionsw.h" + +#include <qvariant.h> +#include <qpushbutton.h> +#include <qcheckbox.h> +#include <qframe.h> +#include <qlistbox.h> +#include <kpushbutton.h> +#include <qlabel.h> +#include <qcombobox.h> +#include <qlayout.h> +#include <qtooltip.h> +#include <qwhatsthis.h> +#include <qimage.h> +#include <qpixmap.h> + +#include "kpushbutton.h" +static const unsigned char img0_playbackoptionsw[] = { + 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, 0x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 0x75, 0x89, 0x88, 0xc8, 0x75, + 0x5d, 0xf2, 0x3c, 0x8f, 0x38, 0xe7, 0x64, 0xdb, 0x36, 0x71, 0xce, 0xc9, + 0xf7, 0x7d, 0x22, 0x22, 0xb2, 0x2c, 0x8b, 0x16, 0x17, 0x17, 0x77, 0x00, + 0x48, 0x2d, 0x3a, 0x9d, 0x4e, 0x7f, 0x53, 0xad, 0x56, 0xe9, 0xe6, 0xe6, + 0x86, 0x9a, 0xcd, 0x26, 0x39, 0x8e, 0xd3, 0x82, 0x0d, 0xc3, 0x68, 0x0d, + 0x11, 0xe2, 0x9f, 0x70, 0x8f, 0x8f, 0x8f, 0x94, 0x4a, 0xa5, 0x3e, 0x07, + 0x00, 0x49, 0xd3, 0xb4, 0x0f, 0xb2, 0xd9, 0xec, 0xb7, 0xb2, 0x2c, 0x33, + 0xdf, 0xf7, 0x11, 0x04, 0x01, 0xda, 0xda, 0xda, 0x20, 0xcb, 0x32, 0x00, + 0x80, 0x88, 0x10, 0x0a, 0x85, 0x10, 0x0e, 0x87, 0x41, 0x44, 0xe0, 0x9c, + 0x43, 0x55, 0x55, 0x74, 0x76, 0x76, 0xa6, 0xf6, 0xf6, 0xf6, 0x7e, 0x94, + 0xa7, 0xa7, 0xa7, 0x3f, 0xed, 0xea, 0xea, 0x92, 0x6d, 0xdb, 0x46, 0x2c, + 0x16, 0x83, 0x10, 0x02, 0xb6, 0x6d, 0x03, 0x00, 0x3c, 0xcf, 0x83, 0xef, + 0xfb, 0xd0, 0x34, 0x0d, 0x44, 0x04, 0xc7, 0x71, 0x60, 0xdb, 0x36, 0x1a, + 0x8d, 0x06, 0x52, 0xa9, 0x54, 0x62, 0x60, 0x60, 0xe0, 0x13, 0x79, 0x6c, + 0x6c, 0xec, 0x43, 0xd7, 0x75, 0x21, 0x49, 0x12, 0x42, 0xa1, 0x10, 0x24, + 0x49, 0x82, 0xeb, 0xba, 0x68, 0x36, 0x9b, 0xa8, 0xd5, 0x6a, 0x7e, 0x2c, + 0x16, 0x63, 0x9e, 0xe7, 0x31, 0x55, 0x55, 0xc1, 0x39, 0x87, 0x69, 0x9a, + 0xb0, 0x2c, 0x0b, 0x44, 0x84, 0x91, 0x91, 0x91, 0x09, 0x59, 0xd7, 0xf5, + 0x57, 0x00, 0xc0, 0x18, 0x83, 0x24, 0x49, 0x08, 0x87, 0xc3, 0xcf, 0x5b, + 0x68, 0x6e, 0x6e, 0xee, 0xb3, 0xd1, 0xd1, 0xd1, 0x57, 0x5b, 0x5b, 0x5b, + 0x6b, 0xa6, 0x69, 0x42, 0x08, 0x81, 0xa7, 0xa7, 0x27, 0x18, 0x86, 0x01, + 0x45, 0x51, 0xa0, 0xeb, 0x7a, 0x9f, 0xec, 0x79, 0x9e, 0xdb, 0xd1, 0xd1, + 0x01, 0x00, 0x50, 0x14, 0x05, 0x8c, 0x31, 0xc8, 0xb2, 0x8c, 0xf6, 0xf6, + 0xf6, 0xd0, 0xc2, 0xc2, 0xc2, 0xeb, 0xbe, 0xbe, 0xbe, 0xde, 0x46, 0xa3, + 0x81, 0x48, 0x24, 0x02, 0xce, 0x39, 0x0c, 0xc3, 0x80, 0x10, 0x02, 0x8a, + 0xa2, 0x80, 0x73, 0x2e, 0xe4, 0xeb, 0xeb, 0xeb, 0x77, 0xd1, 0x68, 0xf4, + 0x7d, 0xc6, 0x18, 0xc2, 0xe1, 0x30, 0x22, 0x91, 0x08, 0xba, 0xbb, 0xbb, + 0x51, 0xab, 0xd5, 0x90, 0xc9, 0x64, 0x32, 0x41, 0x10, 0xc0, 0x34, 0x4d, + 0x38, 0x8e, 0x03, 0xcb, 0xb2, 0x10, 0x04, 0x01, 0x18, 0x63, 0x08, 0x82, + 0x00, 0xe5, 0x72, 0xf9, 0x86, 0xe5, 0x72, 0xb9, 0x43, 0xcb, 0xb2, 0xa0, + 0xaa, 0x2a, 0x14, 0x45, 0x81, 0x10, 0x02, 0xb7, 0xb7, 0xb7, 0x70, 0x1c, + 0x07, 0xaa, 0xaa, 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f, 0x50, 0xd7, 0xf5, 0xf7, 0x88, 0x08, 0x43, + 0x43, 0x43, 0x60, 0x8c, 0x81, 0x73, 0x8e, 0xf3, 0xf3, 0xf3, 0x20, 0x9b, + 0xcd, 0xfe, 0xbe, 0xb9, 0xb9, 0x99, 0x71, 0x1c, 0xe7, 0x87, 0x67, 0x2e, + 0xf4, 0x1f, 0x8f, 0xd9, 0xae, 0x28, 0xca, 0xeb, 0xfe, 0xfe, 0xfe, 0xc9, + 0x9e, 0x9e, 0x9e, 0x7e, 0x21, 0x04, 0xdd, 0xdf, 0xdf, 0xdf, 0xde, 0xdd, + 0xdd, 0xfd, 0x0a, 0xe0, 0x37, 0x00, 0xc6, 0xbf, 0xcd, 0x7f, 0x03, 0x0c, + 0x63, 0xc7, 0xb7, 0xdc, 0x56, 0x84, 0xa7, 0x00, 0x00, 0x00, 0x00, 0x49, + 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82 +}; + + +/* + * Constructs a PlaybackOptionsw as a child of 'parent', with the + * name 'name' and widget flags set to 'f'. + */ +PlaybackOptionsw::PlaybackOptionsw( QWidget* parent, const char* name, WFlags fl ) + : QWidget( parent, name, fl ) +{ + QImage img; + img.loadFromData( img0_playbackoptionsw, sizeof( img0_playbackoptionsw ), "PNG" ); + image0 = img; + if ( !name ) + setName( "PlaybackOptionsw" ); + setIcon( image0 ); + PlaybackOptionswLayout = new QGridLayout( this, 1, 1, 2, 6, "PlaybackOptionswLayout"); + + ckMenu = new QCheckBox( this, "ckMenu" ); + + PlaybackOptionswLayout->addWidget( ckMenu, 1, 0 ); + + frPlayback = new QFrame( this, "frPlayback" ); + frPlayback->setEnabled( FALSE ); + frPlayback->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, frPlayback->sizePolicy().hasHeightForWidth() ) ); + frPlayback->setFrameShape( QFrame::NoFrame ); + frPlayback->setFrameShadow( QFrame::Sunken ); + frPlaybackLayout = new QGridLayout( frPlayback, 1, 1, 0, 2, "frPlaybackLayout"); + + lbSequence = new QListBox( frPlayback, "lbSequence" ); + lbSequence->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, lbSequence->sizePolicy().hasHeightForWidth() ) ); + + frPlaybackLayout->addMultiCellWidget( lbSequence, 1, 5, 0, 0 ); + spacer5 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding ); + frPlaybackLayout->addMultiCell( spacer5, 0, 1, 1, 1 ); + + bSeqUp = new KPushButton( frPlayback, "bSeqUp" ); + bSeqUp->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, bSeqUp->sizePolicy().hasHeightForWidth() ) ); + bSeqUp->setMinimumSize( QSize( 21, 21 ) ); + bSeqUp->setMaximumSize( QSize( 21, 21 ) ); + + frPlaybackLayout->addMultiCellWidget( bSeqUp, 2, 2, 1, 2 ); + + bSeqDown = new KPushButton( frPlayback, "bSeqDown" ); + bSeqDown->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, bSeqDown->sizePolicy().hasHeightForWidth() ) ); + bSeqDown->setMinimumSize( QSize( 21, 21 ) ); + bSeqDown->setMaximumSize( QSize( 21, 21 ) ); + + frPlaybackLayout->addMultiCellWidget( bSeqDown, 4, 4, 1, 2 ); + spacer7 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Fixed ); + frPlaybackLayout->addItem( spacer7, 3, 1 ); + + textLabel4 = new QLabel( frPlayback, "textLabel4" ); + textLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) ); + QFont textLabel4_font( textLabel4->font() ); + textLabel4_font.setBold( TRUE ); + textLabel4->setFont( textLabel4_font ); + + frPlaybackLayout->addWidget( textLabel4, 0, 0 ); + + frame4 = new QFrame( frPlayback, "frame4" ); + frame4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, frame4->sizePolicy().hasHeightForWidth() ) ); + frame4->setMinimumSize( QSize( 211, 100 ) ); + frame4->setFrameShape( QFrame::NoFrame ); + frame4->setFrameShadow( QFrame::Raised ); + frame4Layout = new QGridLayout( frame4, 1, 1, 0, 0, "frame4Layout"); + + textLabel1 = new QLabel( frame4, "textLabel1" ); + textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) ); + QFont textLabel1_font( textLabel1->font() ); + textLabel1_font.setBold( TRUE ); + textLabel1->setFont( textLabel1_font ); + + frame4Layout->addMultiCellWidget( textLabel1, 0, 0, 0, 2 ); + + cbDefSub = new QComboBox( FALSE, frame4, "cbDefSub" ); + cbDefSub->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, cbDefSub->sizePolicy().hasHeightForWidth() ) ); + + frame4Layout->addWidget( cbDefSub, 2, 2 ); + + textLabel3 = new QLabel( frame4, "textLabel3" ); + textLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) ); + + frame4Layout->addWidget( textLabel3, 2, 0 ); + + cbDefAudio = new QComboBox( FALSE, frame4, "cbDefAudio" ); + cbDefAudio->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, cbDefAudio->sizePolicy().hasHeightForWidth() ) ); + + frame4Layout->addWidget( cbDefAudio, 1, 2 ); + + textLabel2_3 = new QLabel( frame4, "textLabel2_3" ); + textLabel2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel2_3->sizePolicy().hasHeightForWidth() ) ); + + frame4Layout->addWidget( textLabel2_3, 1, 0 ); + spacer4 = new QSpacerItem( 16, 21, QSizePolicy::Fixed, QSizePolicy::Minimum ); + frame4Layout->addMultiCell( spacer4, 1, 2, 1, 1 ); + + frPlaybackLayout->addWidget( frame4, 6, 0 ); + spacer6 = new QSpacerItem( 20, 280, QSizePolicy::Minimum, QSizePolicy::Expanding ); + frPlaybackLayout->addMultiCell( spacer6, 5, 6, 1, 1 ); + + PlaybackOptionswLayout->addWidget( frPlayback, 0, 0 ); + languageChange(); + resize( QSize(328, 491).expandedTo(minimumSizeHint()) ); + clearWState( WState_Polished ); + + // signals and slots connections + connect( bSeqDown, SIGNAL( clicked() ), this, SLOT( bSeqDownClick() ) ); + connect( bSeqUp, SIGNAL( clicked() ), this, SLOT( bSeqUpClick() ) ); + connect( ckMenu, SIGNAL( clicked() ), this, SLOT( ckMenuClick() ) ); + connect( cbDefAudio, SIGNAL( activated(int) ), this, SLOT( cbDefAudioActivated(int) ) ); + connect( cbDefSub, SIGNAL( activated(int) ), this, SLOT( cbDefSubActivated(int) ) ); + connect( lbSequence, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( lbSequenceChanged(QListBoxItem*) ) ); +} + +/* + * Destroys the object and frees any allocated resources + */ +PlaybackOptionsw::~PlaybackOptionsw() +{ + // no need to delete child widgets, Qt does it all for us +} + +/* + * Sets the strings of the subwidgets using the current + * language. + */ +void PlaybackOptionsw::languageChange() +{ + setCaption( tr2i18n( "DVD playback options" ) ); + ckMenu->setText( tr2i18n( "&Keep original menus" ) ); + ckMenu->setAccel( QKeySequence( tr2i18n( "Alt+K" ) ) ); + bSeqUp->setText( QString::null ); + bSeqDown->setText( QString::null ); + textLabel4->setText( tr2i18n( "Selected Titles" ) ); + textLabel1->setText( tr2i18n( "Default language" ) ); + textLabel3->setText( tr2i18n( "Subtitle" ) ); + textLabel2_3->setText( tr2i18n( "Audio" ) ); +} + +void PlaybackOptionsw::cbStartActivated(int) +{ + qWarning( "PlaybackOptionsw::cbStartActivated(int): Not implemented yet" ); +} + +void PlaybackOptionsw::cbTitleActivated(int) +{ + qWarning( "PlaybackOptionsw::cbTitleActivated(int): Not implemented yet" ); +} + +void PlaybackOptionsw::ckMenuClick() +{ + qWarning( "PlaybackOptionsw::ckMenuClick(): Not implemented yet" ); +} + +void PlaybackOptionsw::bSeqUpClick() +{ + qWarning( "PlaybackOptionsw::bSeqUpClick(): Not implemented yet" ); +} + +void PlaybackOptionsw::bSeqDownClick() +{ + qWarning( "PlaybackOptionsw::bSeqDownClick(): Not implemented yet" ); +} + +void PlaybackOptionsw::lbSequenceChanged(QListBoxItem*) +{ + qWarning( "PlaybackOptionsw::lbSequenceChanged(QListBoxItem*): Not implemented yet" ); +} + +void PlaybackOptionsw::cbDefAudioActivated(int) +{ + qWarning( "PlaybackOptionsw::cbDefAudioActivated(int): Not implemented yet" ); +} + +void PlaybackOptionsw::cbDefSubActivated(int) +{ + qWarning( "PlaybackOptionsw::cbDefSubActivated(int): Not implemented yet" ); +} + +#include "playbackoptionsw.moc" |