#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './jabberconfigbase.ui' ** ** Created: Вск Мар 4 15:40:53 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 "jabberconfigbase.h" #include #include #include #include #include #include #include #include #include #include #include #include "linklabel.h" /* * Constructs a JabberConfigBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ JabberConfigBase::JabberConfigBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "Form1" ); Form1Layout = new QVBoxLayout( this, 11, 6, "Form1Layout"); tabCfg = new QTabWidget( this, "tabCfg" ); tabJabber = new QWidget( tabCfg, "tabJabber" ); tabJabberLayout = new QGridLayout( tabJabber, 1, 1, 11, 6, "tabJabberLayout"); TextLabel2 = new QLabel( tabJabber, "TextLabel2" ); TextLabel2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabJabberLayout->addWidget( TextLabel2, 2, 0 ); edtPasswd = new QLineEdit( tabJabber, "edtPasswd" ); edtPasswd->setEchoMode( QLineEdit::Password ); tabJabberLayout->addWidget( edtPasswd, 2, 1 ); lblUin = new QLabel( tabJabber, "lblUin" ); lblUin->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabJabberLayout->addWidget( lblUin, 1, 0 ); edtID = new QLineEdit( tabJabber, "edtID" ); tabJabberLayout->addWidget( edtID, 1, 1 ); chkRegister = new QCheckBox( tabJabber, "chkRegister" ); tabJabberLayout->addMultiCellWidget( chkRegister, 0, 0, 0, 1 ); lblServer1 = new QLabel( tabJabber, "lblServer1" ); lblServer1->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabJabberLayout->addWidget( lblServer1, 3, 0 ); edtServer1 = new QLineEdit( tabJabber, "edtServer1" ); tabJabberLayout->addWidget( edtServer1, 3, 1 ); lblPort1 = new QLabel( tabJabber, "lblPort1" ); lblPort1->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabJabberLayout->addWidget( lblPort1, 4, 0 ); edtPort1 = new QSpinBox( tabJabber, "edtPort1" ); edtPort1->setMaxValue( 65355 ); edtPort1->setMinValue( 1 ); tabJabberLayout->addWidget( edtPort1, 4, 1 ); Spacer8_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabJabberLayout->addItem( Spacer8_2, 7, 1 ); lnkPublic = new LinkLabel( tabJabber, "lnkPublic" ); tabJabberLayout->addMultiCellWidget( lnkPublic, 6, 6, 0, 1 ); chkSSL = new QCheckBox( tabJabber, "chkSSL" ); tabJabberLayout->addMultiCellWidget( chkSSL, 5, 5, 0, 1 ); tabCfg->insertTab( tabJabber, QString::fromLatin1("") ); tab = new QWidget( tabCfg, "tab" ); tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); lblServer = new QLabel( tab, "lblServer" ); lblServer->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( lblServer, 0, 0 ); edtServer = new QLineEdit( tab, "edtServer" ); tabLayout->addMultiCellWidget( edtServer, 0, 0, 1, 2 ); lblPort = new QLabel( tab, "lblPort" ); lblPort->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( lblPort, 1, 0 ); edtPort = new QSpinBox( tab, "edtPort" ); edtPort->setMaxValue( 65535 ); edtPort->setMinValue( 1 ); tabLayout->addWidget( edtPort, 1, 1 ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); tabLayout->addItem( Spacer3, 1, 2 ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); edtMinPort = new QSpinBox( tab, "edtMinPort" ); edtMinPort->setMaxValue( 65534 ); edtMinPort->setMinValue( 1024 ); Layout1->addWidget( edtMinPort ); TextLabel2_2 = new QLabel( tab, "TextLabel2_2" ); Layout1->addWidget( TextLabel2_2 ); edtMaxPort = new QSpinBox( tab, "edtMaxPort" ); edtMaxPort->setMaxValue( 65534 ); edtMaxPort->setMinValue( 1024 ); Layout1->addWidget( edtMaxPort ); Spacer5_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Spacer5_2 ); tabLayout->addMultiCellLayout( Layout1, 5, 5, 0, 2 ); TextLabel1_2_2 = new QLabel( tab, "TextLabel1_2_2" ); tabLayout->addMultiCellWidget( TextLabel1_2_2, 4, 4, 0, 2 ); chkPlain = new QCheckBox( tab, "chkPlain" ); tabLayout->addMultiCellWidget( chkPlain, 3, 3, 0, 2 ); chkSSL1 = new QCheckBox( tab, "chkSSL1" ); tabLayout->addMultiCellWidget( chkSSL1, 2, 2, 0, 2 ); chkHTTP = new QCheckBox( tab, "chkHTTP" ); tabLayout->addMultiCellWidget( chkHTTP, 7, 7, 0, 2 ); Line2 = new QFrame( tab, "Line2" ); Line2->setFrameShape( QFrame::HLine ); Line2->setFrameShadow( QFrame::Sunken ); Line2->setFrameShape( QFrame::HLine ); tabLayout->addMultiCellWidget( Line2, 6, 6, 0, 2 ); TextLabel1_4 = new QLabel( tab, "TextLabel1_4" ); TextLabel1_4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, TextLabel1_4->sizePolicy().hasHeightForWidth() ) ); TextLabel1_4->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); tabLayout->addMultiCellWidget( TextLabel1_4, 9, 9, 0, 2 ); Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout->addItem( Spacer4, 10, 0 ); Layout6 = new QHBoxLayout( 0, 0, 6, "Layout6"); TextLabel1_3 = new QLabel( tab, "TextLabel1_3" ); Layout6->addWidget( TextLabel1_3 ); edtUrl = new QLineEdit( tab, "edtUrl" ); Layout6->addWidget( edtUrl ); tabLayout->addMultiCellLayout( Layout6, 8, 8, 0, 2 ); tabCfg->insertTab( tab, QString::fromLatin1("") ); tab_2 = new QWidget( tabCfg, "tab_2" ); tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); TextLabel1_2 = new QLabel( tab_2, "TextLabel1_2" ); TextLabel1_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( TextLabel1_2, 0, 0 ); edtResource = new QLineEdit( tab_2, "edtResource" ); tabLayout_2->addMultiCellWidget( edtResource, 0, 0, 1, 2 ); TextLabel1 = new QLabel( tab_2, "TextLabel1" ); TextLabel1->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( TextLabel1, 1, 0 ); edtPriority = new QSpinBox( tab_2, "edtPriority" ); tabLayout_2->addWidget( edtPriority, 1, 1 ); Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); tabLayout_2->addItem( Spacer5, 1, 2 ); chkVHost = new QCheckBox( tab_2, "chkVHost" ); tabLayout_2->addMultiCellWidget( chkVHost, 2, 2, 0, 2 ); edtVHost = new QLineEdit( tab_2, "edtVHost" ); edtVHost->setEnabled( FALSE ); tabLayout_2->addMultiCellWidget( edtVHost, 3, 3, 0, 2 ); Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); chkRichText = new QCheckBox( tab_2, "chkRichText" ); Layout3->addWidget( chkRichText ); lnkRich = new LinkLabel( tab_2, "lnkRich" ); Layout3->addWidget( lnkRich ); Spacer7 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout3->addItem( Spacer7 ); tabLayout_2->addMultiCellLayout( Layout3, 5, 5, 0, 2 ); Layout4 = new QHBoxLayout( 0, 0, 6, "Layout4"); chkTyping = new QCheckBox( tab_2, "chkTyping" ); Layout4->addWidget( chkTyping ); lnkTyping = new LinkLabel( tab_2, "lnkTyping" ); Layout4->addWidget( lnkTyping ); Spacer8_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout4->addItem( Spacer8_3 ); tabLayout_2->addMultiCellLayout( Layout4, 4, 4, 0, 2 ); Spacer8 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout_2->addItem( Spacer8, 10, 0 ); chkAccept = new QCheckBox( tab_2, "chkAccept" ); tabLayout_2->addMultiCellWidget( chkAccept, 9, 9, 0, 2 ); chkSubscribe = new QCheckBox( tab_2, "chkSubscribe" ); tabLayout_2->addMultiCellWidget( chkSubscribe, 8, 8, 0, 2 ); chkIcons = new QCheckBox( tab_2, "chkIcons" ); tabLayout_2->addMultiCellWidget( chkIcons, 7, 7, 0, 2 ); Layout4_2 = new QHBoxLayout( 0, 0, 6, "Layout4_2"); chkVersion = new QCheckBox( tab_2, "chkVersion" ); Layout4_2->addWidget( chkVersion ); lnkVersion = new LinkLabel( tab_2, "lnkVersion" ); Layout4_2->addWidget( lnkVersion ); Spacer8_3_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout4_2->addItem( Spacer8_3_2 ); tabLayout_2->addMultiCellLayout( Layout4_2, 6, 6, 0, 2 ); tabCfg->insertTab( tab_2, QString::fromLatin1("") ); Form1Layout->addWidget( tabCfg ); languageChange(); resize( QSize(356, 349).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( tabCfg, chkRegister ); setTabOrder( chkRegister, edtID ); setTabOrder( edtID, edtPasswd ); setTabOrder( edtPasswd, edtServer1 ); setTabOrder( edtServer1, edtPort1 ); setTabOrder( edtPort1, chkSSL ); setTabOrder( chkSSL, edtServer ); setTabOrder( edtServer, edtPort ); setTabOrder( edtPort, chkPlain ); setTabOrder( chkPlain, edtMinPort ); setTabOrder( edtMinPort, edtMaxPort ); setTabOrder( edtMaxPort, edtResource ); setTabOrder( edtResource, edtPriority ); setTabOrder( edtPriority, chkVHost ); setTabOrder( chkVHost, edtVHost ); setTabOrder( edtVHost, chkTyping ); setTabOrder( chkTyping, chkRichText ); setTabOrder( chkRichText, chkIcons ); } /* * Destroys the object and frees any allocated resources */ JabberConfigBase::~JabberConfigBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void JabberConfigBase::languageChange() { setCaption( i18n( "Form1" ) ); TextLabel2->setText( i18n( "Password:" ) ); lblUin->setText( i18n( "Username:" ) ); chkRegister->setText( i18n( "&Register new account" ) ); lblServer1->setText( i18n( "Server:" ) ); lblPort1->setText( i18n( "Port:" ) ); chkSSL->setText( i18n( "Use &SSL" ) ); tabCfg->changeTab( tabJabber, i18n( "&Jabber" ) ); lblServer->setText( i18n( "Server:" ) ); lblPort->setText( i18n( "Port:" ) ); TextLabel2_2->setText( i18n( "-" ) ); TextLabel1_2_2->setText( i18n( "Port range for direct connections:" ) ); chkPlain->setText( i18n( "Use &plain text login" ) ); chkSSL1->setText( i18n( "Use &SSL" ) ); chkHTTP->setText( i18n( "Use &HTTP polling" ) ); TextLabel1_4->setText( i18n( "Note: For HTTP-polling using proxy settings for HTTP" ) ); TextLabel1_3->setText( i18n( "URL:" ) ); tabCfg->changeTab( tab, i18n( "&Network" ) ); TextLabel1_2->setText( i18n( "Resource:" ) ); TextLabel1->setText( i18n( "Priority:" ) ); chkVHost->setText( i18n( "Manualy specify Jabber host:" ) ); chkRichText->setText( i18n( "Send &rich text messages if possible" ) ); chkTyping->setText( i18n( "Enable &typing notification" ) ); chkTyping->setAccel( QKeySequence( i18n( "Alt+T" ) ) ); chkAccept->setText( i18n( "Automatically &accept subscribe requests" ) ); chkAccept->setAccel( QKeySequence( i18n( "Alt+A" ) ) ); chkSubscribe->setText( i18n( "Automatically send &subscribe request" ) ); chkSubscribe->setAccel( QKeySequence( i18n( "Alt+S" ) ) ); chkIcons->setText( i18n( "Use protocol &icons for agents contacts" ) ); chkIcons->setAccel( QKeySequence( i18n( "Alt+I" ) ) ); chkVersion->setText( i18n( "Send and request version info" ) ); chkVersion->setAccel( QKeySequence( QString::null ) ); tabCfg->changeTab( tab_2, i18n( "&Options" ) ); } #include "jabberconfigbase.moc"