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 /k9author/import.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 'k9author/import.cpp')
-rw-r--r-- | k9author/import.cpp | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/k9author/import.cpp b/k9author/import.cpp new file mode 100644 index 0000000..b81705a --- /dev/null +++ b/k9author/import.cpp @@ -0,0 +1,130 @@ +#include <klocale.h> +/**************************************************************************** +** Form implementation generated from reading ui file './import.ui' +** +** Created: dim. oct. 26 08:56:28 2008 +** +** WARNING! All changes made in this file will be lost! +****************************************************************************/ + +#include "import.h" + +#include <qvariant.h> +#include <qpushbutton.h> +#include <qlabel.h> +#include <qheader.h> +#include <qlistview.h> +#include <kcombobox.h> +#include <qcombobox.h> +#include <kselect.h> +#include <qlayout.h> +#include <qtooltip.h> +#include <qwhatsthis.h> +#include "kcombobox.h" +#include "kselect.h" + +/* + * Constructs a import as a child of 'parent', with the + * name 'name' and widget flags set to 'f'. + */ +import::import( QWidget* parent, const char* name, WFlags fl ) + : QWidget( parent, name, fl ) +{ + if ( !name ) + setName( "import" ); + importLayout = new QGridLayout( this, 1, 1, 11, 6, "importLayout"); + + textLabel1 = new QLabel( this, "textLabel1" ); + textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) ); + + importLayout->addWidget( textLabel1, 0, 0 ); + + layout2 = new QGridLayout( 0, 1, 1, 0, 6, "layout2"); + + lvDVD = new QListView( this, "lvDVD" ); + lvDVD->addColumn( tr2i18n( "Video files" ) ); + lvDVD->header()->setClickEnabled( FALSE, lvDVD->header()->count() - 1 ); + lvDVD->addColumn( tr2i18n( "..." ) ); + lvDVD->header()->setClickEnabled( FALSE, lvDVD->header()->count() - 1 ); + lvDVD->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, lvDVD->sizePolicy().hasHeightForWidth() ) ); + lvDVD->setMinimumSize( QSize( 0, 200 ) ); + lvDVD->setRootIsDecorated( FALSE ); + lvDVD->setResizeMode( QListView::AllColumns ); + + layout2->addMultiCellWidget( lvDVD, 0, 1, 0, 0 ); + + importLayout->addMultiCellLayout( layout2, 1, 1, 0, 3 ); + + cbOutputDev = new KComboBox( FALSE, this, "cbOutputDev" ); + + importLayout->addWidget( cbOutputDev, 0, 1 ); + + cbFormat = new QComboBox( FALSE, this, "cbFormat" ); + cbFormat->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, cbFormat->sizePolicy().hasHeightForWidth() ) ); + + importLayout->addWidget( cbFormat, 0, 2 ); + + lTotal = new QLabel( this, "lTotal" ); + lTotal->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, lTotal->sizePolicy().hasHeightForWidth() ) ); + + importLayout->addWidget( lTotal, 2, 3 ); + + gsTotal = new KGradientSelector( this, "gsTotal" ); + gsTotal->setEnabled( FALSE ); + gsTotal->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, gsTotal->sizePolicy().hasHeightForWidth() ) ); + gsTotal->setMaximumSize( QSize( 32767, 13 ) ); + gsTotal->setValue( 0 ); + gsTotal->setMaxValue( 180 ); + gsTotal->setFirstColor( QColor( 255, 77, 6 ) ); + gsTotal->setSecondColor( QColor( 85, 255, 0 ) ); + + importLayout->addMultiCellWidget( gsTotal, 2, 2, 0, 2 ); + languageChange(); + resize( QSize(524, 416).expandedTo(minimumSizeHint()) ); + clearWState( WState_Polished ); + + // signals and slots connections + connect( lvDVD, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( lvDVDItemSelected(QListViewItem*) ) ); + connect( cbFormat, SIGNAL( activated(const QString&) ), this, SLOT( cbFormatActivated(const QString&) ) ); +} + +/* + * Destroys the object and frees any allocated resources + */ +import::~import() +{ + // no need to delete child widgets, Qt does it all for us +} + +/* + * Sets the strings of the subwidgets using the current + * language. + */ +void import::languageChange() +{ + setCaption( tr2i18n( "import" ) ); + textLabel1->setText( tr2i18n( "Output" ) ); + lvDVD->header()->setLabel( 0, tr2i18n( "Video files" ) ); + lvDVD->header()->setLabel( 1, tr2i18n( "..." ) ); + cbFormat->clear(); + cbFormat->insertItem( tr2i18n( "PAL" ) ); + cbFormat->insertItem( tr2i18n( "NTSC" ) ); + lTotal->setText( tr2i18n( "--:--:--" ) ); +} + +void import::lvDVDItemSelected(QListViewItem*) +{ + qWarning( "import::lvDVDItemSelected(QListViewItem*): Not implemented yet" ); +} + +void import::bAddClick() +{ + qWarning( "import::bAddClick(): Not implemented yet" ); +} + +void import::cbFormatActivated(const QString&) +{ + qWarning( "import::cbFormatActivated(const QString&): Not implemented yet" ); +} + +#include "import.moc" |