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

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

#include "krefinepagedlg.h"

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

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

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

    KRefinePageDlgLayout->addWidget( TextLabel11, 0, 1 );

    Frame3 = new TQFrame( this, "Frame3" );
    Frame3->setFrameShape( TQFrame::Box );
    Frame3->setFrameShadow( TQFrame::Raised );
    Frame3Layout = new TQHBoxLayout( Frame3, KDialog::marginHint(), KDialog::spacingHint(), "Frame3Layout"); 

    px_kcontrol = new TQLabel( Frame3, "px_kcontrol" );
    px_kcontrol->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, px_kcontrol->sizePolicy().hasHeightForWidth() ) );
    Frame3Layout->addWidget( px_kcontrol );

    TextLabel1 = new TQLabel( Frame3, "TextLabel1" );
    TextLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
    TextLabel1->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop | TQLabel::AlignLeft ) );
    Frame3Layout->addWidget( TextLabel1 );

    KRefinePageDlgLayout->addWidget( Frame3, 2, 1 );

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

    KRefinePageDlgLayout->addMultiCellWidget( px_finishSidebar, 0, 6, 0, 0 );

    lb_kcontrol = new TQLabel( this, "lb_kcontrol" );
    lb_kcontrol->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, lb_kcontrol->sizePolicy().hasHeightForWidth() ) );
    lb_kcontrol->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignCenter ) );

    KRefinePageDlgLayout->addWidget( lb_kcontrol, 4, 1 );
    Spacer5 = new TQSpacerItem( 30, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    KRefinePageDlgLayout->addItem( Spacer5, 1, 1 );
    Spacer5_3 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    KRefinePageDlgLayout->addItem( Spacer5_3, 3, 1 );

    Layout5 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout5"); 
    Spacer5_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout5->addItem( Spacer5_2 );

    pb_kcontrol = new TQPushButton( this, "pb_kcontrol" );
    Layout5->addWidget( pb_kcontrol );
    Spacer10 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout5->addItem( Spacer10 );

    KRefinePageDlgLayout->addLayout( Layout5, 5, 1 );
    Spacer11 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    KRefinePageDlgLayout->addItem( Spacer11, 6, 1 );
    languageChange();
    resize( TQSize(555, 452).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KRefinePageDlg::languageChange()
{
    TextLabel11->setText( tr2i18n( "<h3>Finished</h3>\n"
"<p>After closing this dialog you can always restart this Wizard by choosing the entry <b>Desktop Settings Wizard</b> from the Settings menu.</p>" ) );
    TextLabel1->setText( tr2i18n( "You can refine the settings you made by starting the Trinity Control Center by choosing the entry <b>Control Center</b> in the TDE menu." ) );
    lb_kcontrol->setText( tr2i18n( "You can also start the Trinity Control Center using the button below." ) );
    pb_kcontrol->setText( tr2i18n( "&Launch Trinity Control Center" ) );
}

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

TQMetaObject *KRefinePageDlg::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KRefinePageDlg( "KRefinePageDlg", &KRefinePageDlg::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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