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

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

#include "kafkasyncoptionsui.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqbuttongroup.h>
#include <ntqlabel.h>
#include <ntqspinbox.h>
#include <ntqradiobutton.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    views = new TQGroupBox( this, "views" );
    views->setColumnLayout(0, TQt::Vertical );
    views->layout()->setSpacing( 6 );
    views->layout()->setMargin( 11 );
    viewsLayout = new TQGridLayout( views->layout() );
    viewsLayout->setAlignment( TQt::AlignTop );

    kafkaGroup = new TQButtonGroup( views, "kafkaGroup" );
    kafkaGroup->setLineWidth( 0 );
    kafkaGroup->setColumnLayout(0, TQt::Vertical );
    kafkaGroup->layout()->setSpacing( 6 );
    kafkaGroup->layout()->setMargin( 11 );
    kafkaGroupLayout = new TQGridLayout( kafkaGroup->layout() );
    kafkaGroupLayout->setAlignment( TQt::AlignTop );
    spacer5 = new TQSpacerItem( 120, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    kafkaGroupLayout->addItem( spacer5, 1, 1 );

    ms2 = new TQLabel( kafkaGroup, "ms2" );

    kafkaGroupLayout->addWidget( ms2, 1, 3 );

    kafkaDelay = new TQSpinBox( kafkaGroup, "kafkaDelay" );
    kafkaDelay->setMaxValue( 10000 );
    kafkaDelay->setMinValue( 10 );

    kafkaGroupLayout->addWidget( kafkaDelay, 1, 2 );

    kafkaFocusRefresh = new TQRadioButton( kafkaGroup, "kafkaFocusRefresh" );

    kafkaGroupLayout->addMultiCellWidget( kafkaFocusRefresh, 0, 0, 0, 1 );

    kafkaDelayRefresh = new TQRadioButton( kafkaGroup, "kafkaDelayRefresh" );

    kafkaGroupLayout->addWidget( kafkaDelayRefresh, 1, 0 );

    viewsLayout->addWidget( kafkaGroup, 1, 0 );

    sourceGroup = new TQButtonGroup( views, "sourceGroup" );
    sourceGroup->setLineWidth( 0 );
    sourceGroup->setColumnLayout(0, TQt::Vertical );
    sourceGroup->layout()->setSpacing( 6 );
    sourceGroup->layout()->setMargin( 11 );
    sourceGroupLayout = new TQGridLayout( sourceGroup->layout() );
    sourceGroupLayout->setAlignment( TQt::AlignTop );
    spacer4 = new TQSpacerItem( 27, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    sourceGroupLayout->addItem( spacer4, 1, 1 );

    ms = new TQLabel( sourceGroup, "ms" );

    sourceGroupLayout->addWidget( ms, 1, 3 );

    sourceDelay = new TQSpinBox( sourceGroup, "sourceDelay" );
    sourceDelay->setMaxValue( 10000 );
    sourceDelay->setMinValue( 10 );

    sourceGroupLayout->addWidget( sourceDelay, 1, 2 );

    sourceFocusRefresh = new TQRadioButton( sourceGroup, "sourceFocusRefresh" );

    sourceGroupLayout->addMultiCellWidget( sourceFocusRefresh, 0, 0, 0, 3 );

    sourceDelayRefresh = new TQRadioButton( sourceGroup, "sourceDelayRefresh" );

    sourceGroupLayout->addWidget( sourceDelayRefresh, 1, 0 );

    viewsLayout->addWidget( sourceGroup, 0, 0 );

    KafkaSyncOptionsUILayout->addWidget( views, 1, 0 );
    spacer6 = new TQSpacerItem( 21, 167, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    KafkaSyncOptionsUILayout->addItem( spacer6, 2, 0 );

    showScriptsIcon = new TQCheckBox( this, "showScriptsIcon" );

    KafkaSyncOptionsUILayout->addWidget( showScriptsIcon, 0, 0 );
    languageChange();
    resize( TQSize(600, 498).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KafkaSyncOptionsUI::languageChange()
{
    views->setTitle( tr2i18n( "Dual Views Mode Synchronization" ) );
    kafkaGroup->setTitle( TQString::null );
    ms2->setText( tr2i18n( "ms" ) );
    kafkaFocusRefresh->setText( tr2i18n( "Refresh the VPL editor on click" ) );
    kafkaDelayRefresh->setText( tr2i18n( "Refresh the VPL editor every:" ) );
    sourceGroup->setTitle( TQString::null );
    ms->setText( tr2i18n( "ms" ) );
    sourceFocusRefresh->setText( tr2i18n( "Refresh the source editor on click" ) );
    sourceDelayRefresh->setText( tr2i18n( "Refresh the source editor every:" ) );
    showScriptsIcon->setText( tr2i18n( "Show an icon where scripts are located" ) );
}

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

TQMetaObject *KafkaSyncOptionsUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KafkaSyncOptionsUI( "KafkaSyncOptionsUI", &KafkaSyncOptionsUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KafkaSyncOptionsUI::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 TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KafkaSyncOptionsUI", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KafkaSyncOptionsUI.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KafkaSyncOptionsUI::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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