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

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

#include "windowdef_list_widget_ui.h"

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

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

    comment_label = new TQLabel( this, "comment_label" );
    Windowdef_list_widget_uiLayout->addWidget( comment_label );

    comment_lineedit = new TQLineEdit( this, "comment_lineedit" );
    Windowdef_list_widget_uiLayout->addWidget( comment_lineedit );

    layout3 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "layout3"); 

    windows_listview = new KHotKeys::KHListView( this, "windows_listview" );
    layout3->addWidget( windows_listview );

    Layout3 = new TQVBoxLayout( 0, 0, 6, "Layout3"); 

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

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

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

    delete_button = new TQPushButton( this, "delete_button" );
    Layout3->addWidget( delete_button );
    layout3->addLayout( Layout3 );
    Windowdef_list_widget_uiLayout->addLayout( layout3 );
    languageChange();
    resize( TQSize(572, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( copy_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( copy_pressed() ) );
    connect( modify_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( modify_pressed() ) );
    connect( delete_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( delete_pressed() ) );
    connect( windows_listview, TQ_SIGNAL( current_changed(TQListViewItem*) ), this, TQ_SLOT( current_changed(TQListViewItem*) ) );

    // buddies
    comment_label->setBuddy( comment_lineedit );
}

/*
 *  Destroys the object and frees any allocated resources
 */
KHotKeys::Windowdef_list_widget_ui::~Windowdef_list_widget_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::Windowdef_list_widget_ui::languageChange()
{
    comment_label->setText( tr2i18n( "Comment:" ) );
    new_button->setText( tr2i18n( "&New" ) );
    modify_button->setText( tr2i18n( "&Modify..." ) );
    copy_button->setText( tr2i18n( "&Copy" ) );
    delete_button->setText( tr2i18n( "Delete" ) );
}

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

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

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KHotKeys::Windowdef_list_widget_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 = {"copy_pressed", 0, 0 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"current_changed", 1, param_slot_2 };
    static const TQUMethod slot_3 = {"delete_pressed", 0, 0 };
    static const TQUMethod slot_4 = {"modify_pressed", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected },
	{ "copy_pressed()", &slot_1, TQMetaData::Protected },
	{ "current_changed(TQListViewItem*)", &slot_2, TQMetaData::Protected },
	{ "delete_pressed()", &slot_3, TQMetaData::Protected },
	{ "modify_pressed()", &slot_4, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KHotKeys::Windowdef_list_widget_ui", parentObject,
	slot_tbl, 5,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KHotKeys__Windowdef_list_widget_ui.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KHotKeys::Windowdef_list_widget_ui::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    case 1: copy_pressed(); break;
    case 2: current_changed((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 3: delete_pressed(); break;
    case 4: modify_pressed(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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