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

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

#include "paletteeditoradvanced.h"

#include <ntqvariant.h>
#include <styledbutton.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqbuttongroup.h>
#include <ntqcheckbox.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "styledbutton.h"

/*
 *  Constructs a PaletteEditorAdvancedBase 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.
 */
PaletteEditorAdvancedBase::PaletteEditorAdvancedBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "PaletteEditorAdvancedBase" );
    setEnabled( true );
    setSizeGripEnabled( true );
    PaletteEditorAdvancedBaseLayout = new TQVBoxLayout( this, 11, 6, "PaletteEditorAdvancedBaseLayout"); 

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

    TextLabel1 = new TQLabel( this, "TextLabel1" );
    TextLabel1->setFrameShape( TQLabel::MShape );
    TextLabel1->setFrameShadow( TQLabel::MShadow );
    Layout14->addWidget( TextLabel1 );

    paletteCombo = new TQComboBox( false, this, "paletteCombo" );
    Layout14->addWidget( paletteCombo );
    PaletteEditorAdvancedBaseLayout->addLayout( Layout14 );

    ButtonGroup1 = new TQButtonGroup( this, "ButtonGroup1" );
    ButtonGroup1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)4, 0, 0, ButtonGroup1->sizePolicy().hasHeightForWidth() ) );
    ButtonGroup1->setColumnLayout(0, TQt::Vertical );
    ButtonGroup1->layout()->setSpacing( 6 );
    ButtonGroup1->layout()->setMargin( 11 );
    ButtonGroup1Layout = new TQVBoxLayout( ButtonGroup1->layout() );
    ButtonGroup1Layout->setAlignment( TQt::AlignTop );

    checkBuildInactive = new TQCheckBox( ButtonGroup1, "checkBuildInactive" );
    checkBuildInactive->setChecked( true );
    ButtonGroup1Layout->addWidget( checkBuildInactive );

    checkBuildDisabled = new TQCheckBox( ButtonGroup1, "checkBuildDisabled" );
    checkBuildDisabled->setChecked( true );
    ButtonGroup1Layout->addWidget( checkBuildDisabled );
    PaletteEditorAdvancedBaseLayout->addWidget( ButtonGroup1 );

    groupCentral = new TQGroupBox( this, "groupCentral" );
    groupCentral->setColumnLayout(0, TQt::Vertical );
    groupCentral->layout()->setSpacing( 6 );
    groupCentral->layout()->setMargin( 11 );
    groupCentralLayout = new TQVBoxLayout( groupCentral->layout() );
    groupCentralLayout->setAlignment( TQt::AlignTop );

    comboCentral = new TQComboBox( false, groupCentral, "comboCentral" );
    groupCentralLayout->addWidget( comboCentral );

    Layout32_2 = new TQHBoxLayout( 0, 0, 6, "Layout32_2"); 
    Horizontal_Spacing1 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout32_2->addItem( Horizontal_Spacing1 );

    labelPixmap = new TQLabel( groupCentral, "labelPixmap" );
    labelPixmap->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, labelPixmap->sizePolicy().hasHeightForWidth() ) );
    Layout32_2->addWidget( labelPixmap );

    buttonPixmap = new StyledButton( groupCentral, "buttonPixmap" );
    buttonPixmap->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, buttonPixmap->sizePolicy().hasHeightForWidth() ) );
    buttonPixmap->setFocusPolicy( StyledButton::TabFocus );
    buttonPixmap->setProperty( "scale", TQVariant( true ) );
    Layout32_2->addWidget( buttonPixmap );

    labelCentral = new TQLabel( groupCentral, "labelCentral" );
    labelCentral->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, labelCentral->sizePolicy().hasHeightForWidth() ) );
    labelCentral->setMinimumSize( TQSize( 0, 0 ) );
    Layout32_2->addWidget( labelCentral );

    buttonCentral = new StyledButton( groupCentral, "buttonCentral" );
    buttonCentral->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, buttonCentral->sizePolicy().hasHeightForWidth() ) );
    buttonCentral->setFocusPolicy( StyledButton::TabFocus );
    buttonCentral->setProperty( "scale", TQVariant( false ) );
    Layout32_2->addWidget( buttonCentral );
    groupCentralLayout->addLayout( Layout32_2 );
    PaletteEditorAdvancedBaseLayout->addWidget( groupCentral );

    groupEffect = new TQGroupBox( this, "groupEffect" );
    groupEffect->setColumnLayout(0, TQt::Vertical );
    groupEffect->layout()->setSpacing( 6 );
    groupEffect->layout()->setMargin( 11 );
    groupEffectLayout = new TQVBoxLayout( groupEffect->layout() );
    groupEffectLayout->setAlignment( TQt::AlignTop );

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

    checkBuildEffect = new TQCheckBox( groupEffect, "checkBuildEffect" );
    checkBuildEffect->setChecked( true );
    Layout32_3->addWidget( checkBuildEffect );

    comboEffect = new TQComboBox( false, groupEffect, "comboEffect" );
    Layout32_3->addWidget( comboEffect );
    groupEffectLayout->addLayout( Layout32_3 );

    Layout31_2 = new TQHBoxLayout( 0, 0, 6, "Layout31_2"); 
    Horizontal_Spacing3 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout31_2->addItem( Horizontal_Spacing3 );

    labelEffect = new TQLabel( groupEffect, "labelEffect" );
    labelEffect->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, labelEffect->sizePolicy().hasHeightForWidth() ) );
    labelEffect->setMinimumSize( TQSize( 0, 0 ) );
    Layout31_2->addWidget( labelEffect );

    buttonEffect = new StyledButton( groupEffect, "buttonEffect" );
    buttonEffect->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, buttonEffect->sizePolicy().hasHeightForWidth() ) );
    buttonEffect->setFocusPolicy( StyledButton::TabFocus );
    buttonEffect->setProperty( "scale", TQVariant( false ) );
    Layout31_2->addWidget( buttonEffect );
    groupEffectLayout->addLayout( Layout31_2 );
    PaletteEditorAdvancedBaseLayout->addWidget( groupEffect );

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

    buttonHelp = new TQPushButton( this, "buttonHelp" );
    buttonHelp->setAutoDefault( true );
    Layout3->addWidget( buttonHelp );
    Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout3->addItem( Horizontal_Spacing2 );

    buttonOk = new TQPushButton( this, "buttonOk" );
    buttonOk->setAutoDefault( true );
    buttonOk->setDefault( true );
    Layout3->addWidget( buttonOk );

    buttonCancel = new TQPushButton( this, "buttonCancel" );
    buttonCancel->setAutoDefault( true );
    Layout3->addWidget( buttonCancel );
    PaletteEditorAdvancedBaseLayout->addLayout( Layout3 );
    languageChange();
    resize( TQSize(430, 368).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( buttonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( paletteCombo, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( paletteSelected(int) ) );
    connect( comboCentral, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( onCentral(int) ) );
    connect( buttonPixmap, TQ_SIGNAL( clicked() ), this, TQ_SLOT( onChoosePixmap() ) );
    connect( buttonCentral, TQ_SIGNAL( clicked() ), this, TQ_SLOT( onChooseCentralColor() ) );
    connect( buttonEffect, TQ_SIGNAL( clicked() ), this, TQ_SLOT( onChooseEffectColor() ) );
    connect( comboEffect, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( onEffect(int) ) );
    connect( checkBuildEffect, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( onToggleBuildEffects(bool) ) );
    connect( buttonHelp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( showHelp() ) );
    connect( checkBuildEffect, TQ_SIGNAL( toggled(bool) ), comboEffect, TQ_SLOT( setDisabled(bool) ) );
    connect( checkBuildEffect, TQ_SIGNAL( toggled(bool) ), buttonEffect, TQ_SLOT( setDisabled(bool) ) );
    connect( checkBuildInactive, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( onToggleBuildInactive(bool) ) );
    connect( checkBuildDisabled, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( onToggleBuildDisabled(bool) ) );

    // tab order
    setTabOrder( buttonOk, buttonCancel );
    setTabOrder( buttonCancel, paletteCombo );
    setTabOrder( paletteCombo, checkBuildInactive );
    setTabOrder( checkBuildInactive, checkBuildDisabled );
    setTabOrder( checkBuildDisabled, comboCentral );
    setTabOrder( comboCentral, buttonPixmap );
    setTabOrder( buttonPixmap, buttonCentral );
    setTabOrder( buttonCentral, checkBuildEffect );
    setTabOrder( checkBuildEffect, comboEffect );
    setTabOrder( comboEffect, buttonEffect );
    setTabOrder( buttonEffect, buttonHelp );

    // buddies
    TextLabel1->setBuddy( paletteCombo );
    labelPixmap->setBuddy( buttonPixmap );
    labelCentral->setBuddy( buttonCentral );
    labelEffect->setBuddy( buttonEffect );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PaletteEditorAdvancedBase::languageChange()
{
    setCaption( tr2i18n( "Tune Palette" ) );
    TQWhatsThis::add( this, tr2i18n( "<b>Edit Palette</b><p>Change the current widget or form's palette.</p><p>Use a generated palette or select colors for each color group and each color role.</p><p>The palette can be tested with different widget layouts in the preview section.</p>" ) );
    TextLabel1->setText( tr2i18n( "Select &palette:" ) );
    paletteCombo->clear();
    paletteCombo->insertItem( tr2i18n( "Active Palette" ) );
    paletteCombo->insertItem( tr2i18n( "Inactive Palette" ) );
    paletteCombo->insertItem( tr2i18n( "Disabled Palette" ) );
    ButtonGroup1->setTitle( tr2i18n( "Auto" ) );
    checkBuildInactive->setText( tr2i18n( "Build the inactive palette from the active palette." ) );
    checkBuildDisabled->setText( tr2i18n( "Build the disabled palette from the active palette." ) );
    groupCentral->setTitle( tr2i18n( "Central Color &Roles" ) );
    comboCentral->clear();
    comboCentral->insertItem( tr2i18n( "Background" ) );
    comboCentral->insertItem( tr2i18n( "Foreground" ) );
    comboCentral->insertItem( tr2i18n( "Button" ) );
    comboCentral->insertItem( tr2i18n( "Base" ) );
    comboCentral->insertItem( tr2i18n( "Text" ) );
    comboCentral->insertItem( tr2i18n( "BrightText" ) );
    comboCentral->insertItem( tr2i18n( "ButtonText" ) );
    comboCentral->insertItem( tr2i18n( "Highlight" ) );
    comboCentral->insertItem( tr2i18n( "HighlightText" ) );
    comboCentral->insertItem( tr2i18n( "Link" ) );
    comboCentral->insertItem( tr2i18n( "LinkVisited" ) );
    TQToolTip::add( comboCentral, tr2i18n( "Choose the central color role" ) );
    TQWhatsThis::add( comboCentral, tr2i18n( "<b>Select a color role.</b><p>Available central color roles are: <ul> <li>Background - general background color.</li> <li>Foreground - general foreground color. </li> <li>Base - used as the background color for example, for text entry widgets; it is usually white or another light color. </li> <li>Text - the forground color used with Base. Usually this is the same as the Foreground, in which case it must provide good contrast both with the Background and with the Base. </li> <li>Button - general button background color; useful where buttons need a background different from Background, as in the Macintosh style. </li> <li>ButtonText - a foreground color used with the Button color. </li> <li>Highlight - a color used to indicate a selected or highlighted item. </li> <li>HighlightedText - a text color that contrasts to Highlight. </li> <li>BrightText - a text color that is very different from Foreground and contrasts well with, for example, black. </li> </ul> </p>" ) );
    labelPixmap->setText( tr2i18n( "Choose pi&xmap:" ) );
    TQToolTip::add( buttonPixmap, tr2i18n( "Select a pixmap" ) );
    TQWhatsThis::add( buttonPixmap, tr2i18n( "Choose a pixmap file for the selected central color role." ) );
    labelCentral->setText( tr2i18n( "&Select color:" ) );
    TQToolTip::add( buttonCentral, tr2i18n( "Choose a color" ) );
    TQWhatsThis::add( buttonCentral, tr2i18n( "Choose a color for the selected central color role." ) );
    groupEffect->setTitle( tr2i18n( "3D Shadow &Effects" ) );
    checkBuildEffect->setText( tr2i18n( "Build &from button color:" ) );
    TQToolTip::add( checkBuildEffect, tr2i18n( "Generate shadings" ) );
    TQWhatsThis::add( checkBuildEffect, tr2i18n( "Check to let 3D-effect colors be calculated from the button-color." ) );
    comboEffect->clear();
    comboEffect->insertItem( tr2i18n( "Light" ) );
    comboEffect->insertItem( tr2i18n( "Midlight" ) );
    comboEffect->insertItem( tr2i18n( "Mid" ) );
    comboEffect->insertItem( tr2i18n( "Dark" ) );
    comboEffect->insertItem( tr2i18n( "Shadow" ) );
    TQToolTip::add( comboEffect, tr2i18n( "Choose 3D-effect color role" ) );
    TQWhatsThis::add( comboEffect, tr2i18n( "<b>Select a color effect role.</b><p>Available effect roles are: <ul> <li>Light - lighter than Button color. </li> <li>Midlight - between Button and Light. </li> <li>Mid - between Button and Dark. </li> <li>Dark - darker than Button. </li> <li>Shadow - a very dark color. </li> </ul>" ) );
    labelEffect->setText( tr2i18n( "Select co&lor:" ) );
    TQToolTip::add( buttonEffect, tr2i18n( "Choose a color" ) );
    TQWhatsThis::add( buttonEffect, tr2i18n( "Choose a color for the selected effect color role." ) );
    buttonHelp->setText( tr2i18n( "&Help" ) );
    buttonOk->setText( tr2i18n( "&OK" ) );
    TQWhatsThis::add( buttonOk, tr2i18n( "Close the dialog and apply all the changes." ) );
    buttonCancel->setText( tr2i18n( "&Cancel" ) );
    TQWhatsThis::add( buttonCancel, tr2i18n( "Close the dialog and discard any changes." ) );
}

void PaletteEditorAdvancedBase::init()
{
}

void PaletteEditorAdvancedBase::destroy()
{
}

void PaletteEditorAdvancedBase::onToggleBuildDisabled(bool)
{
    tqWarning( "PaletteEditorAdvancedBase::onToggleBuildDisabled(bool): Not implemented yet" );
}

void PaletteEditorAdvancedBase::onCentral(int)
{
    tqWarning( "PaletteEditorAdvancedBase::onCentral(int): Not implemented yet" );
}

void PaletteEditorAdvancedBase::onChooseCentralColor()
{
    tqWarning( "PaletteEditorAdvancedBase::onChooseCentralColor(): Not implemented yet" );
}

void PaletteEditorAdvancedBase::onChooseEffectColor()
{
    tqWarning( "PaletteEditorAdvancedBase::onChooseEffectColor(): Not implemented yet" );
}

void PaletteEditorAdvancedBase::onChoosePixmap()
{
    tqWarning( "PaletteEditorAdvancedBase::onChoosePixmap(): Not implemented yet" );
}

void PaletteEditorAdvancedBase::onEffect(int)
{
    tqWarning( "PaletteEditorAdvancedBase::onEffect(int): Not implemented yet" );
}

void PaletteEditorAdvancedBase::onToggleBuildEffects(bool)
{
    tqWarning( "PaletteEditorAdvancedBase::onToggleBuildEffects(bool): Not implemented yet" );
}

void PaletteEditorAdvancedBase::onToggleBuildInactive(bool)
{
    tqWarning( "PaletteEditorAdvancedBase::onToggleBuildInactive(bool): Not implemented yet" );
}

void PaletteEditorAdvancedBase::paletteSelected(int)
{
    tqWarning( "PaletteEditorAdvancedBase::paletteSelected(int): Not implemented yet" );
}

void PaletteEditorAdvancedBase::showHelp()
{
    tqWarning( "PaletteEditorAdvancedBase::showHelp(): Not implemented yet" );
}

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

TQMetaObject *PaletteEditorAdvancedBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PaletteEditorAdvancedBase( "PaletteEditorAdvancedBase", &PaletteEditorAdvancedBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* PaletteEditorAdvancedBase::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 = {"showHelp", 0, 0 };
    static const TQUMethod slot_1 = {"languageChange", 0, 0 };
    static const TQUMethod slot_2 = {"init", 0, 0 };
    static const TQUMethod slot_3 = {"destroy", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"onToggleBuildDisabled", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"onCentral", 1, param_slot_5 };
    static const TQUMethod slot_6 = {"onChooseCentralColor", 0, 0 };
    static const TQUMethod slot_7 = {"onChooseEffectColor", 0, 0 };
    static const TQUMethod slot_8 = {"onChoosePixmap", 0, 0 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"onEffect", 1, param_slot_9 };
    static const TQUParameter param_slot_10[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"onToggleBuildEffects", 1, param_slot_10 };
    static const TQUParameter param_slot_11[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_11 = {"onToggleBuildInactive", 1, param_slot_11 };
    static const TQUParameter param_slot_12[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_12 = {"paletteSelected", 1, param_slot_12 };
    static const TQMetaData slot_tbl[] = {
	{ "showHelp()", &slot_0, TQMetaData::Public },
	{ "languageChange()", &slot_1, TQMetaData::Protected },
	{ "init()", &slot_2, TQMetaData::Protected },
	{ "destroy()", &slot_3, TQMetaData::Protected },
	{ "onToggleBuildDisabled(bool)", &slot_4, TQMetaData::Protected },
	{ "onCentral(int)", &slot_5, TQMetaData::Protected },
	{ "onChooseCentralColor()", &slot_6, TQMetaData::Protected },
	{ "onChooseEffectColor()", &slot_7, TQMetaData::Protected },
	{ "onChoosePixmap()", &slot_8, TQMetaData::Protected },
	{ "onEffect(int)", &slot_9, TQMetaData::Protected },
	{ "onToggleBuildEffects(bool)", &slot_10, TQMetaData::Protected },
	{ "onToggleBuildInactive(bool)", &slot_11, TQMetaData::Protected },
	{ "paletteSelected(int)", &slot_12, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"PaletteEditorAdvancedBase", parentObject,
	slot_tbl, 13,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_PaletteEditorAdvancedBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool PaletteEditorAdvancedBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: showHelp(); break;
    case 1: languageChange(); break;
    case 2: init(); break;
    case 3: destroy(); break;
    case 4: onToggleBuildDisabled((bool)static_QUType_bool.get(_o+1)); break;
    case 5: onCentral((int)static_QUType_int.get(_o+1)); break;
    case 6: onChooseCentralColor(); break;
    case 7: onChooseEffectColor(); break;
    case 8: onChoosePixmap(); break;
    case 9: onEffect((int)static_QUType_int.get(_o+1)); break;
    case 10: onToggleBuildEffects((bool)static_QUType_bool.get(_o+1)); break;
    case 11: onToggleBuildInactive((bool)static_QUType_bool.get(_o+1)); break;
    case 12: paletteSelected((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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