#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './icqconfigbase.ui' ** ** Created: Вск Мар 4 15:40:47 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 "icqconfigbase.h" #include #include #include #include #include #include #include #include #include #include #include #include #include /* * Constructs a ICQConfigBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ ICQConfigBase::ICQConfigBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "Form1" ); Form1Layout = new QVBoxLayout( this, 11, 6, "Form1Layout"); tabConfig = new QTabWidget( this, "tabConfig" ); tabICQ = new QWidget( tabConfig, "tabICQ" ); tabICQLayout = new QGridLayout( tabICQ, 1, 1, 11, 6, "tabICQLayout"); TextLabel2 = new QLabel( tabICQ, "TextLabel2" ); TextLabel2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabICQLayout->addWidget( TextLabel2, 2, 0 ); edtPasswd = new QLineEdit( tabICQ, "edtPasswd" ); edtPasswd->setProperty( "echoMode", "Password" ); tabICQLayout->addWidget( edtPasswd, 2, 1 ); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabICQLayout->addItem( Spacer2, 3, 0 ); chkNew = new QCheckBox( tabICQ, "chkNew" ); tabICQLayout->addMultiCellWidget( chkNew, 0, 0, 0, 1 ); lblUin = new QLabel( tabICQ, "lblUin" ); lblUin->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabICQLayout->addWidget( lblUin, 1, 0 ); edtUin = new QLineEdit( tabICQ, "edtUin" ); tabICQLayout->addWidget( edtUin, 1, 1 ); tabConfig->insertTab( tabICQ, QString::fromLatin1("") ); tab = new QWidget( tabConfig, "tab" ); tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); edtPort = new QSpinBox( tab, "edtPort" ); edtPort->setProperty( "maxValue", 65535 ); edtPort->setProperty( "minValue", 1 ); tabLayout->addWidget( edtPort, 1, 1 ); chkAuto = new QCheckBox( tab, "chkAuto" ); tabLayout->addMultiCellWidget( chkAuto, 3, 3, 0, 2 ); chkHTTP = new QCheckBox( tab, "chkHTTP" ); tabLayout->addMultiCellWidget( chkHTTP, 2, 2, 0, 2 ); Line1 = new QFrame( tab, "Line1" ); Line1->setProperty( "frameShape", "HLine" ); Line1->setProperty( "frameShadow", "Sunken" ); Line1->setProperty( "frameShape", QFrame::VLine ); Line1->setProperty( "frameShape", "HLine" ); tabLayout->addMultiCellWidget( Line1, 6, 6, 0, 2 ); TextLabel3 = new QLabel( tab, "TextLabel3" ); TextLabel3->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel3, 0, 0 ); 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 ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); tabLayout->addItem( Spacer3, 1, 2 ); Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout->addItem( Spacer4, 9, 0 ); TextLabel1_2 = new QLabel( tab, "TextLabel1_2" ); tabLayout->addMultiCellWidget( TextLabel1_2, 7, 7, 0, 2 ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); edtMinPort = new QSpinBox( tab, "edtMinPort" ); edtMinPort->setProperty( "maxValue", 65534 ); edtMinPort->setProperty( "minValue", 1024 ); Layout1->addWidget( edtMinPort ); TextLabel2_2 = new QLabel( tab, "TextLabel2_2" ); Layout1->addWidget( TextLabel2_2 ); edtMaxPort = new QSpinBox( tab, "edtMaxPort" ); edtMaxPort->setProperty( "maxValue", 65534 ); edtMaxPort->setProperty( "minValue", 1024 ); Layout1->addWidget( edtMaxPort ); Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Spacer5 ); tabLayout->addMultiCellLayout( Layout1, 8, 8, 0, 2 ); TextLabel1_4 = new QLabel( tab, "TextLabel1_4" ); TextLabel1_4->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, TextLabel1_4->sizePolicy().hasHeightForWidth() ) ); TextLabel1_4->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); tabLayout->addMultiCellWidget( TextLabel1_4, 4, 4, 0, 2 ); chkKeepAlive = new QCheckBox( tab, "chkKeepAlive" ); tabLayout->addMultiCellWidget( chkKeepAlive, 5, 5, 0, 2 ); tabConfig->insertTab( tab, QString::fromLatin1("") ); tab_2 = new QWidget( tabConfig, "tab_2" ); tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); chkInvisible = new QCheckBox( tab_2, "chkInvisible" ); tabLayout_2->addMultiCellWidget( chkInvisible, 4, 4, 0, 1 ); TextLabel1 = new QLabel( tab_2, "TextLabel1" ); tabLayout_2->addWidget( TextLabel1, 0, 0 ); cmbFormat = new QComboBox( FALSE, tab_2, "cmbFormat" ); cmbFormat->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbFormat->sizePolicy().hasHeightForWidth() ) ); tabLayout_2->addWidget( cmbFormat, 0, 1 ); Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); TextLabel1_3 = new QLabel( tab_2, "TextLabel1_3" ); Layout2->addWidget( TextLabel1_3 ); cmbAck = new QComboBox( FALSE, tab_2, "cmbAck" ); cmbAck->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbAck->sizePolicy().hasHeightForWidth() ) ); Layout2->addWidget( cmbAck ); tabLayout_2->addMultiCellLayout( Layout2, 1, 1, 0, 1 ); chkOccupied = new QCheckBox( tab_2, "chkOccupied" ); tabLayout_2->addMultiCellWidget( chkOccupied, 3, 3, 0, 1 ); chkDND = new QCheckBox( tab_2, "chkDND" ); tabLayout_2->addMultiCellWidget( chkDND, 2, 2, 0, 1 ); Spacer4_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout_2->addItem( Spacer4_2, 11, 0 ); TextLabel1_5 = new QLabel( tab_2, "TextLabel1_5" ); tabLayout_2->addMultiCellWidget( TextLabel1_5, 6, 6, 0, 1 ); chkPlugins = new QCheckBox( tab_2, "chkPlugins" ); tabLayout_2->addMultiCellWidget( chkPlugins, 7, 7, 0, 1 ); chkAutoReply = new QCheckBox( tab_2, "chkAutoReply" ); tabLayout_2->addMultiCellWidget( chkAutoReply, 8, 8, 0, 1 ); chkUpdate = new QCheckBox( tab_2, "chkUpdate" ); tabLayout_2->addMultiCellWidget( chkUpdate, 9, 9, 0, 1 ); chkTyping = new QCheckBox( tab_2, "chkTyping" ); tabLayout_2->addMultiCellWidget( chkTyping, 10, 10, 0, 1 ); Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); lblInvisible = new QLabel( tab_2, "lblInvisible" ); Layout3->addWidget( lblInvisible ); edtInvisible = new QSpinBox( tab_2, "edtInvisible" ); edtInvisible->setProperty( "maxValue", 999 ); edtInvisible->setProperty( "minValue", 5 ); Layout3->addWidget( edtInvisible ); lblInvisible2 = new QLabel( tab_2, "lblInvisible2" ); Layout3->addWidget( lblInvisible2 ); Spacer6 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout3->addItem( Spacer6 ); tabLayout_2->addMultiCellLayout( Layout3, 5, 5, 0, 1 ); tabConfig->insertTab( tab_2, QString::fromLatin1("") ); Form1Layout->addWidget( tabConfig ); languageChange(); resize( QSize(461, 345).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( tabConfig, chkNew ); setTabOrder( chkNew, edtUin ); setTabOrder( edtUin, edtPasswd ); setTabOrder( edtPasswd, edtServer ); setTabOrder( edtServer, edtPort ); setTabOrder( edtPort, chkHTTP ); setTabOrder( chkHTTP, chkAuto ); setTabOrder( chkAuto, chkKeepAlive ); setTabOrder( chkKeepAlive, edtMinPort ); setTabOrder( edtMinPort, edtMaxPort ); setTabOrder( edtMaxPort, cmbFormat ); setTabOrder( cmbFormat, cmbAck ); setTabOrder( cmbAck, chkDND ); setTabOrder( chkDND, chkOccupied ); setTabOrder( chkOccupied, chkInvisible ); setTabOrder( chkInvisible, edtInvisible ); setTabOrder( edtInvisible, chkPlugins ); setTabOrder( chkPlugins, chkAutoReply ); setTabOrder( chkAutoReply, chkUpdate ); setTabOrder( chkUpdate, chkTyping ); } /* * Destroys the object and frees any allocated resources */ ICQConfigBase::~ICQConfigBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void ICQConfigBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); TextLabel2->setProperty( "text", i18n( "Password:" ) ); chkNew->setProperty( "text", i18n( "&Register new UIN" ) ); lblUin->setProperty( "text", i18n( "UIN:" ) ); tabConfig->changeTab( tabICQ, i18n( "&ICQ" ) ); chkAuto->setProperty( "text", i18n( "&Automatically use HTTP polling if proxy required" ) ); chkHTTP->setProperty( "text", i18n( "Use &HTTP polling" ) ); TextLabel3->setProperty( "text", i18n( "Server:" ) ); TextLabel4->setProperty( "text", i18n( "Port:" ) ); TextLabel1_2->setProperty( "text", i18n( "Port range for direct connections:" ) ); TextLabel2_2->setProperty( "text", i18n( "-" ) ); 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" ) ); chkInvisible->setProperty( "text", i18n( "Automatically check &invisible" ) ); TextLabel1->setProperty( "text", i18n( "Send format:" ) ); TextLabel1_3->setProperty( "text", i18n( "Send message:" ) ); cmbAck->clear(); cmbAck->insertItem( i18n( "No wait ack" ) ); cmbAck->insertItem( i18n( "Wait ack from server" ) ); cmbAck->insertItem( i18n( "Wait ack from client" ) ); chkOccupied->setProperty( "text", i18n( "Accept in &occupied mode" ) ); chkDND->setProperty( "text", i18n( "Accept in &DND mode" ) ); TextLabel1_5->setProperty( "text", i18n( "For decrease traffic you can:" ) ); chkPlugins->setProperty( "text", i18n( "Disable answer on phonebook and &picture requests" ) ); chkAutoReply->setProperty( "text", i18n( "Disable automatically &request autoreply on change status" ) ); chkUpdate->setProperty( "text", i18n( "Disable automatically &update user info" ) ); chkTyping->setProperty( "text", i18n( "Disable &typing notification" ) ); lblInvisible->setProperty( "text", i18n( "Check invisible every" ) ); lblInvisible2->setProperty( "text", i18n( "minutes" ) ); tabConfig->changeTab( tab_2, i18n( "&Options" ) ); } #include "icqconfigbase.moc"