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

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

#include "konlinebankingstatusdecl.h"

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

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

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQGridLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    m_textBank = new TQLabel( groupBox1, "m_textBank" );
    m_textBank->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_textBank->sizePolicy().hasHeightForWidth() ) );
    TQFont m_textBank_font(  m_textBank->font() );
    m_textBank_font.setBold( true );
    m_textBank->setFont( m_textBank_font ); 

    groupBox1Layout->addWidget( m_textBank, 1, 1 );

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

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

    m_textOnlineAccount = new TQLabel( groupBox1, "m_textOnlineAccount" );
    m_textOnlineAccount->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_textOnlineAccount->sizePolicy().hasHeightForWidth() ) );
    TQFont m_textOnlineAccount_font(  m_textOnlineAccount->font() );
    m_textOnlineAccount_font.setBold( true );
    m_textOnlineAccount->setFont( m_textOnlineAccount_font ); 

    groupBox1Layout->addWidget( m_textOnlineAccount, 2, 1 );

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

    m_ledOnlineStatus = new KLed( groupBox1, "m_ledOnlineStatus" );
    m_ledOnlineStatus->setState( KLed::Off );
    layout5->addWidget( m_ledOnlineStatus );

    m_textOnlineStatus = new TQLabel( groupBox1, "m_textOnlineStatus" );
    m_textOnlineStatus->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)4, 10, 0, m_textOnlineStatus->sizePolicy().hasHeightForWidth() ) );
    layout5->addWidget( m_textOnlineStatus );
    spacer4 = new TQSpacerItem( 41, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5->addItem( spacer4 );

    groupBox1Layout->addLayout( layout5, 0, 1 );

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

    groupBox1Layout->addWidget( textLabel3, 2, 0 );

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

    groupBox1Layout->addWidget( textLabel1, 0, 0 );
    KOnlineBankingStatusDeclLayout->addWidget( groupBox1 );

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQVBoxLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

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

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

    layout8->addWidget( textLabel1_3, 1, 0 );

    m_applicationCombo = new KComboBox( false, groupBox2, "m_applicationCombo" );

    layout8->addWidget( m_applicationCombo, 0, 1 );
    spacer4_2 = new TQSpacerItem( 150, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout8->addItem( spacer4_2, 0, 2 );

    m_headerVersionCombo = new KComboBox( false, groupBox2, "m_headerVersionCombo" );

    layout8->addWidget( m_headerVersionCombo, 1, 1 );

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

    layout8->addWidget( textLabel1_2, 0, 0 );
    groupBox2Layout->addLayout( layout8 );

    buttonGroup2 = new TQButtonGroup( groupBox2, "buttonGroup2" );
    buttonGroup2->setMargin( 0 );
    buttonGroup2->setMidLineWidth( 0 );
    buttonGroup2->setColumnLayout(0, TQt::Vertical );
    buttonGroup2->layout()->setSpacing( 6 );
    buttonGroup2->layout()->setMargin( 11 );
    buttonGroup2Layout = new TQHBoxLayout( buttonGroup2->layout() );
    buttonGroup2Layout->setAlignment( TQt::AlignTop );

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

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

    m_todayRB = new TQRadioButton( buttonGroup2, "m_todayRB" );
    m_todayRB->setChecked( true );
    layout8_2->addWidget( m_todayRB );

    m_numdaysSpin = new TQSpinBox( buttonGroup2, "m_numdaysSpin" );
    m_numdaysSpin->setMaxValue( 180 );
    layout8_2->addWidget( m_numdaysSpin );

    textLabel2_2 = new TQLabel( buttonGroup2, "textLabel2_2" );
    layout8_2->addWidget( textLabel2_2 );
    layout17->addLayout( layout8_2 );

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

    m_lastUpdateRB = new TQRadioButton( buttonGroup2, "m_lastUpdateRB" );
    layout16->addWidget( m_lastUpdateRB );

    m_lastUpdateTXT = new TQLabel( buttonGroup2, "m_lastUpdateTXT" );
    layout16->addWidget( m_lastUpdateTXT );
    layout17->addLayout( layout16 );

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

    m_pickDateRB = new TQRadioButton( buttonGroup2, "m_pickDateRB" );
    layout7->addWidget( m_pickDateRB );

    m_specificDate = new TQDateEdit( buttonGroup2, "m_specificDate" );
    m_specificDate->setEnabled( false );
    m_specificDate->setOrder( TQDateEdit::YMD );
    m_specificDate->setDate( TQDate( 2000, 1, 1 ) );
    layout7->addWidget( m_specificDate );
    layout17->addLayout( layout7 );
    buttonGroup2Layout->addLayout( layout17 );
    spacer10 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    buttonGroup2Layout->addItem( spacer10 );
    groupBox2Layout->addWidget( buttonGroup2 );

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

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

    buttonGroup1 = new TQButtonGroup( groupBox3, "buttonGroup1" );
    buttonGroup1->setFrameShape( TQButtonGroup::NoFrame );
    buttonGroup1->setColumnLayout(0, TQt::Vertical );
    buttonGroup1->layout()->setSpacing( 1 );
    buttonGroup1->layout()->setMargin( 0 );
    buttonGroup1Layout = new TQVBoxLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( TQt::AlignTop );

    m_payeeidRB = new TQRadioButton( buttonGroup1, "m_payeeidRB" );
    m_payeeidRB->setChecked( true );
    buttonGroup1Layout->addWidget( m_payeeidRB );

    m_nameRB = new TQRadioButton( buttonGroup1, "m_nameRB" );
    buttonGroup1Layout->addWidget( m_nameRB );
    layout11->addWidget( buttonGroup1 );

    textLabel3_2 = new TQLabel( groupBox3, "textLabel3_2" );
    layout11->addWidget( textLabel3_2 );
    groupBox3Layout->addLayout( layout11 );
    spacer11_2 = new TQSpacerItem( 31, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox3Layout->addItem( spacer11_2 );
    groupBox2Layout->addWidget( groupBox3 );
    KOnlineBankingStatusDeclLayout->addWidget( groupBox2 );
    spacer11 = new TQSpacerItem( 20, 50, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    KOnlineBankingStatusDeclLayout->addItem( spacer11 );
    languageChange();
    resize( TQSize(568, 529).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_pickDateRB, TQ_SIGNAL( toggled(bool) ), m_specificDate, TQ_SLOT( setEnabled(bool) ) );
    connect( m_todayRB, TQ_SIGNAL( toggled(bool) ), m_numdaysSpin, TQ_SLOT( setEnabled(bool) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KOnlineBankingStatusDecl::languageChange()
{
    groupBox1->setTitle( tr2i18n( "Account Details" ) );
    m_textBank->setText( tr2i18n( "&lt;Not configured&gt;" ) );
    textLabel2->setText( tr2i18n( "BANK/BROKER:" ) );
    m_textOnlineAccount->setText( tr2i18n( "&lt;Not configured&gt;" ) );
    m_textOnlineStatus->setText( tr2i18n( "Unavailable" ) );
    textLabel3->setText( tr2i18n( "ACCOUNT:" ) );
    textLabel1->setText( tr2i18n( "STATUS:" ) );
    groupBox2->setTitle( tr2i18n( "OFX Details" ) );
    textLabel1_3->setText( tr2i18n( "Header Version" ) );
    textLabel1_2->setText( tr2i18n( "Identify as" ) );
    buttonGroup2->setTitle( tr2i18n( "Start date of import" ) );
    m_todayRB->setText( tr2i18n( "To&day minus" ) );
    textLabel2_2->setText( tr2i18n( "days" ) );
    m_lastUpdateRB->setText( tr2i18n( "Last &update" ) );
    m_lastUpdateTXT->setText( TQString::null );
    m_pickDateRB->setText( tr2i18n( "Pi&ck date" ) );
    groupBox3->setTitle( tr2i18n( "Name is derived from" ) );
    buttonGroup1->setTitle( TQString::null );
    m_payeeidRB->setText( tr2i18n( "P&AYEEID" ) );
    m_nameRB->setText( tr2i18n( "&NAME" ) );
    textLabel3_2->setText( tr2i18n( "field if both are present in download" ) );
}

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

TQMetaObject *KOnlineBankingStatusDecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KOnlineBankingStatusDecl( "KOnlineBankingStatusDecl", &KOnlineBankingStatusDecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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