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

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

#include "rotationcfg.h"

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

/*
 *  Constructs a KRotationSetupUi 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.
 */
KRotationSetupUi::KRotationSetupUi( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KRotationSetupUi" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( TQSize( 0, 0 ) );
    setMaximumSize( TQSize( 1200, 900 ) );
    setBaseSize( TQSize( 400, 250 ) );
    KRotationSetupUiLayout = new TQVBoxLayout( this, 11, 6, "KRotationSetupUiLayout"); 
    KRotationSetupUiLayout->setResizeMode( TQLayout::Minimum );

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

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

    buttonGroup1 = new TQButtonGroup( this, "buttonGroup1" );
    buttonGroup1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, buttonGroup1->sizePolicy().hasHeightForWidth() ) );
    buttonGroup1->setColumnLayout(0, TQt::Vertical );
    buttonGroup1->layout()->setSpacing( 6 );
    buttonGroup1->layout()->setMargin( 11 );
    buttonGroup1Layout = new TQGridLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( TQt::AlignTop );

    layout5 = new TQGridLayout( 0, 1, 1, 0, 6, "layout5"); 

    xTrace = new TQCheckBox( buttonGroup1, "xTrace" );
    xTrace->setEnabled( true );

    layout5->addWidget( xTrace, 0, 0 );

    randTraces = new TQCheckBox( buttonGroup1, "randTraces" );

    layout5->addMultiCellWidget( randTraces, 1, 1, 0, 2 );

    yTrace = new TQCheckBox( buttonGroup1, "yTrace" );

    layout5->addWidget( yTrace, 0, 1 );

    zTrace = new TQCheckBox( buttonGroup1, "zTrace" );

    layout5->addWidget( zTrace, 0, 2 );

    buttonGroup1Layout->addMultiCellLayout( layout5, 0, 0, 0, 1 );

    textLabel1 = new TQLabel( buttonGroup1, "textLabel1" );

    buttonGroup1Layout->addWidget( textLabel1, 1, 0 );

    lengthEdit = new TQLineEdit( buttonGroup1, "lengthEdit" );
    lengthEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, lengthEdit->sizePolicy().hasHeightForWidth() ) );
    lengthEdit->setMaximumSize( TQSize( 40, 32767 ) );
    TQFont lengthEdit_font(  lengthEdit->font() );
    lengthEdit_font.setFamily( "Helvetica" );
    lengthEdit_font.setPointSize( 11 );
    lengthEdit->setFont( lengthEdit_font ); 
    lengthEdit->setMaxLength( 2 );

    buttonGroup1Layout->addWidget( lengthEdit, 1, 1 );
    layout6->addWidget( buttonGroup1 );

    layout10 = new TQGridLayout( 0, 1, 1, 0, 6, "layout10"); 

    LzEdit = new TQLineEdit( this, "LzEdit" );
    LzEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, LzEdit->sizePolicy().hasHeightForWidth() ) );
    LzEdit->setMaximumSize( TQSize( 50, 32767 ) );
    LzEdit->setMaxLength( 5 );

    layout10->addWidget( LzEdit, 0, 1 );

    textLabel3 = new TQLabel( this, "textLabel3" );
    textLabel3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );

    layout10->addWidget( textLabel3, 1, 0 );

    textLabel2 = new TQLabel( this, "textLabel2" );
    textLabel2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );

    layout10->addWidget( textLabel2, 0, 0 );

    thetaEdit = new TQLineEdit( this, "thetaEdit" );
    thetaEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, thetaEdit->sizePolicy().hasHeightForWidth() ) );
    thetaEdit->setMaximumSize( TQSize( 50, 32767 ) );
    thetaEdit->setMaxLength( 5 );

    layout10->addWidget( thetaEdit, 1, 1 );
    layout6->addLayout( layout10 );
    spacer1 = new TQSpacerItem( 31, 51, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout6->addItem( spacer1 );
    layout17->addLayout( layout6 );

    preview = new SsPreviewArea( this, "preview" );
    preview->setMinimumSize( TQSize( 200, 150 ) );
    layout17->addWidget( preview );
    KRotationSetupUiLayout->addLayout( layout17 );

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

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

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

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

    AboutButton = new TQPushButton( this, "AboutButton" );
    layout4->addWidget( AboutButton );
    layout9->addLayout( layout4 );
    spacer3 = new TQSpacerItem( 61, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout9->addItem( spacer3 );
    KRotationSetupUiLayout->addLayout( layout9 );
    languageChange();
    resize( TQSize(401, 265).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( randTraces, TQ_SIGNAL( toggled(bool) ), xTrace, TQ_SLOT( setDisabled(bool) ) );
    connect( xTrace, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( xTraceToggled(bool) ) );
    connect( randTraces, TQ_SIGNAL( toggled(bool) ), yTrace, TQ_SLOT( setDisabled(bool) ) );
    connect( randTraces, TQ_SIGNAL( toggled(bool) ), zTrace, TQ_SLOT( setDisabled(bool) ) );
    connect( randTraces, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( randomTracesToggled(bool) ) );
    connect( yTrace, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( yTraceToggled(bool) ) );
    connect( zTrace, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( zTraceToggled(bool) ) );
    connect( lengthEdit, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( lengthEnteredSlot(const TQString&) ) );
    connect( LzEdit, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( LzEnteredSlot(const TQString&) ) );
    connect( thetaEdit, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( thetaEnteredSlot(const TQString&) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KRotationSetupUi::languageChange()
{
    setCaption( tr2i18n( "KRotation Setup" ) );
    buttonGroup1->setTitle( tr2i18n( "Traces" ) );
    xTrace->setText( tr2i18n( "x" ) );
    randTraces->setText( tr2i18n( "Random" ) );
    yTrace->setText( tr2i18n( "y" ) );
    zTrace->setText( tr2i18n( "z" ) );
    textLabel1->setText( tr2i18n( "Length:" ) );
    textLabel3->setText( tr2i18n( "Theta:" ) );
    textLabel2->setText( tr2i18n( "Lz:" ) );
    OkButton->setText( tr2i18n( "&OK" ) );
    CancelButton->setText( tr2i18n( "&Cancel" ) );
    AboutButton->setText( tr2i18n( "&About" ) );
}

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

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

void KRotationSetupUi::randomTracesToggled(bool)
{
    tqWarning( "KRotationSetupUi::randomTracesToggled(bool): Not implemented yet" );
}

void KRotationSetupUi::xTraceToggled(bool)
{
    tqWarning( "KRotationSetupUi::xTraceToggled(bool): Not implemented yet" );
}

void KRotationSetupUi::yTraceToggled(bool)
{
    tqWarning( "KRotationSetupUi::yTraceToggled(bool): Not implemented yet" );
}

void KRotationSetupUi::zTraceToggled(bool)
{
    tqWarning( "KRotationSetupUi::zTraceToggled(bool): Not implemented yet" );
}

void KRotationSetupUi::lengthEnteredSlot(const TQString&)
{
    tqWarning( "KRotationSetupUi::lengthEnteredSlot(const TQString&): Not implemented yet" );
}

void KRotationSetupUi::LzEnteredSlot(const TQString&)
{
    tqWarning( "KRotationSetupUi::LzEnteredSlot(const TQString&): Not implemented yet" );
}

void KRotationSetupUi::thetaEnteredSlot(const TQString&)
{
    tqWarning( "KRotationSetupUi::thetaEnteredSlot(const TQString&): Not implemented yet" );
}

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

TQMetaObject *KRotationSetupUi::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KRotationSetupUi( "KRotationSetupUi", &KRotationSetupUi::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KRotationSetupUi::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 TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"randomTracesToggled", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"xTraceToggled", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"yTraceToggled", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"zTraceToggled", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"lengthEnteredSlot", 1, param_slot_6 };
    static const TQUParameter param_slot_7[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"LzEnteredSlot", 1, param_slot_7 };
    static const TQUParameter param_slot_8[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"thetaEnteredSlot", 1, param_slot_8 };
    static const TQUMethod slot_9 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "okButtonClickedSlot()", &slot_0, TQMetaData::Public },
	{ "aboutButtonClickedSlot()", &slot_1, TQMetaData::Public },
	{ "randomTracesToggled(bool)", &slot_2, TQMetaData::Public },
	{ "xTraceToggled(bool)", &slot_3, TQMetaData::Public },
	{ "yTraceToggled(bool)", &slot_4, TQMetaData::Public },
	{ "zTraceToggled(bool)", &slot_5, TQMetaData::Public },
	{ "lengthEnteredSlot(const TQString&)", &slot_6, TQMetaData::Public },
	{ "LzEnteredSlot(const TQString&)", &slot_7, TQMetaData::Public },
	{ "thetaEnteredSlot(const TQString&)", &slot_8, TQMetaData::Public },
	{ "languageChange()", &slot_9, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KRotationSetupUi", parentObject,
	slot_tbl, 10,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KRotationSetupUi.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KRotationSetupUi::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: okButtonClickedSlot(); break;
    case 1: aboutButtonClickedSlot(); break;
    case 2: randomTracesToggled((bool)static_QUType_bool.get(_o+1)); break;
    case 3: xTraceToggled((bool)static_QUType_bool.get(_o+1)); break;
    case 4: yTraceToggled((bool)static_QUType_bool.get(_o+1)); break;
    case 5: zTraceToggled((bool)static_QUType_bool.get(_o+1)); break;
    case 6: lengthEnteredSlot((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 7: LzEnteredSlot((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 8: thetaEnteredSlot((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 9: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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