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

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

#include "ktouchcoloreditor_dlg.h"

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

/*
 *  Constructs a KTouchColorEditorDlg as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
KTouchColorEditorDlg::KTouchColorEditorDlg( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KTouchColorEditorDlg" );
    KTouchColorEditorDlgLayout = new TQVBoxLayout( this, 11, 6, "KTouchColorEditorDlgLayout"); 

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, groupBox2->sizePolicy().hasHeightForWidth() ) );
    groupBox2->setMinimumSize( TQSize( 0, 0 ) );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQGridLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    schemeListBox = new TQListBox( groupBox2, "schemeListBox" );
    schemeListBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, schemeListBox->sizePolicy().hasHeightForWidth() ) );

    groupBox2Layout->addMultiCellWidget( schemeListBox, 0, 2, 0, 0 );

    addBtn = new KPushButton( groupBox2, "addBtn" );
    addBtn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, addBtn->sizePolicy().hasHeightForWidth() ) );

    groupBox2Layout->addWidget( addBtn, 0, 1 );

    removeBtn = new KPushButton( groupBox2, "removeBtn" );
    removeBtn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, removeBtn->sizePolicy().hasHeightForWidth() ) );

    groupBox2Layout->addWidget( removeBtn, 1, 1 );
    spacer13 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    groupBox2Layout->addItem( spacer13, 2, 1 );
    KTouchColorEditorDlgLayout->addWidget( groupBox2 );

    editGroupBox = new TQGroupBox( this, "editGroupBox" );
    editGroupBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)3, 0, 0, editGroupBox->sizePolicy().hasHeightForWidth() ) );
    editGroupBox->setColumnLayout(0, TQt::Vertical );
    editGroupBox->layout()->setSpacing( 6 );
    editGroupBox->layout()->setMargin( 11 );
    editGroupBoxLayout = new TQVBoxLayout( editGroupBox->layout() );
    editGroupBoxLayout->setAlignment( TQt::AlignTop );

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

    nameL = new TQLabel( editGroupBox, "nameL" );
    layout18->addWidget( nameL );

    nameEdit = new KLineEdit( editGroupBox, "nameEdit" );
    layout18->addWidget( nameEdit );

    updateBtn = new KPushButton( editGroupBox, "updateBtn" );
    layout18->addWidget( updateBtn );
    editGroupBoxLayout->addLayout( layout18 );

    groupBox3 = new TQGroupBox( editGroupBox, "groupBox3" );
    groupBox3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, groupBox3->sizePolicy().hasHeightForWidth() ) );
    groupBox3->setColumnLayout(0, TQt::Vertical );
    groupBox3->layout()->setSpacing( 6 );
    groupBox3->layout()->setMargin( 11 );
    groupBox3Layout = new TQHBoxLayout( groupBox3->layout() );
    groupBox3Layout->setAlignment( TQt::AlignTop );

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

    teacherBackBtn = new KColorButton( groupBox3, "teacherBackBtn" );

    layout14->addWidget( teacherBackBtn, 1, 1 );

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

    layout14->addWidget( textLabel3_2, 1, 0 );
    spacer8 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout14->addItem( spacer8, 2, 0 );

    teacherTextBtn = new KColorButton( groupBox3, "teacherTextBtn" );

    layout14->addWidget( teacherTextBtn, 0, 1 );

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

    layout14->addWidget( textLabel3, 0, 0 );
    groupBox3Layout->addLayout( layout14 );
    spacer11 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    groupBox3Layout->addItem( spacer11 );

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

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

    layout10->addWidget( textLabel3_5, 2, 0 );

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

    layout10->addWidget( textLabel3_4, 1, 0 );

    studentBackBtn = new KColorButton( groupBox3, "studentBackBtn" );

    layout10->addWidget( studentBackBtn, 1, 1 );

    studentErrorBackBtn = new KColorButton( groupBox3, "studentErrorBackBtn" );

    layout10->addWidget( studentErrorBackBtn, 3, 1 );

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

    layout10->addWidget( textLabel3_3, 0, 0 );

    studentTextBtn = new KColorButton( groupBox3, "studentTextBtn" );

    layout10->addWidget( studentTextBtn, 0, 1 );

    studentErrorTextBtn = new KColorButton( groupBox3, "studentErrorTextBtn" );

    layout10->addWidget( studentErrorTextBtn, 2, 1 );

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

    layout10->addWidget( textLabel3_6, 3, 0 );
    groupBox3Layout->addLayout( layout10 );
    spacer9 = new TQSpacerItem( 30, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox3Layout->addItem( spacer9 );
    editGroupBoxLayout->addWidget( groupBox3 );

    keyboardColorsGroup = new TQGroupBox( editGroupBox, "keyboardColorsGroup" );
    keyboardColorsGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)3, 0, 0, keyboardColorsGroup->sizePolicy().hasHeightForWidth() ) );
    keyboardColorsGroup->setColumnLayout(0, TQt::Vertical );
    keyboardColorsGroup->layout()->setSpacing( 6 );
    keyboardColorsGroup->layout()->setMargin( 11 );
    keyboardColorsGroupLayout = new TQVBoxLayout( keyboardColorsGroup->layout() );
    keyboardColorsGroupLayout->setAlignment( TQt::AlignTop );

    layout24 = new TQGridLayout( 0, 1, 1, 0, 6, "layout24"); 
    spacer11_2 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout24->addItem( spacer11_2, 0, 1 );
    spacer9_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout24->addItem( spacer9_2, 0, 3 );
    spacer19 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout24->addItem( spacer19, 1, 2 );

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

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

    layout22->addWidget( textLabel3_9, 4, 0 );

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

    layout22->addWidget( textLabel3_8, 3, 0 );

    keyTextHighBtn = new KColorButton( keyboardColorsGroup, "keyTextHighBtn" );

    layout22->addWidget( keyTextHighBtn, 4, 1 );

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

    layout22->addWidget( textLabel3_7, 0, 0 );

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

    layout22->addWidget( textLabel2, 2, 0 );

    keyFrameBtn = new KColorButton( keyboardColorsGroup, "keyFrameBtn" );

    layout22->addWidget( keyFrameBtn, 0, 1 );

    keyTextBtn = new KColorButton( keyboardColorsGroup, "keyTextBtn" );

    layout22->addWidget( keyTextBtn, 3, 1 );

    keyBackHighBtn = new KColorButton( keyboardColorsGroup, "keyBackHighBtn" );

    layout22->addWidget( keyBackHighBtn, 5, 1 );

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

    layout22->addWidget( textLabel3_10, 5, 0 );
    spacer16 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout22->addItem( spacer16, 1, 0 );

    layout24->addMultiCellLayout( layout22, 0, 1, 0, 0 );

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

    textLabel3_7_2 = new TQLabel( keyboardColorsGroup, "textLabel3_7_2" );

    layout20->addWidget( textLabel3_7_2, 1, 0 );

    cBackgroundBtn = new KColorButton( keyboardColorsGroup, "cBackgroundBtn" );

    layout20->addWidget( cBackgroundBtn, 2, 1 );

    textLabel3_9_2 = new TQLabel( keyboardColorsGroup, "textLabel3_9_2" );

    layout20->addWidget( textLabel3_9_2, 3, 0 );

    cBackHighBtn = new KColorButton( keyboardColorsGroup, "cBackHighBtn" );

    layout20->addWidget( cBackHighBtn, 4, 1 );

    textLabel3_10_2 = new TQLabel( keyboardColorsGroup, "textLabel3_10_2" );

    layout20->addWidget( textLabel3_10_2, 4, 0 );

    cTextBtn = new KColorButton( keyboardColorsGroup, "cTextBtn" );

    layout20->addWidget( cTextBtn, 1, 1 );

    cTextHighBtn = new KColorButton( keyboardColorsGroup, "cTextHighBtn" );

    layout20->addWidget( cTextHighBtn, 3, 1 );

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

    layout20->addMultiCellWidget( textLabel1, 0, 0, 0, 1 );

    textLabel3_8_2 = new TQLabel( keyboardColorsGroup, "textLabel3_8_2" );

    layout20->addWidget( textLabel3_8_2, 2, 0 );

    layout24->addLayout( layout20, 0, 2 );
    keyboardColorsGroupLayout->addLayout( layout24 );

    textLabel3_11 = new TQLabel( keyboardColorsGroup, "textLabel3_11" );
    keyboardColorsGroupLayout->addWidget( textLabel3_11 );

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

    back1Btn = new KColorButton( keyboardColorsGroup, "back1Btn" );
    back1Btn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, back1Btn->sizePolicy().hasHeightForWidth() ) );
    layout28->addWidget( back1Btn );

    back2Btn = new KColorButton( keyboardColorsGroup, "back2Btn" );
    back2Btn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, back2Btn->sizePolicy().hasHeightForWidth() ) );
    layout28->addWidget( back2Btn );

    back3Btn = new KColorButton( keyboardColorsGroup, "back3Btn" );
    back3Btn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, back3Btn->sizePolicy().hasHeightForWidth() ) );
    layout28->addWidget( back3Btn );

    back4Btn = new KColorButton( keyboardColorsGroup, "back4Btn" );
    back4Btn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, back4Btn->sizePolicy().hasHeightForWidth() ) );
    layout28->addWidget( back4Btn );

    back5Btn = new KColorButton( keyboardColorsGroup, "back5Btn" );
    back5Btn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, back5Btn->sizePolicy().hasHeightForWidth() ) );
    layout28->addWidget( back5Btn );

    back6Btn = new KColorButton( keyboardColorsGroup, "back6Btn" );
    back6Btn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, back6Btn->sizePolicy().hasHeightForWidth() ) );
    layout28->addWidget( back6Btn );

    back7Btn = new KColorButton( keyboardColorsGroup, "back7Btn" );
    back7Btn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, back7Btn->sizePolicy().hasHeightForWidth() ) );
    layout28->addWidget( back7Btn );

    back8Btn = new KColorButton( keyboardColorsGroup, "back8Btn" );
    back8Btn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, back8Btn->sizePolicy().hasHeightForWidth() ) );
    layout28->addWidget( back8Btn );
    keyboardColorsGroupLayout->addLayout( layout28 );
    editGroupBoxLayout->addWidget( keyboardColorsGroup );
    KTouchColorEditorDlgLayout->addWidget( editGroupBox );
    languageChange();
    resize( TQSize(560, 597).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( addBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addBtnClicked() ) );
    connect( removeBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeBtnClicked() ) );
    connect( schemeListBox, TQ_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQ_SLOT( colorSchemeChanged(TQListBoxItem*) ) );
    connect( updateBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( updateClicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KTouchColorEditorDlg::languageChange()
{
    setCaption( tr2i18n( "Color Scheme Editor" ) );
    groupBox2->setTitle( tr2i18n( "User defined color schemes" ) );
    addBtn->setText( tr2i18n( "Add" ) );
    removeBtn->setText( tr2i18n( "Remove" ) );
    editGroupBox->setTitle( tr2i18n( "Edit color scheme:" ) );
    nameL->setText( tr2i18n( "Name of color scheme:" ) );
    updateBtn->setText( tr2i18n( "&Store data" ) );
    groupBox3->setTitle( tr2i18n( "Slide line colors" ) );
    teacherBackBtn->setText( TQString::null );
    textLabel3_2->setText( tr2i18n( "Teacher background" ) );
    teacherTextBtn->setText( TQString::null );
    textLabel3->setText( tr2i18n( "Teacher text" ) );
    textLabel3_5->setText( tr2i18n( "Student text on error" ) );
    textLabel3_4->setText( tr2i18n( "Student background" ) );
    studentBackBtn->setText( TQString::null );
    studentErrorBackBtn->setText( TQString::null );
    textLabel3_3->setText( tr2i18n( "Student text" ) );
    studentTextBtn->setText( TQString::null );
    studentErrorTextBtn->setText( TQString::null );
    textLabel3_6->setText( tr2i18n( "Student background on error" ) );
    keyboardColorsGroup->setTitle( tr2i18n( "Keyboard colors" ) );
    textLabel3_9->setText( tr2i18n( "Highlighted text color" ) );
    textLabel3_8->setText( tr2i18n( "Text color" ) );
    keyTextHighBtn->setText( TQString::null );
    textLabel3_7->setText( tr2i18n( "Key frame" ) );
    textLabel2->setText( tr2i18n( "Normal key colors:" ) );
    keyFrameBtn->setText( TQString::null );
    keyTextBtn->setText( TQString::null );
    keyBackHighBtn->setText( TQString::null );
    textLabel3_10->setText( tr2i18n( "Highlighted background" ) );
    textLabel3_7_2->setText( tr2i18n( "Text color" ) );
    cBackgroundBtn->setText( TQString::null );
    textLabel3_9_2->setText( tr2i18n( "Highlighted text color" ) );
    cBackHighBtn->setText( TQString::null );
    textLabel3_10_2->setText( tr2i18n( "Highlighted background" ) );
    cTextBtn->setText( TQString::null );
    cTextHighBtn->setText( TQString::null );
    textLabel1->setText( tr2i18n( "Modifier/other keys:" ) );
    textLabel3_8_2->setText( tr2i18n( "Background" ) );
    textLabel3_11->setText( tr2i18n( "Background colors for normal keys:" ) );
    back1Btn->setText( TQString::null );
    back2Btn->setText( TQString::null );
    back3Btn->setText( TQString::null );
    back4Btn->setText( TQString::null );
    back5Btn->setText( TQString::null );
    back6Btn->setText( TQString::null );
    back7Btn->setText( TQString::null );
    back8Btn->setText( TQString::null );
}

void KTouchColorEditorDlg::closeQuery()
{
    tqWarning( "KTouchColorEditorDlg::closeQuery(): Not implemented yet" );
}

void KTouchColorEditorDlg::addBtnClicked()
{
    tqWarning( "KTouchColorEditorDlg::addBtnClicked(): Not implemented yet" );
}

void KTouchColorEditorDlg::removeBtnClicked()
{
    tqWarning( "KTouchColorEditorDlg::removeBtnClicked(): Not implemented yet" );
}

void KTouchColorEditorDlg::updateClicked()
{
    tqWarning( "KTouchColorEditorDlg::updateClicked(): Not implemented yet" );
}

void KTouchColorEditorDlg::colorSchemeChanged(TQListBoxItem*)
{
    tqWarning( "KTouchColorEditorDlg::colorSchemeChanged(TQListBoxItem*): Not implemented yet" );
}

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

TQMetaObject *KTouchColorEditorDlg::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KTouchColorEditorDlg( "KTouchColorEditorDlg", &KTouchColorEditorDlg::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KTouchColorEditorDlg::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"closeQuery", 0, 0 };
    static const TQUMethod slot_1 = {"addBtnClicked", 0, 0 };
    static const TQUMethod slot_2 = {"removeBtnClicked", 0, 0 };
    static const TQUMethod slot_3 = {"updateClicked", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ "item", &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"colorSchemeChanged", 1, param_slot_4 };
    static const TQUMethod slot_5 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "closeQuery()", &slot_0, TQMetaData::Public },
	{ "addBtnClicked()", &slot_1, TQMetaData::Public },
	{ "removeBtnClicked()", &slot_2, TQMetaData::Public },
	{ "updateClicked()", &slot_3, TQMetaData::Public },
	{ "colorSchemeChanged(TQListBoxItem*)", &slot_4, TQMetaData::Public },
	{ "languageChange()", &slot_5, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KTouchColorEditorDlg", parentObject,
	slot_tbl, 6,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KTouchColorEditorDlg.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KTouchColorEditorDlg::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: closeQuery(); break;
    case 1: addBtnClicked(); break;
    case 2: removeBtnClicked(); break;
    case 3: updateClicked(); break;
    case 4: colorSchemeChanged((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 5: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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