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

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

#include "kcountrypagedlg.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "kdialog.h"
#include "klanguagebutton.h"

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

    Layout6 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout6"); 

    cb_language = new KLanguageButton( this, "cb_language" );
    cb_language->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, cb_language->sizePolicy().hasHeightForWidth() ) );
    cb_language->setMinimumSize( TQSize( 150, 0 ) );
    Layout6->addWidget( cb_language );
    Spacer6_2_2 = new TQSpacerItem( 0, 0, TQSizePolicy::Preferred, TQSizePolicy::Minimum );
    Layout6->addItem( Spacer6_2_2 );

    KCountryPageDlgLayout->addLayout( Layout6, 6, 1 );

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

    KCountryPageDlgLayout->addWidget( TextLabel10_2, 5, 1 );

    TextLabel6 = new TQLabel( this, "TextLabel6" );
    TextLabel6->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, TextLabel6->sizePolicy().hasHeightForWidth() ) );
    TextLabel6->setTextFormat( TQLabel::RichText );
    TextLabel6->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop | TQLabel::AlignLeft ) );

    KCountryPageDlgLayout->addWidget( TextLabel6, 1, 1 );

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

    KCountryPageDlgLayout->addWidget( txt_welcome, 0, 1 );

    Layout6_2 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout6_2"); 

    cb_country = new KLanguageButton( this, "cb_country" );
    cb_country->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, cb_country->sizePolicy().hasHeightForWidth() ) );
    cb_country->setMinimumSize( TQSize( 150, 0 ) );
    Layout6_2->addWidget( cb_country );
    Spacer6_2 = new TQSpacerItem( 0, 0, TQSizePolicy::Preferred, TQSizePolicy::Minimum );
    Layout6_2->addItem( Spacer6_2 );

    KCountryPageDlgLayout->addLayout( Layout6_2, 4, 1 );

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

    KCountryPageDlgLayout->addWidget( TextLabel10, 3, 1 );

    px_introSidebar = new TQLabel( this, "px_introSidebar" );
    px_introSidebar->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, px_introSidebar->sizePolicy().hasHeightForWidth() ) );
    px_introSidebar->setMinimumSize( TQSize( 170, 430 ) );
    px_introSidebar->setFrameShape( TQLabel::Panel );
    px_introSidebar->setFrameShadow( TQLabel::Sunken );
    px_introSidebar->setScaledContents( true );
    px_introSidebar->setIndent( 0 );

    KCountryPageDlgLayout->addMultiCellWidget( px_introSidebar, 0, 8, 0, 0 );
    Spacer6 = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    KCountryPageDlgLayout->addItem( Spacer6, 2, 1 );
    Spacer5 = new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    KCountryPageDlgLayout->addItem( Spacer5, 7, 1 );
    languageChange();
    resize( TQSize(678, 452).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KCountryPageDlg::languageChange()
{
    TextLabel10_2->setText( tr2i18n( "Please choose your language:" ) );
    TextLabel6->setText( tr2i18n( "<p>This Personalizer will help you configure the basic setup of your Trinity desktop in five quick, easy steps. You can set things like your country (for date and time formats, etc.), language, desktop behavior and more.</p>\n"
"<p>You will be able to change all the settings later using the Trinity Control Center. You may choose to postpone your personalization until later by clicking on <b>Skip Wizard</b>. Any changes made so far, will then be reversed, except for the country and language settings. However, new users are encouraged to use this simple method.</p>\n"
"<p>If you already like your Trinity configuration and wish to quit the Wizard, click <b>Skip Wizard</b>, then <b>Quit</b>.</p>" ) );
    txt_welcome->setText( tr2i18n( "<h3>Welcome to Trinity %VERSION%!</h3>" ) );
    TextLabel10->setText( tr2i18n( "Please choose your country:" ) );
}

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

TQMetaObject *KCountryPageDlg::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KCountryPageDlg( "KCountryPageDlg", &KCountryPageDlg::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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