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

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

#include "kaccounttemplateselectordecl.h"

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

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

    m_groupList = new TDEListView( this, "m_groupList" );
    m_groupList->addColumn( tr2i18n( "Account Types" ) );
    m_groupList->addColumn( tr2i18n( "Description" ) );
    m_groupList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, m_groupList->sizePolicy().hasHeightForWidth() ) );
    m_groupList->setMinimumSize( TQSize( 0, 150 ) );
    m_groupList->setProperty( "selectionMode", "Extended" );
    m_groupList->setAllColumnsShowFocus( true );
    m_groupList->setRootIsDecorated( true );
    m_groupList->setFullWidth( true );
    KAccountTemplateSelectorDeclLayout->addWidget( m_groupList );

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

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 2, groupBox1->sizePolicy().hasHeightForWidth() ) );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQVBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    m_description = new KTextEdit( groupBox1, "m_description" );
    m_description->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 3, m_description->sizePolicy().hasHeightForWidth() ) );
    m_description->setReadOnly( true );
    groupBox1Layout->addWidget( m_description );
    layout3->addWidget( groupBox1 );

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 2, groupBox2->sizePolicy().hasHeightForWidth() ) );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQVBoxLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    m_accountList = new TDEListView( groupBox2, "m_accountList" );
    m_accountList->addColumn( tr2i18n( "Name" ) );
    m_accountList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 3, m_accountList->sizePolicy().hasHeightForWidth() ) );
    m_accountList->setMinimumSize( TQSize( 0, 150 ) );
    m_accountList->setProperty( "selectionMode", "NoSelection" );
    m_accountList->setAllColumnsShowFocus( true );
    m_accountList->setRootIsDecorated( true );
    m_accountList->setFullWidth( true );
    groupBox2Layout->addWidget( m_accountList );
    layout3->addWidget( groupBox2 );
    KAccountTemplateSelectorDeclLayout->addLayout( layout3 );
    languageChange();
    resize( TQSize(546, 346).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KAccountTemplateSelectorDecl::languageChange()
{
    m_groupList->header()->setLabel( 0, tr2i18n( "Account Types" ) );
    m_groupList->header()->setLabel( 1, tr2i18n( "Description" ) );
    groupBox1->setTitle( tr2i18n( "Detailed description" ) );
    groupBox2->setTitle( tr2i18n( "Accounts" ) );
    m_accountList->header()->setLabel( 0, tr2i18n( "Name" ) );
}

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

TQMetaObject *KAccountTemplateSelectorDecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KAccountTemplateSelectorDecl( "KAccountTemplateSelectorDecl", &KAccountTemplateSelectorDecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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