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

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

#include "kaccountselectdlgdecl.h"

#include <ntqvariant.h>
#include <kmymoney/kmymoneycategory.h>
#include <ntqpushbutton.h>
#include <ntqtextedit.h>
#include <kpushbutton.h>
#include <kactivelabel.h>
#include <ntqlabel.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KAccountSelectDlgDecl as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
KAccountSelectDlgDecl::KAccountSelectDlgDecl( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KAccountSelectDlgDecl" );
    setSizeGripEnabled( true );
    KAccountSelectDlgDeclLayout = new TQVBoxLayout( this, 11, 6, "KAccountSelectDlgDeclLayout"); 

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

    m_qifEntry = new TQTextEdit( this, "m_qifEntry" );
    m_qifEntry->setTextFormat( TQTextEdit::PlainText );
    m_qifEntry->setWordWrap( TQTextEdit::NoWrap );
    m_qifEntry->setUndoDepth( 0 );
    m_qifEntry->setReadOnly( true );
    m_qifEntry->setUndoRedoEnabled( false );
    layout19->addWidget( m_qifEntry );

    layout18 = new TQVBoxLayout( 0, 0, 6, "layout18"); 

    layout17 = new TQGridLayout( 0, 1, 1, 0, 6, "layout17"); 

    m_createButton = new KPushButton( this, "m_createButton" );

    layout17->addWidget( m_createButton, 3, 1 );

    m_accountSelector = new KMyMoneyCategory( this, "m_accountSelector" );

    layout17->addMultiCellWidget( m_accountSelector, 2, 2, 0, 1 );
    spacer6 = new TQSpacerItem( 110, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout17->addItem( spacer6, 3, 0 );

    m_descLabel = new KActiveLabel( this, "m_descLabel" );

    layout17->addMultiCellWidget( m_descLabel, 0, 0, 0, 1 );

    m_headerLabel = new TQLabel( this, "m_headerLabel" );

    layout17->addMultiCellWidget( m_headerLabel, 1, 1, 0, 1 );
    layout18->addLayout( layout17 );
    spacer2 = new TQSpacerItem( 16, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout18->addItem( spacer2 );
    layout19->addLayout( layout18 );
    KAccountSelectDlgDeclLayout->addLayout( layout19 );

    Line2_2 = new TQFrame( this, "Line2_2" );
    Line2_2->setFrameShape( TQFrame::HLine );
    Line2_2->setFrameShadow( TQFrame::Sunken );
    Line2_2->setFrameShape( TQFrame::HLine );
    KAccountSelectDlgDeclLayout->addWidget( Line2_2 );

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

    m_kButtonAbort = new KPushButton( this, "m_kButtonAbort" );
    layout4->addWidget( m_kButtonAbort );
    Spacer1 = new TQSpacerItem( 160, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout4->addItem( Spacer1 );

    m_qbuttonOk = new KPushButton( this, "m_qbuttonOk" );
    layout4->addWidget( m_qbuttonOk );

    m_qbuttonCancel = new KPushButton( this, "m_qbuttonCancel" );
    layout4->addWidget( m_qbuttonCancel );
    KAccountSelectDlgDeclLayout->addLayout( layout4 );
    languageChange();
    resize( TQSize(651, 434).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KAccountSelectDlgDecl::languageChange()
{
    setCaption( tr2i18n( "Account selection" ) );
    m_createButton->setText( tr2i18n( "Create" ) );
    m_headerLabel->setText( tr2i18n( "Account to import to" ) );
    m_kButtonAbort->setText( tr2i18n( "Abort" ) );
    m_qbuttonOk->setText( tr2i18n( "OK" ) );
    m_qbuttonCancel->setText( tr2i18n( "Skip" ) );
}

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

TQMetaObject *KAccountSelectDlgDecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KAccountSelectDlgDecl( "KAccountSelectDlgDecl", &KAccountSelectDlgDecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KAccountSelectDlgDecl::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KAccountSelectDlgDecl", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KAccountSelectDlgDecl.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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