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

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

#include "dccManagerbase.h"

#include <ntqvariant.h>
#include <kcombobox.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <tdelistview.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a dccManagerbase which is a child of 'parent', with the
 *  name 'name'.' 
 */
dccManagerbase::dccManagerbase( TQWidget* parent,  const char* name )
    : TQFrame( parent, name )
{
    if ( !name )
	setName( "dccManagerbase" );
    setFrameShape( TQFrame::NoFrame );
    setFrameShadow( TQFrame::Plain );
    dccManagerbaseLayout = new TQVBoxLayout( this, 11, 6, "dccManagerbaseLayout"); 

    klvBox = new TDEListView( this, "klvBox" );
    klvBox->addColumn( tr2i18n( "Who" ) );
    klvBox->addColumn( tr2i18n( "File" ) );
    klvBox->addColumn( tr2i18n( "Status" ) );
    klvBox->addColumn( tr2i18n( "Size" ) );
    klvBox->addColumn( tr2i18n( "KB/s" ) );
    klvBox->addColumn( tr2i18n( "Progress" ) );
    klvBox->setResizeMode( TDEListView::AllColumns );
    dccManagerbaseLayout->addWidget( klvBox );

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

    kpbNew = new KPushButton( this, "kpbNew" );
    layout2->addWidget( kpbNew );

    kpbConnect = new KPushButton( this, "kpbConnect" );
    layout2->addWidget( kpbConnect );

    kpbResume = new KPushButton( this, "kpbResume" );
    layout2->addWidget( kpbResume );

    kpbRename = new KPushButton( this, "kpbRename" );
    layout2->addWidget( kpbRename );

    kpbAbort = new KPushButton( this, "kpbAbort" );
    layout2->addWidget( kpbAbort );
    dccManagerbaseLayout->addLayout( layout2 );
    languageChange();
    resize( TQSize(717, 318).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( kpbRename, TQ_SIGNAL( clicked() ), this, TQ_SLOT( kpbRename_clicked() ) );
    connect( kpbConnect, TQ_SIGNAL( clicked() ), this, TQ_SLOT( kpbConnect_clicked() ) );
    connect( kpbResume, TQ_SIGNAL( clicked() ), this, TQ_SLOT( kpbResume_clicked() ) );
    connect( kpbAbort, TQ_SIGNAL( clicked() ), this, TQ_SLOT( kpbAbort_clicked() ) );
    connect( kpbNew, TQ_SIGNAL( clicked() ), this, TQ_SLOT( kpbNew_clicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void dccManagerbase::languageChange()
{
    setCaption( tr2i18n( "DCC Manager" ) );
    klvBox->header()->setLabel( 0, tr2i18n( "Who" ) );
    klvBox->header()->setLabel( 1, tr2i18n( "File" ) );
    klvBox->header()->setLabel( 2, tr2i18n( "Status" ) );
    klvBox->header()->setLabel( 3, tr2i18n( "Size" ) );
    klvBox->header()->setLabel( 4, tr2i18n( "KB/s" ) );
    klvBox->header()->setLabel( 5, tr2i18n( "Progress" ) );
    kpbNew->setText( tr2i18n( "&New..." ) );
    kpbConnect->setText( tr2i18n( "&Connect" ) );
    kpbResume->setText( tr2i18n( "R&esume" ) );
    kpbRename->setText( tr2i18n( "&Rename" ) );
    kpbAbort->setText( tr2i18n( "&Disconnect" ) );
}

void dccManagerbase::kpbResume_clicked()
{
    tqWarning( "dccManagerbase::kpbResume_clicked(): Not implemented yet" );
}

void dccManagerbase::kpbConnect_clicked()
{
    tqWarning( "dccManagerbase::kpbConnect_clicked(): Not implemented yet" );
}

void dccManagerbase::kpbRename_clicked()
{
    tqWarning( "dccManagerbase::kpbRename_clicked(): Not implemented yet" );
}

void dccManagerbase::kpbAbort_clicked()
{
    tqWarning( "dccManagerbase::kpbAbort_clicked(): Not implemented yet" );
}

void dccManagerbase::kpbNew_clicked()
{
    tqWarning( "dccManagerbase::kpbNew_clicked(): Not implemented yet" );
}

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

TQMetaObject *dccManagerbase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_dccManagerbase( "dccManagerbase", &dccManagerbase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* dccManagerbase::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 = TQFrame::staticMetaObject();
    static const TQUMethod slot_0 = {"kpbResume_clicked", 0, 0 };
    static const TQUMethod slot_1 = {"kpbConnect_clicked", 0, 0 };
    static const TQUMethod slot_2 = {"kpbRename_clicked", 0, 0 };
    static const TQUMethod slot_3 = {"kpbAbort_clicked", 0, 0 };
    static const TQUMethod slot_4 = {"kpbNew_clicked", 0, 0 };
    static const TQUMethod slot_5 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "kpbResume_clicked()", &slot_0, TQMetaData::Public },
	{ "kpbConnect_clicked()", &slot_1, TQMetaData::Public },
	{ "kpbRename_clicked()", &slot_2, TQMetaData::Public },
	{ "kpbAbort_clicked()", &slot_3, TQMetaData::Public },
	{ "kpbNew_clicked()", &slot_4, TQMetaData::Public },
	{ "languageChange()", &slot_5, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"dccManagerbase", parentObject,
	slot_tbl, 6,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_dccManagerbase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool dccManagerbase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: kpbResume_clicked(); break;
    case 1: kpbConnect_clicked(); break;
    case 2: kpbRename_clicked(); break;
    case 3: kpbAbort_clicked(); break;
    case 4: kpbNew_clicked(); break;
    case 5: languageChange(); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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