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

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

#include "thumbnailpickerui.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <kprogress.h>
#include <tdelistbox.h>
#include <kurlrequester.h>
#include <klineedit.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

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

    SearchLabel = new TQLabel( this, "SearchLabel" );
    layout8->addWidget( SearchLabel );
    spacer6 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout8->addItem( spacer6 );

    SearchProgress = new KProgress( this, "SearchProgress" );
    SearchProgress->setCenterIndicator( true );
    SearchProgress->setPercentageVisible( false );
    layout8->addWidget( SearchProgress );
    layout9->addLayout( layout8 );

    ImageList = new TDEListBox( this, "ImageList" );
    ImageList->setMinimumSize( TQSize( 300, 0 ) );
    layout9->addWidget( ImageList );

    textLabel3 = new TQLabel( this, "textLabel3" );
    layout9->addWidget( textLabel3 );

    ImageURLBox = new KURLRequester( this, "ImageURLBox" );
    ImageURLBox->setMode( 1 );
    layout9->addWidget( ImageURLBox );
    ThumbnailPickerUILayout->addLayout( layout9 );

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

    layout9_2 = new TQHBoxLayout( 0, 0, 6, "layout9_2"); 
    spacer5 = new TQSpacerItem( 53, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout9_2->addItem( spacer5 );

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

    textLabel1 = new TQLabel( this, "textLabel1" );
    layout8_2->addWidget( textLabel1 );

    CurrentImage = new TQLabel( this, "CurrentImage" );
    CurrentImage->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, CurrentImage->sizePolicy().hasHeightForWidth() ) );
    CurrentImage->setMinimumSize( TQSize( 200, 200 ) );
    CurrentImage->setMaximumSize( TQSize( 200, 200 ) );
    CurrentImage->setFrameShape( TQLabel::Box );
    CurrentImage->setScaledContents( true );
    layout8_2->addWidget( CurrentImage );
    layout9_2->addLayout( layout8_2 );
    spacer4 = new TQSpacerItem( 53, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout9_2->addItem( spacer4 );
    layout10->addLayout( layout9_2 );

    layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); 
    spacer1 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3->addItem( spacer1 );

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

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

    UnsetButton = new KPushButton( this, "UnsetButton" );
    layout2->addWidget( UnsetButton );
    layout3->addLayout( layout2 );
    spacer2 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3->addItem( spacer2 );
    layout10->addLayout( layout3 );
    spacer3 = new TQSpacerItem( 20, 233, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout10->addItem( spacer3 );
    ThumbnailPickerUILayout->addLayout( layout10 );
    languageChange();
    resize( TQSize(593, 374).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ThumbnailPickerUI::languageChange()
{
    setCaption( tr2i18n( "Thumbnail Picker" ) );
    SearchLabel->setText( tr2i18n( "Search results:" ) );
    textLabel3->setText( tr2i18n( "Specify image location:" ) );
    ImageURLBox->setFilter( tr2i18n( "image/png image/jpeg image/gif image/tiff" ) );
    textLabel1->setText( tr2i18n( "Current thumbnail:" ) );
    EditButton->setText( tr2i18n( "Edit Ima&ge..." ) );
    UnsetButton->setText( tr2i18n( "Unset Image" ) );
}

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

TQMetaObject *ThumbnailPickerUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ThumbnailPickerUI( "ThumbnailPickerUI", &ThumbnailPickerUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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