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

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

#include "page_servchanbase.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlistbox.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    GroupBox33 = new TQGroupBox( this, "GroupBox33" );
    GroupBox33->setColumnLayout(0, TQt::Vertical );
    GroupBox33->layout()->setSpacing( 6 );
    GroupBox33->layout()->setMargin( 11 );
    GroupBox33Layout = new TQHBoxLayout( GroupBox33->layout() );
    GroupBox33Layout->setAlignment( TQt::AlignTop );

    serverLB = new TQListBox( GroupBox33, "serverLB" );
    GroupBox33Layout->addWidget( serverLB );

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

    serverDeleteItemPB = new TQPushButton( GroupBox33, "serverDeleteItemPB" );
    Layout15->addWidget( serverDeleteItemPB );
    Spacer2 = new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout15->addItem( Spacer2 );

    ServerAddItemPB = new TQPushButton( GroupBox33, "ServerAddItemPB" );
    Layout15->addWidget( ServerAddItemPB );

    LineEdit6 = new TQLineEdit( GroupBox33, "LineEdit6" );
    Layout15->addWidget( LineEdit6 );
    GroupBox33Layout->addLayout( Layout15 );
    PageServChanBaseLayout->addWidget( GroupBox33 );

    GroupBox34 = new TQGroupBox( this, "GroupBox34" );
    GroupBox34->setColumnLayout(0, TQt::Vertical );
    GroupBox34->layout()->setSpacing( 6 );
    GroupBox34->layout()->setMargin( 11 );
    GroupBox34Layout = new TQHBoxLayout( GroupBox34->layout() );
    GroupBox34Layout->setAlignment( TQt::AlignTop );

    channelLB = new TQListBox( GroupBox34, "channelLB" );
    GroupBox34Layout->addWidget( channelLB );

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

    chanDeleteItmPB = new TQPushButton( GroupBox34, "chanDeleteItmPB" );
    Layout15_2->addWidget( chanDeleteItmPB );
    Spacer2_2 = new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout15_2->addItem( Spacer2_2 );

    ChanAddItemPB = new TQPushButton( GroupBox34, "ChanAddItemPB" );
    Layout15_2->addWidget( ChanAddItemPB );

    LineEdit6_2 = new TQLineEdit( GroupBox34, "LineEdit6_2" );
    Layout15_2->addWidget( LineEdit6_2 );
    GroupBox34Layout->addLayout( Layout15_2 );
    PageServChanBaseLayout->addWidget( GroupBox34 );
    languageChange();
    resize( TQSize(382, 465).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PageServChanBase::languageChange()
{
    setCaption( tr2i18n( "Server/Channels" ) );
    GroupBox33->setTitle( tr2i18n( "Server" ) );
    serverDeleteItemPB->setText( tr2i18n( "De&lete Server From List" ) );
    ServerAddItemPB->setText( tr2i18n( "Add &Server to List" ) );
    GroupBox34->setTitle( tr2i18n( "Channels" ) );
    chanDeleteItmPB->setText( tr2i18n( "D&elete Channel From List" ) );
    ChanAddItemPB->setText( tr2i18n( "Add Cha&nnel to List" ) );
}

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

TQMetaObject *PageServChanBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PageServChanBase( "PageServChanBase", &PageServChanBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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