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

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

#include "settingspagecolor.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 SettingsPageColor as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
SettingsPageColor::SettingsPageColor( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "SettingsPageColor" );
    SettingsPageColorLayout = new TQGridLayout( this, 1, 1, 11, 6, "SettingsPageColorLayout"); 

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

    tab = new TQWidget( tabs, "tab" );
    tabLayout = new TQVBoxLayout( tab, 11, 6, "tabLayout"); 

    layout2 = new TQGridLayout( 0, 1, 1, 0, 6, "layout2"); 

    textLabel1 = new TQLabel( tab, "textLabel1" );

    layout2->addWidget( textLabel1, 0, 0 );

    kcfg_AxesColor = new KColorButton( tab, "kcfg_AxesColor" );

    layout2->addWidget( kcfg_AxesColor, 0, 1 );

    kcfg_GridColor = new KColorButton( tab, "kcfg_GridColor" );

    layout2->addWidget( kcfg_GridColor, 1, 1 );

    textLabel2 = new TQLabel( tab, "textLabel2" );

    layout2->addWidget( textLabel2, 1, 0 );
    tabLayout->addLayout( layout2 );
    spacer2 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( spacer2 );
    tabs->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabs, "tab_2" );
    tabLayout_2 = new TQVBoxLayout( tab_2, 11, 6, "tabLayout_2"); 

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

    layout16 = new TQGridLayout( 0, 1, 1, 0, 6, "layout16"); 

    kcfg_Color1 = new KColorButton( tab_2, "kcfg_Color1" );

    layout16->addWidget( kcfg_Color1, 1, 1 );

    kcfg_Color4 = new KColorButton( tab_2, "kcfg_Color4" );

    layout16->addWidget( kcfg_Color4, 4, 1 );

    kcfg_Color0 = new KColorButton( tab_2, "kcfg_Color0" );

    layout16->addWidget( kcfg_Color0, 0, 1 );

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

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

    kcfg_Color2 = new KColorButton( tab_2, "kcfg_Color2" );

    layout16->addWidget( kcfg_Color2, 2, 1 );

    textLabel3_13 = new TQLabel( tab_2, "textLabel3_13" );

    layout16->addWidget( textLabel3_13, 2, 0 );

    textLabel3_2 = new TQLabel( tab_2, "textLabel3_2" );

    layout16->addWidget( textLabel3_2, 1, 0 );

    textLabel3_12 = new TQLabel( tab_2, "textLabel3_12" );

    layout16->addWidget( textLabel3_12, 3, 0 );

    kcfg_Color3 = new KColorButton( tab_2, "kcfg_Color3" );

    layout16->addWidget( kcfg_Color3, 3, 1 );

    textLabel3_11 = new TQLabel( tab_2, "textLabel3_11" );

    layout16->addWidget( textLabel3_11, 4, 0 );
    layout19->addLayout( layout16 );
    spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout19->addItem( spacer3 );

    layout17 = new TQGridLayout( 0, 1, 1, 0, 6, "layout17"); 

    textLabel3_9 = new TQLabel( tab_2, "textLabel3_9" );

    layout17->addWidget( textLabel3_9, 1, 0 );

    textLabel3_8 = new TQLabel( tab_2, "textLabel3_8" );

    layout17->addWidget( textLabel3_8, 2, 0 );

    kcfg_Color8 = new KColorButton( tab_2, "kcfg_Color8" );

    layout17->addWidget( kcfg_Color8, 3, 1 );

    textLabel3_10 = new TQLabel( tab_2, "textLabel3_10" );

    layout17->addWidget( textLabel3_10, 0, 0 );

    kcfg_Color6 = new KColorButton( tab_2, "kcfg_Color6" );

    layout17->addWidget( kcfg_Color6, 1, 1 );

    kcfg_Color7 = new KColorButton( tab_2, "kcfg_Color7" );

    layout17->addWidget( kcfg_Color7, 2, 1 );

    kcfg_Color5 = new KColorButton( tab_2, "kcfg_Color5" );

    layout17->addWidget( kcfg_Color5, 0, 1 );

    textLabel3_7 = new TQLabel( tab_2, "textLabel3_7" );

    layout17->addWidget( textLabel3_7, 3, 0 );

    kcfg_Color9 = new KColorButton( tab_2, "kcfg_Color9" );

    layout17->addWidget( kcfg_Color9, 4, 1 );

    textLabel3_6 = new TQLabel( tab_2, "textLabel3_6" );

    layout17->addWidget( textLabel3_6, 4, 0 );
    layout19->addLayout( layout17 );
    tabLayout_2->addLayout( layout19 );
    spacer4 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer4 );
    tabs->insertTab( tab_2, TQString::fromLatin1("") );

    SettingsPageColorLayout->addWidget( tabs, 0, 0 );
    languageChange();
    resize( TQSize(415, 257).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( tabs, kcfg_AxesColor );
    setTabOrder( kcfg_AxesColor, kcfg_GridColor );
    setTabOrder( kcfg_GridColor, kcfg_Color0 );
    setTabOrder( kcfg_Color0, kcfg_Color1 );
    setTabOrder( kcfg_Color1, kcfg_Color2 );
    setTabOrder( kcfg_Color2, kcfg_Color3 );
    setTabOrder( kcfg_Color3, kcfg_Color4 );
    setTabOrder( kcfg_Color4, kcfg_Color5 );
    setTabOrder( kcfg_Color5, kcfg_Color6 );
    setTabOrder( kcfg_Color6, kcfg_Color7 );
    setTabOrder( kcfg_Color7, kcfg_Color8 );
    setTabOrder( kcfg_Color8, kcfg_Color9 );

    // buddies
    textLabel1->setBuddy( kcfg_AxesColor );
    textLabel2->setBuddy( kcfg_GridColor );
    textLabel3->setBuddy( kcfg_Color1 );
    textLabel3_13->setBuddy( kcfg_Color3 );
    textLabel3_2->setBuddy( kcfg_Color2 );
    textLabel3_12->setBuddy( kcfg_Color4 );
    textLabel3_11->setBuddy( kcfg_Color5 );
    textLabel3_9->setBuddy( kcfg_Color7 );
    textLabel3_8->setBuddy( kcfg_Color8 );
    textLabel3_10->setBuddy( kcfg_Color6 );
    textLabel3_7->setBuddy( kcfg_Color9 );
    textLabel3_6->setBuddy( kcfg_Color0 );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SettingsPageColor::languageChange()
{
    textLabel1->setText( tr2i18n( "&Axes:" ) );
    kcfg_AxesColor->setText( TQString::null );
    TQToolTip::add( kcfg_AxesColor, tr2i18n( "select color for the axes" ) );
    TQWhatsThis::add( kcfg_AxesColor, tr2i18n( "Specify the color of the axes. The change will appear as soon as you press the OK button." ) );
    kcfg_GridColor->setText( TQString::null );
    TQToolTip::add( kcfg_GridColor, tr2i18n( "select color for the grid" ) );
    TQWhatsThis::add( kcfg_GridColor, tr2i18n( "Specify the color of the grid. The change will appear as soon as you press the OK button." ) );
    textLabel2->setText( tr2i18n( "&Grid:" ) );
    tabs->changeTab( tab, tr2i18n( "&Coords" ) );
    kcfg_Color1->setText( TQString::null );
    TQToolTip::add( kcfg_Color1, tr2i18n( "the default color for function number 2" ) );
    TQWhatsThis::add( kcfg_Color1, tr2i18n( "The default color for function number 2. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change the color for that number here, the setting will be shown next time you define a new function at number 1." ) );
    kcfg_Color4->setText( TQString::null );
    TQToolTip::add( kcfg_Color4, tr2i18n( "the default color for function number 5" ) );
    TQWhatsThis::add( kcfg_Color4, tr2i18n( "The default color for function number 5. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change the color for that number here, the setting will be shown next time you define a new function at number 1." ) );
    kcfg_Color0->setText( TQString::null );
    TQToolTip::add( kcfg_Color0, tr2i18n( "the default color for function number 1" ) );
    TQWhatsThis::add( kcfg_Color0, tr2i18n( "The default color for function number 1. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change the color for that number here, the setting will be shown next time you define a new function at number 1." ) );
    textLabel3->setText( tr2i18n( "Function &1:" ) );
    kcfg_Color2->setText( TQString::null );
    TQToolTip::add( kcfg_Color2, tr2i18n( "the default color for function number 3" ) );
    TQWhatsThis::add( kcfg_Color2, tr2i18n( "The default color for function number 3. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change the color for that number here, the setting will be shown next time you define a new function at number 1." ) );
    textLabel3_13->setText( tr2i18n( "Function &3:" ) );
    textLabel3_2->setText( tr2i18n( "Function &2:" ) );
    textLabel3_12->setText( tr2i18n( "Function &4:" ) );
    kcfg_Color3->setText( TQString::null );
    TQToolTip::add( kcfg_Color3, tr2i18n( "the default color for function number 4" ) );
    TQWhatsThis::add( kcfg_Color3, tr2i18n( "The default color for function number 4. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change the color for that number here, the setting will be shown next time you define a new function at number 1." ) );
    textLabel3_11->setText( tr2i18n( "Function &5:" ) );
    textLabel3_9->setText( tr2i18n( "Function &7:" ) );
    textLabel3_8->setText( tr2i18n( "Function &8:" ) );
    kcfg_Color8->setText( TQString::null );
    TQToolTip::add( kcfg_Color8, tr2i18n( "the default color for function number 9" ) );
    TQWhatsThis::add( kcfg_Color8, tr2i18n( "The default color for function number 9. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change the color for that number here, the setting will be shown next time you define a new function at number 1." ) );
    textLabel3_10->setText( tr2i18n( "Function &6:" ) );
    kcfg_Color6->setText( TQString::null );
    TQToolTip::add( kcfg_Color6, tr2i18n( "the default color for function number 7" ) );
    TQWhatsThis::add( kcfg_Color6, tr2i18n( "The default color for function number 7. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change the color for that number here, the setting will be shown next time you define a new function at number 1." ) );
    kcfg_Color7->setText( TQString::null );
    TQToolTip::add( kcfg_Color7, tr2i18n( "the default color for function number 8" ) );
    TQWhatsThis::add( kcfg_Color7, tr2i18n( "The default color for function number 8. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change the color for that number here, the setting will be shown next time you define a new function at number 1." ) );
    kcfg_Color5->setText( TQString::null );
    TQToolTip::add( kcfg_Color5, tr2i18n( "the default color for function number 6" ) );
    TQWhatsThis::add( kcfg_Color5, tr2i18n( "The default color for function number 6. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change the color for that number here, the setting will be shown next time you define a new function at number 1." ) );
    textLabel3_7->setText( tr2i18n( "Function &9:" ) );
    kcfg_Color9->setText( TQString::null );
    TQToolTip::add( kcfg_Color9, tr2i18n( "the default color for function number 10" ) );
    TQWhatsThis::add( kcfg_Color9, tr2i18n( "The default color for function number 10. Please note that this color setting only affects empty functions, so if you have defined a function at number 1 and you change the color for that number here, the setting will be shown next time you define a new function at number 1." ) );
    textLabel3_6->setText( tr2i18n( "Function 1&0:" ) );
    tabs->changeTab( tab_2, tr2i18n( "&Default Function Colors" ) );
}

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

TQMetaObject *SettingsPageColor::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_SettingsPageColor( "SettingsPageColor", &SettingsPageColor::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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