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/generalcfgdesign.cpp

104 lines
3.5 KiB

#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './generalcfgdesign.ui'
**
** Created: mer aoû 18 23:39:02 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 "generalcfgdesign.h"
#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
/*
* Constructs a GeneralCfgDesign as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
GeneralCfgDesign::GeneralCfgDesign( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( parent, name, fl )
{
if ( !name )
setName( "GeneralCfgDesign" );
GeneralCfgDesignLayout = new TQGridLayout( this, 1, 1, 8, 6, "GeneralCfgDesignLayout");
ButtonGroup5 = new TQButtonGroup( this, "ButtonGroup5" );
ButtonGroup5->setColumnLayout(0, TQt::Vertical );
ButtonGroup5->layout()->setSpacing( 6 );
ButtonGroup5->layout()->setMargin( 11 );
ButtonGroup5Layout = new TQGridLayout( ButtonGroup5->layout() );
ButtonGroup5Layout->setAlignment( TQt::AlignTop );
Radio64 = new TQRadioButton( ButtonGroup5, "Radio64" );
Radio64->setChecked( TRUE );
ButtonGroup5Layout->addWidget( Radio64, 0, 0 );
Radio56 = new TQRadioButton( ButtonGroup5, "Radio56" );
ButtonGroup5Layout->addWidget( Radio56, 0, 1 );
Radio48 = new TQRadioButton( ButtonGroup5, "Radio48" );
ButtonGroup5Layout->addWidget( Radio48, 0, 2 );
GeneralCfgDesignLayout->addWidget( ButtonGroup5, 0, 0 );
boxGeneralPalette = new TQGroupBox( this, "boxGeneralPalette" );
boxGeneralPalette->setMinimumSize( TQSize( 0, 65 ) );
GeneralCfgDesignLayout->addWidget( boxGeneralPalette, 1, 0 );
GroupBox2 = new TQGroupBox( this, "GroupBox2" );
GroupBox2->setColumnLayout(0, TQt::Vertical );
GroupBox2->layout()->setSpacing( 6 );
GroupBox2->layout()->setMargin( 11 );
GroupBox2Layout = new TQVBoxLayout( GroupBox2->layout() );
GroupBox2Layout->setAlignment( TQt::AlignTop );
CheckBoxAutoStart = new TQCheckBox( GroupBox2, "CheckBoxAutoStart" );
GroupBox2Layout->addWidget( CheckBoxAutoStart );
GeneralCfgDesignLayout->addWidget( GroupBox2, 2, 0 );
Spacer28 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
GeneralCfgDesignLayout->addItem( Spacer28, 3, 0 );
languageChange();
resize( TQSize(343, 239).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
GeneralCfgDesign::~GeneralCfgDesign()
{
// no need to delete child widgets, TQt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void GeneralCfgDesign::languageChange()
{
setCaption( tr2i18n( "GeneralCfg" ) );
ButtonGroup5->setTitle( tr2i18n( "Panels size" ) );
Radio64->setText( tr2i18n( "64 x 64" ) );
Radio56->setText( tr2i18n( "56 x 56" ) );
Radio48->setText( tr2i18n( "48 x 48" ) );
boxGeneralPalette->setTitle( tr2i18n( "Colors" ) );
GroupBox2->setTitle( tr2i18n( "Startup" ) );
CheckBoxAutoStart->setText( tr2i18n( "Autostart KSensors on KDE startup" ) );
}
#include "generalcfgdesign.moc"