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

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

#include "gesture_triggers_tab_ui.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <gesturedrawer.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    TextLabel1 = new TQLabel( this, "TextLabel1" );
    TextLabel1->setFrameShape( TQLabel::NoFrame );
    TextLabel1->setFrameShadow( TQLabel::Plain );
    Gesture_triggers_tab_uiLayout->addWidget( TextLabel1 );
    Spacer29 = new TQSpacerItem( 0, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Gesture_triggers_tab_uiLayout->addItem( Spacer29 );

    Layout5 = new TQHBoxLayout( 0, 0, 6, "Layout5"); 
    Spacer17 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout5->addItem( Spacer17 );

    gesture_lineedit1 = new TQLineEdit( this, "gesture_lineedit1" );
    gesture_lineedit1->setReadOnly( true );
    Layout5->addWidget( gesture_lineedit1 );
    Spacer18 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout5->addItem( Spacer18 );

    gesture_drawer1 = new KHotKeys::GestureDrawer( this, "gesture_drawer1" );
    gesture_drawer1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, gesture_drawer1->sizePolicy().hasHeightForWidth() ) );
    gesture_drawer1->setMinimumSize( TQSize( 100, 100 ) );
    Layout5->addWidget( gesture_drawer1 );
    Spacer19 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout5->addItem( Spacer19 );

    gesture_edit_button1 = new TQPushButton( this, "gesture_edit_button1" );
    Layout5->addWidget( gesture_edit_button1 );
    Spacer20 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout5->addItem( Spacer20 );
    Gesture_triggers_tab_uiLayout->addLayout( Layout5 );
    Spacer30 = new TQSpacerItem( 0, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Gesture_triggers_tab_uiLayout->addItem( Spacer30 );

    Layout6 = new TQHBoxLayout( 0, 0, 6, "Layout6"); 
    Spacer21 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout6->addItem( Spacer21 );

    gesture_lineedit2 = new TQLineEdit( this, "gesture_lineedit2" );
    gesture_lineedit2->setReadOnly( true );
    Layout6->addWidget( gesture_lineedit2 );
    Spacer22 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout6->addItem( Spacer22 );

    gesture_drawer2 = new KHotKeys::GestureDrawer( this, "gesture_drawer2" );
    gesture_drawer2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, gesture_drawer2->sizePolicy().hasHeightForWidth() ) );
    gesture_drawer2->setMinimumSize( TQSize( 100, 100 ) );
    Layout6->addWidget( gesture_drawer2 );
    Spacer23 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout6->addItem( Spacer23 );

    gesture_edit_button2 = new TQPushButton( this, "gesture_edit_button2" );
    Layout6->addWidget( gesture_edit_button2 );
    Spacer24 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout6->addItem( Spacer24 );
    Gesture_triggers_tab_uiLayout->addLayout( Layout6 );
    Spacer31 = new TQSpacerItem( 0, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Gesture_triggers_tab_uiLayout->addItem( Spacer31 );

    Layout7 = new TQHBoxLayout( 0, 0, 6, "Layout7"); 
    Spacer25 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout7->addItem( Spacer25 );

    gesture_lineedit3 = new TQLineEdit( this, "gesture_lineedit3" );
    gesture_lineedit3->setReadOnly( true );
    Layout7->addWidget( gesture_lineedit3 );
    Spacer26 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout7->addItem( Spacer26 );

    gesture_drawer3 = new KHotKeys::GestureDrawer( this, "gesture_drawer3" );
    gesture_drawer3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, gesture_drawer3->sizePolicy().hasHeightForWidth() ) );
    gesture_drawer3->setMinimumSize( TQSize( 100, 100 ) );
    Layout7->addWidget( gesture_drawer3 );
    Spacer27 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout7->addItem( Spacer27 );

    gesture_edit_button3 = new TQPushButton( this, "gesture_edit_button3" );
    Layout7->addWidget( gesture_edit_button3 );
    Spacer28 = new TQSpacerItem( 30, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout7->addItem( Spacer28 );
    Gesture_triggers_tab_uiLayout->addLayout( Layout7 );
    Spacer32 = new TQSpacerItem( 0, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Gesture_triggers_tab_uiLayout->addItem( Spacer32 );
    languageChange();
    resize( TQSize(600, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( gesture_edit_button1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( edit_gesture_pressed1() ) );
    connect( gesture_edit_button2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( edit_gesture_pressed2() ) );
    connect( gesture_edit_button3, TQ_SIGNAL( clicked() ), this, TQ_SLOT( edit_gesture_pressed3() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KHotKeys::Gesture_triggers_tab_ui::languageChange()
{
    TextLabel1->setText( tr2i18n( "Gestures:" ) );
    gesture_edit_button1->setText( tr2i18n( "Edit..." ) );
    gesture_edit_button2->setText( tr2i18n( "Edit..." ) );
    gesture_edit_button3->setText( tr2i18n( "Edit..." ) );
}

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

TQMetaObject *KHotKeys::Gesture_triggers_tab_ui::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KHotKeys__Gesture_triggers_tab_ui( "KHotKeys::Gesture_triggers_tab_ui", &KHotKeys::Gesture_triggers_tab_ui::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KHotKeys::Gesture_triggers_tab_ui::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 TQUMethod slot_1 = {"edit_gesture_pressed1", 0, 0 };
    static const TQUMethod slot_2 = {"edit_gesture_pressed2", 0, 0 };
    static const TQUMethod slot_3 = {"edit_gesture_pressed3", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected },
	{ "edit_gesture_pressed1()", &slot_1, TQMetaData::Protected },
	{ "edit_gesture_pressed2()", &slot_2, TQMetaData::Protected },
	{ "edit_gesture_pressed3()", &slot_3, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KHotKeys::Gesture_triggers_tab_ui", parentObject,
	slot_tbl, 4,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KHotKeys__Gesture_triggers_tab_ui.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KHotKeys::Gesture_triggers_tab_ui::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    case 1: edit_gesture_pressed1(); break;
    case 2: edit_gesture_pressed2(); break;
    case 3: edit_gesture_pressed3(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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