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

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

#include "wavecfg.h"

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

/*
 *  Constructs a SetupUi 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.
 */
SetupUi::SetupUi( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "SetupUi" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( TQSize( 400, 209 ) );
    setBaseSize( TQSize( 400, 250 ) );

    TQWidget* privateLayoutWidget = new TQWidget( this, "Layout4" );
    privateLayoutWidget->setGeometry( TQRect( 1, 1, 398, 206 ) );
    Layout4 = new TQGridLayout( privateLayoutWidget, 1, 1, 0, 6, "Layout4"); 

    CheckBox1 = new TQCheckBox( privateLayoutWidget, "CheckBox1" );

    Layout4->addWidget( CheckBox1, 3, 0 );

    PushButton3 = new TQPushButton( privateLayoutWidget, "PushButton3" );

    Layout4->addWidget( PushButton3, 4, 2 );

    SpinBox1 = new TQSpinBox( privateLayoutWidget, "SpinBox1" );
    SpinBox1->setMaxValue( 500 );
    SpinBox1->setMinValue( 10 );
    SpinBox1->setLineStep( 10 );

    Layout4->addWidget( SpinBox1, 1, 0 );

    PushButton2 = new TQPushButton( privateLayoutWidget, "PushButton2" );

    Layout4->addWidget( PushButton2, 4, 1 );

    PushButton1 = new TQPushButton( privateLayoutWidget, "PushButton1" );
    PushButton1->setDefault( true );

    Layout4->addWidget( PushButton1, 4, 0 );

    GroupBox1 = new TQGroupBox( privateLayoutWidget, "GroupBox1" );

    TQWidget* privateLayoutWidget_2 = new TQWidget( GroupBox1, "Layout3" );
    privateLayoutWidget_2->setGeometry( TQRect( 10, 20, 130, 50 ) );
    Layout3 = new TQVBoxLayout( privateLayoutWidget_2, 0, 6, "Layout3"); 

    RadioButton1 = new TQRadioButton( privateLayoutWidget_2, "RadioButton1" );
    RadioButton1->setChecked( true );
    Layout3->addWidget( RadioButton1 );

    RadioButton1_2 = new TQRadioButton( privateLayoutWidget_2, "RadioButton1_2" );
    Layout3->addWidget( RadioButton1_2 );

    Layout4->addWidget( GroupBox1, 2, 0 );

    preview = new TQWidget( privateLayoutWidget, "preview" );

    Layout4->addMultiCellWidget( preview, 0, 3, 1, 2 );

    TextLabel1 = new TQLabel( privateLayoutWidget, "TextLabel1" );

    Layout4->addWidget( TextLabel1, 0, 0 );
    languageChange();
    resize( TQSize(400, 209).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( RadioButton1_2, TQ_SIGNAL( pressed() ), RadioButton1, TQ_SLOT( toggle() ) );
    connect( RadioButton1, TQ_SIGNAL( pressed() ), RadioButton1_2, TQ_SLOT( toggle() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SetupUi::languageChange()
{
    setCaption( tr2i18n( "Bitmap Flag Setup" ) );
    CheckBox1->setText( tr2i18n( "Use textures" ) );
    PushButton3->setText( tr2i18n( "&About" ) );
    PushButton2->setText( tr2i18n( "&Cancel" ) );
    PushButton1->setText( tr2i18n( "&OK" ) );
    GroupBox1->setTitle( tr2i18n( "Shapes" ) );
    RadioButton1->setText( tr2i18n( "Stars" ) );
    RadioButton1_2->setText( tr2i18n( "Flares" ) );
    TextLabel1->setText( tr2i18n( "Particle size:" ) );
}

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

TQMetaObject *SetupUi::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_SetupUi( "SetupUi", &SetupUi::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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