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

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

#include "kntsrcfilepropsdlgwidget.h"

#include <ntqvariant.h>
#include <ntqlabel.h>
#include <kurllabel.h>
#include <ntqmultilineedit.h>
#include <kseparator.h>
#include <tdelistbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

static const unsigned char image0_data[] = { 
    0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
    0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
    0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff, 0x61, 0x00, 0x00, 0x02,
    0x1c, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0x85, 0x92, 0x31, 0x68, 0x13,
    0x51, 0x1c, 0xc6, 0x7f, 0x91, 0x0c, 0x17, 0x70, 0xb8, 0x40, 0x87, 0x04,
    0x74, 0x28, 0x38, 0x24, 0x82, 0x60, 0xc6, 0x3a, 0xd9, 0x43, 0x97, 0x40,
    0x41, 0x53, 0x3a, 0x84, 0xd0, 0xa1, 0x44, 0x0a, 0x9a, 0xd6, 0x41, 0x8a,
    0x83, 0xdc, 0x22, 0xa8, 0x53, 0xb6, 0x26, 0x93, 0xc4, 0x0c, 0x25, 0xe9,
    0x50, 0x3c, 0x07, 0xe9, 0x39, 0x08, 0xed, 0x60, 0x1b, 0x3b, 0x35, 0x4b,
    0xe9, 0x09, 0x16, 0xae, 0x43, 0xe1, 0x0e, 0x2c, 0x5c, 0x06, 0xe1, 0xfe,
    0xd0, 0x07, 0x71, 0x48, 0x73, 0xb5, 0x6d, 0xaa, 0xdf, 0xf2, 0x8e, 0xf7,
    0xee, 0xfb, 0xf1, 0x7d, 0xff, 0xf7, 0x62, 0xdb, 0x9d, 0x6d, 0xfe, 0x56,
    0x7d, 0xb9, 0xde, 0xe7, 0x3f, 0xaa, 0x2c, 0x56, 0x62, 0xc3, 0xef, 0xf8,
    0xc5, 0xc3, 0xdc, 0xdd, 0x1c, 0xa5, 0x62, 0x09, 0x51, 0x82, 0x16, 0xd7,
    0xa2, 0xd5, 0xd9, 0xdb, 0xa5, 0xb1, 0xd2, 0xc6, 0xb8, 0x6f, 0x50, 0x5f,
    0xae, 0xf7, 0x87, 0x90, 0x73, 0x00, 0xf3, 0x93, 0xd9, 0x1f, 0x9f, 0x4a,
    0x62, 0x1e, 0x7c, 0x8f, 0xcc, 0xee, 0x57, 0x61, 0xe3, 0xdd, 0x3a, 0xfa,
    0x75, 0x03, 0xfb, 0xcb, 0x26, 0xe5, 0xf9, 0x72, 0x94, 0xb4, 0xb2, 0x58,
    0x89, 0xc5, 0x2f, 0x9a, 0xad, 0x97, 0x16, 0xe9, 0x6c, 0x16, 0x14, 0x78,
    0x3f, 0x5d, 0x8c, 0x17, 0x13, 0x18, 0xaf, 0x0c, 0x36, 0x5e, 0x6f, 0x40,
    0x1c, 0x76, 0xbb, 0xbb, 0x11, 0x64, 0xe1, 0xd9, 0x42, 0x3f, 0x02, 0x0c,
    0xcc, 0x36, 0xb9, 0x3b, 0x93, 0x98, 0x33, 0x26, 0xfa, 0x98, 0x8e, 0x73,
    0xe4, 0x62, 0xab, 0x0f, 0xb8, 0x47, 0x1d, 0xdc, 0x43, 0x97, 0x54, 0x2a,
    0x45, 0x7b, 0xa5, 0x4d, 0xa3, 0xd9, 0xe0, 0xd0, 0x39, 0x3c, 0x3f, 0x03,
    0xe7, 0x9b, 0x87, 0x3e, 0x9e, 0x22, 0x7f, 0x2b, 0x4f, 0x36, 0x93, 0x25,
    0x7d, 0x33, 0x8d, 0x9b, 0xe9, 0xe2, 0xad, 0xb9, 0xc8, 0x2f, 0x8d, 0xfd,
    0x83, 0x7d, 0x96, 0x16, 0x97, 0xf0, 0x8e, 0x5d, 0xdc, 0x1f, 0xfb, 0x74,
    0x6e, 0x74, 0x69, 0xaf, 0x5a, 0x5c, 0x1b, 0x02, 0xaa, 0x93, 0xd5, 0x58,
    0x32, 0x23, 0xf8, 0xbe, 0x0f, 0x0a, 0xd6, 0x4f, 0x5a, 0xd8, 0x3b, 0x36,
    0xc4, 0x35, 0x50, 0x90, 0x20, 0x01, 0x71, 0x48, 0xeb, 0x29, 0xb2, 0x99,
    0xdb, 0xdc, 0xcb, 0xe5, 0x00, 0xce, 0x00, 0x00, 0xb5, 0x87, 0x1f, 0x63,
    0x9e, 0xef, 0xd1, 0x49, 0xd9, 0x58, 0x5b, 0x16, 0xae, 0xe7, 0xe2, 0x34,
    0x3d, 0x6a, 0x73, 0x35, 0x8c, 0x07, 0x13, 0xa0, 0x42, 0x42, 0xd5, 0x43,
    0xd3, 0x34, 0xe4, 0xb7, 0x7f, 0x19, 0x30, 0x94, 0xbd, 0x63, 0x9f, 0x99,
    0xe7, 0x6b, 0x4c, 0xcf, 0xe4, 0x69, 0x35, 0xeb, 0x84, 0xaa, 0x87, 0xbd,
    0xd6, 0x42, 0x24, 0x40, 0x3b, 0x2d, 0x3f, 0x12, 0x30, 0x34, 0x57, 0xe7,
    0xaa, 0x4c, 0x3f, 0xca, 0x83, 0x02, 0x94, 0x90, 0x38, 0xbd, 0xda, 0xe4,
    0x58, 0x1a, 0x11, 0xb9, 0x1a, 0xc0, 0x96, 0x4e, 0x32, 0x07, 0x7a, 0x62,
    0xd0, 0x3f, 0x94, 0x1e, 0xa5, 0x62, 0x19, 0x14, 0x14, 0xa6, 0x0a, 0xa0,
    0x40, 0x3b, 0xfd, 0xf5, 0xd2, 0x4b, 0x04, 0x68, 0x3d, 0xad, 0x22, 0xaa,
    0x07, 0x0c, 0xcc, 0xd6, 0x6a, 0x83, 0xc2, 0xe3, 0x02, 0x28, 0x41, 0x94,
    0x20, 0xbe, 0x8f, 0x9c, 0x04, 0x57, 0x27, 0x30, 0x8f, 0xdf, 0x52, 0x7e,
    0xff, 0x86, 0x50, 0x69, 0x24, 0x14, 0x94, 0x66, 0x2b, 0x58, 0x9f, 0x6d,
    0x44, 0x04, 0x4d, 0x01, 0x12, 0x46, 0x09, 0x46, 0xcf, 0x60, 0x2d, 0xa0,
    0xdb, 0xdd, 0xc4, 0xf7, 0x5d, 0x42, 0x15, 0x10, 0xf6, 0x5c, 0x0a, 0xc5,
    0x32, 0x20, 0x88, 0x04, 0x51, 0x92, 0x2b, 0x2b, 0x54, 0x8b, 0x26, 0xcc,
    0x9a, 0x88, 0x04, 0x38, 0x7b, 0xce, 0xa0, 0x8e, 0xea, 0x82, 0x04, 0x03,
    0x48, 0x28, 0xff, 0x9e, 0xc1, 0x93, 0xe7, 0x4b, 0xa3, 0xb6, 0x47, 0xea,
    0x0f, 0x69, 0x20, 0x0a, 0xf2, 0x23, 0xe8, 0x43, 0x5e, 0x00, 0x00, 0x00,
    0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};


/*
 *  Constructs a KntSrcFilePropsDlgWidget as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KntSrcFilePropsDlgWidget::KntSrcFilePropsDlgWidget( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    TQImage img;
    img.loadFromData( image0_data, sizeof( image0_data ), "PNG" );
    image0 = img;
    if ( !name )
	setName( "KntSrcFilePropsDlgWidget" );
    KntSrcFilePropsDlgWidgetLayout = new TQGridLayout( this, 1, 1, 4, 4, "KntSrcFilePropsDlgWidgetLayout"); 
    Spacer5 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    KntSrcFilePropsDlgWidgetLayout->addItem( Spacer5, 0, 3 );

    pixmapIcon = new TQLabel( this, "pixmapIcon" );
    pixmapIcon->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, pixmapIcon->sizePolicy().hasHeightForWidth() ) );
    pixmapIcon->setPixmap( image0 );

    KntSrcFilePropsDlgWidgetLayout->addWidget( pixmapIcon, 0, 4 );

    urlName = new KURLLabel( this, "urlName" );

    KntSrcFilePropsDlgWidgetLayout->addMultiCellWidget( urlName, 0, 0, 1, 2 );

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

    KntSrcFilePropsDlgWidgetLayout->addMultiCellWidget( lDescription, 1, 1, 0, 1 );

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

    KntSrcFilePropsDlgWidgetLayout->addWidget( lName, 0, 0 );

    mleDescription = new TQMultiLineEdit( this, "mleDescription" );
    mleDescription->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)4, 0, 0, mleDescription->sizePolicy().hasHeightForWidth() ) );
    mleDescription->setWordWrap( TQMultiLineEdit::WidgetWidth );
    mleDescription->setReadOnly( true );

    KntSrcFilePropsDlgWidgetLayout->addMultiCellWidget( mleDescription, 1, 2, 2, 4 );
    Spacer_2 = new TQSpacerItem( 20, 63, TQSizePolicy::Minimum, TQSizePolicy::Maximum );
    KntSrcFilePropsDlgWidgetLayout->addItem( Spacer_2, 2, 0 );

    Line1 = new KSeparator( this, "Line1" );
    Line1->setOrientation( 5 );

    KntSrcFilePropsDlgWidgetLayout->addMultiCellWidget( Line1, 3, 3, 0, 4 );

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

    KntSrcFilePropsDlgWidgetLayout->addMultiCellWidget( lArticles, 4, 4, 0, 4 );

    lbArticles = new TDEListBox( this, "lbArticles" );
    lbArticles->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, lbArticles->sizePolicy().hasHeightForWidth() ) );

    KntSrcFilePropsDlgWidgetLayout->addMultiCellWidget( lbArticles, 5, 5, 0, 4 );
    languageChange();
    resize( TQSize(311, 274).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KntSrcFilePropsDlgWidget::languageChange()
{
    TQToolTip::add( pixmapIcon, tr2i18n( "Icon of this news site" ) );
    TQWhatsThis::add( pixmapIcon, tr2i18n( "Here you can see the icon of this news site." ) );
    urlName->setText( tr2i18n( "heise online news" ) );
    urlName->setProperty( "url", tr2i18n( "http://www.heise.de/newsticker/" ) );
    lDescription->setText( tr2i18n( "Description:" ) );
    TQToolTip::add( lDescription, tr2i18n( "Brief description of the news site" ) );
    TQWhatsThis::add( lDescription, tr2i18n( "Here you can see a brief description about the news site and its contents." ) );
    lName->setText( tr2i18n( "Name:" ) );
    TQToolTip::add( lName, tr2i18n( "Name of the news site" ) );
    TQWhatsThis::add( lName, tr2i18n( "This is the name of the news site." ) );
    TQToolTip::add( mleDescription, tr2i18n( "Brief description of the news site" ) );
    TQWhatsThis::add( mleDescription, tr2i18n( "Here you can see a brief description about the news site and its contents." ) );
    lArticles->setText( tr2i18n( "Available articles:" ) );
    TQToolTip::add( lArticles, tr2i18n( "Articles contained within this source file" ) );
    TQWhatsThis::add( lArticles, tr2i18n( "This list shows the headlines and links to the corresponding complete articles which have been stored in the source file whose properties you are watching." ) );
    TQToolTip::add( lbArticles, tr2i18n( "Articles contained within this source file" ) );
    TQWhatsThis::add( lbArticles, tr2i18n( "This list shows the headlines and links to the corresponding complete articles which have been stored in the source file whose properties you are watching.<p>You can open the corresponding full article for each headline by, depending on the global TDE settings, clicking or double-clicking on a headline" ) );
}

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

TQMetaObject *KntSrcFilePropsDlgWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KntSrcFilePropsDlgWidget( "KntSrcFilePropsDlgWidget", &KntSrcFilePropsDlgWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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