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

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

#include "configdictionariesbase.h"

#include <ntqvariant.h>
#include <tdelistview.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    tabWidget3 = new TQTabWidget( this, "tabWidget3" );

    tab = new TQWidget( tabWidget3, "tab" );
    tabLayout = new TQHBoxLayout( tab, 11, 6, "tabLayout"); 

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

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

    kcfg_edict__useGlobal = new TQCheckBox( tab, "kcfg_edict__useGlobal" );
    layout43_2->addWidget( kcfg_edict__useGlobal );
    spacer3_2 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout43_2->addItem( spacer3_2 );
    layout52_2->addLayout( layout43_2 );

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

    edictList = new TDEListView( tab, "edictList" );
    edictList->addColumn( tr2i18n( "Name" ) );
    edictList->addColumn( tr2i18n( "File" ) );
    layout51_2->addWidget( edictList );

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

    addEdictButton = new TQPushButton( tab, "addEdictButton" );
    layout50_2->addWidget( addEdictButton );

    delSelEdictButton = new TQPushButton( tab, "delSelEdictButton" );
    layout50_2->addWidget( delSelEdictButton );
    spacer4_2 = new TQSpacerItem( 20, 120, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout50_2->addItem( spacer4_2 );
    layout51_2->addLayout( layout50_2 );
    layout52_2->addLayout( layout51_2 );
    tabLayout->addLayout( layout52_2 );
    tabWidget3->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabWidget3, "tab_2" );
    tabLayout_2 = new TQHBoxLayout( tab_2, 11, 6, "tabLayout_2"); 

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

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

    kcfg_kanjidic__useGlobal = new TQCheckBox( tab_2, "kcfg_kanjidic__useGlobal" );
    layout43->addWidget( kcfg_kanjidic__useGlobal );
    spacer3 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout43->addItem( spacer3 );
    layout52->addLayout( layout43 );

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

    kanjidicList = new TDEListView( tab_2, "kanjidicList" );
    kanjidicList->addColumn( tr2i18n( "Name" ) );
    kanjidicList->addColumn( tr2i18n( "File" ) );
    layout51->addWidget( kanjidicList );

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

    addKanjidicButton = new TQPushButton( tab_2, "addKanjidicButton" );
    layout50->addWidget( addKanjidicButton );

    delSelKanjidicButton = new TQPushButton( tab_2, "delSelKanjidicButton" );
    layout50->addWidget( delSelKanjidicButton );
    spacer4 = new TQSpacerItem( 20, 120, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout50->addItem( spacer4 );
    layout51->addLayout( layout50 );
    layout52->addLayout( layout51 );
    tabLayout_2->addLayout( layout52 );
    tabWidget3->insertTab( tab_2, TQString::fromLatin1("") );
    ConfigDictionariesBaseLayout->addWidget( tabWidget3 );
    languageChange();
    resize( TQSize(514, 378).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConfigDictionariesBase::languageChange()
{
    setCaption( tr2i18n( "Dictionaries" ) );
    kcfg_edict__useGlobal->setText( tr2i18n( "Use preinstalled edict" ) );
    edictList->header()->setLabel( 0, tr2i18n( "Name" ) );
    edictList->header()->setLabel( 1, tr2i18n( "File" ) );
    addEdictButton->setText( tr2i18n( "Add..." ) );
    delSelEdictButton->setText( tr2i18n( "Delete" ) );
    tabWidget3->changeTab( tab, tr2i18n( "&Edict" ) );
    kcfg_kanjidic__useGlobal->setText( tr2i18n( "Use preinstalled kanjidic" ) );
    kanjidicList->header()->setLabel( 0, tr2i18n( "Name" ) );
    kanjidicList->header()->setLabel( 1, tr2i18n( "File" ) );
    addKanjidicButton->setText( tr2i18n( "Add..." ) );
    delSelKanjidicButton->setText( tr2i18n( "Delete" ) );
    tabWidget3->changeTab( tab_2, tr2i18n( "&Kanjidic" ) );
}

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

TQMetaObject *ConfigDictionariesBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ConfigDictionariesBase( "ConfigDictionariesBase", &ConfigDictionariesBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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