#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './aimconfigbase.ui' ** ** Created: Вск Мар 4 15:40:50 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 "aimconfigbase.h" #include #include #include #include #include #include #include #include #include #include #include #include "linklabel.h" /* * Constructs a AIMConfigBase 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. */ AIMConfigBase::AIMConfigBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "AIMCfg" ); AIMCfgLayout = new QVBoxLayout( this, 11, 6, "AIMCfgLayout"); tabConfig = new QTabWidget( this, "tabConfig" ); tabAIM = new QWidget( tabConfig, "tabAIM" ); tabAIMLayout = new QGridLayout( tabAIM, 1, 1, 11, 6, "tabAIMLayout"); TextLabel1 = new QLabel( tabAIM, "TextLabel1" ); TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabAIMLayout->addWidget( TextLabel1, 0, 0 ); edtScreen = new QLineEdit( tabAIM, "edtScreen" ); tabAIMLayout->addWidget( edtScreen, 0, 1 ); TextLabel2 = new QLabel( tabAIM, "TextLabel2" ); TextLabel2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabAIMLayout->addWidget( TextLabel2, 1, 0 ); edtPasswd = new QLineEdit( tabAIM, "edtPasswd" ); edtPasswd->setProperty( "echoMode", "Password" ); tabAIMLayout->addWidget( edtPasswd, 1, 1 ); lnkReg = new LinkLabel( tabAIM, "lnkReg" ); tabAIMLayout->addMultiCellWidget( lnkReg, 2, 2, 0, 1 ); Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabAIMLayout->addItem( Spacer5, 3, 0 ); tabConfig->insertTab( tabAIM, QString::fromLatin1("") ); tab = new QWidget( tabConfig, "tab" ); tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); edtServer = new QLineEdit( tab, "edtServer" ); tabLayout->addMultiCellWidget( edtServer, 0, 0, 1, 2 ); TextLabel4 = new QLabel( tab, "TextLabel4" ); TextLabel4->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel4, 1, 0 ); edtPort = new QSpinBox( tab, "edtPort" ); edtPort->setProperty( "maxValue", 65535 ); edtPort->setProperty( "minValue", 1 ); tabLayout->addWidget( edtPort, 1, 1 ); Spacer6 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); tabLayout->addItem( Spacer6, 1, 2 ); TextLabel3 = new QLabel( tab, "TextLabel3" ); TextLabel3->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel3, 0, 0 ); chkHTTP = new QCheckBox( tab, "chkHTTP" ); tabLayout->addMultiCellWidget( chkHTTP, 2, 2, 0, 2 ); chkAuto = new QCheckBox( tab, "chkAuto" ); tabLayout->addMultiCellWidget( chkAuto, 3, 3, 0, 2 ); TextLabel1_4 = new QLabel( tab, "TextLabel1_4" ); TextLabel1_4->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) ); tabLayout->addMultiCellWidget( TextLabel1_4, 4, 4, 0, 2 ); Spacer7 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout->addItem( Spacer7, 6, 0 ); chkKeepAlive = new QCheckBox( tab, "chkKeepAlive" ); tabLayout->addMultiCellWidget( chkKeepAlive, 5, 5, 0, 2 ); tabConfig->insertTab( tab, QString::fromLatin1("") ); AIMCfgLayout->addWidget( tabConfig ); languageChange(); resize( QSize(318, 258).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( tabConfig, edtScreen ); setTabOrder( edtScreen, edtPasswd ); setTabOrder( edtPasswd, edtServer ); setTabOrder( edtServer, edtPort ); setTabOrder( edtPort, chkHTTP ); setTabOrder( chkHTTP, chkAuto ); } /* * Destroys the object and frees any allocated resources */ AIMConfigBase::~AIMConfigBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void AIMConfigBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); TextLabel1->setProperty( "text", i18n( "ScreenName:" ) ); TextLabel2->setProperty( "text", i18n( "Password:" ) ); tabConfig->changeTab( tabAIM, i18n( "&AIM" ) ); TextLabel4->setProperty( "text", i18n( "Port:" ) ); TextLabel3->setProperty( "text", i18n( "Server:" ) ); chkHTTP->setProperty( "text", i18n( "Use &HTTP polling" ) ); chkAuto->setProperty( "text", i18n( "&Automatically use HTTP polling if proxy required" ) ); TextLabel1_4->setProperty( "text", i18n( "Note: For HTTP-polling using proxy settings for HTTP" ) ); chkKeepAlive->setProperty( "text", i18n( "&Keep-alive connection" ) ); tabConfig->changeTab( tab, i18n( "&Network" ) ); } #include "aimconfigbase.moc"