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

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

#include "cwsearchwidget_base.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <kcombobox.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

static const char* const image0_data[] = { 
"16 16 69 2",
"Qt c None",
".i c #000000",
"#a c #00c0c0",
".7 c #00ffff",
".q c #010101",
".e c #020202",
"## c #070707",
".Q c #090909",
".H c #0b0b0b",
".b c #0e0e0e",
".y c #101010",
".# c #272727",
".3 c #3eaab3",
".a c #3f3f3f",
".d c #3f3f40",
".c c #404041",
".X c #43b2bc",
".W c #53c9d4",
".N c #60c1cd",
".2 c #68c6d1",
".w c #6dc4cc",
".1 c #6fc4ce",
"#b c #707071",
".E c #71c6ce",
".0 c #76cbd5",
".M c #76d7e3",
".V c #78d8e3",
".F c #79cad4",
".5 c #7ac4cb",
".Y c #7cc9cd",
".j c #7f8281",
".p c #808382",
".O c #85ccd2",
".6 c #89c8d0",
".U c #8adbe5",
".T c #8bd7e0",
".D c #8fdfe8",
".4 c #90d5db",
".v c #90d9df",
".L c #95e1ea",
".R c #a8d1d5",
".n c #a8dee5",
"#. c #add6da",
".S c #addde2",
".o c #ade4e8",
".Z c #aed6db",
".C c #afe9f0",
".K c #b0eaef",
".z c #b6d9dd",
".8 c #b9dade",
".G c #b9dbe0",
".x c #baecef",
".u c #beedf1",
".h c #c1d4d6",
"#c c #c3c3c3",
".J c #c3eaec",
".m c #c5e9ee",
".9 c #caeaed",
".P c #cdecf0",
".f c #ced8d9",
".B c #d0f1f5",
".A c #d5f2f4",
".I c #d7e5e6",
".g c #d7e5e8",
".l c #dcf2f3",
".t c #def5f7",
".k c #e3f3f4",
".r c #e3f4f3",
".s c #eafbfa",
"QtQtQtQt.#.a.bQtQtQtQtQtQtQt.cQt",
"QtQt.d.e.f.g.h.i.dQtQtQtQtQtQtQt",
"Qt.d.j.k.l.m.n.o.j.dQtQtQt.p.pQt",
"Qt.q.r.s.t.u.v.w.x.iQtQt.p.c.c.c",
".y.z.A.t.B.C.D.E.F.G.HQt.p.c.c.#",
".#.I.J.u.K.L.M.N.O.P.QQtQt.#.#Qt",
".H.R.S.T.U.V.W.X.Y.Z.iQtQtQtQtQt",
"Qt.i.u.0.1.2.X.3.u.iQtQtQtQtQtQt",
"Qt.d.j.u.4.5.6.u.j.i.7QtQtQtQtQt",
"QtQt.d.i.8.9#..i.d.7.i.iQtQtQtQt",
"QtQtQtQt.q##.qQt#a.i#b#c.iQtQtQt",
"QtQt.cQtQtQtQtQtQt.i.c#b#c.iQtQt",
"QtQtQtQt.cQtQtQtQtQt.i.c#b#c.iQt",
"Qt.p.pQtQtQtQtQtQtQtQt.i.c#b#c.i",
".p.c.c.cQt.cQtQtQtQtQtQt.i.c#b.i",
".p.c.c.#QtQtQtQtQtQtQtQtQt.i.iQt"};


/*
 *  Constructs a CWSearchWidget_Base as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
CWSearchWidget_Base::CWSearchWidget_Base( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl ),
      image0( (const char **) image0_data )
{
    if ( !name )
	setName( "CWSearchWidget_Base" );
    CWSearchWidget_BaseLayout = new TQVBoxLayout( this, 0, 6, "CWSearchWidget_BaseLayout"); 

    m_searchLabel = new TQLabel( this, "m_searchLabel" );
    CWSearchWidget_BaseLayout->addWidget( m_searchLabel );

    TextLabel2 = new TQLabel( this, "TextLabel2" );
    CWSearchWidget_BaseLayout->addWidget( TextLabel2 );

    m_searchPackages = new KComboBox( false, this, "m_searchPackages" );
    m_searchPackages->setFocusPolicy( KComboBox::StrongFocus );
    m_searchPackages->setEditable( true );
    m_searchPackages->setInsertionPolicy( KComboBox::NoInsertion );
    CWSearchWidget_BaseLayout->addWidget( m_searchPackages );

    TextLabel9 = new TQLabel( this, "TextLabel9" );
    CWSearchWidget_BaseLayout->addWidget( TextLabel9 );

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

    m_searchBugNumber = new TQLineEdit( this, "m_searchBugNumber" );
    m_searchBugNumber->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_searchBugNumber->sizePolicy().hasHeightForWidth() ) );
    Layout17->addWidget( m_searchBugNumber );

    m_searchBugNumberBtn = new TQPushButton( this, "m_searchBugNumberBtn" );
    m_searchBugNumberBtn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_searchBugNumberBtn->sizePolicy().hasHeightForWidth() ) );
    m_searchBugNumberBtn->setPixmap( image0 );
    Layout17->addWidget( m_searchBugNumberBtn );
    CWSearchWidget_BaseLayout->addLayout( Layout17 );

    TextLabel7 = new TQLabel( this, "TextLabel7" );
    CWSearchWidget_BaseLayout->addWidget( TextLabel7 );

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

    m_searchDesc = new TQLineEdit( this, "m_searchDesc" );
    m_searchDesc->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_searchDesc->sizePolicy().hasHeightForWidth() ) );
    Layout15->addWidget( m_searchDesc );

    m_searchDescBtn = new TQPushButton( this, "m_searchDescBtn" );
    m_searchDescBtn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_searchDescBtn->sizePolicy().hasHeightForWidth() ) );
    m_searchDescBtn->setPixmap( image0 );
    Layout15->addWidget( m_searchDescBtn );
    CWSearchWidget_BaseLayout->addLayout( Layout15 );
    Spacer1 = new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    CWSearchWidget_BaseLayout->addItem( Spacer1 );
    languageChange();
    resize( TQSize(165, 266).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    TextLabel2->setBuddy( m_searchPackages );
    TextLabel9->setBuddy( m_searchBugNumber );
    TextLabel7->setBuddy( m_searchDesc );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void CWSearchWidget_Base::languageChange()
{
    m_searchLabel->setText( tr2i18n( "Search" ) );
    TextLabel2->setText( tr2i18n( "&Package:" ) );
    TextLabel9->setText( tr2i18n( "Bug &number:" ) );
    m_searchBugNumberBtn->setText( TQString::null );
    TextLabel7->setText( tr2i18n( "&Description:" ) );
    m_searchDescBtn->setText( TQString::null );
}

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

TQMetaObject *CWSearchWidget_Base::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_CWSearchWidget_Base( "CWSearchWidget_Base", &CWSearchWidget_Base::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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