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

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

#include "constants.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    mainGroupBox = new TQGroupBox( this, "mainGroupBox" );
    mainGroupBox->setColumnLayout(0, TQt::Vertical );
    mainGroupBox->layout()->setSpacing( 6 );
    mainGroupBox->layout()->setMargin( 11 );
    mainGroupBoxLayout = new TQVBoxLayout( mainGroupBox->layout() );
    mainGroupBoxLayout->setAlignment( TQt::AlignTop );

    groupBox0 = new TQGroupBox( mainGroupBox, "groupBox0" );
    groupBox0->setColumnLayout(0, TQt::Vertical );
    groupBox0->layout()->setSpacing( 6 );
    groupBox0->layout()->setMargin( 11 );
    groupBox0Layout = new TQHBoxLayout( groupBox0->layout() );
    groupBox0Layout->setAlignment( TQt::AlignTop );

    kcfg_nameConstant0 = new TQLineEdit( groupBox0, "kcfg_nameConstant0" );
    kcfg_nameConstant0->setMaxLength( 6 );
    groupBox0Layout->addWidget( kcfg_nameConstant0 );
    spacer1 = new TQSpacerItem( 70, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox0Layout->addItem( spacer1 );

    kcfg_valueConstant0 = new TQLineEdit( groupBox0, "kcfg_valueConstant0" );
    kcfg_valueConstant0->setMaxLength( 40 );
    groupBox0Layout->addWidget( kcfg_valueConstant0 );
    spacer2 = new TQSpacerItem( 80, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox0Layout->addItem( spacer2 );

    kPushButton0 = new KPushButton( groupBox0, "kPushButton0" );
    groupBox0Layout->addWidget( kPushButton0 );
    mainGroupBoxLayout->addWidget( groupBox0 );

    groupBox1 = new TQGroupBox( mainGroupBox, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQHBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    kcfg_nameConstant1 = new TQLineEdit( groupBox1, "kcfg_nameConstant1" );
    kcfg_nameConstant1->setMaxLength( 6 );
    groupBox1Layout->addWidget( kcfg_nameConstant1 );
    spacer3 = new TQSpacerItem( 70, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox1Layout->addItem( spacer3 );

    kcfg_valueConstant1 = new TQLineEdit( groupBox1, "kcfg_valueConstant1" );
    kcfg_valueConstant1->setMaxLength( 40 );
    groupBox1Layout->addWidget( kcfg_valueConstant1 );
    spacer4 = new TQSpacerItem( 80, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox1Layout->addItem( spacer4 );

    kPushButton1 = new KPushButton( groupBox1, "kPushButton1" );
    groupBox1Layout->addWidget( kPushButton1 );
    mainGroupBoxLayout->addWidget( groupBox1 );

    groupBox2 = new TQGroupBox( mainGroupBox, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQHBoxLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    kcfg_nameConstant2 = new TQLineEdit( groupBox2, "kcfg_nameConstant2" );
    kcfg_nameConstant2->setMaxLength( 6 );
    groupBox2Layout->addWidget( kcfg_nameConstant2 );
    spacer5 = new TQSpacerItem( 70, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox2Layout->addItem( spacer5 );

    kcfg_valueConstant2 = new TQLineEdit( groupBox2, "kcfg_valueConstant2" );
    kcfg_valueConstant2->setMaxLength( 40 );
    groupBox2Layout->addWidget( kcfg_valueConstant2 );
    spacer6 = new TQSpacerItem( 80, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox2Layout->addItem( spacer6 );

    kPushButton2 = new KPushButton( groupBox2, "kPushButton2" );
    groupBox2Layout->addWidget( kPushButton2 );
    mainGroupBoxLayout->addWidget( groupBox2 );

    groupBox3 = new TQGroupBox( mainGroupBox, "groupBox3" );
    groupBox3->setColumnLayout(0, TQt::Vertical );
    groupBox3->layout()->setSpacing( 6 );
    groupBox3->layout()->setMargin( 11 );
    groupBox3Layout = new TQHBoxLayout( groupBox3->layout() );
    groupBox3Layout->setAlignment( TQt::AlignTop );

    kcfg_nameConstant3 = new TQLineEdit( groupBox3, "kcfg_nameConstant3" );
    kcfg_nameConstant3->setMaxLength( 6 );
    groupBox3Layout->addWidget( kcfg_nameConstant3 );
    spacer7 = new TQSpacerItem( 70, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox3Layout->addItem( spacer7 );

    kcfg_valueConstant3 = new TQLineEdit( groupBox3, "kcfg_valueConstant3" );
    kcfg_valueConstant3->setMaxLength( 40 );
    groupBox3Layout->addWidget( kcfg_valueConstant3 );
    spacer8 = new TQSpacerItem( 80, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox3Layout->addItem( spacer8 );

    kPushButton3 = new KPushButton( groupBox3, "kPushButton3" );
    groupBox3Layout->addWidget( kPushButton3 );
    mainGroupBoxLayout->addWidget( groupBox3 );

    groupBox4 = new TQGroupBox( mainGroupBox, "groupBox4" );
    groupBox4->setColumnLayout(0, TQt::Vertical );
    groupBox4->layout()->setSpacing( 6 );
    groupBox4->layout()->setMargin( 11 );
    groupBox4Layout = new TQHBoxLayout( groupBox4->layout() );
    groupBox4Layout->setAlignment( TQt::AlignTop );

    kcfg_nameConstant4 = new TQLineEdit( groupBox4, "kcfg_nameConstant4" );
    kcfg_nameConstant4->setMaxLength( 6 );
    groupBox4Layout->addWidget( kcfg_nameConstant4 );
    spacer9 = new TQSpacerItem( 70, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox4Layout->addItem( spacer9 );

    kcfg_valueConstant4 = new TQLineEdit( groupBox4, "kcfg_valueConstant4" );
    kcfg_valueConstant4->setMaxLength( 40 );
    groupBox4Layout->addWidget( kcfg_valueConstant4 );
    spacer10 = new TQSpacerItem( 80, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox4Layout->addItem( spacer10 );

    kPushButton4 = new KPushButton( groupBox4, "kPushButton4" );
    groupBox4Layout->addWidget( kPushButton4 );
    mainGroupBoxLayout->addWidget( groupBox4 );

    groupBox5 = new TQGroupBox( mainGroupBox, "groupBox5" );
    groupBox5->setColumnLayout(0, TQt::Vertical );
    groupBox5->layout()->setSpacing( 6 );
    groupBox5->layout()->setMargin( 11 );
    groupBox5Layout = new TQHBoxLayout( groupBox5->layout() );
    groupBox5Layout->setAlignment( TQt::AlignTop );

    kcfg_nameConstant5 = new TQLineEdit( groupBox5, "kcfg_nameConstant5" );
    kcfg_nameConstant5->setMaxLength( 6 );
    groupBox5Layout->addWidget( kcfg_nameConstant5 );
    spacer11 = new TQSpacerItem( 70, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox5Layout->addItem( spacer11 );

    kcfg_valueConstant5 = new TQLineEdit( groupBox5, "kcfg_valueConstant5" );
    kcfg_valueConstant5->setMaxLength( 40 );
    groupBox5Layout->addWidget( kcfg_valueConstant5 );
    spacer12 = new TQSpacerItem( 80, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox5Layout->addItem( spacer12 );

    kPushButton5 = new KPushButton( groupBox5, "kPushButton5" );
    groupBox5Layout->addWidget( kPushButton5 );
    mainGroupBoxLayout->addWidget( groupBox5 );
    ConstantsLayout->addWidget( mainGroupBox );
    spacer13 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    ConstantsLayout->addItem( spacer13 );
    languageChange();
    resize( TQSize(534, 596).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Constants::languageChange()
{
    setCaption( tr2i18n( "Constants" ) );
    mainGroupBox->setTitle( tr2i18n( "Configure Constants" ) );
    groupBox0->setTitle( tr2i18n( "C1" ) );
    kPushButton0->setText( tr2i18n( "Predefined" ) );
    groupBox1->setTitle( tr2i18n( "C2" ) );
    kPushButton1->setText( tr2i18n( "Predefined" ) );
    groupBox2->setTitle( tr2i18n( "C3" ) );
    kPushButton2->setText( tr2i18n( "Predefined" ) );
    groupBox3->setTitle( tr2i18n( "C4" ) );
    kPushButton3->setText( tr2i18n( "Predefined" ) );
    groupBox4->setTitle( tr2i18n( "C5" ) );
    kPushButton4->setText( tr2i18n( "Predefined" ) );
    groupBox5->setTitle( tr2i18n( "C6" ) );
    kPushButton5->setText( tr2i18n( "Predefined" ) );
}

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

TQMetaObject *Constants::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_Constants( "Constants", &Constants::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* Constants::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(
	"Constants", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_Constants.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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