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

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

#include "kxechoosestringdialogbase.h"

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

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

    m_pComboBox = new TQComboBox( false, this, "m_pComboBox" );

    KXEChooseStringDialogBaseLayout->addMultiCellWidget( m_pComboBox, 1, 1, 0, 1 );

    Layout3 = new TQHBoxLayout( 0, 0, 6, "Layout3"); 
    Spacer4 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout3->addItem( Spacer4 );

    m_pPushButtonOk = new TQPushButton( this, "m_pPushButtonOk" );
    Layout3->addWidget( m_pPushButtonOk );

    m_pPushButtonCancel = new TQPushButton( this, "m_pPushButtonCancel" );
    Layout3->addWidget( m_pPushButtonCancel );

    KXEChooseStringDialogBaseLayout->addMultiCellLayout( Layout3, 2, 2, 0, 1 );

    m_pTextLabel = new TQLabel( this, "m_pTextLabel" );

    KXEChooseStringDialogBaseLayout->addWidget( m_pTextLabel, 0, 0 );
    Spacer1 = new TQSpacerItem( 117, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    KXEChooseStringDialogBaseLayout->addItem( Spacer1, 0, 1 );
    languageChange();
    resize( TQSize(228, 137).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_pPushButtonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( m_pPushButtonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotOk() ) );

    // buddies
    m_pTextLabel->setBuddy( m_pComboBox );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KXEChooseStringDialogBase::languageChange()
{
    setCaption( tr2i18n( "Choose string" ) );
    TQWhatsThis::add( m_pComboBox, tr2i18n( "<b>Enter string<b/>\n"
"<br/>\n"
"Enter or choose string, that you want." ) );
    m_pPushButtonOk->setText( tr2i18n( "&OK" ) );
    m_pPushButtonCancel->setText( tr2i18n( "&Cancel" ) );
    m_pTextLabel->setText( tr2i18n( "&Enter string:" ) );
    TQWhatsThis::add( m_pTextLabel, tr2i18n( "<b>Enter string<b/>\n"
"<br/>\n"
"Enter or choose string, that you want." ) );
}

void KXEChooseStringDialogBase::slotOk()
{
    tqWarning( "KXEChooseStringDialogBase::slotOk(): Not implemented yet" );
}

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

TQMetaObject *KXEChooseStringDialogBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KXEChooseStringDialogBase( "KXEChooseStringDialogBase", &KXEChooseStringDialogBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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