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
|
#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/bettini/work/klcddimmer/src/progpreferences.ui'
**
** Created: Sat Feb 24 20:45:58 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 "progpreferences.h"
#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <knuminput.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
/*
* Constructs a ProgPreferences as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
ProgPreferences::ProgPreferences( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( parent, name, fl )
{
if ( !name )
setName( "ProgPreferences" );
ProgPreferencesLayout = new TQGridLayout( this, 1, 1, 11, 6, "ProgPreferencesLayout");
layout11 = new TQVBoxLayout( 0, 0, 6, "layout11");
layout2 = new TQHBoxLayout( 0, 0, 6, "layout2");
textLabel1 = new TQLabel( this, "textLabel1" );
layout2->addWidget( textLabel1 );
kcfg_Program = new TQLineEdit( this, "kcfg_Program" );
layout2->addWidget( kcfg_Program );
layout11->addLayout( layout2 );
layout3 = new TQHBoxLayout( 0, 0, 6, "layout3");
textLabel2 = new TQLabel( this, "textLabel2" );
layout3->addWidget( textLabel2 );
kcfg_SetArgument = new TQLineEdit( this, "kcfg_SetArgument" );
layout3->addWidget( kcfg_SetArgument );
layout11->addLayout( layout3 );
layout3_2 = new TQHBoxLayout( 0, 0, 6, "layout3_2");
textLabel2_2 = new TQLabel( this, "textLabel2_2" );
layout3_2->addWidget( textLabel2_2 );
kcfg_GetArgument = new TQLineEdit( this, "kcfg_GetArgument" );
layout3_2->addWidget( kcfg_GetArgument );
layout11->addLayout( layout3_2 );
layout7 = new TQHBoxLayout( 0, 0, 6, "layout7");
textLabel3 = new TQLabel( this, "textLabel3" );
layout7->addWidget( textLabel3 );
spacer1 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
layout7->addItem( spacer1 );
kcfg_MinValue = new KIntNumInput( this, "kcfg_MinValue" );
layout7->addWidget( kcfg_MinValue );
layout11->addLayout( layout7 );
layout7_2 = new TQHBoxLayout( 0, 0, 6, "layout7_2");
textLabel3_2 = new TQLabel( this, "textLabel3_2" );
layout7_2->addWidget( textLabel3_2 );
spacer1_2 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
layout7_2->addItem( spacer1_2 );
kcfg_MaxValue = new KIntNumInput( this, "kcfg_MaxValue" );
layout7_2->addWidget( kcfg_MaxValue );
layout11->addLayout( layout7_2 );
layout7_2_2 = new TQHBoxLayout( 0, 0, 6, "layout7_2_2");
textLabel3_2_2 = new TQLabel( this, "textLabel3_2_2" );
layout7_2_2->addWidget( textLabel3_2_2 );
spacer1_2_2 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
layout7_2_2->addItem( spacer1_2_2 );
kcfg_Step = new KIntNumInput( this, "kcfg_Step" );
layout7_2_2->addWidget( kcfg_Step );
layout11->addLayout( layout7_2_2 );
kcfg_SaveCurrent = new TQCheckBox( this, "kcfg_SaveCurrent" );
layout11->addWidget( kcfg_SaveCurrent );
ProgPreferencesLayout->addLayout( layout11, 0, 0 );
languageChange();
resize( TQSize(600, 480).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
ProgPreferences::~ProgPreferences()
{
// no need to delete child widgets, TQt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void ProgPreferences::languageChange()
{
setCaption( tr2i18n( "Form1" ) );
textLabel1->setText( tr2i18n( "program" ) );
TQToolTip::add( kcfg_Program, tr2i18n( "the program to set the brightness" ) );
TQWhatsThis::add( kcfg_Program, tr2i18n( "the program to set the brightness" ) );
textLabel2->setText( tr2i18n( "set argument" ) );
TQToolTip::add( kcfg_SetArgument, tr2i18n( "the argument to pass to the program<br>to set the brightness" ) );
TQWhatsThis::add( kcfg_SetArgument, tr2i18n( "the argument to pass to the program<br>\n"
"to set the brightness" ) );
textLabel2_2->setText( tr2i18n( "get argument" ) );
TQToolTip::add( kcfg_GetArgument, tr2i18n( "the argument to pass to the program<br>to get the brightness" ) );
TQWhatsThis::add( kcfg_GetArgument, tr2i18n( "the argument to pass to the program<br>\n"
"to get the brightness.\n"
"<p>\n"
"This can be left empty if the program does not support\n"
"a \"get\" argument." ) );
textLabel3->setText( tr2i18n( "minimum value" ) );
TQToolTip::add( kcfg_MinValue, tr2i18n( "the minimum value for the brightness" ) );
TQWhatsThis::add( kcfg_MinValue, tr2i18n( "brightness" ) );
textLabel3_2->setText( tr2i18n( "maximum value" ) );
TQToolTip::add( kcfg_MaxValue, tr2i18n( "the maximum value for the brightness" ) );
TQWhatsThis::add( kcfg_MaxValue, tr2i18n( "brightness" ) );
textLabel3_2_2->setText( tr2i18n( "step" ) );
TQToolTip::add( kcfg_Step, tr2i18n( "step value<br>to increment/decrement the brightness" ) );
TQWhatsThis::add( kcfg_Step, tr2i18n( "brightness" ) );
kcfg_SaveCurrent->setText( tr2i18n( "S&ave the current brightness value" ) );
kcfg_SaveCurrent->setAccel( TQKeySequence( tr2i18n( "Alt+A" ) ) );
TQToolTip::add( kcfg_SaveCurrent, tr2i18n( "When closing, it saves the current brightness value<br>so that it can be restored<br>when the applet starts." ) );
TQWhatsThis::add( kcfg_SaveCurrent, tr2i18n( "When closing, it saves the current brightness value<br>\n"
"so that it can be restored<br>\n"
"when the applet starts." ) );
}
#include "progpreferences.moc"
|