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

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

#include "partexplorerformbase.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <kcombobox.h>
#include <ntqlabel.h>
#include <ntqtextedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    textLabel1 = new TQLabel( this, "textLabel1" );
    textLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
    PartExplorerFormBaseLayout->addWidget( textLabel1 );

    typeCombo = new KComboBox( false, this, "typeCombo" );
    typeCombo->setEditable( true );
    typeCombo->setAutoCompletion( false );
    PartExplorerFormBaseLayout->addWidget( typeCombo );

    textLabel1_2 = new TQLabel( this, "textLabel1_2" );
    textLabel1_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
    PartExplorerFormBaseLayout->addWidget( textLabel1_2 );

    constraintsText = new TQTextEdit( this, "constraintsText" );
    constraintsText->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, constraintsText->sizePolicy().hasHeightForWidth() ) );
    PartExplorerFormBaseLayout->addWidget( constraintsText );

    resultsLabel = new TQLabel( this, "resultsLabel" );
    resultsLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, resultsLabel->sizePolicy().hasHeightForWidth() ) );
    PartExplorerFormBaseLayout->addWidget( resultsLabel );
    languageChange();
    resize( TQSize(335, 241).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order

    // buddies
    textLabel1->setBuddy( typeCombo );
    textLabel1_2->setBuddy( constraintsText );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PartExplorerFormBase::languageChange()
{
    setCaption( tr2i18n( "PartExplorer" ) );
    TQToolTip::add( this, tr2i18n( "This is a front-end to TDE's TDETrader: search your TDE documentation for more information about TDE services and TDETrader" ) );
    textLabel1->setText( tr2i18n( "TDE service &type:" ) );
    TQToolTip::add( textLabel1, TQString::null );
    textLabel1_2->setText( tr2i18n( "&Additional constraints:" ) );
    TQToolTip::add( textLabel1_2, TQString::null );
    TQToolTip::add( constraintsText, TQString::null );
    TQWhatsThis::add( constraintsText, tr2i18n( "<b>Constraints</b>Refine your query by writing additional constraints such as <i>([X-TDevelop-Scope]='Global')</i>)." ) );
    resultsLabel->setText( tr2i18n( "&Results" ) );
}

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

TQMetaObject *PartExplorerFormBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PartExplorerFormBase( "PartExplorerFormBase", &PartExplorerFormBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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