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

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

#include "knewaccountdlgdecl.h"

#include <ntqvariant.h>
#include <kmymoney/kmymoneydateinput.h>
#include <kmymoney/kmymoneyedit.h>
#include <kmymoney/kmymoneycategory.h>
#include <kmymoney/kmymoneycombo.h>
#include <kmymoney/kmymoneycurrencyselector.h>
#include <../widgets/kmymoneyaccounttreebase.h>
#include <../widgets/kmymoneyaccountselector.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqgroupbox.h>
#include <ntqcombobox.h>
#include <klineedit.h>
#include <ntqtextedit.h>
#include <ntqcheckbox.h>
#include <kactivelabel.h>
#include <ntqframe.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <kpushbutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    m_tab = new TQTabWidget( this, "m_tab" );

    m_generalTab = new TQWidget( m_tab, "m_generalTab" );
    m_generalTabLayout = new TQVBoxLayout( m_generalTab, 11, 6, "m_generalTabLayout"); 

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

    TextLabel1 = new TQLabel( m_generalTab, "TextLabel1" );
    TextLabel1->setMinimumSize( TQSize( 60, 0 ) );
    TextLabel1->setMaximumSize( TQSize( 60, 32767 ) );
    TextLabel1->setFrameShape( TQLabel::MShape );
    TextLabel1->setFrameShadow( TQLabel::MShadow );
    layout15->addWidget( TextLabel1 );

    accountNameEdit = new TQLineEdit( m_generalTab, "accountNameEdit" );
    layout15->addWidget( accountNameEdit );
    m_generalTabLayout->addLayout( layout15 );

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

    m_currency = new KMyMoneySecuritySelector( groupBox4, "m_currency" );

    groupBox4Layout->addWidget( m_currency, 1, 1 );

    m_currencyText = new TQLabel( groupBox4, "m_currencyText" );

    groupBox4Layout->addWidget( m_currencyText, 1, 0 );

    typeCombo = new TQComboBox( false, groupBox4, "typeCombo" );
    typeCombo->setEnabled( true );
    typeCombo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, typeCombo->sizePolicy().hasHeightForWidth() ) );

    groupBox4Layout->addWidget( typeCombo, 0, 1 );

    textLabel2 = new TQLabel( groupBox4, "textLabel2" );

    groupBox4Layout->addWidget( textLabel2, 0, 0 );

    TextLabel1_2 = new TQLabel( groupBox4, "TextLabel1_2" );
    TextLabel1_2->setMinimumSize( TQSize( 0, 0 ) );
    TextLabel1_2->setFrameShape( TQLabel::MShape );
    TextLabel1_2->setFrameShadow( TQLabel::MShadow );

    groupBox4Layout->addWidget( TextLabel1_2, 0, 2 );

    startDateEdit = new kMyMoneyDateInput( groupBox4, "startDateEdit" );

    groupBox4Layout->addWidget( startDateEdit, 0, 3 );

    textLabel1_3 = new TQLabel( groupBox4, "textLabel1_3" );

    groupBox4Layout->addWidget( textLabel1_3, 1, 2 );

    m_openingBalanceEdit = new kMyMoneyEdit( groupBox4, "m_openingBalanceEdit" );

    groupBox4Layout->addWidget( m_openingBalanceEdit, 1, 3 );
    m_generalTabLayout->addWidget( groupBox4 );

    groupBox6 = new TQGroupBox( m_generalTab, "groupBox6" );
    groupBox6->setColumnLayout(0, TQt::Vertical );
    groupBox6->layout()->setSpacing( 6 );
    groupBox6->layout()->setMargin( 11 );
    groupBox6Layout = new TQVBoxLayout( groupBox6->layout() );
    groupBox6Layout->setAlignment( TQt::AlignTop );

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

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

    m_lastCheckNumberUsed = new KLineEdit( groupBox6, "m_lastCheckNumberUsed" );
    layout19->addWidget( m_lastCheckNumberUsed );
    spacer10_2 = new TQSpacerItem( 140, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout19->addItem( spacer10_2 );

    layout20->addLayout( layout19, 0, 1 );

    textLabel1_2 = new TQLabel( groupBox6, "textLabel1_2" );

    layout20->addWidget( textLabel1_2, 0, 0 );

    TextLabel5 = new TQLabel( groupBox6, "TextLabel5" );
    TextLabel5->setMinimumSize( TQSize( 0, 0 ) );
    TextLabel5->setMaximumSize( TQSize( 32767, 32767 ) );
    TextLabel5->setAlignment( int( TQLabel::AlignTop ) );

    layout20->addWidget( TextLabel5, 1, 0 );

    descriptionEdit = new TQTextEdit( groupBox6, "descriptionEdit" );

    layout20->addWidget( descriptionEdit, 1, 1 );
    groupBox6Layout->addLayout( layout20 );

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

    m_qcheckboxNoVat = new TQCheckBox( groupBox6, "m_qcheckboxNoVat" );

    layout18->addWidget( m_qcheckboxNoVat, 1, 0 );

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

    textLabel1_5 = new TQLabel( groupBox6, "textLabel1_5" );
    layout17->addWidget( textLabel1_5 );

    m_priceMode = new KMyMoneyGeneralCombo( groupBox6, "m_priceMode" );
    m_priceMode->setEnabled( false );
    m_priceMode->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, m_priceMode->sizePolicy().hasHeightForWidth() ) );
    layout17->addWidget( m_priceMode );

    layout18->addLayout( layout17, 0, 1 );

    m_qcheckboxPreferred = new TQCheckBox( groupBox6, "m_qcheckboxPreferred" );

    layout18->addWidget( m_qcheckboxPreferred, 0, 0 );
    groupBox6Layout->addLayout( layout18 );
    m_generalTabLayout->addWidget( groupBox6 );
    spacer9 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    m_generalTabLayout->addItem( spacer9 );
    m_tab->insertTab( m_generalTab, TQString::fromLatin1("") );

    m_institutionTab = new TQWidget( m_tab, "m_institutionTab" );
    m_institutionTabLayout = new TQVBoxLayout( m_institutionTab, 11, 6, "m_institutionTabLayout"); 

    m_institutionBox = new TQGroupBox( m_institutionTab, "m_institutionBox" );
    m_institutionBox->setColumnLayout(0, TQt::Vertical );
    m_institutionBox->layout()->setSpacing( 6 );
    m_institutionBox->layout()->setMargin( 11 );
    m_institutionBoxLayout = new TQVBoxLayout( m_institutionBox->layout() );
    m_institutionBoxLayout->setAlignment( TQt::AlignTop );

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

    m_qcomboboxInstitutions = new TQComboBox( false, m_institutionBox, "m_qcomboboxInstitutions" );
    Layout11->addWidget( m_qcomboboxInstitutions );

    m_qbuttonNew = new TQPushButton( m_institutionBox, "m_qbuttonNew" );
    m_qbuttonNew->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_qbuttonNew->sizePolicy().hasHeightForWidth() ) );
    Layout11->addWidget( m_qbuttonNew );
    m_institutionBoxLayout->addLayout( Layout11 );

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

    accountNoEdit = new KLineEdit( m_institutionBox, "accountNoEdit" );

    layout14->addWidget( accountNoEdit, 2, 1 );

    TextLabel2_2 = new TQLabel( m_institutionBox, "TextLabel2_2" );
    TextLabel2_2->setMinimumSize( TQSize( 60, 0 ) );
    TextLabel2_2->setMaximumSize( TQSize( 60, 32767 ) );

    layout14->addWidget( TextLabel2_2, 2, 0 );

    textLabel1_4 = new TQLabel( m_institutionBox, "textLabel1_4" );

    layout14->addWidget( textLabel1_4, 0, 0 );

    ibanEdit = new KLineEdit( m_institutionBox, "ibanEdit" );

    layout14->addWidget( ibanEdit, 1, 1 );

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

    layout14->addWidget( textLabel3, 1, 0 );

    m_bicValue = new TQLabel( m_institutionBox, "m_bicValue" );

    layout14->addWidget( m_bicValue, 0, 1 );
    m_institutionBoxLayout->addLayout( layout14 );
    m_institutionTabLayout->addWidget( m_institutionBox );
    spacer8_2 = new TQSpacerItem( 21, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    m_institutionTabLayout->addItem( spacer8_2 );
    m_tab->insertTab( m_institutionTab, TQString::fromLatin1("") );

    m_hiearchyTab = new TQWidget( m_tab, "m_hiearchyTab" );
    m_hiearchyTabLayout = new TQVBoxLayout( m_hiearchyTab, 11, 6, "m_hiearchyTabLayout"); 

    m_subAccountLabel = new TQLabel( m_hiearchyTab, "m_subAccountLabel" );
    m_hiearchyTabLayout->addWidget( m_subAccountLabel );

    m_qlistviewParentAccounts = new KMyMoneyAccountTreeBase( m_hiearchyTab, "m_qlistviewParentAccounts" );
    m_hiearchyTabLayout->addWidget( m_qlistviewParentAccounts );
    m_tab->insertTab( m_hiearchyTab, TQString::fromLatin1("") );

    m_limitsTab = new TQWidget( m_tab, "m_limitsTab" );
    m_limitsTabLayout = new TQVBoxLayout( m_limitsTab, 11, 6, "m_limitsTabLayout"); 

    kActiveLabel1 = new KActiveLabel( m_limitsTab, "kActiveLabel1" );
    m_limitsTabLayout->addWidget( kActiveLabel1 );

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

    textLabel2_2 = new TQLabel( m_limitsTab, "textLabel2_2" );

    layout16->addWidget( textLabel2_2, 0, 0 );

    m_minBalanceAbsoluteEdit = new kMyMoneyEdit( m_limitsTab, "m_minBalanceAbsoluteEdit" );
    m_minBalanceAbsoluteEdit->setProperty( "resetButtonVisibility", TQVariant( false ) );

    layout16->addWidget( m_minBalanceAbsoluteEdit, 2, 2 );

    textLabel3_2 = new TQLabel( m_limitsTab, "textLabel3_2" );

    layout16->addWidget( textLabel3_2, 0, 2 );

    m_maxCreditLabel = new TQLabel( m_limitsTab, "m_maxCreditLabel" );

    layout16->addWidget( m_maxCreditLabel, 3, 0 );

    m_maxCreditEarlyEdit = new kMyMoneyEdit( m_limitsTab, "m_maxCreditEarlyEdit" );
    m_maxCreditEarlyEdit->setProperty( "resetButtonVisibility", TQVariant( false ) );

    layout16->addWidget( m_maxCreditEarlyEdit, 3, 1 );

    m_maxCreditAbsoluteEdit = new kMyMoneyEdit( m_limitsTab, "m_maxCreditAbsoluteEdit" );
    m_maxCreditAbsoluteEdit->setProperty( "resetButtonVisibility", TQVariant( false ) );

    layout16->addWidget( m_maxCreditAbsoluteEdit, 3, 2 );

    m_minBalanceEarlyEdit = new kMyMoneyEdit( m_limitsTab, "m_minBalanceEarlyEdit" );
    m_minBalanceEarlyEdit->setProperty( "resetButtonVisibility", TQVariant( false ) );

    layout16->addWidget( m_minBalanceEarlyEdit, 2, 1 );

    m_minBalanceLabel = new TQLabel( m_limitsTab, "m_minBalanceLabel" );

    layout16->addWidget( m_minBalanceLabel, 2, 0 );

    line2 = new TQFrame( m_limitsTab, "line2" );
    line2->setFrameShape( TQFrame::HLine );
    line2->setFrameShadow( TQFrame::Sunken );
    line2->setFrameShape( TQFrame::HLine );

    layout16->addMultiCellWidget( line2, 1, 1, 0, 2 );

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

    layout16->addWidget( textLabel4, 0, 1 );
    m_limitsTabLayout->addLayout( layout16 );
    spacer10_3 = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    m_limitsTabLayout->addItem( spacer10_3 );
    m_tab->insertTab( m_limitsTab, TQString::fromLatin1("") );

    m_taxTab = new TQWidget( m_tab, "m_taxTab" );
    m_taxTabLayout = new TQVBoxLayout( m_taxTab, 11, 6, "m_taxTabLayout"); 

    groupBox3 = new TQGroupBox( m_taxTab, "groupBox3" );
    groupBox3->setColumnLayout(0, TQt::Vertical );
    groupBox3->layout()->setSpacing( 6 );
    groupBox3->layout()->setMargin( 11 );
    groupBox3Layout = new TQHBoxLayout( groupBox3->layout() );
    groupBox3Layout->setAlignment( TQt::AlignTop );

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

    m_vatCategory = new TQCheckBox( groupBox3, "m_vatCategory" );
    layout34->addWidget( m_vatCategory );

    m_vatCategoryFrame = new TQFrame( groupBox3, "m_vatCategoryFrame" );
    m_vatCategoryFrame->setFrameShape( TQFrame::NoFrame );
    m_vatCategoryFrame->setFrameShadow( TQFrame::Plain );
    m_vatCategoryFrameLayout = new TQVBoxLayout( m_vatCategoryFrame, 0, 6, "m_vatCategoryFrameLayout"); 

    textLabel1 = new TQLabel( m_vatCategoryFrame, "textLabel1" );
    m_vatCategoryFrameLayout->addWidget( textLabel1 );

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

    m_vatRate = new kMyMoneyEdit( m_vatCategoryFrame, "m_vatRate" );
    layout33->addWidget( m_vatRate );
    spacer17 = new TQSpacerItem( 21, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout33->addItem( spacer17 );
    m_vatCategoryFrameLayout->addLayout( layout33 );
    layout34->addWidget( m_vatCategoryFrame );
    spacer6 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout34->addItem( spacer6 );
    groupBox3Layout->addLayout( layout34 );

    m_vatAssignmentFrame = new TQFrame( groupBox3, "m_vatAssignmentFrame" );
    m_vatAssignmentFrame->setFrameShape( TQFrame::NoFrame );
    m_vatAssignmentFrame->setFrameShadow( TQFrame::Plain );
    m_vatAssignmentFrameLayout = new TQHBoxLayout( m_vatAssignmentFrame, 0, 6, "m_vatAssignmentFrameLayout"); 

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

    m_vatAssignment = new TQCheckBox( m_vatAssignmentFrame, "m_vatAssignment" );
    layout8->addWidget( m_vatAssignment );

    m_vatAccount = new kMyMoneyAccountSelector( m_vatAssignmentFrame, "m_vatAccount" );
    layout8->addWidget( m_vatAccount );
    m_vatAssignmentFrameLayout->addLayout( layout8 );

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

    m_amountGroup = new TQButtonGroup( m_vatAssignmentFrame, "m_amountGroup" );
    m_amountGroup->setMinimumSize( TQSize( 0, 0 ) );
    m_amountGroup->setMaximumSize( TQSize( 32767, 32767 ) );
    m_amountGroup->setFrameShape( TQButtonGroup::GroupBoxPanel );
    m_amountGroup->setFrameShadow( TQButtonGroup::Sunken );
    m_amountGroup->setColumnLayout(0, TQt::Vertical );
    m_amountGroup->layout()->setSpacing( 6 );
    m_amountGroup->layout()->setMargin( 11 );
    m_amountGroupLayout = new TQVBoxLayout( m_amountGroup->layout() );
    m_amountGroupLayout->setAlignment( TQt::AlignTop );

    m_grossAmount = new TQRadioButton( m_amountGroup, "m_grossAmount" );
    m_grossAmount->setChecked( true );
    m_amountGroupLayout->addWidget( m_grossAmount );

    m_netAmount = new TQRadioButton( m_amountGroup, "m_netAmount" );
    m_amountGroupLayout->addWidget( m_netAmount );
    layout13->addWidget( m_amountGroup );
    spacer7 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout13->addItem( spacer7 );
    m_vatAssignmentFrameLayout->addLayout( layout13 );
    groupBox3Layout->addWidget( m_vatAssignmentFrame );
    m_taxTabLayout->addWidget( groupBox3 );

    m_qcheckboxTax = new TQCheckBox( m_taxTab, "m_qcheckboxTax" );
    m_taxTabLayout->addWidget( m_qcheckboxTax );
    m_tab->insertTab( m_taxTab, TQString::fromLatin1("") );
    kNewAccountDlgDeclLayout->addWidget( m_tab );

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

    Layout29 = new TQHBoxLayout( 0, 0, 6, "Layout29"); 
    Spacer1 = new TQSpacerItem( 422, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout29->addItem( Spacer1 );

    createButton = new KPushButton( this, "createButton" );
    createButton->setAutoDefault( true );
    createButton->setDefault( true );
    Layout29->addWidget( createButton );

    cancelButton = new KPushButton( this, "cancelButton" );
    cancelButton->setAutoDefault( true );
    cancelButton->setDefault( false );
    Layout29->addWidget( cancelButton );
    kNewAccountDlgDeclLayout->addLayout( Layout29 );
    languageChange();
    resize( TQSize(670, 518).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( m_tab, accountNameEdit );
    setTabOrder( accountNameEdit, typeCombo );
    setTabOrder( typeCombo, startDateEdit );
    setTabOrder( startDateEdit, m_currency );
    setTabOrder( m_currency, m_openingBalanceEdit );
    setTabOrder( m_openingBalanceEdit, m_lastCheckNumberUsed );
    setTabOrder( m_lastCheckNumberUsed, descriptionEdit );
    setTabOrder( descriptionEdit, m_qcheckboxPreferred );
    setTabOrder( m_qcheckboxPreferred, m_qcheckboxNoVat );
    setTabOrder( m_qcheckboxNoVat, m_qcomboboxInstitutions );
    setTabOrder( m_qcomboboxInstitutions, m_qbuttonNew );
    setTabOrder( m_qbuttonNew, ibanEdit );
    setTabOrder( ibanEdit, accountNoEdit );
    setTabOrder( accountNoEdit, m_qlistviewParentAccounts );
    setTabOrder( m_qlistviewParentAccounts, kActiveLabel1 );
    setTabOrder( kActiveLabel1, m_minBalanceEarlyEdit );
    setTabOrder( m_minBalanceEarlyEdit, m_minBalanceAbsoluteEdit );
    setTabOrder( m_minBalanceAbsoluteEdit, m_maxCreditEarlyEdit );
    setTabOrder( m_maxCreditEarlyEdit, m_maxCreditAbsoluteEdit );
    setTabOrder( m_maxCreditAbsoluteEdit, m_vatCategory );
    setTabOrder( m_vatCategory, m_vatRate );
    setTabOrder( m_vatRate, m_vatAssignment );
    setTabOrder( m_vatAssignment, m_grossAmount );
    setTabOrder( m_grossAmount, m_qcheckboxTax );
    setTabOrder( m_qcheckboxTax, createButton );
    setTabOrder( createButton, cancelButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KNewAccountDlgDecl::languageChange()
{
    setCaption( tr2i18n( "New Account Dialog" ) );
    TextLabel1->setText( tr2i18n( "Name:" ) );
    groupBox4->setTitle( tr2i18n( "Opening information" ) );
    m_currencyText->setText( tr2i18n( "Currency:" ) );
    textLabel2->setText( tr2i18n( "Type:" ) );
    TextLabel1_2->setText( tr2i18n( "Date:" ) );
    textLabel1_3->setText( tr2i18n( "Balance:" ) );
    groupBox6->setTitle( tr2i18n( "Options" ) );
    textLabel1_2->setText( tr2i18n( "Last check number:" ) );
    TextLabel5->setText( tr2i18n( "Notes:" ) );
    m_qcheckboxNoVat->setText( tr2i18n( "No auto-VAT-assignment" ) );
    textLabel1_5->setText( tr2i18n( "Price entry" ) );
    m_qcheckboxPreferred->setText( tr2i18n( "Preferred Account" ) );
    m_tab->changeTab( m_generalTab, tr2i18n( "General" ) );
    m_institutionBox->setTitle( tr2i18n( "Institution" ) );
    m_qbuttonNew->setText( tr2i18n( "New..." ) );
    TextLabel2_2->setText( tr2i18n( "Number:" ) );
    textLabel1_4->setText( tr2i18n( "BIC" ) );
    textLabel3->setText( tr2i18n( "IBAN" ) );
    m_bicValue->setText( tr2i18n( "x" ) );
    m_tab->changeTab( m_institutionTab, tr2i18n( "Institution" ) );
    m_subAccountLabel->setText( tr2i18n( "Subaccount" ) );
    m_tab->changeTab( m_hiearchyTab, tr2i18n( "Hierarchy" ) );
    kActiveLabel1->setText( tr2i18n( "This page allows to setup certain limits. KMyMoney will warn you when the account balance reaches a limit." ) );
    textLabel2_2->setText( tr2i18n( "Type" ) );
    textLabel3_2->setText( tr2i18n( "Absolute limit" ) );
    m_maxCreditLabel->setText( tr2i18n( "Maximum credit limit" ) );
    m_minBalanceLabel->setText( tr2i18n( "Minimum balance" ) );
    textLabel4->setText( tr2i18n( "Early warning" ) );
    m_tab->changeTab( m_limitsTab, tr2i18n( "Limits" ) );
    groupBox3->setTitle( tr2i18n( "VAT details" ) );
    m_vatCategory->setText( tr2i18n( "VAT category" ) );
    textLabel1->setText( tr2i18n( "VAT percentage" ) );
    m_vatAssignment->setText( tr2i18n( "Enable auto VAT assignment" ) );
    m_amountGroup->setTitle( tr2i18n( "Amount entered" ) );
    m_grossAmount->setText( tr2i18n( "Gross amount" ) );
    m_netAmount->setText( tr2i18n( "Net amount" ) );
    m_qcheckboxTax->setText( tr2i18n( "Include on Tax Reports" ) );
    m_tab->changeTab( m_taxTab, tr2i18n( "Tax" ) );
    createButton->setText( tr2i18n( "OK" ) );
    cancelButton->setText( tr2i18n( "Cancel" ) );
}

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

TQMetaObject *KNewAccountDlgDecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KNewAccountDlgDecl( "KNewAccountDlgDecl", &KNewAccountDlgDecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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