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

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

#include "dlgsystembase.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <tdefontrequester.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    DlgSystemBaseLayout->addMultiCellWidget( cb_useAnimation, 0, 0, 0, 2 );

    textLabel4 = new TQLabel( this, "textLabel4" );
    textLabel4->setEnabled( false );

    DlgSystemBaseLayout->addMultiCellWidget( textLabel4, 1, 1, 0, 1 );

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

    DlgSystemBaseLayout->addMultiCellWidget( textLabel5, 2, 2, 0, 1 );

    le_font = new TDEFontRequester( this, "le_font" );

    DlgSystemBaseLayout->addMultiCellWidget( le_font, 2, 2, 2, 6 );

    bg_window = new TQButtonGroup( this, "bg_window" );
    bg_window->setEnabled( false );
    bg_window->setFrameShape( TQButtonGroup::NoFrame );
    bg_window->setColumnLayout(0, TQt::Vertical );
    bg_window->layout()->setSpacing( KDialog::spacingHint() );
    bg_window->layout()->setMargin( 0 );
    bg_windowLayout = new TQHBoxLayout( bg_window->layout() );
    bg_windowLayout->setAlignment( TQt::AlignTop );

    rb_normal = new TQRadioButton( bg_window, "rb_normal" );
    bg_windowLayout->addWidget( rb_normal );

    rb_docked = new TQRadioButton( bg_window, "rb_docked" );
    bg_windowLayout->addWidget( rb_docked );

    rb_droptarget = new TQRadioButton( bg_window, "rb_droptarget" );
    bg_windowLayout->addWidget( rb_droptarget );

    DlgSystemBaseLayout->addMultiCellWidget( bg_window, 1, 1, 2, 5 );
    spacer8 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    DlgSystemBaseLayout->addItem( spacer8, 1, 6 );
    spacer9 = new TQSpacerItem( 40, 10, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    DlgSystemBaseLayout->addItem( spacer9, 3, 0 );
    languageChange();
    resize( TQSize(389, 137).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( cb_useAnimation, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( bg_window, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( le_font, TQ_SIGNAL( fontSelected(const TQFont&) ), this, TQ_SLOT( slotChanged() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DlgSystemBase::languageChange()
{
    cb_useAnimation->setText( tr2i18n( "Use animation" ) );
    textLabel4->setText( tr2i18n( "Window style:" ) );
    textLabel5->setText( tr2i18n( "Font:" ) );
    bg_window->setTitle( TQString::null );
    rb_normal->setText( tr2i18n( "Normal" ) );
    rb_docked->setText( tr2i18n( "Docked" ) );
    rb_droptarget->setText( tr2i18n( "Drop target" ) );
}

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

TQMetaObject *DlgSystemBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_DlgSystemBase( "DlgSystemBase", &DlgSystemBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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