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

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

#include "tdeabcexport_base.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqwidget.h>
#include <ntqlabel.h>
#include <ntqgroupbox.h>
#include <ntqlistbox.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KabcExportWizard_Base as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qwizard will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qwizard.
 */
KabcExportWizard_Base::KabcExportWizard_Base( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : KWizard( parent, name, modal, fl )
{
    if ( !name )
	setName( "KabcExportWizard_Base" );

    page = new TQWidget( this, "page" );
    pageLayout = new TQVBoxLayout( page, 11, 6, "pageLayout"); 

    textLabel1 = new TQLabel( page, "textLabel1" );
    textLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
    textLabel1->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    pageLayout->addWidget( textLabel1 );

    groupBox1 = new TQGroupBox( page, "groupBox1" );
    groupBox1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, groupBox1->sizePolicy().hasHeightForWidth() ) );

    m_addrBooks = new TQListBox( groupBox1, "m_addrBooks" );
    m_addrBooks->setGeometry( TQRect( 11, 31, 230, 140 ) );
    m_addrBooks->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, m_addrBooks->sizePolicy().hasHeightForWidth() ) );
    pageLayout->addWidget( groupBox1 );
    addPage( page, TQString("") );

    WizardPage = new TQWidget( this, "WizardPage" );
    WizardPageLayout = new TQVBoxLayout( WizardPage, 11, 6, "WizardPageLayout"); 

    textLabel3 = new TQLabel( WizardPage, "textLabel3" );
    textLabel3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );
    WizardPageLayout->addWidget( textLabel3 );

    m_contactList = new TQListView( WizardPage, "m_contactList" );
    m_contactList->addColumn( tr2i18n( "Contact" ) );
    m_contactList->setAllColumnsShowFocus( true );
    m_contactList->setResizeMode( TQListView::AllColumns );
    WizardPageLayout->addWidget( m_contactList );

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

    m_btnSelectAll = new TQPushButton( WizardPage, "m_btnSelectAll" );
    layout3->addWidget( m_btnSelectAll );

    m_btnDeselectAll = new TQPushButton( WizardPage, "m_btnDeselectAll" );
    layout3->addWidget( m_btnDeselectAll );
    spacer11 = new TQSpacerItem( 51, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3->addItem( spacer11 );
    WizardPageLayout->addLayout( layout3 );
    addPage( WizardPage, TQString("") );
    languageChange();
    resize( TQSize(423, 398).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KabcExportWizard_Base::languageChange()
{
    setCaption( tr2i18n( "Export Contacts" ) );
    textLabel1->setText( tr2i18n( "This wizard helps you export instant messaging contacts to the TDE address book." ) );
    groupBox1->setTitle( tr2i18n( "&Select Address Book" ) );
    setTitle( page, tr2i18n( "Export Contacts to Address Book" ) );
    textLabel3->setText( tr2i18n( "Selected contacts will be added to the TDE address book." ) );
    m_contactList->header()->setLabel( 0, tr2i18n( "Contact" ) );
    m_btnSelectAll->setText( tr2i18n( "Select &All" ) );
    m_btnDeselectAll->setText( tr2i18n( "&Deselect All" ) );
    setTitle( WizardPage, tr2i18n( "Select Contacts to Export" ) );
}

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

TQMetaObject *KabcExportWizard_Base::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KabcExportWizard_Base( "KabcExportWizard_Base", &KabcExportWizard_Base::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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