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
|
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/kostko/development/kftpgrabber/src/widgets/kftpfilteraddpatternlayout.ui'
**
** Created: Mon Oct 20 18:26:31 2003
** by: The User Interface Compiler ($Id: kftpfilteraddpatternlayout.cpp,v 1.1.1.1 2004/02/13 13:33:43 kostko Exp $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "kftpfilteraddpatternlayout.h"
#include <tqvariant.h>
#include <tqpushbutton.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
#include <klineedit.h>
#include <kcolorbutton.h>
#include <tqlayout.h>
#include <tqtooltip.h>
#include <tqwhatsthis.h>
/*
* Constructs a KFTPFilterAddPatternLayout as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
KFTPFilterAddPatternLayout::KFTPFilterAddPatternLayout( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( parent, name, fl )
{
if ( !name )
setName( "KFTPFilterAddPatternLayout" );
KFTPFilterAddPatternLayoutLayout = new TQGridLayout( this, 1, 1, 11, 6, "KFTPFilterAddPatternLayoutLayout");
groupBox1 = new TQGroupBox( this, "groupBox1" );
groupBox1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)2, 0, 0, groupBox1->sizePolicy().hasHeightForWidth() ) );
groupBox1->setColumnLayout(0, TQt::Vertical );
groupBox1->layout()->setSpacing( 6 );
groupBox1->layout()->setMargin( 11 );
groupBox1Layout = new TQGridLayout( groupBox1->layout() );
groupBox1Layout->setAlignment( TQt::AlignTop );
layout9 = new TQHBoxLayout( 0, 0, 6, "layout9");
layout8 = new TQVBoxLayout( 0, 0, 6, "layout8");
textLabel1 = new TQLabel( groupBox1, "textLabel1" );
layout8->addWidget( textLabel1 );
textLabel2 = new TQLabel( groupBox1, "textLabel2" );
layout8->addWidget( textLabel2 );
layout9->addLayout( layout8 );
layout7 = new TQVBoxLayout( 0, 0, 6, "layout7");
kLineEdit1 = new KLineEdit( groupBox1, "kLineEdit1" );
layout7->addWidget( kLineEdit1 );
kColorButton1 = new KColorButton( groupBox1, "kColorButton1" );
kColorButton1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, kColorButton1->sizePolicy().hasHeightForWidth() ) );
layout7->addWidget( kColorButton1 );
layout9->addLayout( layout7 );
groupBox1Layout->addLayout( layout9, 0, 0 );
KFTPFilterAddPatternLayoutLayout->addWidget( groupBox1, 0, 0 );
languageChange();
resize( TQSize(380, 110).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
KFTPFilterAddPatternLayout::~KFTPFilterAddPatternLayout()
{
// no need to delete child widgets, TQt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void KFTPFilterAddPatternLayout::languageChange()
{
setCaption( tr2i18n( "Form1" ) );
groupBox1->setTitle( tr2i18n( "New Pattern" ) );
textLabel1->setText( tr2i18n( "Filename pattern:" ) );
textLabel2->setText( tr2i18n( "Color:" ) );
kColorButton1->setText( TQString::null );
}
#include "kftpfilteraddpatternlayout.moc"
|