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

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

#include "kmymoneyreportconfigtabchartdecl.h"

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

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

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

    textLabel1 = new TQLabel( this, "textLabel1" );
    textLabel1->setProperty( "sizePolicy", TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
    layout5->addWidget( textLabel1 );

    m_comboType = new TQComboBox( false, this, "m_comboType" );
    layout5->addWidget( m_comboType );
    spacer2 = new TQSpacerItem( 121, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5->addItem( spacer2 );
    kMyMoneyReportConfigTabChartDeclLayout->addLayout( layout5 );

    m_checkGridLines = new TQCheckBox( this, "m_checkGridLines" );
    kMyMoneyReportConfigTabChartDeclLayout->addWidget( m_checkGridLines );

    m_checkValues = new TQCheckBox( this, "m_checkValues" );
    kMyMoneyReportConfigTabChartDeclLayout->addWidget( m_checkValues );

    m_checkShowChart = new TQCheckBox( this, "m_checkShowChart" );
    kMyMoneyReportConfigTabChartDeclLayout->addWidget( m_checkShowChart );

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

    textLabel6 = new TQLabel( this, "textLabel6" );
    textLabel6->setProperty( "sizePolicy", TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, textLabel6->sizePolicy().hasHeightForWidth() ) );
    layout6->addWidget( textLabel6 );

    m_lineWidth = new TQSpinBox( this, "m_lineWidth" );
    m_lineWidth->setProperty( "maxValue", 10 );
    m_lineWidth->setProperty( "minValue", 1 );
    layout6->addWidget( m_lineWidth );
    spacer2_2 = new TQSpacerItem( 121, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout6->addItem( spacer2_2 );
    kMyMoneyReportConfigTabChartDeclLayout->addLayout( layout6 );
    spacer15 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    kMyMoneyReportConfigTabChartDeclLayout->addItem( spacer15 );
    languageChange();
    resize( TQSize(600, 174).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void kMyMoneyReportConfigTabChartDecl::languageChange()
{
    setProperty( "caption", tr2i18n( "Chart Tab" ) );
    TQToolTip::add( this, TQString::null );
    TQWhatsThis::add( this, tr2i18n( "<p>On this tab, you configure the chart drawn forthis report.</p>" ) );
    textLabel1->setProperty( "text", tr2i18n( "Chart Type" ) );
    TQToolTip::add( textLabel1, tr2i18n( "<p>Select what form you would like the chart to be drawn as.</p>" ) );
    m_comboType->clear();
    m_comboType->insertItem( tr2i18n( "Line" ) );
    m_comboType->insertItem( tr2i18n( "Bar" ) );
    m_comboType->insertItem( tr2i18n( "Stacked Bar" ) );
    m_comboType->insertItem( tr2i18n( "Pie" ) );
    m_comboType->insertItem( tr2i18n( "Ring" ) );
    m_checkGridLines->setProperty( "text", tr2i18n( "Show grid lines" ) );
    TQToolTip::add( m_checkGridLines, tr2i18n( "<p>Select this option to show horizontal and vertical grid lines on the chart.</p>" ) );
    m_checkValues->setProperty( "text", tr2i18n( "Draw values on chart" ) );
    TQToolTip::add( m_checkValues, tr2i18n( "<p>Select this option to draw the numeric values for data points next to their plot location.</p>" ) );
    m_checkShowChart->setProperty( "text", tr2i18n( "Show as chart by default" ) );
    TQToolTip::add( m_checkShowChart, tr2i18n( "<p>Select this option to cause the report to be shown as a chart when you first open the report.  Otherwise, it will come up as a text report.</p>" ) );
    textLabel6->setProperty( "text", tr2i18n( "Line width" ) );
    TQToolTip::add( textLabel6, tr2i18n( "<p>Select what width should be used to draw the line on the chart</p>" ) );
}

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

TQMetaObject *kMyMoneyReportConfigTabChartDecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_kMyMoneyReportConfigTabChartDecl( "kMyMoneyReportConfigTabChartDecl", &kMyMoneyReportConfigTabChartDecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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