You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
131 lines
4.4 KiB
131 lines
4.4 KiB
#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"
|