You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ksensors/src/systemcfgdesign.cpp

144 lines
5.6 KiB

#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"