#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './workinfobase.ui' ** ** Created: Вск Мар 4 15:40:49 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 "workinfobase.h" #include #include #include #include #include #include #include #include #include #include #include /* * Constructs a WorkInfoBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ WorkInfoBase::WorkInfoBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "workInfo" ); workInfoLayout = new QVBoxLayout( this, 11, 6, "workInfoLayout"); TabWidget2 = new QTabWidget( this, "TabWidget2" ); tab = new QWidget( TabWidget2, "tab" ); tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); edtAddress = new QMultiLineEdit( tab, "edtAddress" ); tabLayout->addWidget( edtAddress, 0, 1 ); TextLabel7 = new QLabel( tab, "TextLabel7" ); TextLabel7->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel7, 0, 0 ); edtCity = new QLineEdit( tab, "edtCity" ); tabLayout->addWidget( edtCity, 1, 1 ); TextLabel8 = new QLabel( tab, "TextLabel8" ); TextLabel8->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel8, 1, 0 ); edtState = new QLineEdit( tab, "edtState" ); tabLayout->addWidget( edtState, 2, 1 ); TextLabel9 = new QLabel( tab, "TextLabel9" ); TextLabel9->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel9, 2, 0 ); edtZip = new QLineEdit( tab, "edtZip" ); tabLayout->addWidget( edtZip, 3, 1 ); TextLabel10 = new QLabel( tab, "TextLabel10" ); TextLabel10->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel10, 3, 0 ); TextLabel11 = new QLabel( tab, "TextLabel11" ); TextLabel11->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel11, 4, 0 ); cmbCountry = new QComboBox( FALSE, tab, "cmbCountry" ); tabLayout->addWidget( cmbCountry, 4, 1 ); TextLabel12 = new QLabel( tab, "TextLabel12" ); TextLabel12->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel12, 5, 0 ); edtName = new QLineEdit( tab, "edtName" ); tabLayout->addWidget( edtName, 5, 1 ); Layout4 = new QHBoxLayout( 0, 0, 6, "Layout4"); edtSite = new QLineEdit( tab, "edtSite" ); Layout4->addWidget( edtSite ); btnSite = new QPushButton( tab, "btnSite" ); btnSite->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, btnSite->sizePolicy().hasHeightForWidth() ) ); btnSite->setProperty( "maximumSize", QSize( 22, 22 ) ); Layout4->addWidget( btnSite ); tabLayout->addLayout( Layout4, 6, 1 ); TextLabel16 = new QLabel( tab, "TextLabel16" ); TextLabel16->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel16, 6, 0 ); TabWidget2->insertTab( tab, QString::fromLatin1("") ); tab_2 = new QWidget( TabWidget2, "tab_2" ); tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); TextLabel1 = new QLabel( tab_2, "TextLabel1" ); TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( TextLabel1, 2, 0 ); TextLabel13 = new QLabel( tab_2, "TextLabel13" ); TextLabel13->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( TextLabel13, 0, 0 ); cmbOccupation = new QComboBox( FALSE, tab_2, "cmbOccupation" ); tabLayout_2->addWidget( cmbOccupation, 2, 1 ); edtDept = new QLineEdit( tab_2, "edtDept" ); tabLayout_2->addWidget( edtDept, 0, 1 ); TextLabel15 = new QLabel( tab_2, "TextLabel15" ); TextLabel15->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( TextLabel15, 1, 0 ); edtPosition = new QLineEdit( tab_2, "edtPosition" ); tabLayout_2->addWidget( edtPosition, 1, 1 ); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout_2->addItem( Spacer2, 3, 1 ); TabWidget2->insertTab( tab_2, QString::fromLatin1("") ); workInfoLayout->addWidget( TabWidget2 ); languageChange(); resize( QSize(387, 338).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( edtAddress, edtCity ); setTabOrder( edtCity, edtState ); setTabOrder( edtState, edtZip ); setTabOrder( edtZip, cmbCountry ); setTabOrder( cmbCountry, edtName ); setTabOrder( edtName, edtSite ); setTabOrder( edtSite, btnSite ); setTabOrder( btnSite, TabWidget2 ); setTabOrder( TabWidget2, edtDept ); setTabOrder( edtDept, edtPosition ); setTabOrder( edtPosition, cmbOccupation ); } /* * Destroys the object and frees any allocated resources */ WorkInfoBase::~WorkInfoBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void WorkInfoBase::languageChange() { setProperty( "caption", i18n( "Form2" ) ); TextLabel7->setProperty( "text", i18n( "Address:" ) ); TextLabel8->setProperty( "text", i18n( "City:" ) ); TextLabel9->setProperty( "text", i18n( "State:" ) ); TextLabel10->setProperty( "text", i18n( "Zip code:" ) ); TextLabel11->setProperty( "text", i18n( "Country:" ) ); TextLabel12->setProperty( "text", i18n( "Name:" ) ); btnSite->setProperty( "text", QString::null ); TextLabel16->setProperty( "text", i18n( "Web site:" ) ); TabWidget2->changeTab( tab, i18n( "&Company" ) ); TextLabel1->setProperty( "text", i18n( "Occupation:" ) ); TextLabel13->setProperty( "text", i18n( "Div / dept:" ) ); TextLabel15->setProperty( "text", i18n( "Position:" ) ); TabWidget2->changeTab( tab_2, i18n( "&Occupation" ) ); } #include "workinfobase.moc"