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

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

#include "autocompletionlayout.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqspinbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a AutoCompletionLayout 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.
 */
AutoCompletionLayout::AutoCompletionLayout( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "AutoCompletionLayout" );
    AutoCompletionLayoutLayout = new TQVBoxLayout( this, 11, 6, "AutoCompletionLayoutLayout"); 

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

    textLabel1 = new TQLabel( this, "textLabel1" );
    layout20->addWidget( textLabel1 );
    spacer15 = new TQSpacerItem( 71, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout20->addItem( spacer15 );

    m_pMinCharsSpin = new TQSpinBox( this, "m_pMinCharsSpin" );
    layout20->addWidget( m_pMinCharsSpin );
    AutoCompletionLayoutLayout->addLayout( layout20 );

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

    textLabel2 = new TQLabel( this, "textLabel2" );
    layout21->addWidget( textLabel2 );
    spacer16 = new TQSpacerItem( 101, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout21->addItem( spacer16 );

    m_pDelaySpin = new TQSpinBox( this, "m_pDelaySpin" );
    m_pDelaySpin->setMaxValue( 10000 );
    m_pDelaySpin->setLineStep( 100 );
    layout21->addWidget( m_pDelaySpin );
    AutoCompletionLayoutLayout->addLayout( layout21 );

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

    textLabel3 = new TQLabel( this, "textLabel3" );
    layout22->addWidget( textLabel3 );
    spacer17 = new TQSpacerItem( 81, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout22->addItem( spacer17 );

    m_pMaxEntriesSpin = new TQSpinBox( this, "m_pMaxEntriesSpin" );
    m_pMaxEntriesSpin->setMaxValue( 1000 );
    m_pMaxEntriesSpin->setMinValue( 1 );
    layout22->addWidget( m_pMaxEntriesSpin );
    AutoCompletionLayoutLayout->addLayout( layout22 );
    spacer19 = new TQSpacerItem( 20, 31, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    AutoCompletionLayoutLayout->addItem( spacer19 );

    layout23 = new TQHBoxLayout( 0, 0, 6, "layout23"); 
    spacer18 = new TQSpacerItem( 111, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout23->addItem( spacer18 );

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

    m_pCancelButton = new TQPushButton( this, "m_pCancelButton" );
    layout23->addWidget( m_pCancelButton );
    AutoCompletionLayoutLayout->addLayout( layout23 );
    languageChange();
    resize( TQSize(287, 183).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AutoCompletionLayout::languageChange()
{
    setCaption( tr2i18n( "Auto-Completion Properties" ) );
    textLabel1->setText( tr2i18n( "Minimum Characters" ) );
    textLabel2->setText( tr2i18n( "Delay (ms)" ) );
    textLabel3->setText( tr2i18n( "Maximum Entries" ) );
    m_pOKButton->setText( tr2i18n( "OK" ) );
    m_pCancelButton->setText( tr2i18n( "Cancel" ) );
}

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

TQMetaObject *AutoCompletionLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_AutoCompletionLayout( "AutoCompletionLayout", &AutoCompletionLayout::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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