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

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

#include "kmymoneyfileinfodlgdecl.h"

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

/*
 *  Constructs a KMyMoneyFileInfoDlgDecl 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.
 */
KMyMoneyFileInfoDlgDecl::KMyMoneyFileInfoDlgDecl( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KMyMoneyFileInfoDlgDecl" );
    setSizeGripEnabled( true );
    setModal( true );
    KMyMoneyFileInfoDlgDeclLayout = new TQVBoxLayout( this, 11, 6, "KMyMoneyFileInfoDlgDeclLayout"); 

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

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

    layout3->addWidget( m_baseCurrency, 2, 1 );

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

    layout3->addWidget( m_scheduleCount, 9, 1 );

    m_accountView = new TDEListView( this, "m_accountView" );
    m_accountView->addColumn( tr2i18n( "Type" ) );
    m_accountView->header()->setClickEnabled( false, m_accountView->header()->count() - 1 );
    m_accountView->header()->setResizeEnabled( false, m_accountView->header()->count() - 1 );
    m_accountView->addColumn( tr2i18n( "Total" ) );
    m_accountView->header()->setClickEnabled( false, m_accountView->header()->count() - 1 );
    m_accountView->header()->setResizeEnabled( false, m_accountView->header()->count() - 1 );
    m_accountView->addColumn( tr2i18n( "Closed" ) );
    m_accountView->header()->setClickEnabled( false, m_accountView->header()->count() - 1 );
    m_accountView->header()->setResizeEnabled( false, m_accountView->header()->count() - 1 );
    m_accountView->setAllColumnsShowFocus( true );
    m_accountView->setRootIsDecorated( true );
    m_accountView->setResizeMode( TDEListView::AllColumns );

    layout3->addMultiCellWidget( m_accountView, 6, 6, 0, 1 );

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

    layout3->addWidget( textLabel7, 5, 0 );

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

    layout3->addWidget( textLabel19, 10, 0 );

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

    layout3->addWidget( textLabel3, 0, 0 );

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

    layout3->addWidget( m_priceCount, 10, 1 );

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

    layout3->addWidget( textLabel9, 9, 0 );

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

    layout3->addWidget( textLabel8, 7, 0 );

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

    layout3->addWidget( textLabel1, 8, 0 );

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

    layout3->addWidget( m_payeeCount, 3, 1 );

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

    layout3->addWidget( m_institutionCount, 4, 1 );

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

    layout3->addWidget( textLabel6, 4, 0 );

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

    layout3->addWidget( m_creationDate, 0, 1 );

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

    layout3->addWidget( m_transactionCount, 7, 1 );

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

    layout3->addWidget( m_accountCount, 5, 1 );

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

    layout3->addWidget( textLabel10, 3, 0 );

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

    layout3->addWidget( textLabel5, 2, 0 );

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

    layout3->addWidget( textLabel4, 1, 0 );

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

    layout3->addWidget( m_splitCount, 8, 1 );

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

    layout3->addWidget( m_lastModificationDate, 1, 1 );
    KMyMoneyFileInfoDlgDeclLayout->addLayout( layout3 );
    spacer4 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    KMyMoneyFileInfoDlgDeclLayout->addItem( spacer4 );

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

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

    buttonHelp = new TQPushButton( this, "buttonHelp" );
    buttonHelp->setAutoDefault( true );
    layout2->addWidget( buttonHelp );
    Horizontal_Spacing2 = new TQSpacerItem( 120, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addItem( Horizontal_Spacing2 );

    buttonOk = new KPushButton( this, "buttonOk" );
    buttonOk->setProperty( "stdItem", 1 );
    layout2->addWidget( buttonOk );

    buttonCancel = new KPushButton( this, "buttonCancel" );
    buttonCancel->setProperty( "stdItem", 2 );
    layout2->addWidget( buttonCancel );
    KMyMoneyFileInfoDlgDeclLayout->addLayout( layout2 );
    languageChange();
    resize( TQSize(521, 471).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( buttonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KMyMoneyFileInfoDlgDecl::languageChange()
{
    setCaption( tr2i18n( "File Information" ) );
    m_baseCurrency->setText( tr2i18n( "x" ) );
    m_scheduleCount->setText( tr2i18n( "x" ) );
    m_accountView->header()->setLabel( 0, tr2i18n( "Type" ) );
    m_accountView->header()->setLabel( 1, tr2i18n( "Total" ) );
    m_accountView->header()->setLabel( 2, tr2i18n( "Closed" ) );
    textLabel7->setText( tr2i18n( "Accounts/Categories" ) );
    textLabel19->setText( tr2i18n( "Prices" ) );
    textLabel3->setText( tr2i18n( "Created on" ) );
    m_priceCount->setText( tr2i18n( "x" ) );
    textLabel9->setText( tr2i18n( "Schedules" ) );
    textLabel8->setText( tr2i18n( "Transactions" ) );
    textLabel1->setText( tr2i18n( "Splits" ) );
    m_payeeCount->setText( tr2i18n( "x" ) );
    m_institutionCount->setText( tr2i18n( "x" ) );
    textLabel6->setText( tr2i18n( "Institutions" ) );
    m_creationDate->setText( tr2i18n( "x" ) );
    m_transactionCount->setText( tr2i18n( "x" ) );
    m_accountCount->setText( tr2i18n( "x" ) );
    textLabel10->setText( tr2i18n( "Payees" ) );
    textLabel5->setText( tr2i18n( "Base currency" ) );
    textLabel4->setText( tr2i18n( "Last modified on" ) );
    m_splitCount->setText( tr2i18n( "x" ) );
    m_lastModificationDate->setText( tr2i18n( "x" ) );
    buttonHelp->setText( tr2i18n( "Help" ) );
    buttonHelp->setAccel( TQKeySequence( tr2i18n( "F1" ) ) );
    buttonOk->setText( tr2i18n( "&OK" ) );
    buttonCancel->setText( tr2i18n( "&Cancel" ) );
}

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

TQMetaObject *KMyMoneyFileInfoDlgDecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KMyMoneyFileInfoDlgDecl( "KMyMoneyFileInfoDlgDecl", &KMyMoneyFileInfoDlgDecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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