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

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

#include "irceditaccount.h"

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

/*
 *  Constructs a IRCEditAccountBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
IRCEditAccountBase::IRCEditAccountBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "IRCEditAccountBase" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setBaseSize( TQSize( 440, 575 ) );
    IRCEditAccountBaseLayout = new TQHBoxLayout( this, 11, 6, "IRCEditAccountBaseLayout"); 

    tabWidget2 = new TQTabWidget( this, "tabWidget2" );
    tabWidget2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, tabWidget2->sizePolicy().hasHeightForWidth() ) );

    tab = new TQWidget( tabWidget2, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 
    spacer8 = new TQSpacerItem( 20, 150, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( spacer8, 2, 0 );

    textLabel3 = new TQLabel( tab, "textLabel3" );
    textLabel3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );
    textLabel3->setMaximumSize( TQSize( 32767, 32767 ) );
    textLabel3->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop ) );

    tabLayout->addWidget( textLabel3, 1, 0 );

    groupBox59 = new TQGroupBox( tab, "groupBox59" );
    groupBox59->setFrameShape( TQGroupBox::GroupBoxPanel );
    groupBox59->setFrameShadow( TQGroupBox::Sunken );
    groupBox59->setColumnLayout(0, TQt::Vertical );
    groupBox59->layout()->setSpacing( 6 );
    groupBox59->layout()->setMargin( 11 );
    groupBox59Layout = new TQGridLayout( groupBox59->layout() );
    groupBox59Layout->setAlignment( TQt::AlignTop );

    textLabel4 = new TQLabel( groupBox59, "textLabel4" );

    groupBox59Layout->addWidget( textLabel4, 0, 0 );

    textLabel1_2 = new TQLabel( groupBox59, "textLabel1_2" );

    groupBox59Layout->addWidget( textLabel1_2, 1, 0 );

    mNickName = new TQLineEdit( groupBox59, "mNickName" );
    mNickName->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, mNickName->sizePolicy().hasHeightForWidth() ) );

    groupBox59Layout->addWidget( mNickName, 0, 1 );

    mAltNickname = new TQLineEdit( groupBox59, "mAltNickname" );

    groupBox59Layout->addWidget( mAltNickname, 1, 1 );

    mPasswordWidget = new Kopete::UI::PasswordWidget( groupBox59, "mPasswordWidget" );

    groupBox59Layout->addMultiCellWidget( mPasswordWidget, 4, 4, 0, 1 );

    m_realNameLabel = new TQLabel( groupBox59, "m_realNameLabel" );

    groupBox59Layout->addWidget( m_realNameLabel, 3, 0 );

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

    groupBox59Layout->addWidget( textLabel5, 2, 0 );

    mUserName = new TQLineEdit( groupBox59, "mUserName" );
    mUserName->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, mUserName->sizePolicy().hasHeightForWidth() ) );
    mUserName->setEchoMode( TQLineEdit::Normal );

    groupBox59Layout->addWidget( mUserName, 2, 1 );

    m_realNameLineEdit = new TQLineEdit( groupBox59, "m_realNameLineEdit" );
    m_realNameLineEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_realNameLineEdit->sizePolicy().hasHeightForWidth() ) );
    m_realNameLineEdit->setEchoMode( TQLineEdit::Normal );

    groupBox59Layout->addWidget( m_realNameLineEdit, 3, 1 );

    tabLayout->addWidget( groupBox59, 0, 0 );
    tabWidget2->insertTab( tab, TQString::fromLatin1("") );

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

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

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

    description = new TQLabel( TabPage, "description" );
    layout19->addWidget( description );
    spacer11 = new TQSpacerItem( 161, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout19->addItem( spacer11 );

    layout21->addLayout( layout19, 1, 1 );

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

    network = new TQComboBox( false, TabPage, "network" );
    layout20->addWidget( network );

    editButton = new TQPushButton( TabPage, "editButton" );
    layout20->addWidget( editButton );
    spacer1 = new TQSpacerItem( 392, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout20->addItem( spacer1 );

    layout21->addLayout( layout20, 0, 1 );

    textLabel1_3 = new TQLabel( TabPage, "textLabel1_3" );

    layout21->addWidget( textLabel1_3, 0, 0 );
    TabPageLayout->addLayout( layout21 );

    groupBox1 = new TQGroupBox( TabPage, "groupBox1" );
    groupBox1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, groupBox1->sizePolicy().hasHeightForWidth() ) );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQVBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    preferSSL = new TQCheckBox( groupBox1, "preferSSL" );
    groupBox1Layout->addWidget( preferSSL );

    autoConnect = new TQCheckBox( groupBox1, "autoConnect" );
    groupBox1Layout->addWidget( autoConnect );

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

    textLabel1_2_2 = new TQLabel( groupBox1, "textLabel1_2_2" );
    layout25->addWidget( textLabel1_2_2 );

    charset = new TQComboBox( false, groupBox1, "charset" );
    layout25->addWidget( charset );
    spacer6_2 = new TQSpacerItem( 141, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout25->addItem( spacer6_2 );
    groupBox1Layout->addLayout( layout25 );
    TabPageLayout->addWidget( groupBox1 );

    groupBox5 = new TQGroupBox( TabPage, "groupBox5" );
    groupBox5->setColumnLayout(0, TQt::Vertical );
    groupBox5->layout()->setSpacing( 6 );
    groupBox5->layout()->setMargin( 11 );
    groupBox5Layout = new TQGridLayout( groupBox5->layout() );
    groupBox5Layout->setAlignment( TQt::AlignTop );

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

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

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

    groupBox5Layout->addWidget( textLabel2, 1, 0 );

    partMessage = new TQLineEdit( groupBox5, "partMessage" );

    groupBox5Layout->addWidget( partMessage, 0, 1 );

    quitMessage = new TQLineEdit( groupBox5, "quitMessage" );

    groupBox5Layout->addWidget( quitMessage, 1, 1 );
    TabPageLayout->addWidget( groupBox5 );
    spacer72 = new TQSpacerItem( 20, 150, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout->addItem( spacer72 );
    tabWidget2->insertTab( TabPage, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabWidget2, "tab_2" );
    tabLayout_2 = new TQVBoxLayout( tab_2, 11, 6, "tabLayout_2"); 

    groupBox7 = new TQGroupBox( tab_2, "groupBox7" );
    groupBox7->setColumnLayout(0, TQt::Vertical );
    groupBox7->layout()->setSpacing( 6 );
    groupBox7->layout()->setMargin( 11 );
    groupBox7Layout = new TQGridLayout( groupBox7->layout() );
    groupBox7Layout->setAlignment( TQt::AlignTop );

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

    groupBox7Layout->addWidget( autoShowAnonWindows, 1, 1 );

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

    groupBox7Layout->addWidget( autoShowServerWindow, 1, 0 );

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

    textLabel1_4 = new TQLabel( groupBox7, "textLabel1_4" );

    layout19_2->addWidget( textLabel1_4, 0, 0 );

    textLabel4_3 = new TQLabel( groupBox7, "textLabel4_3" );

    layout19_2->addWidget( textLabel4_3, 1, 0 );

    serverNotices = new TQComboBox( false, groupBox7, "serverNotices" );

    layout19_2->addWidget( serverNotices, 1, 1 );

    serverMessages = new TQComboBox( false, groupBox7, "serverMessages" );

    layout19_2->addWidget( serverMessages, 0, 1 );

    groupBox7Layout->addLayout( layout19_2, 0, 0 );

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

    textLabel3_3 = new TQLabel( groupBox7, "textLabel3_3" );

    layout23->addWidget( textLabel3_3, 1, 0 );

    informationReplies = new TQComboBox( false, groupBox7, "informationReplies" );

    layout23->addWidget( informationReplies, 0, 1 );

    textLabel2_2 = new TQLabel( groupBox7, "textLabel2_2" );

    layout23->addWidget( textLabel2_2, 0, 0 );

    errorMessages = new TQComboBox( false, groupBox7, "errorMessages" );

    layout23->addWidget( errorMessages, 1, 1 );

    groupBox7Layout->addLayout( layout23, 0, 1 );
    tabLayout_2->addWidget( groupBox7 );

    groupBox6 = new TQGroupBox( tab_2, "groupBox6" );
    groupBox6->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, groupBox6->sizePolicy().hasHeightForWidth() ) );
    groupBox6->setMinimumSize( TQSize( 0, 130 ) );
    groupBox6->setColumnLayout(0, TQt::Vertical );
    groupBox6->layout()->setSpacing( 6 );
    groupBox6->layout()->setMargin( 11 );
    groupBox6Layout = new TQVBoxLayout( groupBox6->layout() );
    groupBox6Layout->setAlignment( TQt::AlignTop );

    ctcpList = new TDEListView( groupBox6, "ctcpList" );
    ctcpList->addColumn( tr2i18n( "CTCP" ) );
    ctcpList->addColumn( tr2i18n( "Reply" ) );
    ctcpList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)2, 0, 0, ctcpList->sizePolicy().hasHeightForWidth() ) );
    ctcpList->setAllColumnsShowFocus( false );
    ctcpList->setDefaultRenameAction( TDEListView::Accept );
    ctcpList->setFullWidth( true );
    ctcpList->setItemsRenameable( true );
    groupBox6Layout->addWidget( ctcpList );

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

    textLabel3_2 = new TQLabel( groupBox6, "textLabel3_2" );
    layout153->addWidget( textLabel3_2 );

    newCTCP = new TQLineEdit( groupBox6, "newCTCP" );
    layout153->addWidget( newCTCP );

    textLabel4_2 = new TQLabel( groupBox6, "textLabel4_2" );
    layout153->addWidget( textLabel4_2 );

    newReply = new TQLineEdit( groupBox6, "newReply" );
    layout153->addWidget( newReply );

    addReply = new TQPushButton( groupBox6, "addReply" );
    layout153->addWidget( addReply );
    groupBox6Layout->addLayout( layout153 );
    tabLayout_2->addWidget( groupBox6 );

    groupBox60 = new TQGroupBox( tab_2, "groupBox60" );
    groupBox60->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, groupBox60->sizePolicy().hasHeightForWidth() ) );
    groupBox60->setMinimumSize( TQSize( 0, 130 ) );
    groupBox60->setColumnLayout(0, TQt::Vertical );
    groupBox60->layout()->setSpacing( 6 );
    groupBox60->layout()->setMargin( 11 );
    groupBox60Layout = new TQGridLayout( groupBox60->layout() );
    groupBox60Layout->setAlignment( TQt::AlignTop );

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

    commandEdit = new TQLineEdit( groupBox60, "commandEdit" );
    commandEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, commandEdit->sizePolicy().hasHeightForWidth() ) );
    layout29->addWidget( commandEdit );

    addButton = new TQPushButton( groupBox60, "addButton" );
    layout29->addWidget( addButton );

    groupBox60Layout->addLayout( layout29, 1, 0 );

    commandList = new TDEListView( groupBox60, "commandList" );
    commandList->addColumn( tr2i18n( "Command" ) );
    commandList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)2, 0, 0, commandList->sizePolicy().hasHeightForWidth() ) );
    commandList->setAllColumnsShowFocus( true );
    commandList->setDefaultRenameAction( TDEListView::Accept );
    commandList->setFullWidth( true );
    commandList->setItemsRenameable( true );

    groupBox60Layout->addWidget( commandList, 0, 0 );
    tabLayout_2->addWidget( groupBox60 );
    tabWidget2->insertTab( tab_2, TQString::fromLatin1("") );
    IRCEditAccountBaseLayout->addWidget( tabWidget2 );
    languageChange();
    resize( TQSize(689, 528).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( tabWidget2, mNickName );
    setTabOrder( mNickName, mAltNickname );
    setTabOrder( mAltNickname, mUserName );
    setTabOrder( mUserName, m_realNameLineEdit );
    setTabOrder( m_realNameLineEdit, network );
    setTabOrder( network, editButton );
    setTabOrder( editButton, preferSSL );
    setTabOrder( preferSSL, autoConnect );
    setTabOrder( autoConnect, charset );
    setTabOrder( charset, partMessage );
    setTabOrder( partMessage, quitMessage );
    setTabOrder( quitMessage, serverMessages );
    setTabOrder( serverMessages, serverNotices );
    setTabOrder( serverNotices, informationReplies );
    setTabOrder( informationReplies, errorMessages );
    setTabOrder( errorMessages, autoShowServerWindow );
    setTabOrder( autoShowServerWindow, autoShowAnonWindows );
    setTabOrder( autoShowAnonWindows, ctcpList );
    setTabOrder( ctcpList, newCTCP );
    setTabOrder( newCTCP, newReply );
    setTabOrder( newReply, addReply );
    setTabOrder( addReply, commandList );
    setTabOrder( commandList, commandEdit );
    setTabOrder( commandEdit, addButton );

    // buddies
    textLabel4->setBuddy( mNickName );
    textLabel1_2->setBuddy( mAltNickname );
    m_realNameLabel->setBuddy( m_realNameLineEdit );
    textLabel5->setBuddy( mUserName );
    textLabel1_3->setBuddy( network );
    textLabel1_2_2->setBuddy( charset );
    textLabel1->setBuddy( partMessage );
    textLabel2->setBuddy( quitMessage );
    textLabel3_2->setBuddy( newCTCP );
    textLabel4_2->setBuddy( newReply );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void IRCEditAccountBase::languageChange()
{
    textLabel3->setText( tr2i18n( "<p><b>Note:</b> Most IRC servers do not require a password, and only a nickname is required to connect</p>" ) );
    groupBox59->setTitle( tr2i18n( "Account Information" ) );
    textLabel4->setText( tr2i18n( "N&ickname:" ) );
    TQWhatsThis::add( textLabel4, tr2i18n( "This is the name that everyone will see everytime you say something" ) );
    textLabel1_2->setText( tr2i18n( "Alternate ni&ckname:" ) );
    TQWhatsThis::add( textLabel1_2, tr2i18n( "When the nickname is already in use when connecting, this name will be used instead" ) );
    TQToolTip::add( mNickName, tr2i18n( "This is the name that everyone will see everytime you say something" ) );
    TQWhatsThis::add( mNickName, tr2i18n( "The alias you would like to use on IRC.  You may change this once online with the /nick command." ) );
    TQToolTip::add( mAltNickname, tr2i18n( "When the nickname is already in use when connecting, this name will be used instead" ) );
    TQWhatsThis::add( mAltNickname, tr2i18n( "When the nickname is already in use when connecting, this name will be used instead" ) );
    m_realNameLabel->setText( tr2i18n( "&Real name:" ) );
    textLabel5->setText( tr2i18n( "&Username:" ) );
    TQWhatsThis::add( textLabel5, tr2i18n( "The username you would prefer to use on IRC, if your system does not have identd support.  Leave blank to use your system account name." ) );
    TQToolTip::add( mUserName, tr2i18n( "The username you would prefer to use on IRC, if your system does not have identd support.  Leave blank to use your system account name." ) );
    TQWhatsThis::add( mUserName, tr2i18n( "The username you would prefer to use on IRC, if your system does not have identd support.  Leave blank to use your system account name." ) );
    TQToolTip::add( m_realNameLineEdit, tr2i18n( "The username you would prefer to use on IRC, if your system does not have identd support." ) );
    TQWhatsThis::add( m_realNameLineEdit, tr2i18n( "The username you would prefer to use on IRC, if your system does not have identd support.  Leave blank to use your system account name." ) );
    tabWidget2->changeTab( tab, tr2i18n( "B&asic Setup" ) );
    description->setText( TQString::null );
    editButton->setText( tr2i18n( "&Edit..." ) );
    textLabel1_3->setText( tr2i18n( "&Network:" ) );
    groupBox1->setTitle( tr2i18n( "Connection Preferences" ) );
    preferSSL->setText( tr2i18n( "&Prefer SSL-based connections" ) );
    autoConnect->setText( tr2i18n( "E&xclude from connect all" ) );
    TQWhatsThis::add( autoConnect, tr2i18n( "If you check that case, the account will not be connected when you press the \"Connect All\" button, or at startup even if you selected to automatically connect at startup" ) );
    textLabel1_2_2->setText( tr2i18n( "Default &charset:" ) );
    groupBox5->setTitle( tr2i18n( "Default Messages" ) );
    textLabel1->setText( tr2i18n( "&Part message:" ) );
    textLabel2->setText( tr2i18n( "&Quit message:" ) );
    TQToolTip::add( partMessage, tr2i18n( "The message you want people to see when you part a channel without giving a reason. Leave this field blank to use the Kopete default message." ) );
    TQWhatsThis::add( partMessage, tr2i18n( "The message you want people to see when you part a channel without giving a reason. Leave this field blank to use the Kopete default message." ) );
    TQToolTip::add( quitMessage, tr2i18n( "The message you want people to see when you disconnect from IRC without giving a reason. Leave this field blank to use the Kopete default message." ) );
    TQWhatsThis::add( quitMessage, tr2i18n( "The message you want people to see when you disconnect from IRC without giving a reason. Leave this field blank to use the Kopete default message." ) );
    tabWidget2->changeTab( TabPage, tr2i18n( "Connection" ) );
    groupBox7->setTitle( tr2i18n( "Message Destinations" ) );
    autoShowAnonWindows->setText( tr2i18n( "Auto-show anonymous windows" ) );
    autoShowServerWindow->setText( tr2i18n( "Auto-show the server window" ) );
    textLabel1_4->setText( tr2i18n( "Server messages:" ) );
    textLabel4_3->setText( tr2i18n( "Server notices:" ) );
    serverNotices->clear();
    serverNotices->insertItem( tr2i18n( "Active Window" ) );
    serverNotices->insertItem( tr2i18n( "Server Window" ) );
    serverNotices->insertItem( tr2i18n( "Anonymous Window" ) );
    serverNotices->insertItem( tr2i18n( "KNotify" ) );
    serverNotices->insertItem( tr2i18n( "Ignore" ) );
    serverNotices->setCurrentItem( 1 );
    serverMessages->clear();
    serverMessages->insertItem( tr2i18n( "Active Window" ) );
    serverMessages->insertItem( tr2i18n( "Server Window" ) );
    serverMessages->insertItem( tr2i18n( "Anonymous Window" ) );
    serverMessages->insertItem( tr2i18n( "KNotify" ) );
    serverMessages->insertItem( tr2i18n( "Ignore" ) );
    serverMessages->setCurrentItem( 1 );
    textLabel3_3->setText( tr2i18n( "Error messages:" ) );
    informationReplies->clear();
    informationReplies->insertItem( tr2i18n( "Active Window" ) );
    informationReplies->insertItem( tr2i18n( "Server Window" ) );
    informationReplies->insertItem( tr2i18n( "Anonymous Window" ) );
    informationReplies->insertItem( tr2i18n( "KNotify" ) );
    informationReplies->insertItem( tr2i18n( "Ignore" ) );
    textLabel2_2->setText( tr2i18n( "Information replies:" ) );
    errorMessages->clear();
    errorMessages->insertItem( tr2i18n( "Active Window" ) );
    errorMessages->insertItem( tr2i18n( "Server Window" ) );
    errorMessages->insertItem( tr2i18n( "Anonymous Window" ) );
    errorMessages->insertItem( tr2i18n( "KNotify" ) );
    errorMessages->insertItem( tr2i18n( "Ignore" ) );
    groupBox6->setTitle( tr2i18n( "Custom CTCP Replies" ) );
    ctcpList->header()->setLabel( 0, tr2i18n( "CTCP" ) );
    ctcpList->header()->setLabel( 1, tr2i18n( "Reply" ) );
    TQWhatsThis::add( ctcpList, tr2i18n( "You can use this dialog to add custom replies for when people send CTCP requests to you. You can also use this dialog to override the built-in replies for VERSION, USERINFO, and CLIENTINFO." ) );
    textLabel3_2->setText( tr2i18n( "&CTCP:" ) );
    textLabel4_2->setText( tr2i18n( "&Reply:" ) );
    addReply->setText( tr2i18n( "Add Repl&y" ) );
    groupBox60->setTitle( tr2i18n( "Run Following Commands on Connect" ) );
    addButton->setText( tr2i18n( "Add Co&mmand" ) );
    commandList->header()->setLabel( 0, tr2i18n( "Command" ) );
    TQToolTip::add( commandList, tr2i18n( "Any commands added here will be run as soon as you are connected to the IRC server." ) );
    TQWhatsThis::add( commandList, tr2i18n( "Any commands added here will be run as soon as you are connected to the IRC server." ) );
    tabWidget2->changeTab( tab_2, tr2i18n( "A&dvanced Configuration" ) );
}

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

TQMetaObject *IRCEditAccountBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_IRCEditAccountBase( "IRCEditAccountBase", &IRCEditAccountBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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