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

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

#include "base_k3bthemeoptiontab.h"

#include <ntqvariant.h>
#include <tdelistview.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a base_K3bThemeOptionTab as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
base_K3bThemeOptionTab::base_K3bThemeOptionTab( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "base_K3bThemeOptionTab" );
    base_K3bThemeOptionTabLayout = new TQVBoxLayout( this, 0, 6, "base_K3bThemeOptionTabLayout"); 

    groupBox4 = new TQGroupBox( this, "groupBox4" );
    groupBox4->setColumnLayout(0, TQt::Vertical );
    groupBox4->layout()->setSpacing( 6 );
    groupBox4->layout()->setMargin( 11 );
    groupBox4Layout = new TQVBoxLayout( groupBox4->layout() );
    groupBox4Layout->setAlignment( TQt::AlignTop );

    m_viewTheme = new TDEListView( groupBox4, "m_viewTheme" );
    m_viewTheme->addColumn( tr2i18n( "Theme" ) );
    m_viewTheme->addColumn( tr2i18n( "Author" ) );
    m_viewTheme->addColumn( tr2i18n( "Version" ) );
    m_viewTheme->addColumn( tr2i18n( "Comment" ) );
    m_viewTheme->setAllColumnsShowFocus( true );
    groupBox4Layout->addWidget( m_viewTheme );
    base_K3bThemeOptionTabLayout->addWidget( groupBox4 );

    groupBox5 = new TQGroupBox( this, "groupBox5" );
    groupBox5->setColumnLayout(0, TQt::Vertical );
    groupBox5->layout()->setSpacing( 6 );
    groupBox5->layout()->setMargin( 11 );
    groupBox5Layout = new TQHBoxLayout( groupBox5->layout() );
    groupBox5Layout->setAlignment( TQt::AlignTop );

    layout1 = new TQHBoxLayout( 0, 0, 0, "layout1"); 

    m_leftPreviewLabel = new TQLabel( groupBox5, "m_leftPreviewLabel" );
    layout1->addWidget( m_leftPreviewLabel );

    m_centerPreviewLabel = new TQLabel( groupBox5, "m_centerPreviewLabel" );
    m_centerPreviewLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 0, m_centerPreviewLabel->sizePolicy().hasHeightForWidth() ) );
    TQFont m_centerPreviewLabel_font(  m_centerPreviewLabel->font() );
    m_centerPreviewLabel_font.setBold( true );
    m_centerPreviewLabel->setFont( m_centerPreviewLabel_font ); 
    m_centerPreviewLabel->setAlignment( int( TQLabel::AlignCenter ) );
    layout1->addWidget( m_centerPreviewLabel );

    m_rightPreviewLabel = new TQLabel( groupBox5, "m_rightPreviewLabel" );
    layout1->addWidget( m_rightPreviewLabel );
    groupBox5Layout->addLayout( layout1 );
    base_K3bThemeOptionTabLayout->addWidget( groupBox5 );

    layout5 = new TQHBoxLayout( 0, 0, 6, "layout5"); 
    spacer3 = new TQSpacerItem( 161, 2, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5->addItem( spacer3 );

    m_buttonInstallTheme = new TQPushButton( this, "m_buttonInstallTheme" );
    layout5->addWidget( m_buttonInstallTheme );

    m_buttonRemoveTheme = new TQPushButton( this, "m_buttonRemoveTheme" );
    layout5->addWidget( m_buttonRemoveTheme );
    base_K3bThemeOptionTabLayout->addLayout( layout5 );
    languageChange();
    resize( TQSize(661, 499).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void base_K3bThemeOptionTab::languageChange()
{
    groupBox4->setTitle( tr2i18n( "Theme Selection" ) );
    m_viewTheme->header()->setLabel( 0, tr2i18n( "Theme" ) );
    m_viewTheme->header()->setLabel( 1, tr2i18n( "Author" ) );
    m_viewTheme->header()->setLabel( 2, tr2i18n( "Version" ) );
    m_viewTheme->header()->setLabel( 3, tr2i18n( "Comment" ) );
    groupBox5->setTitle( tr2i18n( "Preview" ) );
    m_leftPreviewLabel->setText( TQString::null );
    m_centerPreviewLabel->setText( tr2i18n( "no Theme selected" ) );
    m_rightPreviewLabel->setText( TQString::null );
    m_buttonInstallTheme->setText( tr2i18n( "Install New Theme..." ) );
    m_buttonRemoveTheme->setText( tr2i18n( "Remove Theme" ) );
}

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

TQMetaObject *base_K3bThemeOptionTab::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_base_K3bThemeOptionTab( "base_K3bThemeOptionTab", &base_K3bThemeOptionTab::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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