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
|
#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './labelsourcePrefs.ui'
**
** Created: Thu Jun 21 19:16:51 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.7 edited Aug 31 2005 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "labelsourcePrefs.h"
#include <tqvariant.h>
#include <tqpushbutton.h>
#include <tqframe.h>
#include <tqlabel.h>
#include <kcolorbutton.h>
#include <kfontrequester.h>
#include <tqcombobox.h>
#include <layout.h>
#include <tqtooltip.h>
#include <tqwhatsthis.h>
/*
* Constructs a LabelSourcePrefs as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
LabelSourcePrefs::LabelSourcePrefs( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( parent, name, fl )
{
if ( !name )
setName( "LabelSourcePrefs" );
LabelSourcePrefsLayout = new TQVBoxLayout( this, 0, 6, "LabelSourcePrefsLayout");
defaultSourcePrefsFrame = new TQFrame( this, "defaultSourcePrefsFrame" );
defaultSourcePrefsFrame->setFrameShape( TQFrame::NoFrame );
defaultSourcePrefsFrame->setFrameShadow( TQFrame::Plain );
defaultSourcePrefsFrameLayout = new TQVBoxLayout( defaultSourcePrefsFrame, 0, 6, "defaultSourcePrefsFrameLayout");
taskbartitleLabel = new TQLabel( defaultSourcePrefsFrame, "taskbartitleLabel" );
TQFont taskbartitleLabel_font( taskbartitleLabel->font() );
taskbartitleLabel_font.setBold( TRUE );
taskbartitleLabel->setFont( taskbartitleLabel_font );
defaultSourcePrefsFrameLayout->addWidget( taskbartitleLabel );
layout13 = new TQHBoxLayout( 0, 0, 6, "layout13");
colorLabel = new TQLabel( defaultSourcePrefsFrame, "colorLabel" );
layout13->addWidget( colorLabel );
colorButton = new KColorButton( defaultSourcePrefsFrame, "colorButton" );
layout13->addWidget( colorButton );
spacer1 = new TQSpacerItem( 350, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
layout13->addItem( spacer1 );
defaultSourcePrefsFrameLayout->addLayout( layout13 );
layout17 = new TQHBoxLayout( 0, 0, 6, "layout17");
fontLabel = new TQLabel( defaultSourcePrefsFrame, "fontLabel" );
layout17->addWidget( fontLabel );
fontRequester = new KFontRequester( defaultSourcePrefsFrame, "fontRequester" );
layout17->addWidget( fontRequester );
defaultSourcePrefsFrameLayout->addLayout( layout17 );
layout18 = new TQHBoxLayout( 0, 0, 6, "layout18");
alignmentLabel = new TQLabel( defaultSourcePrefsFrame, "alignmentLabel" );
layout18->addWidget( alignmentLabel );
alignmentComboBox = new TQComboBox( FALSE, defaultSourcePrefsFrame, "alignmentComboBox" );
layout18->addWidget( alignmentComboBox );
spacer2 = new TQSpacerItem( 350, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
layout18->addItem( spacer2 );
defaultSourcePrefsFrameLayout->addLayout( layout18 );
LabelSourcePrefsLayout->addWidget( defaultSourcePrefsFrame );
languageChange();
resize( TQSize(299, 135).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
LabelSourcePrefs::~LabelSourcePrefs()
{
// no need to delete child widgets, TQt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void LabelSourcePrefs::languageChange()
{
setCaption( tr2i18n( "LabelSourcePrefs" ) );
taskbartitleLabel->setText( tr2i18n( "<br>\n"
"Taskbar visual settings" ) );
colorLabel->setText( tr2i18n( "Foreground color:" ) );
colorButton->setText( TQString() );
fontLabel->setText( tr2i18n( "Font:" ) );
alignmentLabel->setText( tr2i18n( "Alignment:" ) );
alignmentComboBox->clear();
alignmentComboBox->insertItem( tr2i18n( "Left" ) );
alignmentComboBox->insertItem( tr2i18n( "Center" ) );
alignmentComboBox->insertItem( tr2i18n( "Right" ) );
}
#include "labelsourcePrefs.moc"
|