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

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

#include "searchresultslayout.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqcombobox.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a SearchResultsLayout as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
SearchResultsLayout::SearchResultsLayout( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "SearchResultsLayout" );
    SearchResultsLayoutLayout = new TQVBoxLayout( this, 11, 6, "SearchResultsLayoutLayout"); 

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

    textLabel2 = new TQLabel( this, "textLabel2" );
    layout2->addWidget( textLabel2 );

    m_pSearchEdit = new TQLineEdit( this, "m_pSearchEdit" );
    layout2->addWidget( m_pSearchEdit );
    SearchResultsLayoutLayout->addLayout( layout2 );

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

    textLabel1 = new TQLabel( this, "textLabel1" );
    layout4->addWidget( textLabel1 );
    spacer2 = new TQSpacerItem( 171, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout4->addItem( spacer2 );

    m_pColumnCB = new TQComboBox( false, this, "m_pColumnCB" );
    layout4->addWidget( m_pColumnCB );
    SearchResultsLayoutLayout->addLayout( layout4 );

    buttonGroup1 = new TQButtonGroup( this, "buttonGroup1" );
    buttonGroup1->setColumnLayout(0, TQt::Vertical );
    buttonGroup1->layout()->setSpacing( 6 );
    buttonGroup1->layout()->setMargin( 11 );
    buttonGroup1Layout = new TQVBoxLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( TQt::AlignTop );

    m_pTextRadio = new TQRadioButton( buttonGroup1, "m_pTextRadio" );
    buttonGroup1Layout->addWidget( m_pTextRadio );

    m_pRegExpRadio = new TQRadioButton( buttonGroup1, "m_pRegExpRadio" );
    buttonGroup1Layout->addWidget( m_pRegExpRadio );

    m_pSimpRegExpRadio = new TQRadioButton( buttonGroup1, "m_pSimpRegExpRadio" );
    buttonGroup1Layout->addWidget( m_pSimpRegExpRadio );
    SearchResultsLayoutLayout->addWidget( buttonGroup1 );

    m_pCaseSenCheck = new TQCheckBox( this, "m_pCaseSenCheck" );
    SearchResultsLayoutLayout->addWidget( m_pCaseSenCheck );

    m_pNegateCheck = new TQCheckBox( this, "m_pNegateCheck" );
    SearchResultsLayoutLayout->addWidget( m_pNegateCheck );

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

    m_pOKButton = new TQPushButton( this, "m_pOKButton" );
    layout3->addWidget( m_pOKButton );

    m_pCancelButton = new TQPushButton( this, "m_pCancelButton" );
    layout3->addWidget( m_pCancelButton );
    SearchResultsLayoutLayout->addLayout( layout3 );
    languageChange();
    resize( TQSize(361, 307).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( m_pSearchEdit, m_pColumnCB );
    setTabOrder( m_pColumnCB, m_pTextRadio );
    setTabOrder( m_pTextRadio, m_pRegExpRadio );
    setTabOrder( m_pRegExpRadio, m_pSimpRegExpRadio );
    setTabOrder( m_pSimpRegExpRadio, m_pCaseSenCheck );
    setTabOrder( m_pCaseSenCheck, m_pOKButton );
    setTabOrder( m_pOKButton, m_pCancelButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SearchResultsLayout::languageChange()
{
    setCaption( tr2i18n( "Filter Query Results" ) );
    textLabel2->setText( tr2i18n( "Search For:" ) );
    textLabel1->setText( tr2i18n( "Search In:" ) );
    m_pColumnCB->clear();
    m_pColumnCB->insertItem( tr2i18n( "Function" ) );
    m_pColumnCB->insertItem( tr2i18n( "File" ) );
    m_pColumnCB->insertItem( tr2i18n( "Line" ) );
    m_pColumnCB->insertItem( tr2i18n( "Text" ) );
    buttonGroup1->setTitle( tr2i18n( "Search Type" ) );
    m_pTextRadio->setText( tr2i18n( "Plain Text" ) );
    m_pRegExpRadio->setText( tr2i18n( "RegE&xp" ) );
    m_pSimpRegExpRadio->setText( tr2i18n( "Simplified RegExp" ) );
    m_pCaseSenCheck->setText( tr2i18n( "Case Sensitive" ) );
    m_pNegateCheck->setText( tr2i18n( "Negate Search" ) );
    m_pOKButton->setText( tr2i18n( "OK" ) );
    m_pCancelButton->setText( tr2i18n( "Cancel" ) );
}

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

TQMetaObject *SearchResultsLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_SearchResultsLayout( "SearchResultsLayout", &SearchResultsLayout::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* SearchResultsLayout::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"SearchResultsLayout", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_SearchResultsLayout.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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