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

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

#include "page_startupbase.h"

#include <ntqvariant.h>
#include <keditlistbox.h>
#include <klineedit.h>
#include <ntqgroupbox.h>
#include <ntqlineedit.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    serverLB = new KEditListBox( this, "serverLB" );
    serverLB->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, serverLB->sizePolicy().hasHeightForWidth() ) );
    PageStartupBaseLayout->addWidget( serverLB );

    nickGB = new TQGroupBox( this, "nickGB" );
    nickGB->setMaximumSize( TQSize( 32767, 32767 ) );
    nickGB->setColumnLayout(0, TQt::Vertical );
    nickGB->layout()->setSpacing( 6 );
    nickGB->layout()->setMargin( 11 );
    nickGBLayout = new TQGridLayout( nickGB->layout() );
    nickGBLayout->setAlignment( TQt::AlignTop );

    nickLE = new TQLineEdit( nickGB, "nickLE" );

    nickGBLayout->addWidget( nickLE, 0, 1 );

    altNickLE = new TQLineEdit( nickGB, "altNickLE" );

    nickGBLayout->addWidget( altNickLE, 1, 1 );

    rnLE = new TQLineEdit( nickGB, "rnLE" );

    nickGBLayout->addWidget( rnLE, 2, 1 );

    nickLabel = new TQLabel( nickGB, "nickLabel" );

    nickGBLayout->addWidget( nickLabel, 0, 0 );

    anLabel = new TQLabel( nickGB, "anLabel" );

    nickGBLayout->addWidget( anLabel, 1, 0 );

    uiLE = new TQLineEdit( nickGB, "uiLE" );

    nickGBLayout->addWidget( uiLE, 3, 1 );

    uiLabel = new TQLabel( nickGB, "uiLabel" );

    nickGBLayout->addWidget( uiLabel, 3, 0 );

    rnLabel = new TQLabel( nickGB, "rnLabel" );

    nickGBLayout->addWidget( rnLabel, 2, 0 );
    PageStartupBaseLayout->addWidget( nickGB );

    notifyLB = new KEditListBox( this, "notifyLB" );
    notifyLB->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, notifyLB->sizePolicy().hasHeightForWidth() ) );
    PageStartupBaseLayout->addWidget( notifyLB );
    languageChange();
    resize( TQSize(420, 578).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( nickLE, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( changed() ) );
    connect( altNickLE, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( changed() ) );
    connect( notifyLB, TQ_SIGNAL( changed() ), this, TQ_SLOT( changed() ) );
    connect( rnLE, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( changed() ) );
    connect( uiLE, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( changed() ) );
    connect( serverLB, TQ_SIGNAL( changed() ), this, TQ_SLOT( server_changed() ) );

    // buddies
    nickLabel->setBuddy( nickLE );
    anLabel->setBuddy( altNickLE );
    uiLabel->setBuddy( rnLE );
    rnLabel->setBuddy( rnLE );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PageStartupBase::languageChange()
{
    setCaption( tr2i18n( "StartUp" ) );
    serverLB->setTitle( tr2i18n( "Server" ) );
    nickGB->setTitle( tr2i18n( "Name Settings" ) );
    nickLabel->setText( tr2i18n( "&Nick name:" ) );
    anLabel->setText( tr2i18n( "A&lternative nick:" ) );
    uiLabel->setText( tr2i18n( "&User ID:" ) );
    rnLabel->setText( tr2i18n( "&Real name:" ) );
    notifyLB->setTitle( tr2i18n( "Notify List" ) );
}

void PageStartupBase::changed()
{
    tqWarning( "PageStartupBase::changed(): Not implemented yet" );
}

void PageStartupBase::server_changed()
{
    tqWarning( "PageStartupBase::server_changed(): Not implemented yet" );
}

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

TQMetaObject *PageStartupBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PageStartupBase( "PageStartupBase", &PageStartupBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* PageStartupBase::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 = {"changed", 0, 0 };
    static const TQUMethod slot_1 = {"server_changed", 0, 0 };
    static const TQUMethod slot_2 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "changed()", &slot_0, TQMetaData::Public },
	{ "server_changed()", &slot_1, TQMetaData::Public },
	{ "languageChange()", &slot_2, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"PageStartupBase", parentObject,
	slot_tbl, 3,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_PageStartupBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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