#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './searchbase.ui' ** ** Created: Вск Мар 4 15:40:36 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 "searchbase.h" #include #include #include #include #include #include #include #include #include /* * Constructs a SearchBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ SearchBase::SearchBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "Search" ); SearchLayout = new QGridLayout( this, 1, 1, 11, 6, "SearchLayout"); btnAdd = new QPushButton( this, "btnAdd" ); SearchLayout->addWidget( btnAdd, 3, 4 ); cmbClients = new QComboBox( FALSE, this, "cmbClients" ); SearchLayout->addWidget( cmbClients, 0, 0 ); btnSearch = new QPushButton( this, "btnSearch" ); btnSearch->setProperty( "default", QVariant( TRUE, 0 ) ); SearchLayout->addWidget( btnSearch, 3, 0 ); btnOptions = new QPushButton( this, "btnOptions" ); SearchLayout->addWidget( btnOptions, 3, 3 ); wndCondition = new QWidgetStack( this, "wndCondition" ); wndCondition->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)7, 0, 0, wndCondition->sizePolicy().hasHeightForWidth() ) ); SearchLayout->addWidget( wndCondition, 1, 0 ); Line1 = new QFrame( this, "Line1" ); Line1->setProperty( "frameStyle", QFrame::VLine | QFrame::Sunken ); SearchLayout->addMultiCellWidget( Line1, 2, 2, 0, 4 ); wndResult = new QWidgetStack( this, "wndResult" ); SearchLayout->addMultiCellWidget( wndResult, 0, 1, 1, 4 ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); SearchLayout->addItem( Spacer3, 3, 2 ); btnNew = new QPushButton( this, "btnNew" ); SearchLayout->addWidget( btnNew, 3, 1 ); languageChange(); resize( QSize(614, 451).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( btnSearch, btnNew ); setTabOrder( btnNew, btnOptions ); setTabOrder( btnOptions, btnAdd ); setTabOrder( btnAdd, cmbClients ); } /* * Destroys the object and frees any allocated resources */ SearchBase::~SearchBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void SearchBase::languageChange() { setProperty( "caption", i18n( "Search" ) ); btnAdd->setProperty( "text", i18n( "&Add to list" ) ); btnSearch->setProperty( "text", QString::null ); btnOptions->setProperty( "text", i18n( "More &options" ) ); btnNew->setProperty( "text", i18n( "&New search" ) ); } #include "searchbase.moc"