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

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

#include "ksettingsforecastdecl.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqspinbox.h>
#include <ntqlabel.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    groupBox6 = new TQGroupBox( this, "groupBox6" );
    groupBox6->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, groupBox6->sizePolicy().hasHeightForWidth() ) );
    groupBox6->setColumnLayout(0, TQt::Vertical );
    groupBox6->layout()->setSpacing( 6 );
    groupBox6->layout()->setMargin( 11 );
    groupBox6Layout = new TQGridLayout( groupBox6->layout() );
    groupBox6Layout->setAlignment( TQt::AlignTop );

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

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

    kcfg_forecastAccountCycle = new TQSpinBox( groupBox6, "kcfg_forecastAccountCycle" );

    layout5->addWidget( kcfg_forecastAccountCycle, 1, 1 );

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

    layout5->addWidget( textLabel2, 1, 0 );

    kcfg_forecastDays = new TQSpinBox( groupBox6, "kcfg_forecastDays" );

    layout5->addWidget( kcfg_forecastDays, 0, 1 );

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

    layout5->addWidget( textLabel1, 2, 0 );

    kcfg_beginForecastDay = new TQSpinBox( groupBox6, "kcfg_beginForecastDay" );

    layout5->addWidget( kcfg_beginForecastDay, 2, 1 );

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

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

    layout7->addLayout( layout5, 0, 0 );
    spacer6 = new TQSpacerItem( 133, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout7->addItem( spacer6, 0, 1 );

    groupBox6Layout->addLayout( layout7, 0, 0 );

    kcfg_forecastMethod = new TQButtonGroup( groupBox6, "kcfg_forecastMethod" );
    kcfg_forecastMethod->setColumnLayout(0, TQt::Vertical );
    kcfg_forecastMethod->layout()->setSpacing( 6 );
    kcfg_forecastMethod->layout()->setMargin( 11 );
    kcfg_forecastMethodLayout = new TQVBoxLayout( kcfg_forecastMethod->layout() );
    kcfg_forecastMethodLayout->setAlignment( TQt::AlignTop );

    radioButton9 = new TQRadioButton( kcfg_forecastMethod, "radioButton9" );
    kcfg_forecastMethod->insert( radioButton9, 0 );
    kcfg_forecastMethodLayout->addWidget( radioButton9 );

    radioButton10 = new TQRadioButton( kcfg_forecastMethod, "radioButton10" );
    kcfg_forecastMethod->insert( radioButton10, 1 );
    kcfg_forecastMethodLayout->addWidget( radioButton10 );

    groupBox6Layout->addWidget( kcfg_forecastMethod, 1, 0 );

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

    textLabel3 = new TQLabel( groupBox3, "textLabel3" );
    unnamedLayout->addWidget( textLabel3 );

    kcfg_forecastCycles = new TQSpinBox( groupBox3, "kcfg_forecastCycles" );
    unnamedLayout->addWidget( kcfg_forecastCycles );
    spacer7 = new TQSpacerItem( 130, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    unnamedLayout->addItem( spacer7 );
    groupBox3Layout->addLayout( unnamedLayout );

    kcfg_historyMethod = new TQButtonGroup( groupBox3, "kcfg_historyMethod" );
    kcfg_historyMethod->setColumnLayout(0, TQt::Vertical );
    kcfg_historyMethod->layout()->setSpacing( 6 );
    kcfg_historyMethod->layout()->setMargin( 11 );
    kcfg_historyMethodLayout = new TQVBoxLayout( kcfg_historyMethod->layout() );
    kcfg_historyMethodLayout->setAlignment( TQt::AlignTop );

    radioButton11 = new TQRadioButton( kcfg_historyMethod, "radioButton11" );
    kcfg_historyMethod->insert( radioButton11, 0 );
    kcfg_historyMethodLayout->addWidget( radioButton11 );

    radioButton12 = new TQRadioButton( kcfg_historyMethod, "radioButton12" );
    kcfg_historyMethod->insert( radioButton12, 1 );
    kcfg_historyMethodLayout->addWidget( radioButton12 );

    radioButton13 = new TQRadioButton( kcfg_historyMethod, "radioButton13" );
    kcfg_historyMethod->insert( radioButton13, 2 );
    kcfg_historyMethodLayout->addWidget( radioButton13 );
    groupBox3Layout->addWidget( kcfg_historyMethod );

    groupBox6Layout->addWidget( groupBox3, 2, 0 );

    KSettingsForecastDeclLayout->addWidget( groupBox6, 0, 0 );
    spacer10 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    KSettingsForecastDeclLayout->addItem( spacer10, 1, 0 );
    languageChange();
    resize( TQSize(497, 379).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KSettingsForecastDecl::languageChange()
{
    setCaption( tr2i18n( "Forecast Settings" ) );
    groupBox6->setTitle( TQString::null );
    textLabel2->setText( tr2i18n( "Number of Days of Account Cycle:" ) );
    textLabel1->setText( tr2i18n( "Day of Month to start Forecast:" ) );
    textLabel4->setText( tr2i18n( "Number of Days to Forecast:" ) );
    kcfg_forecastMethod->setTitle( tr2i18n( "Forecast Method" ) );
    radioButton9->setText( tr2i18n( "Scheduled and Future Transactions" ) );
    radioButton10->setText( tr2i18n( "History-based" ) );
    groupBox3->setTitle( tr2i18n( "History-based settings" ) );
    textLabel3->setText( tr2i18n( "Number of Cycles to use in Forecast:" ) );
    kcfg_historyMethod->setTitle( tr2i18n( "History Forecast Method" ) );
    radioButton11->setText( tr2i18n( "Simple Moving Average" ) );
    radioButton12->setText( tr2i18n( "Weighted Moving Average" ) );
    radioButton13->setText( tr2i18n( "Linear Regression" ) );
}

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

TQMetaObject *KSettingsForecastDecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KSettingsForecastDecl( "KSettingsForecastDecl", &KSettingsForecastDecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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