#include <kdialog.h>
#include <tdelocale.h>

/****************************************************************************
** Form implementation generated from reading ui file 'dlgjabbereditaccountwidget.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "dlgjabbereditaccountwidget.h"

#include <ntqvariant.h>
#include <kopetepasswordwidget.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqcheckbox.h>
#include <ntqspinbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "kopetepasswordwidget.h"

/*
 *  Constructs a DlgJabberEditAccountWidget as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
DlgJabberEditAccountWidget::DlgJabberEditAccountWidget( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "DlgJabberEditAccountWidget" );
    DlgJabberEditAccountWidgetLayout = new TQGridLayout( this, 1, 1, 11, 6, "DlgJabberEditAccountWidgetLayout"); 

    tabWidget10 = new TQTabWidget( this, "tabWidget10" );
    tabWidget10->setMargin( 0 );

    tab = new TQWidget( tabWidget10, "tab" );
    tabLayout = new TQVBoxLayout( tab, 11, 6, "tabLayout"); 

    groupBox65 = new TQGroupBox( tab, "groupBox65" );
    groupBox65->setColumnLayout(0, TQt::Vertical );
    groupBox65->layout()->setSpacing( 6 );
    groupBox65->layout()->setMargin( 11 );
    groupBox65Layout = new TQVBoxLayout( groupBox65->layout() );
    groupBox65Layout->setAlignment( TQt::AlignTop );

    layout61 = new TQHBoxLayout( 0, 0, 6, "layout61"); 

    TextLabel1_3 = new TQLabel( groupBox65, "TextLabel1_3" );
    layout61->addWidget( TextLabel1_3 );

    mID = new TQLineEdit( groupBox65, "mID" );
    layout61->addWidget( mID );
    groupBox65Layout->addLayout( layout61 );

    mPass = new Kopete::UI::PasswordWidget( groupBox65, "mPass" );
    groupBox65Layout->addWidget( mPass );

    cbAutoConnect = new TQCheckBox( groupBox65, "cbAutoConnect" );
    groupBox65Layout->addWidget( cbAutoConnect );

    cbGlobalIdentity = new TQCheckBox( groupBox65, "cbGlobalIdentity" );
    groupBox65Layout->addWidget( cbGlobalIdentity );
    tabLayout->addWidget( groupBox65 );

    groupBox5 = new TQGroupBox( tab, "groupBox5" );
    groupBox5->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, groupBox5->sizePolicy().hasHeightForWidth() ) );
    groupBox5->setColumnLayout(0, TQt::Vertical );
    groupBox5->layout()->setSpacing( 6 );
    groupBox5->layout()->setMargin( 11 );
    groupBox5Layout = new TQHBoxLayout( groupBox5->layout() );
    groupBox5Layout->setAlignment( TQt::AlignTop );

    lblRegistration = new TQLabel( groupBox5, "lblRegistration" );
    lblRegistration->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, lblRegistration->sizePolicy().hasHeightForWidth() ) );
    lblRegistration->setMinimumSize( TQSize( 0, 0 ) );
    lblRegistration->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    groupBox5Layout->addWidget( lblRegistration );

    btnRegister = new TQPushButton( groupBox5, "btnRegister" );
    groupBox5Layout->addWidget( btnRegister );
    tabLayout->addWidget( groupBox5 );

    groupBox8_2 = new TQGroupBox( tab, "groupBox8_2" );
    groupBox8_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, groupBox8_2->sizePolicy().hasHeightForWidth() ) );
    groupBox8_2->setColumnLayout(0, TQt::Vertical );
    groupBox8_2->layout()->setSpacing( 6 );
    groupBox8_2->layout()->setMargin( 11 );
    groupBox8_2Layout = new TQGridLayout( groupBox8_2->layout() );
    groupBox8_2Layout->setAlignment( TQt::AlignTop );

    btnChangePassword = new TQPushButton( groupBox8_2, "btnChangePassword" );

    groupBox8_2Layout->addWidget( btnChangePassword, 0, 1 );

    tlChangePwSuccess = new TQLabel( groupBox8_2, "tlChangePwSuccess" );
    tlChangePwSuccess->setEnabled( true );
    tlChangePwSuccess->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, tlChangePwSuccess->sizePolicy().hasHeightForWidth() ) );
    tlChangePwSuccess->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );

    groupBox8_2Layout->addWidget( tlChangePwSuccess, 0, 0 );
    tabLayout->addWidget( groupBox8_2 );
    spacer8 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Maximum );
    tabLayout->addItem( spacer8 );
    tabWidget10->insertTab( tab, TQString::fromLatin1("") );

    TabPage = new TQWidget( tabWidget10, "TabPage" );
    TabPageLayout = new TQVBoxLayout( TabPage, 11, 6, "TabPageLayout"); 

    groupBox66 = new TQGroupBox( TabPage, "groupBox66" );
    groupBox66->setColumnLayout(0, TQt::Vertical );
    groupBox66->layout()->setSpacing( 6 );
    groupBox66->layout()->setMargin( 11 );
    groupBox66Layout = new TQVBoxLayout( groupBox66->layout() );
    groupBox66Layout->setAlignment( TQt::AlignTop );

    cbUseSSL = new TQCheckBox( groupBox66, "cbUseSSL" );
    groupBox66Layout->addWidget( cbUseSSL );

    lblUseSSL = new TQLabel( groupBox66, "lblUseSSL" );
    lblUseSSL->setEnabled( false );
    lblUseSSL->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, lblUseSSL->sizePolicy().hasHeightForWidth() ) );
    lblUseSSL->setMinimumSize( TQSize( 0, 0 ) );
    lblUseSSL->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    groupBox66Layout->addWidget( lblUseSSL );

    cbAllowPlainTextPassword = new TQCheckBox( groupBox66, "cbAllowPlainTextPassword" );
    cbAllowPlainTextPassword->setChecked( true );
    groupBox66Layout->addWidget( cbAllowPlainTextPassword );

    cbCustomServer = new TQCheckBox( groupBox66, "cbCustomServer" );
    cbCustomServer->setChecked( false );
    groupBox66Layout->addWidget( cbCustomServer );

    layout66 = new TQHBoxLayout( 0, 0, 6, "layout66"); 

    labelServer = new TQLabel( groupBox66, "labelServer" );
    labelServer->setEnabled( false );
    labelServer->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, labelServer->sizePolicy().hasHeightForWidth() ) );
    layout66->addWidget( labelServer );

    mServer = new TQLineEdit( groupBox66, "mServer" );
    mServer->setEnabled( false );
    layout66->addWidget( mServer );

    labelPort = new TQLabel( groupBox66, "labelPort" );
    labelPort->setEnabled( false );
    labelPort->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, labelPort->sizePolicy().hasHeightForWidth() ) );
    layout66->addWidget( labelPort );

    mPort = new TQSpinBox( groupBox66, "mPort" );
    mPort->setEnabled( false );
    mPort->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, mPort->sizePolicy().hasHeightForWidth() ) );
    mPort->setButtonSymbols( TQSpinBox::UpDownArrows );
    mPort->setMaxValue( 65535 );
    mPort->setMinValue( 1 );
    mPort->setValue( 5222 );
    layout66->addWidget( mPort );
    groupBox66Layout->addLayout( layout66 );

    lblCustomServer = new TQLabel( groupBox66, "lblCustomServer" );
    lblCustomServer->setEnabled( false );
    lblCustomServer->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, lblCustomServer->sizePolicy().hasHeightForWidth() ) );
    lblCustomServer->setMinimumSize( TQSize( 0, 0 ) );
    lblCustomServer->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    groupBox66Layout->addWidget( lblCustomServer );
    TabPageLayout->addWidget( groupBox66 );

    groupBox8 = new TQGroupBox( TabPage, "groupBox8" );
    groupBox8->setColumnLayout(0, TQt::Vertical );
    groupBox8->layout()->setSpacing( 6 );
    groupBox8->layout()->setMargin( 11 );
    groupBox8Layout = new TQHBoxLayout( groupBox8->layout() );
    groupBox8Layout->setAlignment( TQt::AlignTop );

    TextLabel3_3 = new TQLabel( groupBox8, "TextLabel3_3" );
    groupBox8Layout->addWidget( TextLabel3_3 );

    mResource = new TQLineEdit( groupBox8, "mResource" );
    mResource->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, mResource->sizePolicy().hasHeightForWidth() ) );
    mResource->setMaximumSize( TQSize( 100, 32767 ) );
    groupBox8Layout->addWidget( mResource );
    spacer28 = new TQSpacerItem( 31, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox8Layout->addItem( spacer28 );

    TextLabel3_3_2 = new TQLabel( groupBox8, "TextLabel3_3_2" );
    TextLabel3_3_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, TextLabel3_3_2->sizePolicy().hasHeightForWidth() ) );
    TextLabel3_3_2->setAlignment( int( TQLabel::AlignVCenter ) );
    groupBox8Layout->addWidget( TextLabel3_3_2 );

    mPriority = new TQSpinBox( groupBox8, "mPriority" );
    mPriority->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, mPriority->sizePolicy().hasHeightForWidth() ) );
    mPriority->setMinimumSize( TQSize( 100, 0 ) );
    mPriority->setMaximumSize( TQSize( 100, 32767 ) );
    mPriority->setValue( 5 );
    groupBox8Layout->addWidget( mPriority );
    TabPageLayout->addWidget( groupBox8 );
    spacer43 = new TQSpacerItem( 20, 200, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout->addItem( spacer43 );
    tabWidget10->insertTab( TabPage, TQString::fromLatin1("") );

    TabPage_2 = new TQWidget( tabWidget10, "TabPage_2" );
    TabPageLayout_2 = new TQVBoxLayout( TabPage_2, 11, 6, "TabPageLayout_2"); 

    groupBox4 = new TQGroupBox( TabPage_2, "groupBox4" );
    groupBox4->setColumnLayout(0, TQt::Vertical );
    groupBox4->layout()->setSpacing( 6 );
    groupBox4->layout()->setMargin( 11 );
    groupBox4Layout = new TQVBoxLayout( groupBox4->layout() );
    groupBox4Layout->setAlignment( TQt::AlignTop );

    layout70 = new TQGridLayout( 0, 1, 1, 0, 6, "layout70"); 

    leProxyJID = new TQLineEdit( groupBox4, "leProxyJID" );

    layout70->addWidget( leProxyJID, 1, 1 );

    textLabel5 = new TQLabel( groupBox4, "textLabel5" );

    layout70->addWidget( textLabel5, 1, 0 );

    layout68 = new TQHBoxLayout( 0, 0, 6, "layout68"); 

    leLocalIP = new TQLineEdit( groupBox4, "leLocalIP" );
    layout68->addWidget( leLocalIP );

    textLabel4 = new TQLabel( groupBox4, "textLabel4" );
    layout68->addWidget( textLabel4 );

    sbLocalPort = new TQSpinBox( groupBox4, "sbLocalPort" );
    sbLocalPort->setMaxValue( 65535 );
    sbLocalPort->setValue( 8010 );
    layout68->addWidget( sbLocalPort );

    layout70->addLayout( layout68, 0, 1 );

    textLabel2 = new TQLabel( groupBox4, "textLabel2" );

    layout70->addWidget( textLabel2, 0, 0 );
    groupBox4Layout->addLayout( layout70 );

    textLabel3 = new TQLabel( groupBox4, "textLabel3" );
    textLabel3->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    groupBox4Layout->addWidget( textLabel3 );
    TabPageLayout_2->addWidget( groupBox4 );
    spacer29 = new TQSpacerItem( 20, 241, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout_2->addItem( spacer29 );
    tabWidget10->insertTab( TabPage_2, TQString::fromLatin1("") );

    TabPage_3 = new TQWidget( tabWidget10, "TabPage_3" );
    TabPageLayout_3 = new TQVBoxLayout( TabPage_3, 11, 6, "TabPageLayout_3"); 

    groupBox7 = new TQGroupBox( TabPage_3, "groupBox7" );
    groupBox7->setColumnLayout(0, TQt::Vertical );
    groupBox7->layout()->setSpacing( 6 );
    groupBox7->layout()->setMargin( 11 );
    groupBox7Layout = new TQGridLayout( groupBox7->layout() );
    groupBox7Layout->setAlignment( TQt::AlignTop );
    spacer9 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox7Layout->addItem( spacer9, 0, 1 );

    cbHideSystemInfo = new TQCheckBox( groupBox7, "cbHideSystemInfo" );

    groupBox7Layout->addWidget( cbHideSystemInfo, 0, 0 );
    TabPageLayout_3->addWidget( groupBox7 );

    groupBox6 = new TQGroupBox( TabPage_3, "groupBox6" );
    groupBox6->setColumnLayout(0, TQt::Vertical );
    groupBox6->layout()->setSpacing( 6 );
    groupBox6->layout()->setMargin( 11 );
    groupBox6Layout = new TQVBoxLayout( groupBox6->layout() );
    groupBox6Layout->setAlignment( TQt::AlignTop );

    cbSendEvents = new TQCheckBox( groupBox6, "cbSendEvents" );
    cbSendEvents->setEnabled( true );
    cbSendEvents->setChecked( true );
    groupBox6Layout->addWidget( cbSendEvents );

    layout10 = new TQHBoxLayout( 0, 0, 6, "layout10"); 
    spacer6 = new TQSpacerItem( 30, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout10->addItem( spacer6 );

    layout9 = new TQVBoxLayout( 0, 0, 6, "layout9"); 

    cbSendDeliveredEvent = new TQCheckBox( groupBox6, "cbSendDeliveredEvent" );
    cbSendDeliveredEvent->setEnabled( true );
    cbSendDeliveredEvent->setChecked( true );
    layout9->addWidget( cbSendDeliveredEvent );

    cbSendDisplayedEvent = new TQCheckBox( groupBox6, "cbSendDisplayedEvent" );
    cbSendDisplayedEvent->setEnabled( true );
    cbSendDisplayedEvent->setChecked( true );
    layout9->addWidget( cbSendDisplayedEvent );

    cbSendComposingEvent = new TQCheckBox( groupBox6, "cbSendComposingEvent" );
    cbSendComposingEvent->setEnabled( true );
    cbSendComposingEvent->setChecked( true );
    layout9->addWidget( cbSendComposingEvent );

    cbSendGoneEvent = new TQCheckBox( groupBox6, "cbSendGoneEvent" );
    cbSendGoneEvent->setChecked( true );
    layout9->addWidget( cbSendGoneEvent );
    layout10->addLayout( layout9 );
    groupBox6Layout->addLayout( layout10 );
    TabPageLayout_3->addWidget( groupBox6 );
    spacer5 = new TQSpacerItem( 21, 110, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout_3->addItem( spacer5 );
    tabWidget10->insertTab( TabPage_3, TQString::fromLatin1("") );

    DlgJabberEditAccountWidgetLayout->addWidget( tabWidget10, 0, 0 );
    languageChange();
    resize( TQSize(706, 455).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( cbSendEvents, TQ_SIGNAL( toggled(bool) ), cbSendDisplayedEvent, TQ_SLOT( setEnabled(bool) ) );
    connect( cbSendEvents, TQ_SIGNAL( toggled(bool) ), cbSendComposingEvent, TQ_SLOT( setEnabled(bool) ) );
    connect( cbSendEvents, TQ_SIGNAL( toggled(bool) ), cbSendDeliveredEvent, TQ_SLOT( setEnabled(bool) ) );

    // tab order
    setTabOrder( tabWidget10, mID );
    setTabOrder( mID, mPass );
    setTabOrder( mPass, cbAutoConnect );
    setTabOrder( cbAutoConnect, btnRegister );
    setTabOrder( btnRegister, btnChangePassword );
    setTabOrder( btnChangePassword, cbUseSSL );
    setTabOrder( cbUseSSL, cbAllowPlainTextPassword );
    setTabOrder( cbAllowPlainTextPassword, cbCustomServer );
    setTabOrder( cbCustomServer, mServer );
    setTabOrder( mServer, mPort );
    setTabOrder( mPort, mResource );
    setTabOrder( mResource, mPriority );
    setTabOrder( mPriority, leLocalIP );
    setTabOrder( leLocalIP, sbLocalPort );
    setTabOrder( sbLocalPort, leProxyJID );
    setTabOrder( leProxyJID, cbHideSystemInfo );
    setTabOrder( cbHideSystemInfo, cbSendEvents );
    setTabOrder( cbSendEvents, cbSendDeliveredEvent );
    setTabOrder( cbSendDeliveredEvent, cbSendDisplayedEvent );
    setTabOrder( cbSendDisplayedEvent, cbSendComposingEvent );

    // buddies
    TextLabel1_3->setBuddy( mID );
    labelServer->setBuddy( mServer );
    labelPort->setBuddy( mPort );
    TextLabel3_3->setBuddy( mResource );
    TextLabel3_3_2->setBuddy( mResource );
    textLabel5->setBuddy( leProxyJID );
    textLabel4->setBuddy( sbLocalPort );
    textLabel2->setBuddy( leLocalIP );
}

/*
 *  Destroys the object and frees any allocated resources
 */
DlgJabberEditAccountWidget::~DlgJabberEditAccountWidget()
{
    // no need to delete child widgets, TQt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DlgJabberEditAccountWidget::languageChange()
{
    setCaption( tr2i18n( "Account Preferences - Jabber" ) );
    TQToolTip::add( this, TQString::null );
    TQWhatsThis::add( this, TQString::null );
    groupBox65->setTitle( tr2i18n( "Account Information" ) );
    TextLabel1_3->setText( tr2i18n( "&Jabber ID:" ) );
    TQToolTip::add( TextLabel1_3, tr2i18n( "The Jabber ID for the account you would like to use." ) );
    TQWhatsThis::add( TextLabel1_3, tr2i18n( "The Jabber ID for the account you would like to use.  Note that this must include the username and the domain (like an E-mail address), as there are many Jabber servers." ) );
    mID->setText( TQString::null );
    TQToolTip::add( mID, tr2i18n( "The Jabber ID for the account you would like to use." ) );
    TQWhatsThis::add( mID, tr2i18n( "The Jabber ID for the account you would like to use.  Note that this must include the username and the domain (for example, joe@jabber.org), as there are many Jabber servers." ) );
    cbAutoConnect->setText( tr2i18n( "E&xclude from connect all" ) );
    TQWhatsThis::add( cbAutoConnect, tr2i18n( "Check to disable automatic connection.  If checked, you may connect to this account manually using the icon in the bottom of the main Kopete window" ) );
    cbGlobalIdentity->setText( tr2i18n( "Exclu&de from Global Identity" ) );
    groupBox5->setTitle( tr2i18n( "Registration" ) );
    lblRegistration->setText( tr2i18n( "To connect to the Jabber network, you will need an account on a Jabber server.  If you do not yet have an account, please click the button to create one." ) );
    btnRegister->setText( tr2i18n( "Re&gister New Account" ) );
    TQToolTip::add( btnRegister, tr2i18n( "Register a new account on this network." ) );
    TQWhatsThis::add( btnRegister, tr2i18n( "Register a new account on this network." ) );
    groupBox8_2->setTitle( tr2i18n( "Change Password" ) );
    btnChangePassword->setText( tr2i18n( "Change &Your Password" ) );
    tlChangePwSuccess->setText( tr2i18n( "If you have an existing Jabber account and would like to change its password, you can use this button to enter a new password." ) );
    tabWidget10->changeTab( tab, tr2i18n( "&Basic Setup" ) );
    groupBox66->setTitle( tr2i18n( "Connection Preferences" ) );
    cbUseSSL->setText( tr2i18n( "Use old style SSL encr&yption protocol (not recommended)" ) );
    TQToolTip::add( cbUseSSL, tr2i18n( "Check this box to enable the old style SSL encrypted communication with the server. This is not recommended and only works on very old servers." ) );
    TQWhatsThis::add( cbUseSSL, tr2i18n( "Check this box to enable the old style SSL encrypted communication with the server. Note that this is not end-to-end encryption, but rather encrypted communication with the server. This is not recommended and only works on very old servers." ) );
    lblUseSSL->setText( tr2i18n( "<dd>Select this only for old Jabber servers that use a separate SSL port. Newer servers use StartSSL and this option should not be required.</dd>" ) );
    cbAllowPlainTextPassword->setText( tr2i18n( "Allow plain-te&xt password authentication" ) );
    cbCustomServer->setText( tr2i18n( "&Override default server information" ) );
    labelServer->setText( tr2i18n( "Ser&ver:" ) );
    TQToolTip::add( labelServer, tr2i18n( "The IP address or hostname of the server you would like to connect to." ) );
    TQWhatsThis::add( labelServer, tr2i18n( "The IP address or hostname of the server you would like to connect to (for example jabber.org)." ) );
    mServer->setText( TQString::null );
    TQToolTip::add( mServer, tr2i18n( "The IP address or hostname of the server you would like to connect to." ) );
    TQWhatsThis::add( mServer, tr2i18n( "The IP address or hostname of the server you would like to connect to (for example jabber.org)." ) );
    labelPort->setText( tr2i18n( "Po&rt:" ) );
    TQToolTip::add( labelPort, tr2i18n( "The port on the server that you would like to connect to." ) );
    TQWhatsThis::add( labelPort, tr2i18n( "The port on the server that you would like to connect to (default is 5222)." ) );
    TQToolTip::add( mPort, tr2i18n( "The port on the server that you would like to connect to." ) );
    TQWhatsThis::add( mPort, tr2i18n( "The port on the server that you would like to connect to (default is 5222)." ) );
    lblCustomServer->setText( tr2i18n( "<dd>Newer Jabber servers may not work correctly if a server name and port are enforced, because this would prevent the use of StartSSL and a newer Jabber protocol.</dd>" ) );
    groupBox8->setTitle( tr2i18n( "Location Settings" ) );
    TextLabel3_3->setText( tr2i18n( "R&esource:" ) );
    TQToolTip::add( TextLabel3_3, tr2i18n( "The resource name you would like to use on the Jabber network." ) );
    TQWhatsThis::add( TextLabel3_3, tr2i18n( "The resource name you would like to use on the Jabber network.  Jabber allows you to sign on with the same account from multiple locations with different resource names, so you may wish to enter 'Home' or 'Work' here, for example." ) );
    mResource->setText( tr2i18n( "Kopete" ) );
    TQToolTip::add( mResource, tr2i18n( "The resource name you would like to use on the Jabber network." ) );
    TQWhatsThis::add( mResource, tr2i18n( "The resource name you would like to use on the Jabber network.  Jabber allows you to sign on with the same account from multiple locations with different resource names, so you may wish to enter 'Home' or 'Work' here, for example." ) );
    TextLabel3_3_2->setText( tr2i18n( "P&riority:" ) );
    TQToolTip::add( TextLabel3_3_2, tr2i18n( "The resource name you would like to use on the Jabber network." ) );
    TQWhatsThis::add( TextLabel3_3_2, tr2i18n( "The resource name you would like to use on the Jabber network.  Jabber allows you to sign on with the same account from multiple locations with different resource names, so you may wish to enter 'Home' or 'Work' here, for example." ) );
    TQWhatsThis::add( mPriority, tr2i18n( "<qt>Each resource can have different <b>priority </b> levels. The messages will be sent to the resource which has the highest priority level.\n"
"\n"
"If two resources have the same priority, the messages will be sent to the one connected the latest.</qt>" ) );
    tabWidget10->changeTab( TabPage, tr2i18n( "Co&nnection" ) );
    groupBox4->setTitle( tr2i18n( "File Transfer Settings" ) );
    textLabel5->setText( tr2i18n( "Pro&xy JID:" ) );
    textLabel4->setText( tr2i18n( "Por&t:" ) );
    textLabel2->setText( tr2i18n( "Public &IP address:" ) );
    textLabel3->setText( tr2i18n( "<i><ul><li>The information in the \"public IP address\" and \"port\" fields apply to all Jabber accounts.</li>\n"
"<li>You can leave the \"public IP address\" empty if you do not use NAT.</li>\n"
"<li>A hostname is also valid.</li>\n"
"<li>Changes to these fields will only take effect the next time you start Kopete.</li>\n"
"<li>The \"Proxy JID\" can be configured per account.</li></ul></i>" ) );
    tabWidget10->changeTab( TabPage_2, tr2i18n( "Fi&le Transfer" ) );
    groupBox7->setTitle( tr2i18n( "General Privacy" ) );
    cbHideSystemInfo->setText( tr2i18n( "&Hide system and client info" ) );
    TQWhatsThis::add( cbHideSystemInfo, tr2i18n( "By default, Kopete gives the other users some info about your system and the client. You can check this box in order to  hide those infos." ) );
    groupBox6->setTitle( tr2i18n( "Notifications" ) );
    cbSendEvents->setText( tr2i18n( "Always send not&ifications" ) );
    TQWhatsThis::add( cbSendEvents, tr2i18n( "Check this box if you want to always send notifications to your contacts." ) );
    cbSendDeliveredEvent->setText( tr2i18n( "Alwa&ys send delivered notifications" ) );
    TQWhatsThis::add( cbSendDeliveredEvent, tr2i18n( "<qt>Check this box to send the <b>Delivered notification</b> to your contacts : when a message is delivered to Kopete, Kopete can notify your contact that it has received the message.</qt>" ) );
    cbSendDisplayedEvent->setText( tr2i18n( "Al&ways send displayed notifications" ) );
    TQWhatsThis::add( cbSendDisplayedEvent, tr2i18n( "<qt>Check this box to send the <b>Displayed notification</b> to your contacts : when a message is displayed in Kopete, Kopete can notify your contact that it has displayed the message.</qt>" ) );
    cbSendComposingEvent->setText( tr2i18n( "Always send &typing notifications" ) );
    TQWhatsThis::add( cbSendComposingEvent, tr2i18n( "<qt>Check this box to send the <b>Typing notification</b> to your contacts : when you are composing a message, you might want your contact to know that you are typing so that he knows you are answering.</qt>" ) );
    cbSendGoneEvent->setText( tr2i18n( "Always send &gone notifications (closing the window)" ) );
    tabWidget10->changeTab( TabPage_3, tr2i18n( "Pri&vacy" ) );
}

/****************************************************************************
** DlgJabberEditAccountWidget meta object code from reading C++ file 'dlgjabbereditaccountwidget.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "dlgjabbereditaccountwidget.h"
#include <ntqmetaobject.h>
#include <ntqapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

const char *DlgJabberEditAccountWidget::className() const
{
    return "DlgJabberEditAccountWidget";
}

TQMetaObject *DlgJabberEditAccountWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_DlgJabberEditAccountWidget( "DlgJabberEditAccountWidget", &DlgJabberEditAccountWidget::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString DlgJabberEditAccountWidget::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "DlgJabberEditAccountWidget", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString DlgJabberEditAccountWidget::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "DlgJabberEditAccountWidget", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* DlgJabberEditAccountWidget::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQWidget::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"DlgJabberEditAccountWidget", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_DlgJabberEditAccountWidget.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* DlgJabberEditAccountWidget::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "DlgJabberEditAccountWidget" ) )
	return this;
    return TQWidget::tqt_cast( clname );
}

bool DlgJabberEditAccountWidget::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool DlgJabberEditAccountWidget::tqt_emit( int _id, TQUObject* _o )
{
    return TQWidget::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool DlgJabberEditAccountWidget::tqt_property( int id, int f, TQVariant* v)
{
    return TQWidget::tqt_property( id, f, v);
}

bool DlgJabberEditAccountWidget::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
