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

/****************************************************************************
** Form implementation generated from reading ui file 'dcop_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 "dcop_widget_ui.h"

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

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

    remote_app_label = new TQLabel( this, "remote_app_label" );
    Dcop_widget_uiLayout->addWidget( remote_app_label );

    remote_app_lineedit = new TQLineEdit( this, "remote_app_lineedit" );
    Dcop_widget_uiLayout->addWidget( remote_app_lineedit );
    Spacer1 = new TQSpacerItem( 0, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Dcop_widget_uiLayout->addItem( Spacer1 );

    remote_object_label = new TQLabel( this, "remote_object_label" );
    Dcop_widget_uiLayout->addWidget( remote_object_label );

    remote_object_lineedit = new TQLineEdit( this, "remote_object_lineedit" );
    Dcop_widget_uiLayout->addWidget( remote_object_lineedit );
    Spacer2 = new TQSpacerItem( 0, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Dcop_widget_uiLayout->addItem( Spacer2 );

    called_function_label = new TQLabel( this, "called_function_label" );
    Dcop_widget_uiLayout->addWidget( called_function_label );

    called_function_lineedit = new TQLineEdit( this, "called_function_lineedit" );
    Dcop_widget_uiLayout->addWidget( called_function_lineedit );
    Spacer3 = new TQSpacerItem( 0, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Dcop_widget_uiLayout->addItem( Spacer3 );

    arguments_label = new TQLabel( this, "arguments_label" );
    Dcop_widget_uiLayout->addWidget( arguments_label );

    arguments_lineedit = new TQLineEdit( this, "arguments_lineedit" );
    Dcop_widget_uiLayout->addWidget( arguments_lineedit );
    Spacer4 = new TQSpacerItem( 0, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Dcop_widget_uiLayout->addItem( Spacer4 );

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

    try_button = new TQPushButton( this, "try_button" );
    Layout2->addWidget( try_button );
    Spacer5 = new TQSpacerItem( 20, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout2->addItem( Spacer5 );

    PushButton1 = new TQPushButton( this, "PushButton1" );
    Layout2->addWidget( PushButton1 );
    Spacer6 = new TQSpacerItem( 20, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout2->addItem( Spacer6 );
    Dcop_widget_uiLayout->addLayout( Layout2 );
    languageChange();
    resize( TQSize(576, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( try_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( try_pressed() ) );
    connect( PushButton1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( run_kdcop_pressed() ) );

    // tab order
    setTabOrder( remote_app_lineedit, remote_object_lineedit );
    setTabOrder( remote_object_lineedit, called_function_lineedit );
    setTabOrder( called_function_lineedit, arguments_lineedit );
    setTabOrder( arguments_lineedit, try_button );
    setTabOrder( try_button, PushButton1 );

    // buddies
    remote_app_label->setBuddy( remote_app_lineedit );
    remote_object_label->setBuddy( remote_object_lineedit );
    called_function_label->setBuddy( called_function_lineedit );
    arguments_label->setBuddy( arguments_lineedit );
}

/*
 *  Destroys the object and frees any allocated resources
 */
KHotKeys::Dcop_widget_ui::~Dcop_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::Dcop_widget_ui::languageChange()
{
    remote_app_label->setText( tr2i18n( "Remote &application:" ) );
    remote_object_label->setText( tr2i18n( "Remote &object:" ) );
    called_function_label->setText( tr2i18n( "Called &function:" ) );
    arguments_label->setText( tr2i18n( "Arguments:" ) );
    try_button->setText( tr2i18n( "&Try" ) );
    PushButton1->setText( tr2i18n( "Run &KDCOP" ) );
}

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

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

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

#endif // TQT_NO_TRANSLATION

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

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

bool KHotKeys::Dcop_widget_ui::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    case 1: run_kdcop_pressed(); break;
    case 2: try_pressed(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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