#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './spellfindbase.ui' ** ** Created: Вск Мар 4 15:41:01 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 "spellfindbase.h" #include #include #include #include #include #include /* * Constructs a SpellFindBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ SpellFindBase::SpellFindBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "SpellFind" ); setProperty( "sizeGripEnabled", QVariant( TRUE, 0 ) ); SpellFindLayout = new QGridLayout( this, 1, 1, 11, 6, "SpellFindLayout"); lblPath = new QLabel( this, "lblPath" ); lblPath->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)7, 0, 0, lblPath->sizePolicy().hasHeightForWidth() ) ); SpellFindLayout->addMultiCellWidget( lblPath, 0, 0, 0, 2 ); btnCancel = new QPushButton( this, "btnCancel" ); SpellFindLayout->addWidget( btnCancel, 1, 1 ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); SpellFindLayout->addItem( Spacer3, 1, 0 ); Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); SpellFindLayout->addItem( Spacer4, 1, 2 ); languageChange(); resize( QSize(354, 97).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ SpellFindBase::~SpellFindBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void SpellFindBase::languageChange() { setProperty( "caption", i18n( "Find ASpell" ) ); lblPath->setProperty( "text", QString::null ); btnCancel->setProperty( "text", i18n( "&Cancel" ) ); } #include "spellfindbase.moc"