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

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

#include "pendulumcfg.h"

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

/*
 *  Constructs a KPendulumSetupUi as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
KPendulumSetupUi::KPendulumSetupUi( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KPendulumSetupUi" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 2, 2, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( TQSize( 0, 0 ) );
    setMaximumSize( TQSize( 1200, 900 ) );
    setBaseSize( TQSize( 400, 250 ) );
    KPendulumSetupUiLayout = new TQVBoxLayout( this, 11, 6, "KPendulumSetupUiLayout"); 
    KPendulumSetupUiLayout->setResizeMode( TQLayout::Minimum );

    layout18 = new TQHBoxLayout( 0, 0, 6, "layout18"); 

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

    layout15 = new TQHBoxLayout( 0, 0, 6, "layout15"); 

    textLabel1 = new TQLabel( this, "textLabel1" );
    textLabel1->setFrameShape( TQLabel::NoFrame );
    textLabel1->setFrameShadow( TQLabel::Plain );
    layout15->addWidget( textLabel1 );

    mEdit = new TQLineEdit( this, "mEdit" );
    mEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, mEdit->sizePolicy().hasHeightForWidth() ) );
    mEdit->setMaximumSize( TQSize( 60, 32767 ) );
    mEdit->setMaxLength( 5 );
    layout15->addWidget( mEdit );
    layout16->addLayout( layout15 );

    layout14 = new TQHBoxLayout( 0, 0, 6, "layout14"); 

    textLabel2 = new TQLabel( this, "textLabel2" );
    layout14->addWidget( textLabel2 );

    lEdit = new TQLineEdit( this, "lEdit" );
    lEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, lEdit->sizePolicy().hasHeightForWidth() ) );
    lEdit->setMaximumSize( TQSize( 60, 32767 ) );
    lEdit->setMaxLength( 5 );
    layout14->addWidget( lEdit );
    layout16->addLayout( layout14 );

    layout13 = new TQHBoxLayout( 0, 0, 6, "layout13"); 

    textLabel3 = new TQLabel( this, "textLabel3" );
    textLabel3->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignCenter ) );
    layout13->addWidget( textLabel3 );

    gEdit = new TQLineEdit( this, "gEdit" );
    gEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, gEdit->sizePolicy().hasHeightForWidth() ) );
    gEdit->setMaximumSize( TQSize( 60, 32767 ) );
    gEdit->setMaxLength( 5 );
    layout13->addWidget( gEdit );
    layout16->addLayout( layout13 );

    layout13_2 = new TQHBoxLayout( 0, 0, 6, "layout13_2"); 

    textLabel4 = new TQLabel( this, "textLabel4" );
    textLabel4->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignCenter ) );
    layout13_2->addWidget( textLabel4 );

    eEdit = new TQLineEdit( this, "eEdit" );
    eEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, eEdit->sizePolicy().hasHeightForWidth() ) );
    eEdit->setMaximumSize( TQSize( 60, 32767 ) );
    eEdit->setMaxLength( 5 );
    layout13_2->addWidget( eEdit );
    layout16->addLayout( layout13_2 );

    layout18_2 = new TQHBoxLayout( 0, 0, 6, "layout18_2"); 

    textLabel2_2 = new TQLabel( this, "textLabel2_2" );
    layout18_2->addWidget( textLabel2_2 );

    persSpinBox = new TQSpinBox( this, "persSpinBox" );
    persSpinBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, persSpinBox->sizePolicy().hasHeightForWidth() ) );
    persSpinBox->setMinimumSize( TQSize( 60, 0 ) );
    persSpinBox->setMaximumSize( TQSize( 60, 32767 ) );
    layout18_2->addWidget( persSpinBox );
    layout16->addLayout( layout18_2 );

    layout15_2 = new TQHBoxLayout( 0, 0, 6, "layout15_2"); 

    barColorButton = new TQPushButton( this, "barColorButton" );
    barColorButton->setMaximumSize( TQSize( 40, 32767 ) );
    layout15_2->addWidget( barColorButton );

    m1ColorButton = new TQPushButton( this, "m1ColorButton" );
    m1ColorButton->setMaximumSize( TQSize( 40, 32767 ) );
    layout15_2->addWidget( m1ColorButton );

    m2ColorButton = new TQPushButton( this, "m2ColorButton" );
    m2ColorButton->setMaximumSize( TQSize( 40, 32767 ) );
    layout15_2->addWidget( m2ColorButton );
    layout16->addLayout( layout15_2 );
    spacer4 = new TQSpacerItem( 20, 0, TQSizePolicy::Minimum, TQSizePolicy::MinimumExpanding );
    layout16->addItem( spacer4 );
    layout18->addLayout( layout16 );

    preview = new SsPreviewArea( this, "preview" );
    preview->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 2, 0, preview->sizePolicy().hasHeightForWidth() ) );
    preview->setMinimumSize( TQSize( 200, 150 ) );
    layout18->addWidget( preview );
    KPendulumSetupUiLayout->addLayout( layout18 );

    layout19 = new TQHBoxLayout( 0, 0, 6, "layout19"); 
    spacer2 = new TQSpacerItem( 66, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout19->addItem( spacer2 );

    OkButton = new TQPushButton( this, "OkButton" );
    OkButton->setDefault( true );
    layout19->addWidget( OkButton );

    CancelButton = new TQPushButton( this, "CancelButton" );
    layout19->addWidget( CancelButton );

    AboutButton = new TQPushButton( this, "AboutButton" );
    layout19->addWidget( AboutButton );
    spacer3 = new TQSpacerItem( 65, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout19->addItem( spacer3 );
    KPendulumSetupUiLayout->addLayout( layout19 );
    languageChange();
    resize( TQSize(474, 349).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( OkButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( okButtonClickedSlot() ) );
    connect( CancelButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( close() ) );
    connect( AboutButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( aboutButtonClickedSlot() ) );
    connect( lEdit, TQ_SIGNAL( lostFocus() ), this, TQ_SLOT( lEditLostFocusSlot() ) );
    connect( gEdit, TQ_SIGNAL( lostFocus() ), this, TQ_SLOT( gEditLostFocusSlot() ) );
    connect( eEdit, TQ_SIGNAL( lostFocus() ), this, TQ_SLOT( eEditLostFocusSlot() ) );
    connect( persSpinBox, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( persChangeEnteredSlot(int) ) );
    connect( mEdit, TQ_SIGNAL( lostFocus() ), this, TQ_SLOT( mEditLostFocusSlot() ) );
    connect( barColorButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( barColorButtonClickedSlot() ) );
    connect( m1ColorButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( m1ColorButtonClickedSlot() ) );
    connect( m2ColorButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( m2ColorButtonClickedSlot() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KPendulumSetupUi::languageChange()
{
    setCaption( tr2i18n( "KPendulum Setup" ) );
    textLabel1->setText( tr2i18n( "<p align=\"center\">\n"
"m<sub>2</sub><br>\n"
"-----------<br>\n"
"m<sub>1</sub>+m<sub>2</sub>\n"
"</p>" ) );
    textLabel2->setText( tr2i18n( "<p align=\"center\">\n"
"l<sub>2</sub><br>\n"
"------<br>\n"
"l<sub>1</sub>+l<sub>2</sub>\n"
"</p>" ) );
    textLabel3->setText( tr2i18n( "g" ) );
    textLabel4->setText( tr2i18n( "E" ) );
    textLabel2_2->setText( tr2i18n( "Perspective<br>\n"
"Change [s]" ) );
    TQToolTip::add( textLabel2_2, tr2i18n( "specify the time in seconds after which a random perspective change occurs" ) );
    barColorButton->setText( tr2i18n( "Bars" ) );
    m1ColorButton->setText( tr2i18n( "M1" ) );
    m2ColorButton->setText( tr2i18n( "M2" ) );
    OkButton->setText( tr2i18n( "&OK" ) );
    CancelButton->setText( tr2i18n( "&Cancel" ) );
    AboutButton->setText( tr2i18n( "&About" ) );
}

void KPendulumSetupUi::okButtonClickedSlot()
{
    tqWarning( "KPendulumSetupUi::okButtonClickedSlot(): Not implemented yet" );
}

void KPendulumSetupUi::aboutButtonClickedSlot()
{
    tqWarning( "KPendulumSetupUi::aboutButtonClickedSlot(): Not implemented yet" );
}

void KPendulumSetupUi::mEditLostFocusSlot()
{
    tqWarning( "KPendulumSetupUi::mEditLostFocusSlot(): Not implemented yet" );
}

void KPendulumSetupUi::lEditLostFocusSlot()
{
    tqWarning( "KPendulumSetupUi::lEditLostFocusSlot(): Not implemented yet" );
}

void KPendulumSetupUi::gEditLostFocusSlot()
{
    tqWarning( "KPendulumSetupUi::gEditLostFocusSlot(): Not implemented yet" );
}

void KPendulumSetupUi::eEditLostFocusSlot()
{
    tqWarning( "KPendulumSetupUi::eEditLostFocusSlot(): Not implemented yet" );
}

void KPendulumSetupUi::persChangeEnteredSlot(int)
{
    tqWarning( "KPendulumSetupUi::persChangeEnteredSlot(int): Not implemented yet" );
}

void KPendulumSetupUi::barColorButtonClickedSlot()
{
    tqWarning( "KPendulumSetupUi::barColorButtonClickedSlot(): Not implemented yet" );
}

void KPendulumSetupUi::m1ColorButtonClickedSlot()
{
    tqWarning( "KPendulumSetupUi::m1ColorButtonClickedSlot(): Not implemented yet" );
}

void KPendulumSetupUi::m2ColorButtonClickedSlot()
{
    tqWarning( "KPendulumSetupUi::m2ColorButtonClickedSlot(): Not implemented yet" );
}

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

TQMetaObject *KPendulumSetupUi::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KPendulumSetupUi( "KPendulumSetupUi", &KPendulumSetupUi::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KPendulumSetupUi::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"okButtonClickedSlot", 0, 0 };
    static const TQUMethod slot_1 = {"aboutButtonClickedSlot", 0, 0 };
    static const TQUMethod slot_2 = {"mEditLostFocusSlot", 0, 0 };
    static const TQUMethod slot_3 = {"lEditLostFocusSlot", 0, 0 };
    static const TQUMethod slot_4 = {"gEditLostFocusSlot", 0, 0 };
    static const TQUMethod slot_5 = {"eEditLostFocusSlot", 0, 0 };
    static const TQUParameter param_slot_6[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"persChangeEnteredSlot", 1, param_slot_6 };
    static const TQUMethod slot_7 = {"barColorButtonClickedSlot", 0, 0 };
    static const TQUMethod slot_8 = {"m1ColorButtonClickedSlot", 0, 0 };
    static const TQUMethod slot_9 = {"m2ColorButtonClickedSlot", 0, 0 };
    static const TQUMethod slot_10 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "okButtonClickedSlot()", &slot_0, TQMetaData::Public },
	{ "aboutButtonClickedSlot()", &slot_1, TQMetaData::Public },
	{ "mEditLostFocusSlot()", &slot_2, TQMetaData::Public },
	{ "lEditLostFocusSlot()", &slot_3, TQMetaData::Public },
	{ "gEditLostFocusSlot()", &slot_4, TQMetaData::Public },
	{ "eEditLostFocusSlot()", &slot_5, TQMetaData::Public },
	{ "persChangeEnteredSlot(int)", &slot_6, TQMetaData::Public },
	{ "barColorButtonClickedSlot()", &slot_7, TQMetaData::Public },
	{ "m1ColorButtonClickedSlot()", &slot_8, TQMetaData::Public },
	{ "m2ColorButtonClickedSlot()", &slot_9, TQMetaData::Public },
	{ "languageChange()", &slot_10, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KPendulumSetupUi", parentObject,
	slot_tbl, 11,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KPendulumSetupUi.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KPendulumSetupUi::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: okButtonClickedSlot(); break;
    case 1: aboutButtonClickedSlot(); break;
    case 2: mEditLostFocusSlot(); break;
    case 3: lEditLostFocusSlot(); break;
    case 4: gEditLostFocusSlot(); break;
    case 5: eEditLostFocusSlot(); break;
    case 6: persChangeEnteredSlot((int)static_QUType_int.get(_o+1)); break;
    case 7: barColorButtonClickedSlot(); break;
    case 8: m1ColorButtonClickedSlot(); break;
    case 9: m2ColorButtonClickedSlot(); break;
    case 10: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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