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

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

#include "kgncimportoptionsdlgdecl.h"

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

/*
 *  Constructs a KGncImportOptionsDlgDecl 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.
 */
KGncImportOptionsDlgDecl::KGncImportOptionsDlgDecl( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KGncImportOptionsDlgDecl" );

    TQWidget* privateLayoutWidget = new TQWidget( this, "layout8" );
    privateLayoutWidget->setGeometry( TQRect( 10, 9, 442, 636 ) );
    layout8 = new TQVBoxLayout( privateLayoutWidget, 11, 6, "layout8"); 

    textLabel1 = new TQLabel( privateLayoutWidget, "textLabel1" );
    textLabel1->setAlignment( int( TQLabel::AlignCenter ) );
    layout8->addWidget( textLabel1 );

    buttonInvestGroup = new TQButtonGroup( privateLayoutWidget, "buttonInvestGroup" );
    buttonInvestGroup->setColumnLayout(0, TQt::Vertical );
    buttonInvestGroup->layout()->setSpacing( 6 );
    buttonInvestGroup->layout()->setMargin( 11 );
    buttonInvestGroupLayout = new TQVBoxLayout( buttonInvestGroup->layout() );
    buttonInvestGroupLayout->setAlignment( TQt::AlignTop );

    radioInvest1 = new TQRadioButton( buttonInvestGroup, "radioInvest1" );
    radioInvest1->setChecked( true );
    buttonInvestGroupLayout->addWidget( radioInvest1 );

    radioInvest2 = new TQRadioButton( buttonInvestGroup, "radioInvest2" );
    buttonInvestGroupLayout->addWidget( radioInvest2 );

    radioInvest3 = new TQRadioButton( buttonInvestGroup, "radioInvest3" );
    buttonInvestGroupLayout->addWidget( radioInvest3 );
    layout8->addWidget( buttonInvestGroup );

    buttonGroup5 = new TQButtonGroup( privateLayoutWidget, "buttonGroup5" );
    buttonGroup5->setColumnLayout(0, TQt::Vertical );
    buttonGroup5->layout()->setSpacing( 6 );
    buttonGroup5->layout()->setMargin( 11 );
    buttonGroup5Layout = new TQVBoxLayout( buttonGroup5->layout() );
    buttonGroup5Layout->setAlignment( TQt::AlignTop );

    checkFinanceQuote = new TQCheckBox( buttonGroup5, "checkFinanceQuote" );
    buttonGroup5Layout->addWidget( checkFinanceQuote );
    layout8->addWidget( buttonGroup5 );

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

    checkSchedules = new TQCheckBox( buttonGroup2, "checkSchedules" );
    buttonGroup2Layout->addWidget( checkSchedules );
    layout8->addWidget( buttonGroup2 );

    buttonGroup4 = new TQButtonGroup( privateLayoutWidget, "buttonGroup4" );
    buttonGroup4->setColumnLayout(0, TQt::Vertical );
    buttonGroup4->layout()->setSpacing( 6 );
    buttonGroup4->layout()->setMargin( 11 );
    buttonGroup4Layout = new TQVBoxLayout( buttonGroup4->layout() );
    buttonGroup4Layout->setAlignment( TQt::AlignTop );

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

    checkDecode = new TQCheckBox( buttonGroup4, "checkDecode" );
    layout8_2->addWidget( checkDecode );
    spacer4 = new TQSpacerItem( 140, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout8_2->addItem( spacer4 );

    comboDecode = new TQComboBox( false, buttonGroup4, "comboDecode" );
    layout8_2->addWidget( comboDecode );
    buttonGroup4Layout->addLayout( layout8_2 );
    layout8->addWidget( buttonGroup4 );

    buttonGroup18 = new TQButtonGroup( privateLayoutWidget, "buttonGroup18" );

    checkTxNotes = new TQCheckBox( buttonGroup18, "checkTxNotes" );
    checkTxNotes->setGeometry( TQRect( 10, 20, 420, 24 ) );
    layout8->addWidget( buttonGroup18 );

    buttonGroup3 = new TQButtonGroup( privateLayoutWidget, "buttonGroup3" );
    buttonGroup3->setColumnLayout(0, TQt::Vertical );
    buttonGroup3->layout()->setSpacing( 6 );
    buttonGroup3->layout()->setMargin( 11 );
    buttonGroup3Layout = new TQVBoxLayout( buttonGroup3->layout() );
    buttonGroup3Layout->setAlignment( TQt::AlignTop );

    checkDebugGeneral = new TQCheckBox( buttonGroup3, "checkDebugGeneral" );
    buttonGroup3Layout->addWidget( checkDebugGeneral );

    checkDebugXML = new TQCheckBox( buttonGroup3, "checkDebugXML" );
    buttonGroup3Layout->addWidget( checkDebugXML );

    checkAnonymize = new TQCheckBox( buttonGroup3, "checkAnonymize" );
    buttonGroup3Layout->addWidget( checkAnonymize );
    layout8->addWidget( buttonGroup3 );
    spacer2 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout8->addItem( spacer2 );

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

    buttonHelp = new TQPushButton( privateLayoutWidget, "buttonHelp" );
    buttonHelp->setAutoDefault( true );
    layout12->addWidget( buttonHelp );
    Horizontal_Spacing2 = new TQSpacerItem( 200, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout12->addItem( Horizontal_Spacing2 );

    buttonOk = new TQPushButton( privateLayoutWidget, "buttonOk" );
    buttonOk->setAutoDefault( true );
    buttonOk->setDefault( true );
    layout12->addWidget( buttonOk );

    buttonCancel = new TQPushButton( privateLayoutWidget, "buttonCancel" );
    buttonCancel->setAutoDefault( true );
    layout12->addWidget( buttonCancel );
    layout8->addLayout( layout12 );

    line1 = new TQFrame( privateLayoutWidget, "line1" );
    line1->setFrameShape( TQFrame::HLine );
    line1->setFrameShadow( TQFrame::Sunken );
    line1->setFrameShape( TQFrame::HLine );
    layout8->addWidget( line1 );
    languageChange();
    resize( TQSize(526, 638).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( buttonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( buttonHelp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotHelp() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KGncImportOptionsDlgDecl::languageChange()
{
    setCaption( tr2i18n( "GnuCash Import Options" ) );
    textLabel1->setText( tr2i18n( "Use 'Help' for more information on these options" ) );
    buttonInvestGroup->setTitle( tr2i18n( "Investment Handling" ) );
    radioInvest1->setText( tr2i18n( "One investment account for each stock" ) );
    radioInvest2->setText( tr2i18n( "One investment account for all stocks" ) );
    radioInvest3->setText( tr2i18n( "Prompt for an investment account for each stock" ) );
    buttonGroup5->setTitle( tr2i18n( "Online price quotes" ) );
    checkFinanceQuote->setText( tr2i18n( "Use Finance::Quote for share price quotes" ) );
    buttonGroup2->setTitle( tr2i18n( "Scheduled Transactions" ) );
    checkSchedules->setText( tr2i18n( "Drop suspect scheduled transactions" ) );
    buttonGroup4->setTitle( tr2i18n( "Decoding option" ) );
    checkDecode->setText( tr2i18n( "Decode using" ) );
    buttonGroup18->setTitle( tr2i18n( "Transaction Notes option" ) );
    checkTxNotes->setText( tr2i18n( "Use transaction notes on non-split transactions" ) );
    buttonGroup3->setTitle( tr2i18n( "Debug Options" ) );
    checkDebugGeneral->setText( tr2i18n( "General debug data" ) );
    checkDebugXML->setText( tr2i18n( "Display XML data" ) );
    checkAnonymize->setText( tr2i18n( "Anonymize data" ) );
    buttonHelp->setText( tr2i18n( "Help" ) );
    buttonHelp->setAccel( TQKeySequence( tr2i18n( "F1" ) ) );
    buttonOk->setText( tr2i18n( "OK" ) );
    buttonCancel->setText( tr2i18n( "Cancel" ) );
}

void KGncImportOptionsDlgDecl::slotHelp()
{
    tqWarning( "KGncImportOptionsDlgDecl::slotHelp(): Not implemented yet" );
}

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

TQMetaObject *KGncImportOptionsDlgDecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KGncImportOptionsDlgDecl( "KGncImportOptionsDlgDecl", &KGncImportOptionsDlgDecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KGncImportOptionsDlgDecl::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 TQUMethod slot_1 = {"slotHelp", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected },
	{ "slotHelp()", &slot_1, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KGncImportOptionsDlgDecl", parentObject,
	slot_tbl, 2,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KGncImportOptionsDlgDecl.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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