#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './arcfgbase.ui' ** ** Created: Вск Мар 4 15:40:38 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 "arcfgbase.h" #include #include #include #include #include #include #include #include #include "editfile.h" /* * Constructs a ARConfigBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ ARConfigBase::ARConfigBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "ARConfig" ); ARConfigLayout = new QVBoxLayout( this, 11, 6, "ARConfigLayout"); tabAR = new QTabWidget( this, "tabAR" ); tab = new QWidget( tabAR, "tab" ); tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); chkOverride = new QCheckBox( tab, "chkOverride" ); tabLayout->addMultiCellWidget( chkOverride, 0, 0, 0, 2 ); btnHelp = new QPushButton( tab, "btnHelp" ); tabLayout->addWidget( btnHelp, 2, 0 ); chkNoShow = new QCheckBox( tab, "chkNoShow" ); chkNoShow->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, chkNoShow->sizePolicy().hasHeightForWidth() ) ); tabLayout->addWidget( chkNoShow, 2, 1 ); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); tabLayout->addItem( Spacer1, 2, 2 ); edtAutoReply = new MultiLineEdit( tab, "edtAutoReply" ); tabLayout->addMultiCellWidget( edtAutoReply, 1, 1, 0, 2 ); tabAR->insertTab( tab, QString::fromLatin1("") ); ARConfigLayout->addWidget( tabAR ); languageChange(); resize( QSize(421, 314).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ ARConfigBase::~ARConfigBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void ARConfigBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); chkOverride->setProperty( "text", i18n( "&Override global settings" ) ); btnHelp->setProperty( "text", i18n( "&Help" ) ); chkNoShow->setProperty( "text", i18n( "Don't show autoreply dialog" ) ); tabAR->changeTab( tab, QString::null ); } #include "arcfgbase.moc"