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

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

#include "kequitypriceupdatedlgdecl.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <tdelistview.h>
#include <kpushbutton.h>
#include <ntqlabel.h>
#include <ktextedit.h>
#include <kprogress.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KEquityPriceUpdateDlgDecl 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.
 */
KEquityPriceUpdateDlgDecl::KEquityPriceUpdateDlgDecl( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "kequitypriceupdatedlgdecl" );
    kequitypriceupdatedlgdeclLayout = new TQVBoxLayout( this, 11, 6, "kequitypriceupdatedlgdeclLayout"); 

    lvEquityList = new TDEListView( this, "lvEquityList" );
    lvEquityList->setMinimumSize( TQSize( 350, 0 ) );
    lvEquityList->setFrameShape( TDEListView::StyledPanel );
    lvEquityList->setFrameShadow( TDEListView::Plain );
    lvEquityList->setAllColumnsShowFocus( true );
    lvEquityList->setShowSortIndicator( true );
    lvEquityList->setItemsMovable( false );
    kequitypriceupdatedlgdeclLayout->addWidget( lvEquityList );

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

    btnConfigure = new KPushButton( this, "btnConfigure" );
    layout5->addWidget( btnConfigure );
    spacer3_2 = new TQSpacerItem( 21, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5->addItem( spacer3_2 );

    btnUpdateAll = new KPushButton( this, "btnUpdateAll" );
    layout5->addWidget( btnUpdateAll );

    btnUpdateSelected = new KPushButton( this, "btnUpdateSelected" );
    layout5->addWidget( btnUpdateSelected );
    kequitypriceupdatedlgdeclLayout->addLayout( layout5 );

    textLabel1 = new TQLabel( this, "textLabel1" );
    kequitypriceupdatedlgdeclLayout->addWidget( textLabel1 );

    lbStatus = new KTextEdit( this, "lbStatus" );
    lbStatus->setTextFormat( KTextEdit::LogText );
    kequitypriceupdatedlgdeclLayout->addWidget( lbStatus );

    prgOnlineProgress = new KProgress( this, "prgOnlineProgress" );
    kequitypriceupdatedlgdeclLayout->addWidget( prgOnlineProgress );

    layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); 
    spacer3 = new TQSpacerItem( 91, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3->addItem( spacer3 );

    btnOK = new KPushButton( this, "btnOK" );
    btnOK->setDefault( true );
    btnOK->setProperty( "stdItem", 1 );
    layout3->addWidget( btnOK );

    btnCancel = new KPushButton( this, "btnCancel" );
    btnCancel->setProperty( "stdItem", 2 );
    layout3->addWidget( btnCancel );
    kequitypriceupdatedlgdeclLayout->addLayout( layout3 );
    languageChange();
    resize( TQSize(537, 482).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KEquityPriceUpdateDlgDecl::languageChange()
{
    setCaption( tr2i18n( "Update Stock and Currency Prices" ) );
    TQToolTip::add( lvEquityList, tr2i18n( "List of known Equities, and the date they were last updated on." ) );
    btnConfigure->setText( tr2i18n( "Configure" ) );
    btnUpdateAll->setText( tr2i18n( "Update All" ) );
    btnUpdateSelected->setText( tr2i18n( "Update Selected" ) );
    textLabel1->setText( tr2i18n( "Status:" ) );
    btnOK->setText( tr2i18n( "&OK" ) );
    btnCancel->setText( tr2i18n( "&Cancel" ) );
}

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

TQMetaObject *KEquityPriceUpdateDlgDecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KEquityPriceUpdateDlgDecl( "KEquityPriceUpdateDlgDecl", &KEquityPriceUpdateDlgDecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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