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

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

#include "colors.h"

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

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

    groupBox3 = new TQGroupBox( this, "groupBox3" );
    groupBox3->setColumnLayout(0, TQt::Vertical );
    groupBox3->layout()->setSpacing( 6 );
    groupBox3->layout()->setMargin( 11 );
    groupBox3Layout = new TQGridLayout( groupBox3->layout() );
    groupBox3Layout->setAlignment( TQt::AlignTop );

    textLabel3 = new TQLabel( groupBox3, "textLabel3" );

    groupBox3Layout->addWidget( textLabel3, 0, 0 );

    textLabel4 = new TQLabel( groupBox3, "textLabel4" );

    groupBox3Layout->addWidget( textLabel4, 1, 0 );
    spacer5 = new TQSpacerItem( 110, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox3Layout->addItem( spacer5, 1, 3 );

    kcfg_BackColor = new KColorButton( groupBox3, "kcfg_BackColor" );
    kcfg_BackColor->setColor( TQColor( 189, 255, 180 ) );

    groupBox3Layout->addWidget( kcfg_BackColor, 1, 2 );

    kcfg_ForeColor = new KColorButton( groupBox3, "kcfg_ForeColor" );
    kcfg_ForeColor->setColor( TQColor( 0, 0, 0 ) );

    groupBox3Layout->addWidget( kcfg_ForeColor, 0, 2 );
    ColorsLayout->addWidget( groupBox3 );

    groupBox4 = new TQGroupBox( this, "groupBox4" );
    groupBox4->setColumnLayout(0, TQt::Vertical );
    groupBox4->layout()->setSpacing( 6 );
    groupBox4->layout()->setMargin( 11 );
    groupBox4Layout = new TQGridLayout( groupBox4->layout() );
    groupBox4Layout->setAlignment( TQt::AlignTop );

    textLabel5 = new TQLabel( groupBox4, "textLabel5" );

    groupBox4Layout->addMultiCellWidget( textLabel5, 0, 0, 0, 1 );

    textLabel7 = new TQLabel( groupBox4, "textLabel7" );

    groupBox4Layout->addMultiCellWidget( textLabel7, 2, 2, 0, 1 );

    textLabel10 = new TQLabel( groupBox4, "textLabel10" );

    groupBox4Layout->addMultiCellWidget( textLabel10, 5, 5, 0, 1 );

    kcfg_FunctionButtonsColor = new KColorButton( groupBox4, "kcfg_FunctionButtonsColor" );

    groupBox4Layout->addWidget( kcfg_FunctionButtonsColor, 0, 2 );

    kcfg_StatButtonsColor = new KColorButton( groupBox4, "kcfg_StatButtonsColor" );

    groupBox4Layout->addWidget( kcfg_StatButtonsColor, 1, 2 );

    kcfg_MemoryButtonsColor = new KColorButton( groupBox4, "kcfg_MemoryButtonsColor" );

    groupBox4Layout->addWidget( kcfg_MemoryButtonsColor, 4, 2 );
    spacer6 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox4Layout->addItem( spacer6, 3, 3 );

    kcfg_OperationButtonsColor = new KColorButton( groupBox4, "kcfg_OperationButtonsColor" );

    groupBox4Layout->addWidget( kcfg_OperationButtonsColor, 5, 2 );

    kcfg_HexButtonsColor = new KColorButton( groupBox4, "kcfg_HexButtonsColor" );

    groupBox4Layout->addWidget( kcfg_HexButtonsColor, 2, 2 );

    textLabel8 = new TQLabel( groupBox4, "textLabel8" );

    groupBox4Layout->addWidget( textLabel8, 3, 0 );

    kcfg_NumberButtonsColor = new KColorButton( groupBox4, "kcfg_NumberButtonsColor" );

    groupBox4Layout->addWidget( kcfg_NumberButtonsColor, 3, 2 );

    textLabel6 = new TQLabel( groupBox4, "textLabel6" );

    groupBox4Layout->addWidget( textLabel6, 1, 0 );

    textLabel9 = new TQLabel( groupBox4, "textLabel9" );

    groupBox4Layout->addMultiCellWidget( textLabel9, 4, 4, 0, 1 );
    ColorsLayout->addWidget( groupBox4 );
    spacer4 = new TQSpacerItem( 20, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    ColorsLayout->addItem( spacer4 );
    languageChange();
    resize( TQSize(375, 331).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( kcfg_ForeColor, kcfg_BackColor );
    setTabOrder( kcfg_BackColor, kcfg_FunctionButtonsColor );
    setTabOrder( kcfg_FunctionButtonsColor, kcfg_StatButtonsColor );
    setTabOrder( kcfg_StatButtonsColor, kcfg_HexButtonsColor );
    setTabOrder( kcfg_HexButtonsColor, kcfg_NumberButtonsColor );
    setTabOrder( kcfg_NumberButtonsColor, kcfg_MemoryButtonsColor );
    setTabOrder( kcfg_MemoryButtonsColor, kcfg_OperationButtonsColor );

    // buddies
    textLabel3->setBuddy( kcfg_ForeColor );
    textLabel4->setBuddy( kcfg_BackColor );
    textLabel5->setBuddy( kcfg_FunctionButtonsColor );
    textLabel7->setBuddy( kcfg_HexButtonsColor );
    textLabel10->setBuddy( kcfg_OperationButtonsColor );
    textLabel8->setBuddy( kcfg_NumberButtonsColor );
    textLabel6->setBuddy( kcfg_StatButtonsColor );
    textLabel9->setBuddy( kcfg_MemoryButtonsColor );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Colors::languageChange()
{
    groupBox3->setTitle( tr2i18n( "Display Colors" ) );
    textLabel3->setText( tr2i18n( "&Foreground:" ) );
    textLabel4->setText( tr2i18n( "&Background:" ) );
    kcfg_BackColor->setText( TQString::null );
    kcfg_ForeColor->setText( TQString::null );
    groupBox4->setTitle( tr2i18n( "Button Colors" ) );
    textLabel5->setText( tr2i18n( "&Functions:" ) );
    textLabel7->setText( tr2i18n( "He&xadecimals:" ) );
    textLabel10->setText( tr2i18n( "O&perations:" ) );
    kcfg_FunctionButtonsColor->setText( TQString::null );
    kcfg_StatButtonsColor->setText( TQString::null );
    kcfg_MemoryButtonsColor->setText( TQString::null );
    kcfg_OperationButtonsColor->setText( TQString::null );
    kcfg_HexButtonsColor->setText( TQString::null );
    textLabel8->setText( tr2i18n( "&Numbers:" ) );
    kcfg_NumberButtonsColor->setText( TQString::null );
    textLabel6->setText( tr2i18n( "St&atistic functions:" ) );
    textLabel9->setText( tr2i18n( "&Memory:" ) );
}

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

TQMetaObject *Colors::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_Colors( "Colors", &Colors::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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