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

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

#include "msneditaccountui.h"

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

/*
 *  Constructs a MSNEditAccountUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
MSNEditAccountUI::MSNEditAccountUI( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "Form1" );
    Form1Layout = new TQVBoxLayout( this, 0, 0, "Form1Layout"); 

    tabWidget3 = new TQTabWidget( this, "tabWidget3" );
    tabWidget3->setTabShape( TQTabWidget::Rounded );

    tab_connection = new TQWidget( tabWidget3, "tab_connection" );
    tab_connectionLayout = new TQGridLayout( tab_connection, 1, 1, 11, 6, "tab_connectionLayout"); 
    spacer41 = new TQSpacerItem( 20, 146, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tab_connectionLayout->addItem( spacer41, 2, 0 );

    groupBox5 = new TQGroupBox( tab_connection, "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 );

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

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

    tab_connectionLayout->addWidget( groupBox5, 1, 0 );

    m_accountInfo = new TQGroupBox( tab_connection, "m_accountInfo" );
    m_accountInfo->setColumnLayout(0, TQt::Vertical );
    m_accountInfo->layout()->setSpacing( 6 );
    m_accountInfo->layout()->setMargin( 11 );
    m_accountInfoLayout = new TQGridLayout( m_accountInfo->layout() );
    m_accountInfoLayout->setAlignment( TQt::AlignTop );

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

    TextLabel1_3 = new TQLabel( m_accountInfo, "TextLabel1_3" );
    TextLabel1_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, TextLabel1_3->sizePolicy().hasHeightForWidth() ) );
    layout14->addWidget( TextLabel1_3 );

    m_login = new TQLineEdit( m_accountInfo, "m_login" );
    layout14->addWidget( m_login );

    m_accountInfoLayout->addLayout( layout14, 0, 0 );

    m_password = new Kopete::UI::PasswordWidget( m_accountInfo, "m_password" );

    m_accountInfoLayout->addWidget( m_password, 1, 0 );

    m_autologin = new TQCheckBox( m_accountInfo, "m_autologin" );
    m_autologin->setChecked( false );

    m_accountInfoLayout->addWidget( m_autologin, 2, 0 );

    m_globalIdentity = new TQCheckBox( m_accountInfo, "m_globalIdentity" );

    m_accountInfoLayout->addWidget( m_globalIdentity, 3, 0 );

    tab_connectionLayout->addWidget( m_accountInfo, 0, 0 );
    tabWidget3->insertTab( tab_connection, TQString::fromLatin1("") );

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

    textLabel1_3 = new TQLabel( TabPage, "textLabel1_3" );
    TQFont textLabel1_3_font(  textLabel1_3->font() );
    textLabel1_3_font.setItalic( true );
    textLabel1_3->setFont( textLabel1_3_font ); 
    textLabel1_3->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignCenter ) );
    TabPageLayout->addWidget( textLabel1_3 );

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

    NotifyNewChat = new TQCheckBox( global_settings_page, "NotifyNewChat" );
    NotifyNewChat->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, NotifyNewChat->sizePolicy().hasHeightForWidth() ) );
    global_settings_pageLayout->addWidget( NotifyNewChat );

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

    textLabel1_4 = new TQLabel( global_settings_page, "textLabel1_4" );
    layout13_2->addWidget( textLabel1_4 );

    DownloadPicture = new TQComboBox( false, global_settings_page, "DownloadPicture" );
    DownloadPicture->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, DownloadPicture->sizePolicy().hasHeightForWidth() ) );
    layout13_2->addWidget( DownloadPicture );
    global_settings_pageLayout->addLayout( layout13_2 );

    useCustomEmoticons = new TQCheckBox( global_settings_page, "useCustomEmoticons" );
    useCustomEmoticons->setChecked( true );
    global_settings_pageLayout->addWidget( useCustomEmoticons );

    exportEmoticons = new TQCheckBox( global_settings_page, "exportEmoticons" );
    global_settings_pageLayout->addWidget( exportEmoticons );
    TabPageLayout->addWidget( global_settings_page );

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

    SendClientInfo = new TQCheckBox( privacy_page, "SendClientInfo" );
    SendClientInfo->setEnabled( true );
    SendClientInfo->setChecked( true );
    privacy_pageLayout->addWidget( SendClientInfo );

    SendTypingNotification = new TQCheckBox( privacy_page, "SendTypingNotification" );
    SendTypingNotification->setEnabled( true );
    SendTypingNotification->setChecked( true );
    privacy_pageLayout->addWidget( SendTypingNotification );

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

    SendJabber = new TQCheckBox( privacy_page, "SendJabber" );
    SendJabber->setChecked( true );
    layout28->addWidget( SendJabber );

    JabberAccount = new KComboBox( false, privacy_page, "JabberAccount" );
    JabberAccount->setEditable( true );
    layout28->addWidget( JabberAccount );
    spacer26 = new TQSpacerItem( 61, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout28->addItem( spacer26 );
    privacy_pageLayout->addLayout( layout28 );
    spacer25 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    privacy_pageLayout->addItem( spacer25 );

    textLabel1_5 = new TQLabel( privacy_page, "textLabel1_5" );
    textLabel1_5->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignCenter ) );
    privacy_pageLayout->addWidget( textLabel1_5 );
    TabPageLayout->addWidget( privacy_page );
    spacer20 = new TQSpacerItem( 31, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout->addItem( spacer20 );
    tabWidget3->insertTab( TabPage, TQString::fromLatin1("") );

    tab_info = new TQWidget( tabWidget3, "tab_info" );
    tab_infoLayout = new TQVBoxLayout( tab_info, 11, 6, "tab_infoLayout"); 

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

    TextLabel2_2_2 = new TQLabel( tab_info, "TextLabel2_2_2" );
    TextLabel2_2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)4, 0, 0, TextLabel2_2_2->sizePolicy().hasHeightForWidth() ) );
    Layout22_2->addWidget( TextLabel2_2_2 );

    m_displayName = new TQLineEdit( tab_info, "m_displayName" );
    m_displayName->setReadOnly( false );
    Layout22_2->addWidget( m_displayName );
    tab_infoLayout->addLayout( Layout22_2 );

    m_phones = new TQGroupBox( tab_info, "m_phones" );
    m_phones->setColumnLayout(0, TQt::Vertical );
    m_phones->layout()->setSpacing( 6 );
    m_phones->layout()->setMargin( 11 );
    m_phonesLayout = new TQGridLayout( m_phones->layout() );
    m_phonesLayout->setAlignment( TQt::AlignTop );

    TextLabel5 = new TQLabel( m_phones, "TextLabel5" );

    m_phonesLayout->addWidget( TextLabel5, 1, 0 );

    TextLabel6 = new TQLabel( m_phones, "TextLabel6" );

    m_phonesLayout->addWidget( TextLabel6, 0, 0 );

    m_phw = new TQLineEdit( m_phones, "m_phw" );

    m_phonesLayout->addWidget( m_phw, 0, 1 );

    m_phh = new TQLineEdit( m_phones, "m_phh" );

    m_phonesLayout->addWidget( m_phh, 1, 1 );

    TextLabel7 = new TQLabel( m_phones, "TextLabel7" );

    m_phonesLayout->addWidget( TextLabel7, 2, 0 );

    m_phm = new TQLineEdit( m_phones, "m_phm" );

    m_phonesLayout->addWidget( m_phm, 2, 1 );
    tab_infoLayout->addWidget( m_phones );

    groupBox2 = new TQGroupBox( tab_info, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQHBoxLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

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

    m_useDisplayPicture = new TQCheckBox( groupBox2, "m_useDisplayPicture" );
    layout17->addWidget( m_useDisplayPicture );

    textLabel1_2 = new TQLabel( groupBox2, "textLabel1_2" );
    textLabel1_2->setEnabled( false );
    textLabel1_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
    textLabel1_2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    layout17->addWidget( textLabel1_2 );

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

    m_selectImage = new TQPushButton( groupBox2, "m_selectImage" );
    m_selectImage->setEnabled( false );
    layout13->addWidget( m_selectImage );
    spacer5 = new TQSpacerItem( 61, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13->addItem( spacer5 );
    layout17->addLayout( layout13 );
    spacer7_2_2 = new TQSpacerItem( 20, 1, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    layout17->addItem( spacer7_2_2 );
    groupBox2Layout->addLayout( layout17 );

    layout16 = new TQVBoxLayout( 0, 0, 0, "layout16"); 

    m_displayPicture = new TQLabel( groupBox2, "m_displayPicture" );
    m_displayPicture->setEnabled( false );
    m_displayPicture->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_displayPicture->sizePolicy().hasHeightForWidth() ) );
    m_displayPicture->setMinimumSize( TQSize( 96, 96 ) );
    m_displayPicture->setMaximumSize( TQSize( 96, 96 ) );
    m_displayPicture->setFrameShape( TQLabel::GroupBoxPanel );
    m_displayPicture->setScaledContents( true );
    layout16->addWidget( m_displayPicture );
    spacer7_2 = new TQSpacerItem( 20, 1, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    layout16->addItem( spacer7_2 );
    groupBox2Layout->addLayout( layout16 );
    tab_infoLayout->addWidget( groupBox2 );
    spacer16 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tab_infoLayout->addItem( spacer16 );

    m_warning_1 = new TQLabel( tab_info, "m_warning_1" );
    m_warning_1->setPaletteForegroundColor( TQColor( 255, 0, 0 ) );
    TQFont m_warning_1_font(  m_warning_1->font() );
    m_warning_1_font.setBold( true );
    m_warning_1->setFont( m_warning_1_font ); 
    m_warning_1->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    tab_infoLayout->addWidget( m_warning_1 );
    tabWidget3->insertTab( tab_info, TQString::fromLatin1("") );

    tab_contacts = new TQWidget( tabWidget3, "tab_contacts" );
    tab_contactsLayout = new TQVBoxLayout( tab_contacts, 11, 6, "tab_contactsLayout"); 

    label_font = new TQLabel( tab_contacts, "label_font" );
    tab_contactsLayout->addWidget( label_font );

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

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

    layout6->addWidget( textLabel2, 0, 2 );

    m_AL = new TQListBox( tab_contacts, "m_AL" );

    layout6->addWidget( m_AL, 1, 0 );

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

    m_blockButton = new TQPushButton( tab_contacts, "m_blockButton" );
    layout4->addWidget( m_blockButton );

    m_allowButton = new TQPushButton( tab_contacts, "m_allowButton" );
    layout4->addWidget( m_allowButton );
    spacer13 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout4->addItem( spacer13 );

    layout6->addLayout( layout4, 1, 1 );

    textLabel1 = new TQLabel( tab_contacts, "textLabel1" );

    layout6->addWidget( textLabel1, 0, 0 );

    m_BL = new TQListBox( tab_contacts, "m_BL" );

    layout6->addWidget( m_BL, 1, 2 );
    tab_contactsLayout->addLayout( layout6 );

    layout58 = new TQHBoxLayout( 0, 0, 6, "layout58"); 
    spacer47 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout58->addItem( spacer47 );

    m_blp = new TQCheckBox( tab_contacts, "m_blp" );
    layout58->addWidget( m_blp );
    spacer50 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout58->addItem( spacer50 );
    tab_contactsLayout->addLayout( layout58 );

    layout59 = new TQHBoxLayout( 0, 0, 6, "layout59"); 
    spacer48 = new TQSpacerItem( 81, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout59->addItem( spacer48 );

    m_RLButton = new TQPushButton( tab_contacts, "m_RLButton" );
    m_RLButton->setMaximumSize( TQSize( 200, 32767 ) );
    layout59->addWidget( m_RLButton );
    spacer49 = new TQSpacerItem( 111, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout59->addItem( spacer49 );
    tab_contactsLayout->addLayout( layout59 );

    m_warning_2 = new TQLabel( tab_contacts, "m_warning_2" );
    m_warning_2->setPaletteForegroundColor( TQColor( 255, 0, 0 ) );
    TQFont m_warning_2_font(  m_warning_2->font() );
    m_warning_2_font.setBold( true );
    m_warning_2->setFont( m_warning_2_font ); 
    m_warning_2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    tab_contactsLayout->addWidget( m_warning_2 );
    tabWidget3->insertTab( tab_contacts, TQString::fromLatin1("") );

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

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

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

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

    layout19 = new TQHBoxLayout( 0, 0, 3, "layout19"); 

    labelServer = new TQLabel( groupBox66, "labelServer" );
    labelServer->setEnabled( false );
    layout19->addWidget( labelServer );

    labelPort = new TQLabel( groupBox66, "labelPort" );
    labelPort->setEnabled( false );
    layout19->addWidget( labelPort );
    layout20->addLayout( layout19 );

    m_serverName = new TQLineEdit( groupBox66, "m_serverName" );
    m_serverName->setEnabled( false );
    m_serverName->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, m_serverName->sizePolicy().hasHeightForWidth() ) );
    layout20->addWidget( m_serverName );

    m_serverPort = new TQSpinBox( groupBox66, "m_serverPort" );
    m_serverPort->setEnabled( false );
    m_serverPort->setMaxValue( 65535 );
    m_serverPort->setMinValue( 1 );
    m_serverPort->setValue( 1863 );
    layout20->addWidget( m_serverPort );
    groupBox66Layout->addLayout( layout20 );

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

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

    m_useWebcamPort = new TQCheckBox( groupBox66, "m_useWebcamPort" );
    layout22->addWidget( m_useWebcamPort );

    m_webcamPort = new TQSpinBox( groupBox66, "m_webcamPort" );
    m_webcamPort->setEnabled( false );
    m_webcamPort->setMaxValue( 65535 );
    m_webcamPort->setMinValue( 1 );
    m_webcamPort->setValue( 6891 );
    layout22->addWidget( m_webcamPort );
    groupBox66Layout->addLayout( layout22 );
    TabPageLayout_2->addWidget( groupBox66 );
    spacer7 = new TQSpacerItem( 21, 70, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout_2->addItem( spacer7 );
    tabWidget3->insertTab( TabPage_2, TQString::fromLatin1("") );
    Form1Layout->addWidget( tabWidget3 );

    labelStatusMessage = new TQLabel( this, "labelStatusMessage" );
    labelStatusMessage->setAlignment( int( TQLabel::AlignCenter ) );
    Form1Layout->addWidget( labelStatusMessage );
    languageChange();
    resize( TQSize(604, 437).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_useDisplayPicture, TQ_SIGNAL( toggled(bool) ), m_selectImage, TQ_SLOT( setEnabled(bool) ) );
    connect( m_useDisplayPicture, TQ_SIGNAL( toggled(bool) ), m_selectImage, TQ_SLOT( setEnabled(bool) ) );
    connect( m_useDisplayPicture, TQ_SIGNAL( toggled(bool) ), textLabel1_2, TQ_SLOT( setEnabled(bool) ) );
    connect( optionOverrideServer, TQ_SIGNAL( toggled(bool) ), labelServer, TQ_SLOT( setEnabled(bool) ) );
    connect( optionOverrideServer, TQ_SIGNAL( toggled(bool) ), m_serverName, TQ_SLOT( setEnabled(bool) ) );
    connect( optionOverrideServer, TQ_SIGNAL( toggled(bool) ), labelPort, TQ_SLOT( setEnabled(bool) ) );
    connect( optionOverrideServer, TQ_SIGNAL( toggled(bool) ), m_serverPort, TQ_SLOT( setEnabled(bool) ) );
    connect( m_useDisplayPicture, TQ_SIGNAL( toggled(bool) ), m_displayPicture, TQ_SLOT( setEnabled(bool) ) );
    connect( m_useWebcamPort, TQ_SIGNAL( toggled(bool) ), m_webcamPort, TQ_SLOT( setEnabled(bool) ) );

    // tab order
    setTabOrder( tabWidget3, optionOverrideServer );
    setTabOrder( optionOverrideServer, m_serverName );
    setTabOrder( m_serverName, m_serverPort );
    setTabOrder( m_serverPort, optionUseHttpMethod );
    setTabOrder( optionUseHttpMethod, m_login );
    setTabOrder( m_login, m_autologin );
    setTabOrder( m_autologin, buttonRegister );
    setTabOrder( buttonRegister, m_displayName );
    setTabOrder( m_displayName, m_phw );
    setTabOrder( m_phw, m_phh );
    setTabOrder( m_phh, m_phm );
    setTabOrder( m_phm, m_useDisplayPicture );
    setTabOrder( m_useDisplayPicture, m_selectImage );
    setTabOrder( m_selectImage, m_AL );
    setTabOrder( m_AL, m_blockButton );
    setTabOrder( m_blockButton, m_allowButton );
    setTabOrder( m_allowButton, m_BL );
    setTabOrder( m_BL, m_blp );
    setTabOrder( m_blp, m_RLButton );

    // buddies
    TextLabel1_3->setBuddy( m_login );
    TextLabel2_2_2->setBuddy( m_displayName );
    TextLabel5->setBuddy( m_phh );
    TextLabel6->setBuddy( m_phw );
    TextLabel7->setBuddy( m_phm );
    textLabel2->setBuddy( m_BL );
    textLabel1->setBuddy( m_AL );
    labelServer->setBuddy( m_serverName );
    labelPort->setBuddy( m_serverPort );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MSNEditAccountUI::languageChange()
{
    setCaption( tr2i18n( "Account Preferences - MSN" ) );
    groupBox5->setTitle( tr2i18n( "Registration" ) );
    textLabel6->setText( tr2i18n( "To connect to the Microsoft network, you will need a Microsoft Passport.<br><br>If you do not currently have a Passport, please click the button to create one." ) );
    buttonRegister->setText( tr2i18n( "Re&gister New Account" ) );
    m_accountInfo->setTitle( tr2i18n( "Account Information" ) );
    TextLabel1_3->setText( tr2i18n( "&MSN Passport ID:" ) );
    TQToolTip::add( TextLabel1_3, tr2i18n( "The user ID of the MSN contact you would like to use." ) );
    TQWhatsThis::add( TextLabel1_3, tr2i18n( "The user ID of the MSN contact you would like to use.  This should be in the form of a valid E-mail address." ) );
    m_login->setText( TQString::null );
    TQToolTip::add( m_login, tr2i18n( "The user ID of the MSN contact you would like to use." ) );
    TQWhatsThis::add( m_login, tr2i18n( "The user ID of the MSN contact you would like to use.  This should be in the form of a valid E-mail address." ) );
    m_autologin->setText( tr2i18n( "E&xclude from connect all" ) );
    TQWhatsThis::add( m_autologin, tr2i18n( "If you check this checkbox, the account will not be connected when you press the \"Connect All\" button, or at startup when automatic connection at startup is enabled." ) );
    m_globalIdentity->setText( tr2i18n( "Exclu&de from Global Identity" ) );
    tabWidget3->changeTab( tab_connection, tr2i18n( "&Basic Setup" ) );
    textLabel1_3->setText( tr2i18n( "<qt><b>Note:</b> These settings are applicable to all MSN accounts" ) );
    global_settings_page->setTitle( tr2i18n( "Global MSN Options" ) );
    NotifyNewChat->setText( tr2i18n( "Au&tomatically open a chat window when someone starts a conversation" ) );
    TQWhatsThis::add( NotifyNewChat, tr2i18n( "This option will notify you when a contact starts typing their message, before the message is sent or finished." ) );
    textLabel1_4->setText( tr2i18n( "Download the msn picture:" ) );
    TQWhatsThis::add( textLabel1_4, tr2i18n( "<qt><p>Indicate when Kopete will download the display pictures of contacts</p>\n"
"<dl><dt>Only manually</dt><dd>The picture is not downloaded automatically. It is only downloaded when the user requests it</dd>\n"
"<dt>When a chat is open</dt><dd>The picture is downloaded when a conversation socket is opened, i.e. when you open a chat window</dd>\n"
"<dt>Automatically</dt><dd>Always try to download the picture if the contact has one.  <b>Note:</b> this will open a socket, and let the user know you are downloading their picture.</dd></dl>" ) );
    DownloadPicture->clear();
    DownloadPicture->insertItem( tr2i18n( "Only Manually" ) );
    DownloadPicture->insertItem( tr2i18n( "When a Chat is Open" ) );
    DownloadPicture->insertItem( tr2i18n( "Automatically" ) );
    DownloadPicture->setCurrentItem( 2 );
    TQWhatsThis::add( DownloadPicture, tr2i18n( "<qt><p>Indicate when Kopete will download the pictures of contacts</p>\n"
"<dl><dt>Only manually</dt><dd>The picture is not downloaded automatically. It is only downloaded when the user requests it</dd>\n"
"<dt>When a chat is open</dt><dd>The picture is downloaded when a conversation socket is opened, i.e. when you open a chat window</dd>\n"
"<dt>Automatically</dt><dd>Always try to download the picture if the contact has one.  <b>Note:</b> this will open a socket, and let the user know you are downloading their picture.</dd></dl>" ) );
    useCustomEmoticons->setText( tr2i18n( "&Download and show custom emoticons" ) );
    TQWhatsThis::add( useCustomEmoticons, tr2i18n( "MSN Messenger allows users to download and use custom emoticons. If this option is enabled, Kopete will download these emoticons and show them." ) );
    exportEmoticons->setText( tr2i18n( "E&xport the current emoticon theme to users" ) );
    TQToolTip::add( exportEmoticons, tr2i18n( "Only work with emoticons in the PNG format" ) );
    TQWhatsThis::add( exportEmoticons, tr2i18n( "Export all the emoticon themes as custom emoticons.\n"
"Only works for emoticons in the PNG format." ) );
    privacy_page->setTitle( tr2i18n( "Privacy" ) );
    SendClientInfo->setText( tr2i18n( "Send client information" ) );
    TQToolTip::add( SendClientInfo, tr2i18n( "<qt>Make it possible for your contacts to detect if you are using Kopete.<br>We recommend leaving this checked.</qt>" ) );
    TQWhatsThis::add( SendClientInfo, tr2i18n( "Third party MSN clients, such as Kopete, give users the ability to let other third party clients guess which client they are using. We recommend leaving this checkbox checked." ) );
    SendTypingNotification->setText( tr2i18n( "Send &typing notifications" ) );
    TQWhatsThis::add( SendTypingNotification, tr2i18n( "<qt>Check this box to send <b>Typing notifications</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>" ) );
    SendJabber->setText( tr2i18n( "Expose my Jabber account to Jabber users" ) );
    TQWhatsThis::add( SendJabber, tr2i18n( "If you have a Jabber account, you may let Jabber users on an MSN gateway know that you are also using Jabber." ) );
    TQWhatsThis::add( JabberAccount, tr2i18n( "If you have a Jabber account, you may let Jabber users on an MSN gateway know that you are also using Jabber." ) );
    textLabel1_5->setText( tr2i18n( "There are also privacy options in the \"Contacts\" tab" ) );
    tabWidget3->changeTab( TabPage, tr2i18n( "MSN &Settings" ) );
    TextLabel2_2_2->setText( tr2i18n( "&Nickname:" ) );
    TQWhatsThis::add( TextLabel2_2_2, tr2i18n( "The alias you would like to use on MSN.  You may change this at any time you wish." ) );
    TQWhatsThis::add( m_displayName, tr2i18n( "The alias you would like to use on MSN.  You may change this at any time you wish." ) );
    m_phones->setTitle( tr2i18n( "Phone Numbers" ) );
    TextLabel5->setText( tr2i18n( "Hom&e:" ) );
    TextLabel6->setText( tr2i18n( "&Work:" ) );
    TextLabel7->setText( tr2i18n( "&Mobile:" ) );
    groupBox2->setTitle( tr2i18n( "Display Picture" ) );
    m_useDisplayPicture->setText( tr2i18n( "E&xport a display picture" ) );
    textLabel1_2->setText( tr2i18n( "Please select a square image. The image will be scaled to 96x96." ) );
    m_selectImage->setText( tr2i18n( "&Select Image..." ) );
    m_warning_1->setText( tr2i18n( "WARNING: You need to be connected to modify this page." ) );
    tabWidget3->changeTab( tab_info, tr2i18n( "User &Info" ) );
    label_font->setText( tr2i18n( "<i>Italics</i> contacts are not on your contact list.<br>\n"
"<br>\n"
"<b>Bold</b> contacts are in your contact list but you are not in their contact list." ) );
    textLabel2->setText( tr2i18n( "Bloc&ked contacts:" ) );
    m_blockButton->setText( tr2i18n( "&>" ) );
    m_allowButton->setText( tr2i18n( "&<" ) );
    textLabel1->setText( tr2i18n( "Allo&wed contacts:" ) );
    m_blp->setText( tr2i18n( "Block all users not in 'Allowed' &list" ) );
    TQWhatsThis::add( m_blp, tr2i18n( "Checking this box will block all users not explicitly shown in the allowed list here, including any contacts not on your contact list." ) );
    m_RLButton->setText( tr2i18n( "View &Reverse List" ) );
    TQToolTip::add( m_RLButton, tr2i18n( "The reverse list is the list of contacts who added you to their own contact list." ) );
    TQWhatsThis::add( m_RLButton, tr2i18n( "The reverse list is the list of contacts who added you to their own contact list." ) );
    m_warning_2->setText( tr2i18n( "WARNING: You need to be connected to modify this page" ) );
    tabWidget3->changeTab( tab_contacts, tr2i18n( "Con&tacts" ) );
    groupBox66->setTitle( tr2i18n( "Connection Preferences (for advanced users)" ) );
    optionOverrideServer->setText( tr2i18n( "&Override default server information" ) );
    labelServer->setText( tr2i18n( "Ser&ver /" ) );
    labelPort->setText( tr2i18n( "po&rt:" ) );
    m_serverName->setText( tr2i18n( "m1.escargot.log1p.xyz" ) );
    TQToolTip::add( m_serverName, tr2i18n( "Only modify these values if you want to use a special IM proxy server, like SIMP" ) );
    TQWhatsThis::add( m_serverName, tr2i18n( "Only modify these values if you want to use a special IM proxy server, like SIMP" ) );
    TQToolTip::add( m_serverPort, tr2i18n( "Only modify these values if you want to use a special IM proxy server, like SIMP" ) );
    TQWhatsThis::add( m_serverPort, tr2i18n( "Only modify these values if you want to use a special IM proxy server, like SIMP" ) );
    optionUseHttpMethod->setText( tr2i18n( "Use &HTTP method" ) );
    TQWhatsThis::add( optionUseHttpMethod, tr2i18n( "Connect to MSN Messenger using an HTTP-like protocol on port 80.\n"
"This may be used to connect on a network with a restrictive firewall.\n"
"Only check this option if the normal connection doesn't work." ) );
    m_useWebcamPort->setText( tr2i18n( "S&pecify a base port for incoming webcam connections:" ) );
    TQWhatsThis::add( m_useWebcamPort, tr2i18n( "If you are behind a firewall, you may specify a base port to use for the incoming connection, and configure your firewall to accept connections on a range of 10 ports, starting at this one. Incoming connections are used for the webcam. If you don't specify a port yourself, the operating system will choose an available port for you. It is recommended to leave the checkbox unchecked." ) );
    TQWhatsThis::add( m_webcamPort, tr2i18n( "If you are behind a firewall, you may specify a base port to use for the incoming connection, and configure your firewall to accept connections on a range of 10 ports, starting at this one. Incoming connections are used for the webcam. If you don't specify a port yourself, the operating system will choose an available port for you. It is recommended to leave the checkbox unchecked." ) );
    tabWidget3->changeTab( TabPage_2, tr2i18n( "Co&nnection" ) );
    labelStatusMessage->setText( TQString::null );
}

/****************************************************************************
** MSNEditAccountUI meta object code from reading C++ file 'msneditaccountui.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 "msneditaccountui.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 *MSNEditAccountUI::className() const
{
    return "MSNEditAccountUI";
}

TQMetaObject *MSNEditAccountUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_MSNEditAccountUI( "MSNEditAccountUI", &MSNEditAccountUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* MSNEditAccountUI::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(
	"MSNEditAccountUI", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_MSNEditAccountUI.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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