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

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

#include "eventeditordlgs.h"

#include <ntqvariant.h>
#include <kcombobox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a EventEditorDlgS as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
EventEditorDlgS::EventEditorDlgS( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "EventEditorDlgS" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)3, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( TQSize( 350, 0 ) );
    EventEditorDlgSLayout = new TQGridLayout( this, 1, 1, 11, 6, "EventEditorDlgSLayout"); 

    textLabel2 = new TQLabel( this, "textLabel2" );
    textLabel2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );

    EventEditorDlgSLayout->addWidget( textLabel2, 0, 0 );

    eventCombo = new KComboBox( false, this, "eventCombo" );
    eventCombo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, eventCombo->sizePolicy().hasHeightForWidth() ) );

    EventEditorDlgSLayout->addWidget( eventCombo, 0, 1 );

    textLabel3 = new TQLabel( this, "textLabel3" );
    textLabel3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );

    EventEditorDlgSLayout->addWidget( textLabel3, 1, 0 );

    actionCombo = new KComboBox( false, this, "actionCombo" );
    actionCombo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, actionCombo->sizePolicy().hasHeightForWidth() ) );

    EventEditorDlgSLayout->addWidget( actionCombo, 1, 1 );

    argument1Label = new TQLabel( this, "argument1Label" );
    argument1Label->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, argument1Label->sizePolicy().hasHeightForWidth() ) );

    EventEditorDlgSLayout->addWidget( argument1Label, 2, 0 );

    argument1Combo = new KComboBox( false, this, "argument1Combo" );
    argument1Combo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, argument1Combo->sizePolicy().hasHeightForWidth() ) );
    argument1Combo->setEditable( true );

    EventEditorDlgSLayout->addWidget( argument1Combo, 2, 1 );

    argument2Label = new TQLabel( this, "argument2Label" );
    argument2Label->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, argument2Label->sizePolicy().hasHeightForWidth() ) );

    EventEditorDlgSLayout->addWidget( argument2Label, 3, 0 );

    argument2Combo = new KComboBox( false, this, "argument2Combo" );
    argument2Combo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, argument2Combo->sizePolicy().hasHeightForWidth() ) );
    argument2Combo->setEditable( true );

    EventEditorDlgSLayout->addWidget( argument2Combo, 3, 1 );

    argument3Label = new TQLabel( this, "argument3Label" );
    argument3Label->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, argument3Label->sizePolicy().hasHeightForWidth() ) );

    EventEditorDlgSLayout->addWidget( argument3Label, 4, 0 );

    argument4Label = new TQLabel( this, "argument4Label" );
    argument4Label->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, argument4Label->sizePolicy().hasHeightForWidth() ) );

    EventEditorDlgSLayout->addWidget( argument4Label, 5, 0 );

    argument3Combo = new KComboBox( false, this, "argument3Combo" );
    argument3Combo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, argument3Combo->sizePolicy().hasHeightForWidth() ) );
    argument3Combo->setEditable( true );

    EventEditorDlgSLayout->addWidget( argument3Combo, 4, 1 );

    argument4Combo = new KComboBox( false, this, "argument4Combo" );
    argument4Combo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, argument4Combo->sizePolicy().hasHeightForWidth() ) );
    argument4Combo->setEditable( true );

    EventEditorDlgSLayout->addWidget( argument4Combo, 5, 1 );
    languageChange();
    resize( TQSize(544, 206).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( actionCombo, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( slotActionChanged(const TQString&) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void EventEditorDlgS::languageChange()
{
    setCaption( TQString::null );
    textLabel2->setText( tr2i18n( "Event:" ) );
    textLabel3->setText( tr2i18n( "Action:" ) );
    argument1Label->setText( tr2i18n( "Argument 1:" ) );
    argument2Label->setText( tr2i18n( "Argument 2:" ) );
    argument3Label->setText( tr2i18n( "Argument 3:" ) );
    argument4Label->setText( tr2i18n( "Argument 4:" ) );
}

void EventEditorDlgS::slotActionChanged(const TQString&)
{
    tqWarning( "EventEditorDlgS::slotActionChanged(const TQString&): Not implemented yet" );
}

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

TQMetaObject *EventEditorDlgS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_EventEditorDlgS( "EventEditorDlgS", &EventEditorDlgS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

bool EventEditorDlgS::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotActionChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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