1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
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"
|