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

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

#include "kmymoneyreportconfigtab3decl.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqbuttongroup.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    textLabel3 = new TQLabel( this, "textLabel3" );
    textLabel3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );
    TQFont textLabel3_font(  textLabel3->font() );
    textLabel3->setFont( textLabel3_font ); 
    layout11->addWidget( textLabel3 );

    m_comboOrganizeBy = new TQComboBox( false, this, "m_comboOrganizeBy" );
    m_comboOrganizeBy->setEnabled( true );
    m_comboOrganizeBy->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_comboOrganizeBy->sizePolicy().hasHeightForWidth() ) );
    layout11->addWidget( m_comboOrganizeBy );
    spacer10_2 = new TQSpacerItem( 358, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout11->addItem( spacer10_2 );
    kMyMoneyReportConfigTab3DeclLayout->addLayout( layout11 );

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

    buttonGroup1 = new TQButtonGroup( this, "buttonGroup1" );
    buttonGroup1->setEnabled( true );
    buttonGroup1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, buttonGroup1->sizePolicy().hasHeightForWidth() ) );
    buttonGroup1->setColumnLayout(0, TQt::Vertical );
    buttonGroup1->layout()->setSpacing( 2 );
    buttonGroup1->layout()->setMargin( 11 );
    buttonGroup1Layout = new TQGridLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( TQt::AlignTop );

    m_checkMemo = new TQCheckBox( buttonGroup1, "m_checkMemo" );
    m_checkMemo->setMinimumSize( TQSize( 0, 0 ) );

    buttonGroup1Layout->addWidget( m_checkMemo, 1, 1 );

    m_checkShares = new TQCheckBox( buttonGroup1, "m_checkShares" );

    buttonGroup1Layout->addWidget( m_checkShares, 0, 3 );

    m_checkPrice = new TQCheckBox( buttonGroup1, "m_checkPrice" );

    buttonGroup1Layout->addWidget( m_checkPrice, 1, 3 );

    m_checkReconciled = new TQCheckBox( buttonGroup1, "m_checkReconciled" );

    buttonGroup1Layout->addWidget( m_checkReconciled, 1, 2 );

    m_checkAccount = new TQCheckBox( buttonGroup1, "m_checkAccount" );

    buttonGroup1Layout->addWidget( m_checkAccount, 0, 2 );

    m_checkNumber = new TQCheckBox( buttonGroup1, "m_checkNumber" );
    m_checkNumber->setMinimumSize( TQSize( 0, 0 ) );

    buttonGroup1Layout->addWidget( m_checkNumber, 0, 0 );

    m_checkPayee = new TQCheckBox( buttonGroup1, "m_checkPayee" );
    m_checkPayee->setMinimumSize( TQSize( 0, 0 ) );

    buttonGroup1Layout->addWidget( m_checkPayee, 1, 0 );

    m_checkCategory = new TQCheckBox( buttonGroup1, "m_checkCategory" );
    m_checkCategory->setMinimumSize( TQSize( 0, 0 ) );

    buttonGroup1Layout->addWidget( m_checkCategory, 0, 1 );

    m_checkAction = new TQCheckBox( buttonGroup1, "m_checkAction" );

    buttonGroup1Layout->addWidget( m_checkAction, 0, 4 );

    m_checkBalance = new TQCheckBox( buttonGroup1, "m_checkBalance" );

    buttonGroup1Layout->addWidget( m_checkBalance, 1, 4 );
    layout4->addWidget( buttonGroup1 );
    spacer10 = new TQSpacerItem( 205, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout4->addItem( spacer10 );
    kMyMoneyReportConfigTab3DeclLayout->addLayout( layout4 );

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

    m_checkLoans = new TQCheckBox( this, "m_checkLoans" );

    layout10->addWidget( m_checkLoans, 2, 0 );

    m_checkInvestments = new TQCheckBox( this, "m_checkInvestments" );

    layout10->addWidget( m_checkInvestments, 1, 0 );

    m_checkHideSplitDetails = new TQCheckBox( this, "m_checkHideSplitDetails" );

    layout10->addWidget( m_checkHideSplitDetails, 0, 1 );

    m_checkTax = new TQCheckBox( this, "m_checkTax" );

    layout10->addWidget( m_checkTax, 0, 0 );
    kMyMoneyReportConfigTab3DeclLayout->addLayout( layout10 );
    spacer4 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    kMyMoneyReportConfigTab3DeclLayout->addItem( spacer4 );
    languageChange();
    resize( TQSize(617, 267).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_checkTax, TQ_SIGNAL( toggled(bool) ), m_checkInvestments, TQ_SLOT( setDisabled(bool) ) );
    connect( m_checkTax, TQ_SIGNAL( toggled(bool) ), m_checkLoans, TQ_SLOT( setDisabled(bool) ) );
    connect( m_checkInvestments, TQ_SIGNAL( toggled(bool) ), m_checkTax, TQ_SLOT( setDisabled(bool) ) );
    connect( m_checkInvestments, TQ_SIGNAL( toggled(bool) ), m_checkLoans, TQ_SLOT( setDisabled(bool) ) );
    connect( m_checkLoans, TQ_SIGNAL( toggled(bool) ), m_checkTax, TQ_SLOT( setDisabled(bool) ) );
    connect( m_checkLoans, TQ_SIGNAL( toggled(bool) ), m_checkInvestments, TQ_SLOT( setDisabled(bool) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void kMyMoneyReportConfigTab3Decl::languageChange()
{
    setCaption( tr2i18n( "Rows/Columns Tab" ) );
    TQToolTip::add( this, TQString::null );
    TQWhatsThis::add( this, tr2i18n( "<p>On this tab, you configure how you'd like the rows and columns to be selected and organized.</p>" ) );
    textLabel3->setText( tr2i18n( "Organize by:" ) );
    m_comboOrganizeBy->clear();
    m_comboOrganizeBy->insertItem( tr2i18n( "Categories" ) );
    m_comboOrganizeBy->insertItem( tr2i18n( "Top Categories" ) );
    m_comboOrganizeBy->insertItem( tr2i18n( "Payees" ) );
    m_comboOrganizeBy->insertItem( tr2i18n( "Accounts" ) );
    m_comboOrganizeBy->insertItem( tr2i18n( "Top Accounts" ) );
    m_comboOrganizeBy->insertItem( tr2i18n( "Month" ) );
    m_comboOrganizeBy->insertItem( tr2i18n( "Week" ) );
    TQToolTip::add( m_comboOrganizeBy, tr2i18n( "<p>Choose how to group the transactions in this report</p>" ) );
    buttonGroup1->setTitle( tr2i18n( "Show Columns" ) );
    TQToolTip::add( buttonGroup1, tr2i18n( "<p>Choose which columns should be shown in the report.</p><p>The date and transaction amount are always shown.</p>" ) );
    m_checkMemo->setText( tr2i18n( "Memo" ) );
    TQToolTip::add( m_checkMemo, tr2i18n( "<p>Select this option to show the Memo column</p>" ) );
    m_checkShares->setText( tr2i18n( "Shares" ) );
    TQToolTip::add( m_checkShares, tr2i18n( "<p>Select this option to show the Shares column for investments</p>" ) );
    m_checkPrice->setText( tr2i18n( "Price" ) );
    TQToolTip::add( m_checkPrice, tr2i18n( "<p>Select this option to show the Price column for investments</p>" ) );
    m_checkReconciled->setText( tr2i18n( "Reconciled" ) );
    TQToolTip::add( m_checkReconciled, tr2i18n( "<p>Select this option to show the Reconciled column</p>" ) );
    m_checkAccount->setText( tr2i18n( "Account" ) );
    TQToolTip::add( m_checkAccount, tr2i18n( "<p>Select this option to show the Account column</p>" ) );
    m_checkNumber->setText( tr2i18n( "Number" ) );
    TQToolTip::add( m_checkNumber, tr2i18n( "<p>Select this option to show the Number column</p>" ) );
    m_checkPayee->setText( tr2i18n( "Payee" ) );
    TQToolTip::add( m_checkPayee, tr2i18n( "<p>Select this option to show the Payee column</p>" ) );
    m_checkCategory->setText( tr2i18n( "Category" ) );
    TQToolTip::add( m_checkCategory, tr2i18n( "<p>Select this option to show the Category column</p>" ) );
    m_checkAction->setText( tr2i18n( "Action" ) );
    TQToolTip::add( m_checkAction, tr2i18n( "<p>Select this option to show the Action column</p>" ) );
    m_checkBalance->setText( tr2i18n( "Balance" ) );
    TQToolTip::add( m_checkBalance, tr2i18n( "<p>Select this option to show the Running balance column</p>" ) );
    m_checkLoans->setText( tr2i18n( "Include only Loan accounts" ) );
    m_checkInvestments->setText( tr2i18n( "Include only Investment accounts" ) );
    TQToolTip::add( m_checkInvestments, tr2i18n( "<p>Check this box to include only those categories which have been marked to \"Include on Tax Reports\"</p>" ) );
    m_checkHideSplitDetails->setText( tr2i18n( "Hide Split Transaction Details" ) );
    TQToolTip::add( m_checkHideSplitDetails, tr2i18n( "Do not display the individual transactions that make up a split transaction" ) );
    m_checkTax->setText( tr2i18n( "Include only Tax categories" ) );
    TQToolTip::add( m_checkTax, tr2i18n( "<p>Check this box to include only those categories which have been marked to \"Include on Tax Reports\"</p>" ) );
}

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

TQMetaObject *kMyMoneyReportConfigTab3Decl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_kMyMoneyReportConfigTab3Decl( "kMyMoneyReportConfigTab3Decl", &kMyMoneyReportConfigTab3Decl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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