#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './jabberpicturebase.ui' ** ** Created: Вск Мар 4 15:40:54 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 "jabberpicturebase.h" #include #include #include #include #include #include #include #include #include "editfile.h" /* * Constructs a JabberPictureBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ JabberPictureBase::JabberPictureBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "PictureConfig" ); PictureConfigLayout = new QVBoxLayout( this, 11, 6, "PictureConfigLayout"); tabPict = new QTabWidget( this, "tabPict" ); tab = new QWidget( tabPict, "tab" ); tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); lblPict = new QLabel( tab, "lblPict" ); lblPict->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, lblPict->sizePolicy().hasHeightForWidth() ) ); lblPict->setProperty( "alignment", int( QLabel::AlignCenter ) ); tabLayout->addMultiCellWidget( lblPict, 0, 0, 0, 1 ); btnClear = new QPushButton( tab, "btnClear" ); tabLayout->addWidget( btnClear, 1, 1 ); edtPict = new EditFile( tab, "edtPict" ); edtPict->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, edtPict->sizePolicy().hasHeightForWidth() ) ); tabLayout->addWidget( edtPict, 1, 0 ); tabPict->insertTab( tab, QString::fromLatin1("") ); PictureConfigLayout->addWidget( tabPict ); languageChange(); resize( QSize(460, 324).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ JabberPictureBase::~JabberPictureBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void JabberPictureBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); lblPict->setProperty( "text", QString::null ); btnClear->setProperty( "text", i18n( "&Clear" ) ); tabPict->changeTab( tab, i18n( "&Photo" ) ); } #include "jabberpicturebase.moc"