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

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

#include "appearanceconfig_chatwindow.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <tdelistbox.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqsplitter.h>
#include <ntqframe.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqbuttongroup.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a AppearanceConfig_ChatWindow as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
AppearanceConfig_ChatWindow::AppearanceConfig_ChatWindow( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "AppearanceConfig_ChatWindow" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
    AppearanceConfig_ChatWindowLayout = new TQVBoxLayout( this, 11, 6, "AppearanceConfig_ChatWindowLayout"); 

    stylesGroupBox = new TQGroupBox( this, "stylesGroupBox" );
    stylesGroupBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, stylesGroupBox->sizePolicy().hasHeightForWidth() ) );
    stylesGroupBox->setColumnLayout(0, TQt::Vertical );
    stylesGroupBox->layout()->setSpacing( 6 );
    stylesGroupBox->layout()->setMargin( 11 );
    stylesGroupBoxLayout = new TQGridLayout( stylesGroupBox->layout() );
    stylesGroupBoxLayout->setAlignment( TQt::AlignTop );

    splitter1 = new TQSplitter( stylesGroupBox, "splitter1" );
    splitter1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)3, 0, 0, splitter1->sizePolicy().hasHeightForWidth() ) );
    splitter1->setOrientation( TQSplitter::Horizontal );

    styleList = new TDEListBox( splitter1, "styleList" );
    styleList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)7, 1, 0, styleList->sizePolicy().hasHeightForWidth() ) );

    htmlFrame = new TQFrame( splitter1, "htmlFrame" );
    htmlFrame->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)7, 4, 0, htmlFrame->sizePolicy().hasHeightForWidth() ) );
    htmlFrame->setFrameShape( TQFrame::StyledPanel );
    htmlFrame->setFrameShadow( TQFrame::Raised );

    stylesGroupBoxLayout->addMultiCellWidget( splitter1, 0, 0, 0, 1 );

    layout10 = new TQHBoxLayout( 0, 0, 6, "layout10"); 

    btnGetStyles = new KPushButton( stylesGroupBox, "btnGetStyles" );
    btnGetStyles->setEnabled( true );
    layout10->addWidget( btnGetStyles );

    installButton = new KPushButton( stylesGroupBox, "installButton" );
    layout10->addWidget( installButton );

    deleteButton = new KPushButton( stylesGroupBox, "deleteButton" );
    layout10->addWidget( deleteButton );

    stylesGroupBoxLayout->addMultiCellLayout( layout10, 2, 2, 0, 1 );

    textLabel1 = new TQLabel( stylesGroupBox, "textLabel1" );

    stylesGroupBoxLayout->addWidget( textLabel1, 1, 0 );

    variantList = new TQComboBox( false, stylesGroupBox, "variantList" );
    variantList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)1, 0, 0, variantList->sizePolicy().hasHeightForWidth() ) );

    stylesGroupBoxLayout->addWidget( variantList, 1, 1 );
    AppearanceConfig_ChatWindowLayout->addWidget( stylesGroupBox );

    buttonGroup2 = new TQButtonGroup( this, "buttonGroup2" );
    buttonGroup2->setColumnLayout(0, TQt::Vertical );
    buttonGroup2->layout()->setSpacing( 6 );
    buttonGroup2->layout()->setMargin( 11 );
    buttonGroup2Layout = new TQGridLayout( buttonGroup2->layout() );
    buttonGroup2Layout->setAlignment( TQt::AlignTop );

    groupConsecutiveMessages = new TQCheckBox( buttonGroup2, "groupConsecutiveMessages" );

    buttonGroup2Layout->addWidget( groupConsecutiveMessages, 1, 0 );
    AppearanceConfig_ChatWindowLayout->addWidget( buttonGroup2 );
    languageChange();
    resize( TQSize(462, 454).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( styleList, installButton );
    setTabOrder( installButton, deleteButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AppearanceConfig_ChatWindow::languageChange()
{
    setCaption( tr2i18n( "Chat Window Appearance" ) );
    stylesGroupBox->setTitle( tr2i18n( "Styles" ) );
    btnGetStyles->setText( tr2i18n( "&Get New..." ) );
    TQToolTip::add( btnGetStyles, tr2i18n( "Get new Chat Window styles over the Internet" ) );
    installButton->setText( tr2i18n( "&Install..." ) );
    deleteButton->setText( tr2i18n( "&Delete" ) );
    textLabel1->setText( tr2i18n( "Style Variant:" ) );
    buttonGroup2->setTitle( tr2i18n( "Display" ) );
    groupConsecutiveMessages->setText( tr2i18n( "Group consecuti&ve messages" ) );
}

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

TQMetaObject *AppearanceConfig_ChatWindow::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_AppearanceConfig_ChatWindow( "AppearanceConfig_ChatWindow", &AppearanceConfig_ChatWindow::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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