#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './spellcfgbase.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 "spellcfgbase.h" #include #include #include #include #include #include #include #include "editfile.h" #include "linklabel.h" #include "listview.h" /* * Constructs a SpellConfigBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ SpellConfigBase::SpellConfigBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "spell" ); spellLayout = new QGridLayout( this, 1, 1, 11, 6, "spellLayout"); lblPath = new QLabel( this, "lblPath" ); lblPath->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); spellLayout->addWidget( lblPath, 0, 0 ); Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); lnkAspell = new LinkLabel( this, "lnkAspell" ); lnkAspell->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, lnkAspell->sizePolicy().hasHeightForWidth() ) ); Layout3->addWidget( lnkAspell ); btnFind = new QPushButton( this, "btnFind" ); Layout3->addWidget( btnFind ); spellLayout->addMultiCellLayout( Layout3, 1, 1, 0, 1 ); edtPath = new EditFile( this, "edtPath" ); edtPath->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, edtPath->sizePolicy().hasHeightForWidth() ) ); spellLayout->addWidget( edtPath, 0, 1 ); lstLang = new ListView( this, "lstLang" ); spellLayout->addMultiCellWidget( lstLang, 3, 3, 0, 1 ); lblLang = new QLabel( this, "lblLang" ); lblLang->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); spellLayout->addMultiCellWidget( lblLang, 2, 2, 0, 1 ); languageChange(); resize( QSize(420, 212).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ SpellConfigBase::~SpellConfigBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void SpellConfigBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); lblPath->setProperty( "text", i18n( "Path:" ) ); btnFind->setProperty( "text", i18n( "&Find" ) ); lblLang->setProperty( "text", i18n( "Language:" ) ); } #include "spellcfgbase.moc"