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
|
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './systemcfgdesign.ui'
**
** Created: mer aoû 18 23:39:06 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "systemcfgdesign.h"
#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqlistbox.h>
#include <ntqframe.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqspinbox.h>
#include <ntqslider.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
/*
* Constructs a SystemCfgDesign as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
SystemCfgDesign::SystemCfgDesign( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( parent, name, fl )
{
if ( !name )
setName( "SystemCfgDesign" );
SystemCfgDesignLayout = new TQGridLayout( this, 1, 1, 8, 4, "SystemCfgDesignLayout");
TabWidget = new TQTabWidget( this, "TabWidget" );
tab = new TQWidget( TabWidget, "tab" );
tabLayout = new TQHBoxLayout( tab, 8, 8, "tabLayout");
listSensors = new TQListBox( tab, "listSensors" );
listSensors->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, listSensors->sizePolicy().hasHeightForWidth() ) );
listSensors->setMinimumSize( TQSize( 160, 0 ) );
listSensors->setMaximumSize( TQSize( 160, 32767 ) );
listSensors->setFrameShape( TQListBox::StyledPanel );
listSensors->setFrameShadow( TQListBox::Sunken );
listSensors->setLineWidth( 2 );
listSensors->setColumnMode( TQListBox::FixedNumber );
tabLayout->addWidget( listSensors );
framePanelCfg = new TQFrame( tab, "framePanelCfg" );
framePanelCfg->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, framePanelCfg->sizePolicy().hasHeightForWidth() ) );
framePanelCfg->setFrameShape( TQFrame::NoFrame );
framePanelCfg->setFrameShadow( TQFrame::Raised );
framePanelCfgLayout = new TQVBoxLayout( framePanelCfg, 0, 4, "framePanelCfgLayout");
GroupBox13 = new TQGroupBox( framePanelCfg, "GroupBox13" );
GroupBox13->setMinimumSize( TQSize( 0, 50 ) );
GroupBox13->setMaximumSize( TQSize( 32767, 50 ) );
GroupBox13->setColumnLayout(0, TQt::Vertical );
GroupBox13->layout()->setSpacing( 6 );
GroupBox13->layout()->setMargin( 11 );
GroupBox13Layout = new TQGridLayout( GroupBox13->layout() );
GroupBox13Layout->setAlignment( TQt::AlignTop );
checkShow = new TQCheckBox( GroupBox13, "checkShow" );
checkShow->setCursor( TQCursor( 0 ) );
GroupBox13Layout->addWidget( checkShow, 0, 0 );
framePanelCfgLayout->addWidget( GroupBox13 );
boxPanelPalette = new TQGroupBox( framePanelCfg, "boxPanelPalette" );
boxPanelPalette->setMinimumSize( TQSize( 0, 90 ) );
framePanelCfgLayout->addWidget( boxPanelPalette );
Spacer4_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
framePanelCfgLayout->addItem( Spacer4_2 );
tabLayout->addWidget( framePanelCfg );
TabWidget->insertTab( tab, TQString("") );
tab_2 = new TQWidget( TabWidget, "tab_2" );
tabLayout_2 = new TQVBoxLayout( tab_2, 11, 6, "tabLayout_2");
GroupBox7 = new TQGroupBox( tab_2, "GroupBox7" );
GroupBox7->setMinimumSize( TQSize( 0, 0 ) );
GroupBox7->setColumnLayout(0, TQt::Vertical );
GroupBox7->layout()->setSpacing( 12 );
GroupBox7->layout()->setMargin( 12 );
GroupBox7Layout = new TQHBoxLayout( GroupBox7->layout() );
GroupBox7Layout->setAlignment( TQt::AlignTop );
SpinUpdateTime = new TQSpinBox( GroupBox7, "SpinUpdateTime" );
SpinUpdateTime->setMinValue( 1 );
SpinUpdateTime->setValue( 5 );
GroupBox7Layout->addWidget( SpinUpdateTime );
SliderUpdateTime = new TQSlider( GroupBox7, "SliderUpdateTime" );
SliderUpdateTime->setMaxValue( 60 );
SliderUpdateTime->setValue( 5 );
SliderUpdateTime->setOrientation( TQSlider::Horizontal );
SliderUpdateTime->setTickmarks( TQSlider::Right );
SliderUpdateTime->setTickInterval( 1 );
GroupBox7Layout->addWidget( SliderUpdateTime );
tabLayout_2->addWidget( GroupBox7 );
Spacer18 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tabLayout_2->addItem( Spacer18 );
TabWidget->insertTab( tab_2, TQString("") );
SystemCfgDesignLayout->addWidget( TabWidget, 0, 0 );
languageChange();
resize( TQSize(334, 240).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( SliderUpdateTime, SIGNAL( valueChanged(int) ), SpinUpdateTime, SLOT( setValue(int) ) );
connect( SpinUpdateTime, SIGNAL( valueChanged(int) ), SliderUpdateTime, SLOT( setValue(int) ) );
}
/*
* Destroys the object and frees any allocated resources
*/
SystemCfgDesign::~SystemCfgDesign()
{
// no need to delete child widgets, TQt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void SystemCfgDesign::languageChange()
{
setCaption( tr2i18n( "SystemCfgDesign" ) );
GroupBox13->setTitle( TQString::null );
checkShow->setText( tr2i18n( "Visible" ) );
boxPanelPalette->setTitle( tr2i18n( "Colors" ) );
TabWidget->changeTab( tab, tr2i18n( "System Panels" ) );
GroupBox7->setTitle( tr2i18n( "Update interval" ) );
SpinUpdateTime->setSuffix( tr2i18n( "s" ) );
TabWidget->changeTab( tab_2, tr2i18n( "Preferences" ) );
}
#include "systemcfgdesign.moc"
|