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

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

#include "dcctransferdetailedinfopanelui.h"

#include <ntqvariant.h>
#include <kprogress.h>
#include <ksqueezedtextlabel.h>
#include <kurlrequester.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a DccTransferDetailedInfoPanelUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
DccTransferDetailedInfoPanelUI::DccTransferDetailedInfoPanelUI( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "DccTransferDetailedInfoPanelUI" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
    DccTransferDetailedInfoPanelUILayout = new TQVBoxLayout( this, 11, 6, "DccTransferDetailedInfoPanelUILayout"); 

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

    m_labelFilename = new KSqueezedTextLabel( this, "m_labelFilename" );

    layout7->addWidget( m_labelFilename, 1, 1 );

    m_labelDccType = new TQLabel( this, "m_labelDccType" );

    layout7->addWidget( m_labelDccType, 0, 1 );

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

    layout7->addWidget( textLabel4, 1, 0 );

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

    layout7->addWidget( textLabel1_3, 3, 0 );

    textLabel12 = new TQLabel( this, "textLabel12" );

    layout7->addWidget( textLabel12, 0, 0 );

    textLabel10 = new TQLabel( this, "textLabel10" );

    layout7->addWidget( textLabel10, 4, 0 );

    textLabel3 = new TQLabel( this, "textLabel3" );

    layout7->addWidget( textLabel3, 6, 0 );

    textLabel18 = new TQLabel( this, "textLabel18" );

    layout7->addWidget( textLabel18, 5, 0 );

    m_labelStatus = new TQLabel( this, "m_labelStatus" );

    layout7->addWidget( m_labelStatus, 4, 1 );

    m_labelPartner = new TQLabel( this, "m_labelPartner" );

    layout7->addWidget( m_labelPartner, 2, 1 );

    m_progress = new KProgress( this, "m_progress" );

    layout7->addWidget( m_progress, 5, 1 );

    textLabel23 = new TQLabel( this, "textLabel23" );

    layout7->addWidget( textLabel23, 2, 0 );

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

    m_urlreqLocation = new KURLRequester( this, "m_urlreqLocation" );
    layout6->addWidget( m_urlreqLocation );

    m_buttonOpenFolder = new TQPushButton( this, "m_buttonOpenFolder" );
    layout6->addWidget( m_buttonOpenFolder );

    layout7->addLayout( layout6, 6, 1 );

    m_labelSelf = new TQLabel( this, "m_labelSelf" );

    layout7->addWidget( m_labelSelf, 3, 1 );
    DccTransferDetailedInfoPanelUILayout->addLayout( layout7 );

    line1 = new TQFrame( this, "line1" );
    line1->setFrameShape( TQFrame::HLine );
    line1->setFrameShadow( TQFrame::Sunken );
    line1->setFrameShape( TQFrame::HLine );
    DccTransferDetailedInfoPanelUILayout->addWidget( line1 );

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

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

    m_labelCurrentSpeed = new TQLabel( this, "m_labelCurrentSpeed" );
    m_labelCurrentSpeed->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_labelCurrentSpeed->sizePolicy().hasHeightForWidth() ) );
    m_labelCurrentSpeed->setMinimumSize( TQSize( 130, 0 ) );
    m_labelCurrentSpeed->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout24->addWidget( m_labelCurrentSpeed, 3, 1 );

    textLabel21 = new TQLabel( this, "textLabel21" );

    layout24->addWidget( textLabel21, 1, 0 );

    m_labelIsResumed = new TQLabel( this, "m_labelIsResumed" );
    m_labelIsResumed->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_labelIsResumed->sizePolicy().hasHeightForWidth() ) );
    m_labelIsResumed->setMinimumSize( TQSize( 130, 0 ) );
    m_labelIsResumed->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout24->addWidget( m_labelIsResumed, 2, 1 );

    m_labelFileSize = new TQLabel( this, "m_labelFileSize" );
    m_labelFileSize->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_labelFileSize->sizePolicy().hasHeightForWidth() ) );
    m_labelFileSize->setMinimumSize( TQSize( 130, 0 ) );
    m_labelFileSize->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout24->addWidget( m_labelFileSize, 1, 1 );

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

    layout24->addWidget( textLabel1, 4, 0 );

    textLabel14 = new TQLabel( this, "textLabel14" );

    layout24->addWidget( textLabel14, 2, 0 );

    m_labelCurrentPosition = new TQLabel( this, "m_labelCurrentPosition" );
    m_labelCurrentPosition->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_labelCurrentPosition->sizePolicy().hasHeightForWidth() ) );
    m_labelCurrentPosition->setMinimumSize( TQSize( 130, 0 ) );
    m_labelCurrentPosition->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout24->addWidget( m_labelCurrentPosition, 0, 1 );

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

    layout24->addWidget( textLabel1_2, 3, 0 );

    textLabel19 = new TQLabel( this, "textLabel19" );

    layout24->addWidget( textLabel19, 0, 0 );

    m_labelAverageSpeed = new TQLabel( this, "m_labelAverageSpeed" );
    m_labelAverageSpeed->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_labelAverageSpeed->sizePolicy().hasHeightForWidth() ) );
    m_labelAverageSpeed->setMinimumSize( TQSize( 130, 0 ) );
    m_labelAverageSpeed->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout24->addWidget( m_labelAverageSpeed, 4, 1 );
    layout26->addLayout( layout24 );

    line3 = new TQFrame( this, "line3" );
    line3->setFrameShape( TQFrame::VLine );
    line3->setFrameShadow( TQFrame::Sunken );
    line3->setFrameShape( TQFrame::VLine );
    layout26->addWidget( line3 );

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

    textLabel8 = new TQLabel( this, "textLabel8" );

    layout25->addWidget( textLabel8, 1, 0 );

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

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

    m_labelTimeFinished = new TQLabel( this, "m_labelTimeFinished" );
    m_labelTimeFinished->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout25->addWidget( m_labelTimeFinished, 4, 1 );

    m_labelTransferringTime = new TQLabel( this, "m_labelTransferringTime" );
    m_labelTransferringTime->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_labelTransferringTime->sizePolicy().hasHeightForWidth() ) );
    m_labelTransferringTime->setMinimumSize( TQSize( 130, 0 ) );
    m_labelTransferringTime->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout25->addWidget( m_labelTransferringTime, 0, 1 );

    textLabel7 = new TQLabel( this, "textLabel7" );

    layout25->addWidget( textLabel7, 4, 0 );

    textLabel6_2 = new TQLabel( this, "textLabel6_2" );

    layout25->addWidget( textLabel6_2, 3, 0 );

    m_labelTimeLeft = new TQLabel( this, "m_labelTimeLeft" );
    m_labelTimeLeft->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_labelTimeLeft->sizePolicy().hasHeightForWidth() ) );
    m_labelTimeLeft->setMinimumSize( TQSize( 130, 0 ) );
    m_labelTimeLeft->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout25->addWidget( m_labelTimeLeft, 1, 1 );

    m_labelTimeOffered = new TQLabel( this, "m_labelTimeOffered" );
    m_labelTimeOffered->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout25->addWidget( m_labelTimeOffered, 2, 1 );

    textLabel6 = new TQLabel( this, "textLabel6" );

    layout25->addWidget( textLabel6, 0, 0 );

    m_labelTimeStarted = new TQLabel( this, "m_labelTimeStarted" );
    m_labelTimeStarted->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout25->addWidget( m_labelTimeStarted, 3, 1 );
    layout26->addLayout( layout25 );
    spacer2 = new TQSpacerItem( 110, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout26->addItem( spacer2 );
    DccTransferDetailedInfoPanelUILayout->addLayout( layout26 );
    languageChange();
    resize( TQSize(646, 289).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DccTransferDetailedInfoPanelUI::languageChange()
{
    textLabel4->setText( tr2i18n( "Filename:" ) );
    textLabel1_3->setText( tr2i18n( "Self:" ) );
    textLabel12->setText( tr2i18n( "Type:" ) );
    textLabel10->setText( tr2i18n( "Status:" ) );
    textLabel3->setText( tr2i18n( "Location:" ) );
    textLabel18->setText( tr2i18n( "Progress:" ) );
    textLabel23->setText( tr2i18n( "Partner:" ) );
    m_buttonOpenFolder->setText( tr2i18n( "Open Folder" ) );
    textLabel21->setText( tr2i18n( "File Size:" ) );
    textLabel1->setText( tr2i18n( "Average Speed:" ) );
    textLabel14->setText( tr2i18n( "Resumed:" ) );
    textLabel1_2->setText( tr2i18n( "Current Speed:" ) );
    textLabel19->setText( tr2i18n( "Current Position:" ) );
    textLabel8->setText( tr2i18n( "Estimated Time Left:" ) );
    textLabel5->setText( tr2i18n( "Offered at:" ) );
    textLabel7->setText( tr2i18n( "Finished at:" ) );
    textLabel6_2->setText( tr2i18n( "Started at:" ) );
    textLabel6->setText( tr2i18n( "Transferring Time:" ) );
}

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

TQMetaObject *DccTransferDetailedInfoPanelUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_DccTransferDetailedInfoPanelUI( "DccTransferDetailedInfoPanelUI", &DccTransferDetailedInfoPanelUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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