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

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

#include "vbaconfigwidgetbase.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <ntqpushbutton.h>
#include <ntqlineedit.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlabel.h>
#include <ntqtoolbutton.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a VBAConfigWidgetBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
VBAConfigWidgetBase::VBAConfigWidgetBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "VBAConfigWigdet" );
    VBAConfigWigdetLayout = new TQGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "VBAConfigWigdetLayout"); 

    binaryEdit = new TQLineEdit( this, "binaryEdit" );

    VBAConfigWigdetLayout->addMultiCellWidget( binaryEdit, 1, 1, 2, 3 );

    ButtonGroup3 = new TQButtonGroup( this, "ButtonGroup3" );
    ButtonGroup3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, ButtonGroup3->sizePolicy().hasHeightForWidth() ) );
    ButtonGroup3->setColumnLayout(0, TQt::Vertical );
    ButtonGroup3->layout()->setSpacing( KDialog::spacingHint() );
    ButtonGroup3->layout()->setMargin( KDialog::marginHint() );
    ButtonGroup3Layout = new TQVBoxLayout( ButtonGroup3->layout() );
    ButtonGroup3Layout->setAlignment( TQt::AlignTop );

    normalModeButton = new TQRadioButton( ButtonGroup3, "normalModeButton" );
    ButtonGroup3Layout->addWidget( normalModeButton );

    tvModeButton = new TQRadioButton( ButtonGroup3, "tvModeButton" );
    ButtonGroup3Layout->addWidget( tvModeButton );

    salModeButton = new TQRadioButton( ButtonGroup3, "salModeButton" );
    ButtonGroup3Layout->addWidget( salModeButton );

    superSalModeButton = new TQRadioButton( ButtonGroup3, "superSalModeButton" );
    ButtonGroup3Layout->addWidget( superSalModeButton );

    superEagleModeButton = new TQRadioButton( ButtonGroup3, "superEagleModeButton" );
    ButtonGroup3Layout->addWidget( superEagleModeButton );

    VBAConfigWigdetLayout->addMultiCellWidget( ButtonGroup3, 2, 4, 0, 0 );

    TextLabel2 = new TQLabel( this, "TextLabel2" );

    VBAConfigWigdetLayout->addWidget( TextLabel2, 1, 0 );

    emuPathEdit = new TQLineEdit( this, "emuPathEdit" );

    VBAConfigWigdetLayout->addMultiCellWidget( emuPathEdit, 0, 0, 2, 3 );

    TextLabel4 = new TQLabel( this, "TextLabel4" );

    VBAConfigWigdetLayout->addWidget( TextLabel4, 5, 0 );

    TextLabel3 = new TQLabel( this, "TextLabel3" );

    VBAConfigWigdetLayout->addMultiCellWidget( TextLabel3, 0, 0, 0, 1 );

    emuPathButton = new TQToolButton( this, "emuPathButton" );
    emuPathButton->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, emuPathButton->sizePolicy().hasHeightForWidth() ) );
    emuPathButton->setMinimumSize( TQSize( 22, 0 ) );

    VBAConfigWigdetLayout->addWidget( emuPathButton, 0, 4 );

    ButtonGroup4 = new TQButtonGroup( this, "ButtonGroup4" );
    ButtonGroup4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, ButtonGroup4->sizePolicy().hasHeightForWidth() ) );
    ButtonGroup4->setMinimumSize( TQSize( 120, 0 ) );
    ButtonGroup4->setColumnLayout(0, TQt::Vertical );
    ButtonGroup4->layout()->setSpacing( KDialog::spacingHint() );
    ButtonGroup4->layout()->setMargin( KDialog::marginHint() );
    ButtonGroup4Layout = new TQVBoxLayout( ButtonGroup4->layout() );
    ButtonGroup4Layout->setAlignment( TQt::AlignTop );

    scaling1Button = new TQRadioButton( ButtonGroup4, "scaling1Button" );
    ButtonGroup4Layout->addWidget( scaling1Button );

    scaling2Button = new TQRadioButton( ButtonGroup4, "scaling2Button" );
    ButtonGroup4Layout->addWidget( scaling2Button );

    scaling3Button = new TQRadioButton( ButtonGroup4, "scaling3Button" );
    ButtonGroup4Layout->addWidget( scaling3Button );

    scaling4Button = new TQRadioButton( ButtonGroup4, "scaling4Button" );
    ButtonGroup4Layout->addWidget( scaling4Button );

    VBAConfigWigdetLayout->addMultiCellWidget( ButtonGroup4, 2, 4, 1, 2 );

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

    VBAConfigWigdetLayout->addWidget( fullscreenCheckBox, 2, 3 );

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

    VBAConfigWigdetLayout->addWidget( terminalCheckBox, 3, 3 );
    Spacer3 = new TQSpacerItem( 0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    VBAConfigWigdetLayout->addItem( Spacer3, 4, 3 );

    addOptionsEdit = new TQLineEdit( this, "addOptionsEdit" );

    VBAConfigWigdetLayout->addMultiCellWidget( addOptionsEdit, 5, 5, 1, 3 );
    Spacer2 = new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    VBAConfigWigdetLayout->addItem( Spacer2, 6, 2 );
    languageChange();
    resize( TQSize(510, 367).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void VBAConfigWidgetBase::languageChange()
{
    ButtonGroup3->setTitle( tr2i18n( "Graphic Filter" ) );
    normalModeButton->setText( tr2i18n( "Normal mode" ) );
    tvModeButton->setText( tr2i18n( "TV mode" ) );
    salModeButton->setText( tr2i18n( "2xSaI" ) );
    superSalModeButton->setText( tr2i18n( "Super 2xSal" ) );
    superEagleModeButton->setText( tr2i18n( "Super Eagle" ) );
    TextLabel2->setText( tr2i18n( "GBA binary:" ) );
    TextLabel4->setText( tr2i18n( "Additional parameters:" ) );
    TextLabel3->setText( tr2i18n( "VisualBoy Advance (emulator):" ) );
    emuPathButton->setText( tr2i18n( "..." ) );
    ButtonGroup4->setTitle( tr2i18n( "Scaling" ) );
    scaling1Button->setText( tr2i18n( "1x" ) );
    scaling2Button->setText( tr2i18n( "2x" ) );
    scaling3Button->setText( tr2i18n( "3x" ) );
    scaling4Button->setText( tr2i18n( "4x" ) );
    fullscreenCheckBox->setText( tr2i18n( "Full screen" ) );
    terminalCheckBox->setText( tr2i18n( "Start in external terminal" ) );
}

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

TQMetaObject *VBAConfigWidgetBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_VBAConfigWidgetBase( "VBAConfigWidgetBase", &VBAConfigWidgetBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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