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
|
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './mencoderCmdGen.ui'
**
** Created: dim. oct. 26 08:57:34 2008
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "mencoderCmdGen.h"
#include <tqvariant.h>
#include <kpushbutton.h>
#include <tqheader.h>
#include <tqlistview.h>
#include <tqwidgetstack.h>
#include <tqwidget.h>
#include <tqlayout.h>
#include <tqtooltip.h>
#include <tqwhatsthis.h>
#include <tqimage.h>
#include <tqpixmap.h>
#include "kpushbutton.h"
/*
* Constructs a MyDialog1 as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
MyDialog1::MyDialog1( TQWidget* parent, const char* name, bool modal, WFlags fl )
: TQDialog( parent, name, modal, fl )
{
if ( !name )
setName( "MyDialog1" );
setSizeGripEnabled( TRUE );
MyDialog1Layout = new TQGridLayout( this, 1, 1, 11, 6, "MyDialog1Layout");
Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1");
Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
Layout1->addItem(Horizontal_Spacing2 );
buttonOk = new KPushButton( this, "buttonOk" );
buttonOk->setAutoDefault( TRUE );
buttonOk->setDefault( TRUE );
buttonOk->setProperty( "stdItem", 1 );
Layout1->addWidget( buttonOk );
buttonCancel = new KPushButton( this, "buttonCancel" );
buttonCancel->setAutoDefault( TRUE );
buttonCancel->setProperty( "stdItem", 2 );
Layout1->addWidget( buttonCancel );
MyDialog1Layout->addMultiCellLayout( Layout1, 1, 1, 0, 1 );
listView = new TQListView( this, "listView" );
listView->addColumn( TQString() );
listView->header()->setClickEnabled( FALSE, listView->header()->count() - 1 );
listView->header()->setResizeEnabled( FALSE, listView->header()->count() - 1 );
listView->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, listView->sizePolicy().hasHeightForWidth() ) );
listView->setMinimumSize( TQSize( 200, 0 ) );
listView->setResizeMode( TQListView::LastColumn );
MyDialog1Layout->addWidget( listView, 0, 0 );
wsOptions = new TQWidgetStack( this, "wsOptions" );
WStackPage = new TQWidget( wsOptions, "WStackPage" );
wsOptions->addWidget( WStackPage, 0 );
MyDialog1Layout->addWidget( wsOptions, 0, 1 );
languageChange();
resize( TQSize(655, 498).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( buttonOk, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
connect( buttonCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) );
connect( listView, TQT_SIGNAL( currentChanged(TQListViewItem*) ), this, TQT_SLOT( listViewCurrentChanged(TQListViewItem*) ) );
}
/*
* Destroys the object and frees any allocated resources
*/
MyDialog1::~MyDialog1()
{
// no need to delete child widgets, TQt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void MyDialog1::languageChange()
{
setCaption( tr2i18n( "MEncoder options" ) );
listView->header()->setLabel( 0, TQString() );
listView->clear();
TQListViewItem * item_2 = new TQListViewItem( listView, 0 );
item_2->setOpen( TRUE );
TQListViewItem * item = new TQListViewItem( item_2, 0 );
item->setText( 0, tr2i18n( "faac" ) );
item_2->setOpen( TRUE );
item = new TQListViewItem( item_2, item );
item->setText( 0, tr2i18n( "lavc" ) );
item_2->setText( 0, tr2i18n( "Audio Codec" ) );
TQListViewItem * item_3 = new TQListViewItem( listView, item_2 );
item_3->setOpen( TRUE );
item = new TQListViewItem( item_3, item_2 );
item->setText( 0, tr2i18n( "x264" ) );
item_3->setOpen( TRUE );
item = new TQListViewItem( item_3, item );
item->setText( 0, tr2i18n( "xvid" ) );
item_3->setOpen( TRUE );
item = new TQListViewItem( item_3, item );
item->setText( 0, tr2i18n( "lavc" ) );
item_3->setText( 0, tr2i18n( "Video Codec" ) );
}
void MyDialog1::listViewCurrentChanged(TQListViewItem*)
{
qWarning( "MyDialog1::listViewCurrentChanged(TQListViewItem*): Not implemented yet" );
}
#include "mencoderCmdGen.moc"
|