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

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

#include "assoctexteditor.h"

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

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

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

    textLabel1_2 = new TQLabel( this, "textLabel1_2" );
    layout5->addWidget( textLabel1_2 );

    widgetsComboBox = new TQComboBox( false, this, "widgetsComboBox" );
    widgetsComboBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 3, 0, widgetsComboBox->sizePolicy().hasHeightForWidth() ) );
    layout5->addWidget( widgetsComboBox );

    treeWidgetButton = new TQPushButton( this, "treeWidgetButton" );
    layout5->addWidget( treeWidgetButton );

    textLabel1 = new TQLabel( this, "textLabel1" );
    layout5->addWidget( textLabel1 );

    stateComboBox = new TQComboBox( false, this, "stateComboBox" );
    stateComboBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 2, 0, stateComboBox->sizePolicy().hasHeightForWidth() ) );
    layout5->addWidget( stateComboBox );

    AssocTextEditorBaseLayout->addLayout( layout5, 0, 0 );

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQHBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    functionButton = new KPushButton( groupBox1, "functionButton" );
    groupBox1Layout->addWidget( functionButton );
    spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    groupBox1Layout->addItem( spacer3 );

    TextLabel3 = new TQLabel( groupBox1, "TextLabel3" );
    TextLabel3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
    groupBox1Layout->addWidget( TextLabel3 );

    widgetComboBox = new TQComboBox( false, groupBox1, "widgetComboBox" );
    widgetComboBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 3, 0, widgetComboBox->sizePolicy().hasHeightForWidth() ) );
    widgetComboBox->setMinimumSize( TQSize( 150, 0 ) );
    groupBox1Layout->addWidget( widgetComboBox );
    spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    groupBox1Layout->addItem( spacer2 );

    filePushButton = new TQPushButton( groupBox1, "filePushButton" );
    groupBox1Layout->addWidget( filePushButton );

    AssocTextEditorBaseLayout->addWidget( groupBox1, 2, 0 );

    editorFrame = new TQFrame( this, "editorFrame" );
    editorFrame->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)3, 0, 0, editorFrame->sizePolicy().hasHeightForWidth() ) );
    editorFrame->setFrameShape( TQFrame::Box );
    editorFrame->setFrameShadow( TQFrame::Plain );

    AssocTextEditorBaseLayout->addWidget( editorFrame, 1, 0 );
    languageChange();
    resize( TQSize(627, 457).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( this, TQ_SIGNAL( destroyed(TQObject*) ), this, TQ_SLOT( AssocTextEditorBase_destroyed(TQObject*) ) );

    // buddies
    textLabel1_2->setBuddy( widgetsComboBox );
    textLabel1->setBuddy( stateComboBox );
    TextLabel3->setBuddy( widgetComboBox );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AssocTextEditorBase::languageChange()
{
    setCaption( tr2i18n( "Edit Text" ) );
    textLabel1_2->setText( tr2i18n( "&Widget:" ) );
    treeWidgetButton->setText( tr2i18n( "..." ) );
    textLabel1->setText( tr2i18n( "&Text for:" ) );
    groupBox1->setTitle( tr2i18n( "Insert" ) );
    functionButton->setText( tr2i18n( "&Function..." ) );
    TextLabel3->setText( tr2i18n( "Wi&dget:" ) );
    filePushButton->setText( tr2i18n( "Fi&le..." ) );
}

void AssocTextEditorBase::AssocTextEditorBase_destroyed(TQObject*)
{
    tqWarning( "AssocTextEditorBase::AssocTextEditorBase_destroyed(TQObject*): Not implemented yet" );
}

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

TQMetaObject *AssocTextEditorBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_AssocTextEditorBase( "AssocTextEditorBase", &AssocTextEditorBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* AssocTextEditorBase::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 TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_ptr, "TQObject", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"AssocTextEditorBase_destroyed", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "AssocTextEditorBase_destroyed(TQObject*)", &slot_0, TQMetaData::Public },
	{ "languageChange()", &slot_1, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"AssocTextEditorBase", parentObject,
	slot_tbl, 2,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_AssocTextEditorBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool AssocTextEditorBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: AssocTextEditorBase_destroyed((TQObject*)static_QUType_ptr.get(_o+1)); break;
    case 1: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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