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

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

#include "theme_preferencesui.h"

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

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

    iconThemeIndex = new TDEListBox( this, "iconThemeIndex" );

    Theme_ConfigUILayout->addMultiCellWidget( iconThemeIndex, 0, 0, 0, 2 );

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

    installButton = new TQPushButton( this, "installButton" );
    layout17->addWidget( installButton );

    removeButton = new TQPushButton( this, "removeButton" );
    removeButton->setEnabled( false );
    layout17->addWidget( removeButton );

    Theme_ConfigUILayout->addMultiCellLayout( layout17, 2, 2, 0, 2 );
    spacer172 = new TQSpacerItem( 131, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Theme_ConfigUILayout->addItem( spacer172, 1, 2 );

    frame3_2 = new TQFrame( this, "frame3_2" );
    frame3_2->setMinimumSize( TQSize( 0, 0 ) );
    frame3_2->setFrameShape( TQFrame::StyledPanel );
    frame3_2->setFrameShadow( TQFrame::Plain );
    frame3_2Layout = new TQGridLayout( frame3_2, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "frame3_2Layout"); 

    previewLabel1 = new TQLabel( frame3_2, "previewLabel1" );
    previewLabel1->setFrameShape( TQLabel::NoFrame );
    previewLabel1->setAlignment( int( TQLabel::AlignCenter ) );

    frame3_2Layout->addWidget( previewLabel1, 0, 0 );

    previewLabel2 = new TQLabel( frame3_2, "previewLabel2" );
    previewLabel2->setAlignment( int( TQLabel::AlignCenter ) );

    frame3_2Layout->addWidget( previewLabel2, 0, 1 );

    previewLabel3 = new TQLabel( frame3_2, "previewLabel3" );
    previewLabel3->setAlignment( int( TQLabel::AlignCenter ) );

    frame3_2Layout->addWidget( previewLabel3, 0, 2 );

    previewLabel4 = new TQLabel( frame3_2, "previewLabel4" );
    previewLabel4->setAlignment( int( TQLabel::AlignCenter ) );

    frame3_2Layout->addWidget( previewLabel4, 0, 3 );

    previewLabel5 = new TQLabel( frame3_2, "previewLabel5" );
    previewLabel5->setAlignment( int( TQLabel::AlignCenter ) );

    frame3_2Layout->addWidget( previewLabel5, 0, 4 );

    previewLabel6 = new TQLabel( frame3_2, "previewLabel6" );
    previewLabel6->setAlignment( int( TQLabel::AlignCenter ) );

    frame3_2Layout->addWidget( previewLabel6, 0, 5 );

    previewLabel7 = new TQLabel( frame3_2, "previewLabel7" );
    previewLabel7->setAlignment( int( TQLabel::AlignCenter ) );

    frame3_2Layout->addWidget( previewLabel7, 0, 6 );

    Theme_ConfigUILayout->addWidget( frame3_2, 1, 1 );

    textLabel2 = new TQLabel( this, "textLabel2" );
    textLabel2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );

    Theme_ConfigUILayout->addWidget( textLabel2, 1, 0 );
    languageChange();
    resize( TQSize(541, 556).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Theme_ConfigUI::languageChange()
{
    setCaption( tr2i18n( "Theme_Config" ) );
    installButton->setText( tr2i18n( "I&nstall Theme..." ) );
    removeButton->setText( tr2i18n( "&Remove Theme" ) );
    previewLabel1->setText( TQString::null );
    TQToolTip::add( previewLabel1, tr2i18n( "Icon for normal users" ) );
    previewLabel2->setText( TQString::null );
    TQToolTip::add( previewLabel2, tr2i18n( "Icon for away users" ) );
    previewLabel3->setText( TQString::null );
    TQToolTip::add( previewLabel3, tr2i18n( "Icon for users with voice" ) );
    previewLabel4->setText( TQString::null );
    TQToolTip::add( previewLabel4, tr2i18n( "Icon for users with half-operator privileges" ) );
    previewLabel5->setText( TQString::null );
    TQToolTip::add( previewLabel5, tr2i18n( "Icon for users with operator privileges" ) );
    previewLabel6->setText( TQString::null );
    TQToolTip::add( previewLabel6, tr2i18n( "Icon for users with admin privileges" ) );
    previewLabel7->setText( TQString::null );
    TQToolTip::add( previewLabel7, tr2i18n( "Icon for users with owner privileges" ) );
    textLabel2->setText( tr2i18n( "Preview:" ) );
}

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

TQMetaObject *Theme_ConfigUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_Theme_ConfigUI( "Theme_ConfigUI", &Theme_ConfigUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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