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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './mp4dlg.ui'
**
** Created: dim. oct. 26 08:55:59 2008
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "mp4dlg.h"
#include <tqvariant.h>
#include <tqpushbutton.h>
#include <tqlabel.h>
#include <kprogress.h>
#include <tqframe.h>
#include <kpushbutton.h>
#include <tqlayout.h>
#include <tqtooltip.h>
#include <tqwhatsthis.h>
#include "kprogress.h"
#include "kpushbutton.h"
/*
* Constructs a MP4Dlg as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
MP4Dlg::MP4Dlg( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( parent, name, fl )
{
if ( !name )
setName( "MP4Dlg" );
setCursor( TQCursor( 3 ) );
MP4DlgLayout = new TQGridLayout( this, 1, 1, 11, 6, "MP4DlgLayout");
lblTitle = new TQLabel( this, "lblTitle" );
lblTitle->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)4, 0, 0, lblTitle->sizePolicy().hasHeightForWidth() ) );
TQFont lblTitle_font( lblTitle->font() );
lblTitle_font.setBold( TRUE );
lblTitle->setFont( lblTitle_font );
lblTitle->setCursor( TQCursor( 3 ) );
MP4DlgLayout->addWidget( lblTitle, 0, 0 );
pbProgress = new KProgress( this, "pbProgress" );
pbProgress->setCursor( TQCursor( 3 ) );
MP4DlgLayout->addMultiCellWidget( pbProgress, 3, 3, 0, 2 );
frame3 = new TQFrame( this, "frame3" );
frame3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, frame3->sizePolicy().hasHeightForWidth() ) );
frame3->setCursor( TQCursor( 3 ) );
frame3->setFrameShape( TQFrame::NoFrame );
frame3->setFrameShadow( TQFrame::Raised );
frame3Layout = new TQGridLayout( frame3, 1, 1, 11, 6, "frame3Layout");
lblfps = new TQLabel( frame3, "lblfps" );
lblfps->setCursor( TQCursor( 3 ) );
lblfps->setAlignment( int( TQLabel::AlignVCenter ) );
frame3Layout->addWidget( lblfps, 2, 1 );
lblRemain = new TQLabel( frame3, "lblRemain" );
lblRemain->setCursor( TQCursor( 3 ) );
lblRemain->setAlignment( int( TQLabel::AlignVCenter ) );
frame3Layout->addWidget( lblRemain, 3, 1 );
lblsize = new TQLabel( frame3, "lblsize" );
lblsize->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( lblsize, 0, 1 );
lblbitrate = new TQLabel( frame3, "lblbitrate" );
lblbitrate->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( lblbitrate, 1, 1 );
textLabel2 = new TQLabel( frame3, "textLabel2" );
textLabel2->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( textLabel2, 2, 0 );
textLabel2_2 = new TQLabel( frame3, "textLabel2_2" );
textLabel2_2->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( textLabel2_2, 3, 0 );
textLabel1 = new TQLabel( frame3, "textLabel1" );
textLabel1->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( textLabel1, 1, 0 );
textLabel3 = new TQLabel( frame3, "textLabel3" );
textLabel3->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( textLabel3, 0, 0 );
MP4DlgLayout->addMultiCellWidget( frame3, 2, 2, 0, 2 );
bCancel = new KPushButton( this, "bCancel" );
bCancel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bCancel->sizePolicy().hasHeightForWidth() ) );
bCancel->setCursor( TQCursor( 0 ) );
bCancel->setProperty( "stdItem", 26 );
MP4DlgLayout->addWidget( bCancel, 5, 2 );
spacer1 = new TQSpacerItem( 225, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
MP4DlgLayout->addMultiCell( spacer1, 5, 5, 0, 1 );
spacer2 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
MP4DlgLayout->addItem( spacer2, 4, 1 );
image = new TQLabel( this, "image" );
image->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, image->sizePolicy().hasHeightForWidth() ) );
image->setMinimumSize( TQSize( 0, 250 ) );
image->setPaletteBackgroundColor( TQColor( 0, 0, 0 ) );
image->setCursor( TQCursor( 3 ) );
image->setScaledContents( TRUE );
MP4DlgLayout->addMultiCellWidget( image, 1, 1, 0, 2 );
languageChange();
resize( TQSize(416, 475).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( bCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( Cancel() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
MP4Dlg::~MP4Dlg()
{
// no need to delete child widgets, TQt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void MP4Dlg::languageChange()
{
setCaption( tr2i18n( "k9Copy - transcoding" ) );
lblTitle->setText( tr2i18n( "Encoding" ) );
lblfps->setText( TQString() );
lblRemain->setText( TQString() );
lblsize->setText( TQString() );
lblbitrate->setText( TQString() );
textLabel2->setText( tr2i18n( "fps" ) );
textLabel2_2->setText( tr2i18n( "Elapsed Time" ) );
textLabel1->setText( tr2i18n( "Bitrate" ) );
textLabel3->setText( tr2i18n( "Size" ) );
}
void MP4Dlg::Cancel()
{
qWarning( "MP4Dlg::Cancel(): Not implemented yet" );
}
#include "mp4dlg.moc"
|