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

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

#include "settings_colors.h"

#include <ntqvariant.h>
#include <kcolorbutton.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    tab = new TQWidget( dfgdfg, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 

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

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

    textLabel13 = new TQLabel( tab, "textLabel13" );
    layout28->addWidget( textLabel13 );

    kcfg_block_s = new KColorButton( tab, "kcfg_block_s" );
    layout28->addWidget( kcfg_block_s );
    layout32->addLayout( layout28 );

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

    textLabel14 = new TQLabel( tab, "textLabel14" );
    layout29->addWidget( textLabel14 );

    kcfg_block_p = new KColorButton( tab, "kcfg_block_p" );
    layout29->addWidget( kcfg_block_p );
    layout32->addLayout( layout29 );

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

    textLabel15 = new TQLabel( tab, "textLabel15" );
    layout30->addWidget( textLabel15 );

    kcfg_block_d = new KColorButton( tab, "kcfg_block_d" );
    layout30->addWidget( kcfg_block_d );
    layout32->addLayout( layout30 );

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

    textLabel16 = new TQLabel( tab, "textLabel16" );
    layout31->addWidget( textLabel16 );

    kcfg_block_f = new KColorButton( tab, "kcfg_block_f" );
    layout31->addWidget( kcfg_block_f );
    layout32->addLayout( layout31 );

    tabLayout->addLayout( layout32, 0, 0 );
    dfgdfg->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( dfgdfg, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); 

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

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

    textLabel9 = new TQLabel( tab_2, "textLabel9" );
    layout23->addWidget( textLabel9 );

    kcfg_beh_acidic = new KColorButton( tab_2, "kcfg_beh_acidic" );
    layout23->addWidget( kcfg_beh_acidic );
    layout26->addLayout( layout23 );

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

    textLabel10 = new TQLabel( tab_2, "textLabel10" );
    layout24->addWidget( textLabel10 );

    kcfg_beh_amphoteric = new KColorButton( tab_2, "kcfg_beh_amphoteric" );
    layout24->addWidget( kcfg_beh_amphoteric );
    layout26->addLayout( layout24 );

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

    textLabel11 = new TQLabel( tab_2, "textLabel11" );
    layout25->addWidget( textLabel11 );

    kcfg_beh_neutral = new KColorButton( tab_2, "kcfg_beh_neutral" );
    layout25->addWidget( kcfg_beh_neutral );
    layout26->addLayout( layout25 );

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

    textLabel12 = new TQLabel( tab_2, "textLabel12" );
    layout26_2->addWidget( textLabel12 );

    kcfg_beh_basic = new KColorButton( tab_2, "kcfg_beh_basic" );
    layout26_2->addWidget( kcfg_beh_basic );
    layout26->addLayout( layout26_2 );

    tabLayout_2->addLayout( layout26, 0, 0 );
    dfgdfg->insertTab( tab_2, TQString::fromLatin1("") );

    TabPage = new TQWidget( dfgdfg, "TabPage" );
    TabPageLayout = new TQGridLayout( TabPage, 1, 1, 11, 6, "TabPageLayout"); 

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

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

    textLabel2_2_2 = new TQLabel( TabPage, "textLabel2_2_2" );
    layout12->addWidget( textLabel2_2_2 );

    kcfg_group_1 = new KColorButton( TabPage, "kcfg_group_1" );
    layout12->addWidget( kcfg_group_1 );
    layout22->addLayout( layout12 );

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

    textLabel8 = new TQLabel( TabPage, "textLabel8" );
    layout19->addWidget( textLabel8 );

    kcfg_group_2 = new KColorButton( TabPage, "kcfg_group_2" );
    layout19->addWidget( kcfg_group_2 );
    layout22->addLayout( layout19 );

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

    textLabel7 = new TQLabel( TabPage, "textLabel7" );
    layout18->addWidget( textLabel7 );

    kcfg_group_3 = new KColorButton( TabPage, "kcfg_group_3" );
    layout18->addWidget( kcfg_group_3 );
    layout22->addLayout( layout18 );

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

    textLabel6 = new TQLabel( TabPage, "textLabel6" );
    layout17->addWidget( textLabel6 );

    kcfg_group_4 = new KColorButton( TabPage, "kcfg_group_4" );
    layout17->addWidget( kcfg_group_4 );
    layout22->addLayout( layout17 );

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

    textLabel5_2 = new TQLabel( TabPage, "textLabel5_2" );
    layout16->addWidget( textLabel5_2 );

    kcfg_group_5 = new KColorButton( TabPage, "kcfg_group_5" );
    layout16->addWidget( kcfg_group_5 );
    layout22->addLayout( layout16 );

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

    textLabel4_2 = new TQLabel( TabPage, "textLabel4_2" );
    layout15->addWidget( textLabel4_2 );

    kcfg_group_6 = new KColorButton( TabPage, "kcfg_group_6" );
    layout15->addWidget( kcfg_group_6 );
    layout22->addLayout( layout15 );

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

    textLabel3_2 = new TQLabel( TabPage, "textLabel3_2" );
    layout14->addWidget( textLabel3_2 );

    kcfg_group_7 = new KColorButton( TabPage, "kcfg_group_7" );
    layout14->addWidget( kcfg_group_7 );
    layout22->addLayout( layout14 );

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

    textLabel2_2 = new TQLabel( TabPage, "textLabel2_2" );
    layout13->addWidget( textLabel2_2 );

    kcfg_group_8 = new KColorButton( TabPage, "kcfg_group_8" );
    layout13->addWidget( kcfg_group_8 );
    layout22->addLayout( layout13 );

    TabPageLayout->addLayout( layout22, 0, 0 );
    dfgdfg->insertTab( TabPage, TQString::fromLatin1("") );

    TabPage_2 = new TQWidget( dfgdfg, "TabPage_2" );
    TabPageLayout_2 = new TQGridLayout( TabPage_2, 1, 1, 11, 6, "TabPageLayout_2"); 

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

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

    textLabel1 = new TQLabel( TabPage_2, "textLabel1" );
    layout13_2->addWidget( textLabel1 );

    kcfg_color_solid = new KColorButton( TabPage_2, "kcfg_color_solid" );
    layout13_2->addWidget( kcfg_color_solid );
    layout14_2->addLayout( layout13_2 );

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

    textLabel2 = new TQLabel( TabPage_2, "textLabel2" );
    layout6->addWidget( textLabel2 );

    kcfg_color_liquid = new KColorButton( TabPage_2, "kcfg_color_liquid" );
    layout6->addWidget( kcfg_color_liquid );
    layout14_2->addLayout( layout6 );

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

    textLabel3 = new TQLabel( TabPage_2, "textLabel3" );
    layout7->addWidget( textLabel3 );

    kcfg_color_vapor = new KColorButton( TabPage_2, "kcfg_color_vapor" );
    layout7->addWidget( kcfg_color_vapor );
    layout14_2->addLayout( layout7 );

    TabPageLayout_2->addLayout( layout14_2, 0, 0 );
    dfgdfg->insertTab( TabPage_2, TQString::fromLatin1("") );

    TabPage_3 = new TQWidget( dfgdfg, "TabPage_3" );
    TabPageLayout_3 = new TQGridLayout( TabPage_3, 1, 1, 11, 6, "TabPageLayout_3"); 

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

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

    textLabel2_2_2_2 = new TQLabel( TabPage_3, "textLabel2_2_2_2" );
    layout12_2->addWidget( textLabel2_2_2_2 );

    kcfg_alkalie = new KColorButton( TabPage_3, "kcfg_alkalie" );
    layout12_2->addWidget( kcfg_alkalie );
    layout36->addLayout( layout12_2 );

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

    textLabel8_2 = new TQLabel( TabPage_3, "textLabel8_2" );
    layout19_2->addWidget( textLabel8_2 );

    kcfg_rare = new KColorButton( TabPage_3, "kcfg_rare" );
    layout19_2->addWidget( kcfg_rare );
    layout36->addLayout( layout19_2 );

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

    textLabel7_2 = new TQLabel( TabPage_3, "textLabel7_2" );
    layout18_2->addWidget( textLabel7_2 );

    kcfg_nonmetal = new KColorButton( TabPage_3, "kcfg_nonmetal" );
    layout18_2->addWidget( kcfg_nonmetal );
    layout36->addLayout( layout18_2 );

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

    textLabel6_2 = new TQLabel( TabPage_3, "textLabel6_2" );
    layout17_2->addWidget( textLabel6_2 );

    kcfg_alkaline = new KColorButton( TabPage_3, "kcfg_alkaline" );
    layout17_2->addWidget( kcfg_alkaline );
    layout36->addLayout( layout17_2 );

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

    textLabel5_2_2 = new TQLabel( TabPage_3, "textLabel5_2_2" );
    layout16_2->addWidget( textLabel5_2_2 );

    kcfg_other_metal = new KColorButton( TabPage_3, "kcfg_other_metal" );
    layout16_2->addWidget( kcfg_other_metal );
    layout36->addLayout( layout16_2 );

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

    textLabel4_2_2 = new TQLabel( TabPage_3, "textLabel4_2_2" );
    layout15_2->addWidget( textLabel4_2_2 );

    kcfg_halogene = new KColorButton( TabPage_3, "kcfg_halogene" );
    layout15_2->addWidget( kcfg_halogene );
    layout36->addLayout( layout15_2 );

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

    textLabel3_2_2 = new TQLabel( TabPage_3, "textLabel3_2_2" );
    layout14_2_2->addWidget( textLabel3_2_2 );

    kcfg_transition = new KColorButton( TabPage_3, "kcfg_transition" );
    layout14_2_2->addWidget( kcfg_transition );
    layout36->addLayout( layout14_2_2 );

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

    textLabel2_2_3 = new TQLabel( TabPage_3, "textLabel2_2_3" );
    layout13_2_2->addWidget( textLabel2_2_3 );

    kcfg_noble_gas = new KColorButton( TabPage_3, "kcfg_noble_gas" );
    layout13_2_2->addWidget( kcfg_noble_gas );
    layout36->addLayout( layout13_2_2 );

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

    textLabel2_2_3_2 = new TQLabel( TabPage_3, "textLabel2_2_3_2" );
    layout35->addWidget( textLabel2_2_3_2 );

    kcfg_metalloid = new KColorButton( TabPage_3, "kcfg_metalloid" );
    layout35->addWidget( kcfg_metalloid );
    layout36->addLayout( layout35 );

    TabPageLayout_3->addLayout( layout36, 0, 0 );
    dfgdfg->insertTab( TabPage_3, TQString::fromLatin1("") );

    TabPage_4 = new TQWidget( dfgdfg, "TabPage_4" );
    TabPageLayout_4 = new TQGridLayout( TabPage_4, 1, 1, 11, 6, "TabPageLayout_4"); 

    kcfg_noscheme = new KColorButton( TabPage_4, "kcfg_noscheme" );

    TabPageLayout_4->addWidget( kcfg_noscheme, 0, 0 );
    dfgdfg->insertTab( TabPage_4, TQString::fromLatin1("") );

    setColorsLayout->addWidget( dfgdfg, 0, 0 );
    languageChange();
    resize( TQSize(560, 359).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    textLabel1->setBuddy( kcfg_color_solid );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void setColors::languageChange()
{
    setCaption( tr2i18n( "Set Colors" ) );
    textLabel13->setText( tr2i18n( "s-Block:" ) );
    kcfg_block_s->setText( TQString::null );
    textLabel14->setText( tr2i18n( "p-Block:" ) );
    kcfg_block_p->setText( TQString::null );
    textLabel15->setText( tr2i18n( "d-Block:" ) );
    kcfg_block_d->setText( TQString::null );
    textLabel16->setText( tr2i18n( "f-Block:" ) );
    kcfg_block_f->setText( TQString::null );
    dfgdfg->changeTab( tab, tr2i18n( "&Blocks" ) );
    textLabel9->setText( tr2i18n( "Acidic:" ) );
    kcfg_beh_acidic->setText( TQString::null );
    textLabel10->setText( tr2i18n( "Amphoteric:" ) );
    kcfg_beh_amphoteric->setText( TQString::null );
    textLabel11->setText( tr2i18n( "Neutral:" ) );
    kcfg_beh_neutral->setText( TQString::null );
    textLabel12->setText( tr2i18n( "Basic:" ) );
    kcfg_beh_basic->setText( TQString::null );
    dfgdfg->changeTab( tab_2, tr2i18n( "Ac&id Behavior" ) );
    textLabel2_2_2->setText( tr2i18n( "Group 1:" ) );
    kcfg_group_1->setText( TQString::null );
    textLabel8->setText( tr2i18n( "Group 2:" ) );
    kcfg_group_2->setText( TQString::null );
    textLabel7->setText( tr2i18n( "Group 3:" ) );
    kcfg_group_3->setText( TQString::null );
    textLabel6->setText( tr2i18n( "Group 4:" ) );
    kcfg_group_4->setText( TQString::null );
    textLabel5_2->setText( tr2i18n( "Group 5:" ) );
    kcfg_group_5->setText( TQString::null );
    textLabel4_2->setText( tr2i18n( "Group 6:" ) );
    kcfg_group_6->setText( TQString::null );
    textLabel3_2->setText( tr2i18n( "Group 7:" ) );
    kcfg_group_7->setText( TQString::null );
    textLabel2_2->setText( tr2i18n( "Group 8:" ) );
    kcfg_group_8->setText( TQString::null );
    dfgdfg->changeTab( TabPage, tr2i18n( "&Groups" ) );
    textLabel1->setText( tr2i18n( "Solid:" ) );
    kcfg_color_solid->setText( TQString::null );
    textLabel2->setText( tr2i18n( "Liquid:" ) );
    kcfg_color_liquid->setText( TQString::null );
    textLabel3->setText( tr2i18n( "Vaporous:" ) );
    kcfg_color_vapor->setText( TQString::null );
    dfgdfg->changeTab( TabPage_2, tr2i18n( "&State of Matter" ) );
    textLabel2_2_2_2->setText( tr2i18n( "Alkali metals:" ) );
    kcfg_alkalie->setText( TQString::null );
    textLabel8_2->setText( tr2i18n( "Rare earth:" ) );
    kcfg_rare->setText( TQString::null );
    textLabel7_2->setText( tr2i18n( "Non-metals:" ) );
    kcfg_nonmetal->setText( TQString::null );
    textLabel6_2->setText( tr2i18n( "Alkaline earth metals:" ) );
    kcfg_alkaline->setText( TQString::null );
    textLabel5_2_2->setText( tr2i18n( "Other metals:" ) );
    kcfg_other_metal->setText( TQString::null );
    textLabel4_2_2->setText( tr2i18n( "Halogens:" ) );
    kcfg_halogene->setText( TQString::null );
    textLabel3_2_2->setText( tr2i18n( "Transition metals:" ) );
    kcfg_transition->setText( TQString::null );
    textLabel2_2_3->setText( tr2i18n( "Noble gases:" ) );
    kcfg_noble_gas->setText( TQString::null );
    textLabel2_2_3_2->setText( tr2i18n( "Metalloids:" ) );
    kcfg_metalloid->setText( TQString::null );
    dfgdfg->changeTab( TabPage_3, tr2i18n( "Family" ) );
    kcfg_noscheme->setText( TQString::null );
    TQToolTip::add( kcfg_noscheme, tr2i18n( "This color will be used if no other scheme is selected" ) );
    TQWhatsThis::add( kcfg_noscheme, tr2i18n( "This color will be used if no other scheme is selected" ) );
    dfgdfg->changeTab( TabPage_4, tr2i18n( "&No Color Scheme" ) );
}

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

TQMetaObject *setColors::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_setColors( "setColors", &setColors::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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