#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './advsearchbase.ui' ** ** Created: Вск Мар 4 15:40:50 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 "advsearchbase.h" #include #include #include #include #include #include #include #include #include #include #include /* * Constructs a AdvSearchBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ AdvSearchBase::AdvSearchBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "AdvSearch" ); AdvSearchLayout = new QHBoxLayout( this, 0, 6, "AdvSearchLayout"); Layout4 = new QVBoxLayout( 0, 0, 6, "Layout4"); GroupBox2 = new QGroupBox( this, "GroupBox2" ); GroupBox2->setColumnLayout(0, Qt::Vertical ); GroupBox2->layout()->setSpacing( 6 ); GroupBox2->layout()->setMargin( 11 ); GroupBox2Layout = new QGridLayout( GroupBox2->layout() ); GroupBox2Layout->setAlignment( Qt::AlignTop ); cmbLang = new QComboBox( FALSE, GroupBox2, "cmbLang" ); GroupBox2Layout->addWidget( cmbLang, 5, 1 ); TextLabel10 = new QLabel( GroupBox2, "TextLabel10" ); TextLabel10->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); GroupBox2Layout->addWidget( TextLabel10, 5, 0 ); edtCity = new QLineEdit( GroupBox2, "edtCity" ); GroupBox2Layout->addWidget( edtCity, 4, 1 ); TextLabel9 = new QLabel( GroupBox2, "TextLabel9" ); TextLabel9->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); GroupBox2Layout->addWidget( TextLabel9, 4, 0 ); edtState = new QLineEdit( GroupBox2, "edtState" ); GroupBox2Layout->addWidget( edtState, 3, 1 ); TextLabel7 = new QLabel( GroupBox2, "TextLabel7" ); TextLabel7->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); GroupBox2Layout->addWidget( TextLabel7, 3, 0 ); cmbCountry = new QComboBox( FALSE, GroupBox2, "cmbCountry" ); GroupBox2Layout->addWidget( cmbCountry, 2, 1 ); TextLabel8 = new QLabel( GroupBox2, "TextLabel8" ); TextLabel8->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); GroupBox2Layout->addWidget( TextLabel8, 2, 0 ); TextLabel6 = new QLabel( GroupBox2, "TextLabel6" ); TextLabel6->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); GroupBox2Layout->addWidget( TextLabel6, 1, 0 ); cmbAge = new QComboBox( FALSE, GroupBox2, "cmbAge" ); GroupBox2Layout->addWidget( cmbAge, 1, 1 ); TextLabel5 = new QLabel( GroupBox2, "TextLabel5" ); TextLabel5->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); GroupBox2Layout->addWidget( TextLabel5, 0, 0 ); cmbGender = new QComboBox( FALSE, GroupBox2, "cmbGender" ); GroupBox2Layout->addWidget( cmbGender, 0, 1 ); Layout4->addWidget( GroupBox2 ); grpWork = new QGroupBox( this, "grpWork" ); grpWork->setColumnLayout(0, Qt::Vertical ); grpWork->layout()->setSpacing( 6 ); grpWork->layout()->setMargin( 11 ); grpWorkLayout = new QGridLayout( grpWork->layout() ); grpWorkLayout->setAlignment( Qt::AlignTop ); cmbOccupation = new QComboBox( FALSE, grpWork, "cmbOccupation" ); grpWorkLayout->addWidget( cmbOccupation, 0, 1 ); TextLabel11 = new QLabel( grpWork, "TextLabel11" ); TextLabel11->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); grpWorkLayout->addWidget( TextLabel11, 0, 0 ); TextLabel12 = new QLabel( grpWork, "TextLabel12" ); TextLabel12->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); grpWorkLayout->addWidget( TextLabel12, 1, 0 ); edtCompany = new QLineEdit( grpWork, "edtCompany" ); grpWorkLayout->addWidget( edtCompany, 1, 1 ); TextLabel13 = new QLabel( grpWork, "TextLabel13" ); TextLabel13->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); grpWorkLayout->addWidget( TextLabel13, 2, 0 ); edtDepartment = new QLineEdit( grpWork, "edtDepartment" ); grpWorkLayout->addWidget( edtDepartment, 2, 1 ); TextLabel14 = new QLabel( grpWork, "TextLabel14" ); TextLabel14->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); grpWorkLayout->addWidget( TextLabel14, 3, 0 ); edtPosition = new QLineEdit( grpWork, "edtPosition" ); grpWorkLayout->addWidget( edtPosition, 3, 1 ); Layout4->addWidget( grpWork ); Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout4->addItem( Spacer4 ); AdvSearchLayout->addLayout( Layout4 ); Layout3 = new QVBoxLayout( 0, 0, 6, "Layout3"); GroupBox23 = new QGroupBox( this, "GroupBox23" ); GroupBox23->setColumnLayout(0, Qt::Vertical ); GroupBox23->layout()->setSpacing( 6 ); GroupBox23->layout()->setMargin( 11 ); GroupBox23Layout = new QVBoxLayout( GroupBox23->layout() ); GroupBox23Layout->setAlignment( Qt::AlignTop ); cmbInterests = new QComboBox( FALSE, GroupBox23, "cmbInterests" ); GroupBox23Layout->addWidget( cmbInterests ); edtInterests = new QLineEdit( GroupBox23, "edtInterests" ); GroupBox23Layout->addWidget( edtInterests ); Layout3->addWidget( GroupBox23 ); GroupBox24 = new QGroupBox( this, "GroupBox24" ); GroupBox24->setColumnLayout(0, Qt::Vertical ); GroupBox24->layout()->setSpacing( 6 ); GroupBox24->layout()->setMargin( 11 ); GroupBox24Layout = new QVBoxLayout( GroupBox24->layout() ); GroupBox24Layout->setAlignment( Qt::AlignTop ); cmbPast = new QComboBox( FALSE, GroupBox24, "cmbPast" ); GroupBox24Layout->addWidget( cmbPast ); edtPast = new QLineEdit( GroupBox24, "edtPast" ); GroupBox24Layout->addWidget( edtPast ); Layout3->addWidget( GroupBox24 ); GroupBox25 = new QGroupBox( this, "GroupBox25" ); GroupBox25->setColumnLayout(0, Qt::Vertical ); GroupBox25->layout()->setSpacing( 6 ); GroupBox25->layout()->setMargin( 11 ); GroupBox25Layout = new QVBoxLayout( GroupBox25->layout() ); GroupBox25Layout->setAlignment( Qt::AlignTop ); cmbAffilation = new QComboBox( FALSE, GroupBox25, "cmbAffilation" ); GroupBox25Layout->addWidget( cmbAffilation ); edtAffilation = new QLineEdit( GroupBox25, "edtAffilation" ); GroupBox25Layout->addWidget( edtAffilation ); Layout3->addWidget( GroupBox25 ); GroupBox5 = new QGroupBox( this, "GroupBox5" ); GroupBox5->setColumnLayout(0, Qt::Vertical ); GroupBox5->layout()->setSpacing( 6 ); GroupBox5->layout()->setMargin( 11 ); GroupBox5Layout = new QVBoxLayout( GroupBox5->layout() ); GroupBox5Layout->setAlignment( Qt::AlignTop ); edtKeywords = new QLineEdit( GroupBox5, "edtKeywords" ); GroupBox5Layout->addWidget( edtKeywords ); Layout3->addWidget( GroupBox5 ); chkOnline = new QCheckBox( this, "chkOnline" ); Layout3->addWidget( chkOnline ); Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout3->addItem( Spacer5 ); AdvSearchLayout->addLayout( Layout3 ); languageChange(); resize( QSize(613, 418).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( cmbGender, cmbAge ); setTabOrder( cmbAge, cmbCountry ); setTabOrder( cmbCountry, edtState ); setTabOrder( edtState, edtCity ); setTabOrder( edtCity, cmbLang ); setTabOrder( cmbLang, cmbOccupation ); setTabOrder( cmbOccupation, edtCompany ); setTabOrder( edtCompany, edtDepartment ); setTabOrder( edtDepartment, edtPosition ); setTabOrder( edtPosition, cmbInterests ); setTabOrder( cmbInterests, edtInterests ); setTabOrder( edtInterests, cmbPast ); setTabOrder( cmbPast, edtPast ); setTabOrder( edtPast, cmbAffilation ); setTabOrder( cmbAffilation, edtAffilation ); setTabOrder( edtAffilation, edtKeywords ); setTabOrder( edtKeywords, chkOnline ); } /* * Destroys the object and frees any allocated resources */ AdvSearchBase::~AdvSearchBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void AdvSearchBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); GroupBox2->setProperty( "title", i18n( "Info" ) ); TextLabel10->setProperty( "text", i18n( "Language:" ) ); TextLabel9->setProperty( "text", i18n( "City:" ) ); TextLabel7->setProperty( "text", i18n( "State:" ) ); TextLabel8->setProperty( "text", i18n( "Country:" ) ); TextLabel6->setProperty( "text", i18n( "Age:" ) ); TextLabel5->setProperty( "text", i18n( "Gender:" ) ); grpWork->setProperty( "title", i18n( "Work" ) ); TextLabel11->setProperty( "text", i18n( "Occupation:" ) ); TextLabel12->setProperty( "text", i18n( "Company:" ) ); TextLabel13->setProperty( "text", i18n( "Department:" ) ); TextLabel14->setProperty( "text", i18n( "Position:" ) ); GroupBox23->setProperty( "title", i18n( "Interests" ) ); GroupBox24->setProperty( "title", i18n( "Past" ) ); cmbPast->setProperty( "caption", QString::null ); GroupBox25->setProperty( "title", i18n( "Affilations" ) ); GroupBox5->setProperty( "title", i18n( "Keywords" ) ); chkOnline->setProperty( "text", i18n( "Search &online users only" ) ); } #include "advsearchbase.moc"