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

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

#include "kmymoneyreportconfigtab2decl.h"

#include <ntqvariant.h>
#include <kmymoney/kmymoneycombo.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqframe.h>
#include <ntqcheckbox.h>
#include <ntqspinbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

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

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

    layout9->addWidget( textLabel6, 3, 0 );

    m_comboDetail = new TQComboBox( false, this, "m_comboDetail" );

    layout9->addWidget( m_comboDetail, 3, 1 );

    m_budgetFrame = new TQFrame( this, "m_budgetFrame" );
    m_budgetFrame->setEnabled( false );
    m_budgetFrame->setFrameShape( TQFrame::NoFrame );
    m_budgetFrame->setFrameShadow( TQFrame::Raised );
    m_budgetFrameLayout = new TQHBoxLayout( m_budgetFrame, 0, 6, "m_budgetFrameLayout"); 

    textLabel1 = new TQLabel( m_budgetFrame, "textLabel1" );
    m_budgetFrameLayout->addWidget( textLabel1 );

    m_comboBudget = new KMyMoneyGeneralCombo( m_budgetFrame, "m_comboBudget" );
    m_budgetFrameLayout->addWidget( m_comboBudget );

    layout9->addWidget( m_budgetFrame, 0, 2 );

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

    layout9->addWidget( textLabel4, 0, 0 );

    m_comboColumns = new TQComboBox( false, this, "m_comboColumns" );

    layout9->addWidget( m_comboColumns, 0, 1 );

    m_comboRows = new TQComboBox( false, this, "m_comboRows" );

    layout9->addWidget( m_comboRows, 2, 1 );

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

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

    m_checkTotalColumn = new TQCheckBox( this, "m_checkTotalColumn" );
    m_checkTotalColumn->setEnabled( false );

    layout9->addWidget( m_checkTotalColumn, 1, 1 );

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

    layout9->addWidget( textLabel10, 4, 0 );

    m_movingAverageDays = new TQSpinBox( this, "m_movingAverageDays" );
    m_movingAverageDays->setMaxValue( 366 );
    m_movingAverageDays->setMinValue( 1 );

    layout9->addWidget( m_movingAverageDays, 4, 1 );
    layout10->addLayout( layout9 );
    spacer12_2 = new TQSpacerItem( 94, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout10->addItem( spacer12_2 );
    kMyMoneyReportConfigTab2DeclLayout->addLayout( layout10 );

    m_checkScheduled = new TQCheckBox( this, "m_checkScheduled" );
    kMyMoneyReportConfigTab2DeclLayout->addWidget( m_checkScheduled );

    m_checkTransfers = new TQCheckBox( this, "m_checkTransfers" );
    kMyMoneyReportConfigTab2DeclLayout->addWidget( m_checkTransfers );

    m_checkUnused = new TQCheckBox( this, "m_checkUnused" );
    kMyMoneyReportConfigTab2DeclLayout->addWidget( m_checkUnused );
    spacer13 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    kMyMoneyReportConfigTab2DeclLayout->addItem( spacer13 );
    languageChange();
    resize( TQSize(600, 278).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void kMyMoneyReportConfigTab2Decl::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>" ) );
    textLabel6->setText( tr2i18n( "Detail" ) );
    m_comboDetail->clear();
    m_comboDetail->insertItem( tr2i18n( "All" ) );
    m_comboDetail->insertItem( tr2i18n( "Top-Level" ) );
    m_comboDetail->insertItem( tr2i18n( "Groups" ) );
    m_comboDetail->insertItem( tr2i18n( "Totals" ) );
    TQToolTip::add( m_comboDetail, tr2i18n( "<p>Choose what kind of accounts to display as the rows of this report.</p>" ) );
    textLabel1->setText( tr2i18n( "Budget" ) );
    textLabel4->setText( tr2i18n( "Columns" ) );
    m_comboColumns->clear();
    m_comboColumns->insertItem( tr2i18n( "Daily" ) );
    m_comboColumns->insertItem( tr2i18n( "Weekly" ) );
    m_comboColumns->insertItem( tr2i18n( "Monthly" ) );
    m_comboColumns->insertItem( tr2i18n( "Bi-Monthly" ) );
    m_comboColumns->insertItem( tr2i18n( "Quarterly" ) );
    m_comboColumns->insertItem( tr2i18n( "Yearly" ) );
    TQToolTip::add( m_comboColumns, tr2i18n( "<p>Choose how large of a time period each column should encompass</p>" ) );
    m_comboRows->clear();
    m_comboRows->insertItem( tr2i18n( "Income & Expenses" ) );
    m_comboRows->insertItem( tr2i18n( "Assets & Liabilities" ) );
    TQToolTip::add( m_comboRows, tr2i18n( "<p>Choose what kind of accounts to display as the rows of this report.</p>" ) );
    textLabel5->setText( tr2i18n( "Rows" ) );
    m_checkTotalColumn->setText( tr2i18n( "Show totals column" ) );
    textLabel10->setText( tr2i18n( "Average days" ) );
    m_checkScheduled->setText( tr2i18n( "Include scheduled transactions" ) );
    m_checkTransfers->setText( tr2i18n( "Include transfers" ) );
    m_checkUnused->setText( tr2i18n( "Include unused accounts/categories" ) );
}

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

TQMetaObject *kMyMoneyReportConfigTab2Decl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_kMyMoneyReportConfigTab2Decl( "kMyMoneyReportConfigTab2Decl", &kMyMoneyReportConfigTab2Decl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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