#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './bkgndcfgbase.ui' ** ** Created: Вск Мар 4 15:40:44 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 "bkgndcfgbase.h" #include #include #include #include #include #include #include #include #include #include "linklabel.h" #include "editfile.h" /* * Constructs a BkgndCfgBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ BkgndCfgBase::BkgndCfgBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "Form1" ); Form1Layout = new QGridLayout( this, 1, 1, 11, 6, "Form1Layout"); Layout4 = new QHBoxLayout( 0, 0, 6, "Layout4"); lblLink = new LinkLabel( this, "lblLink" ); Layout4->addWidget( lblLink ); Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout4->addItem( Spacer4 ); Form1Layout->addMultiCellLayout( Layout4, 5, 5, 0, 1 ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Form1Layout->addItem( Spacer3, 6, 1 ); TextLabel1_3 = new QLabel( this, "TextLabel1_3" ); TextLabel1_3->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Form1Layout->addWidget( TextLabel1_3, 4, 0 ); TextLabel1_2 = new QLabel( this, "TextLabel1_2" ); TextLabel1_2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Form1Layout->addWidget( TextLabel1_2, 3, 0 ); edtPicture = new EditFile( this, "edtPicture" ); Form1Layout->addMultiCellWidget( edtPicture, 1, 1, 0, 1 ); TextLabel1 = new QLabel( this, "TextLabel1" ); TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); Form1Layout->addMultiCellWidget( TextLabel1, 0, 0, 0, 1 ); Layout5 = new QHBoxLayout( 0, 0, 6, "Layout5"); spnContact = new QSpinBox( this, "spnContact" ); spnContact->setProperty( "maxValue", 20 ); Layout5->addWidget( spnContact ); Spacer9 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout5->addItem( Spacer9 ); Form1Layout->addLayout( Layout5, 3, 1 ); Layout6 = new QHBoxLayout( 0, 0, 6, "Layout6"); spnGroup = new QSpinBox( this, "spnGroup" ); spnGroup->setProperty( "maxValue", 20 ); Layout6->addWidget( spnGroup ); Spacer4_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout6->addItem( Spacer4_2 ); Form1Layout->addLayout( Layout6, 4, 1 ); TextLabel2 = new QLabel( this, "TextLabel2" ); TextLabel2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Form1Layout->addWidget( TextLabel2, 2, 0 ); cmbPosition = new QComboBox( FALSE, this, "cmbPosition" ); Form1Layout->addWidget( cmbPosition, 2, 1 ); languageChange(); resize( QSize(419, 187).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ BkgndCfgBase::~BkgndCfgBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void BkgndCfgBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); TextLabel1_3->setProperty( "text", i18n( "Group margin:" ) ); TextLabel1_2->setProperty( "text", i18n( "Contact margin:" ) ); TextLabel1->setProperty( "text", i18n( "Main window background:" ) ); TextLabel2->setProperty( "text", i18n( "Place:" ) ); } #include "bkgndcfgbase.moc"