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

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

#include "pwidget.h"

#include <ntqvariant.h>
#include <kurlrequester.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqbuttongroup.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    GroupBox1 = new TQGroupBox( this, "GroupBox1" );
    GroupBox1->setColumnLayout(0, TQt::Vertical );
    GroupBox1->layout()->setSpacing( 6 );
    GroupBox1->layout()->setMargin( 11 );
    GroupBox1Layout = new TQVBoxLayout( GroupBox1->layout() );
    GroupBox1Layout->setAlignment( TQt::AlignTop );

    urlInput = new KURLRequester( GroupBox1, "urlInput" );
    GroupBox1Layout->addWidget( urlInput );
    TMXPWidgetLayout->addWidget( GroupBox1 );

    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 );

    Layout4 = new TQGridLayout( 0, 1, 1, 0, 6, "Layout4"); 

    wholeBtn = new TQCheckBox( ButtonGroup1, "wholeBtn" );

    Layout4->addWidget( wholeBtn, 0, 1 );

    caseBtn = new TQCheckBox( ButtonGroup1, "caseBtn" );

    Layout4->addWidget( caseBtn, 0, 0 );
    ButtonGroup1Layout->addLayout( Layout4 );

    TextLabel3 = new TQLabel( ButtonGroup1, "TextLabel3" );
    ButtonGroup1Layout->addWidget( TextLabel3 );

    Layout3 = new TQGridLayout( 0, 1, 1, 0, 6, "Layout3"); 

    equalBtn = new TQCheckBox( ButtonGroup1, "equalBtn" );

    Layout3->addWidget( equalBtn, 0, 0 );

    hasWordBtn = new TQCheckBox( ButtonGroup1, "hasWordBtn" );

    Layout3->addWidget( hasWordBtn, 2, 1 );

    isContainedBtn = new TQCheckBox( ButtonGroup1, "isContainedBtn" );

    Layout3->addWidget( isContainedBtn, 1, 1 );

    ngramBtn = new TQCheckBox( ButtonGroup1, "ngramBtn" );

    Layout3->addWidget( ngramBtn, 1, 0 );

    containsBtn = new TQCheckBox( ButtonGroup1, "containsBtn" );

    Layout3->addWidget( containsBtn, 0, 1 );
    ButtonGroup1Layout->addLayout( Layout3 );
    TMXPWidgetLayout->addWidget( ButtonGroup1 );
    Spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TMXPWidgetLayout->addItem( Spacer1 );
    languageChange();
    resize( TQSize(452, 291).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void TmxCompendiumPWidget::languageChange()
{
    GroupBox1->setTitle( tr2i18n( "&Path to Compendium File" ) );
    ButtonGroup1->setTitle( tr2i18n( "Options" ) );
    wholeBtn->setText( tr2i18n( "Onl&y whole words" ) );
    caseBtn->setText( tr2i18n( "Case sensiti&ve" ) );
    TextLabel3->setText( tr2i18n( "A text matches if:" ) );
    equalBtn->setText( tr2i18n( "E&qual to searched text" ) );
    hasWordBtn->setText( tr2i18n( "Contains a &word of searched text" ) );
    isContainedBtn->setText( tr2i18n( "Co&ntained in searched text" ) );
    ngramBtn->setText( tr2i18n( "&Similar to searched text" ) );
    containsBtn->setText( tr2i18n( "Contains searched te&xt" ) );
}

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

TQMetaObject *TmxCompendiumPWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TmxCompendiumPWidget( "TmxCompendiumPWidget", &TmxCompendiumPWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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