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

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

#include "sq_imagebcg.h"

#include <ntqvariant.h>
#include <knuminput.h>
#include <ksquirrel-libs/fmt_defs.h>
#include <ksquirrel-libs/fmt_types.h>
#include <kstandarddirs.h>
#include <sq_bcglabel.h>
#include <sq_label.h>
#include <ntqpushbutton.h>
#include <ntqwidgetstack.h>
#include <ntqwidget.h>
#include <ntqspinbox.h>
#include <ntqslider.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "fmt_filters.h"
#include "sq_config.h"
#include "sq_iconloader.h"
#include "sq_bcglabel.h"
#include "sq_label.h"
#include "sq_imagebcg.ui.h"

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

    widgetStackParams = new TQWidgetStack( this, "widgetStackParams" );
    widgetStackParams->setFrameShape( TQWidgetStack::GroupBoxPanel );

    WStackPage = new TQWidget( widgetStackParams, "WStackPage" );
    WStackPageLayout = new TQGridLayout( WStackPage, 1, 1, 4, 6, "WStackPageLayout"); 

    spinB = new TQSpinBox( WStackPage, "spinB" );
    spinB->setMaxValue( 255 );
    spinB->setMinValue( -255 );

    WStackPageLayout->addWidget( spinB, 2, 0 );

    pushResetG = new TQPushButton( WStackPage, "pushResetG" );
    pushResetG->setAutoDefault( false );
    pushResetG->setFlat( true );

    WStackPageLayout->addWidget( pushResetG, 0, 2 );

    pushResetC = new TQPushButton( WStackPage, "pushResetC" );
    pushResetC->setAutoDefault( false );
    pushResetC->setFlat( true );

    WStackPageLayout->addWidget( pushResetC, 0, 1 );

    spinG = new KDoubleSpinBox( WStackPage, "spinG" );

    WStackPageLayout->addWidget( spinG, 2, 2 );

    spinC = new TQSpinBox( WStackPage, "spinC" );
    spinC->setMaxValue( 255 );
    spinC->setMinValue( -255 );

    WStackPageLayout->addWidget( spinC, 2, 1 );

    pushResetB = new TQPushButton( WStackPage, "pushResetB" );
    pushResetB->setAutoDefault( false );
    pushResetB->setFlat( true );

    WStackPageLayout->addWidget( pushResetB, 0, 0 );

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

    sQ_LabelB = new SQ_Label( WStackPage, "sQ_LabelB" );
    layout6->addWidget( sQ_LabelB );

    sliderB = new TQSlider( WStackPage, "sliderB" );
    sliderB->setMinValue( -255 );
    sliderB->setMaxValue( 255 );
    sliderB->setOrientation( TQSlider::Vertical );
    sliderB->setTickmarks( TQSlider::Above );
    sliderB->setTickInterval( 25 );
    layout6->addWidget( sliderB );

    WStackPageLayout->addLayout( layout6, 1, 0 );

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

    sQ_LabelC = new SQ_Label( WStackPage, "sQ_LabelC" );
    layout5->addWidget( sQ_LabelC );

    sliderC = new TQSlider( WStackPage, "sliderC" );
    sliderC->setMinValue( -255 );
    sliderC->setMaxValue( 255 );
    sliderC->setOrientation( TQSlider::Vertical );
    sliderC->setTickmarks( TQSlider::Above );
    sliderC->setTickInterval( 25 );
    layout5->addWidget( sliderC );

    WStackPageLayout->addLayout( layout5, 1, 1 );

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

    sQ_LabelG = new SQ_Label( WStackPage, "sQ_LabelG" );
    layout4->addWidget( sQ_LabelG );

    sliderG = new TQSlider( WStackPage, "sliderG" );
    sliderG->setMinValue( 0 );
    sliderG->setMaxValue( 600 );
    sliderG->setValue( 100 );
    sliderG->setOrientation( TQSlider::Vertical );
    sliderG->setTickmarks( TQSlider::Above );
    sliderG->setTickInterval( 22 );
    layout4->addWidget( sliderG );

    WStackPageLayout->addLayout( layout4, 1, 2 );
    widgetStackParams->addWidget( WStackPage, 0 );

    WStackPage_2 = new TQWidget( widgetStackParams, "WStackPage_2" );
    WStackPageLayout_2 = new TQGridLayout( WStackPage_2, 1, 1, 4, 6, "WStackPageLayout_2"); 

    pushResetRed = new TQPushButton( WStackPage_2, "pushResetRed" );
    pushResetRed->setAutoDefault( false );
    pushResetRed->setFlat( true );

    WStackPageLayout_2->addWidget( pushResetRed, 0, 0 );

    spinRed = new TQSpinBox( WStackPage_2, "spinRed" );
    spinRed->setMaxValue( 255 );
    spinRed->setMinValue( -255 );

    WStackPageLayout_2->addWidget( spinRed, 2, 0 );

    spinGreen = new TQSpinBox( WStackPage_2, "spinGreen" );
    spinGreen->setMaxValue( 255 );
    spinGreen->setMinValue( -255 );

    WStackPageLayout_2->addWidget( spinGreen, 2, 1 );

    pushResetGreen = new TQPushButton( WStackPage_2, "pushResetGreen" );
    pushResetGreen->setAutoDefault( false );
    pushResetGreen->setFlat( true );

    WStackPageLayout_2->addWidget( pushResetGreen, 0, 1 );

    pushResetBlue = new TQPushButton( WStackPage_2, "pushResetBlue" );
    pushResetBlue->setAutoDefault( false );
    pushResetBlue->setFlat( true );

    WStackPageLayout_2->addWidget( pushResetBlue, 0, 2 );

    spinBlue = new TQSpinBox( WStackPage_2, "spinBlue" );
    spinBlue->setMaxValue( 255 );
    spinBlue->setMinValue( -255 );

    WStackPageLayout_2->addWidget( spinBlue, 2, 2 );

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

    sQ_LabelBlue = new SQ_Label( WStackPage_2, "sQ_LabelBlue" );
    layout1->addWidget( sQ_LabelBlue );

    sliderBlue = new TQSlider( WStackPage_2, "sliderBlue" );
    sliderBlue->setMinValue( -255 );
    sliderBlue->setMaxValue( 255 );
    sliderBlue->setTickmarks( TQSlider::Above );
    sliderBlue->setTickInterval( 25 );
    layout1->addWidget( sliderBlue );

    WStackPageLayout_2->addLayout( layout1, 1, 2 );

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

    sQ_LabelGreen = new SQ_Label( WStackPage_2, "sQ_LabelGreen" );
    layout2->addWidget( sQ_LabelGreen );

    sliderGreen = new TQSlider( WStackPage_2, "sliderGreen" );
    sliderGreen->setMinValue( -255 );
    sliderGreen->setMaxValue( 255 );
    sliderGreen->setTickmarks( TQSlider::Above );
    sliderGreen->setTickInterval( 25 );
    layout2->addWidget( sliderGreen );

    WStackPageLayout_2->addLayout( layout2, 1, 1 );

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

    sQ_LabelRed = new SQ_Label( WStackPage_2, "sQ_LabelRed" );
    layout3->addWidget( sQ_LabelRed );

    sliderRed = new TQSlider( WStackPage_2, "sliderRed" );
    sliderRed->setMinValue( -255 );
    sliderRed->setMaxValue( 255 );
    sliderRed->setTickmarks( TQSlider::Above );
    sliderRed->setTickInterval( 25 );
    layout3->addWidget( sliderRed );

    WStackPageLayout_2->addLayout( layout3, 1, 0 );
    widgetStackParams->addWidget( WStackPage_2, 1 );

    SQ_ImageBCGLayout->addMultiCellWidget( widgetStackParams, 1, 3, 0, 0 );

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

    push2 = new TQPushButton( groupBox3, "push2" );
    push2->setAutoDefault( false );
    push2->setFlat( true );

    groupBox3Layout->addWidget( push2, 0, 4 );

    push1 = new TQPushButton( groupBox3, "push1" );
    push1->setAutoDefault( false );
    push1->setFlat( true );

    groupBox3Layout->addWidget( push1, 0, 0 );
    spacer26 = new TQSpacerItem( 1, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox3Layout->addItem( spacer26, 0, 1 );
    spacer27 = new TQSpacerItem( 1, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox3Layout->addItem( spacer27, 0, 3 );

    text = new TQLabel( groupBox3, "text" );
    text->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignCenter ) );

    groupBox3Layout->addWidget( text, 0, 2 );

    SQ_ImageBCGLayout->addMultiCellWidget( groupBox3, 0, 0, 0, 1 );
    spacer12_2 = new TQSpacerItem( 16, 16, TQSizePolicy::Minimum, TQSizePolicy::MinimumExpanding );
    SQ_ImageBCGLayout->addItem( spacer12_2, 3, 1 );

    layout8 = new TQHBoxLayout( 0, 0, 6, "layout8"); 
    spacer3 = new TQSpacerItem( 249, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout8->addItem( spacer3 );

    pushGO = new TQPushButton( this, "pushGO" );
    pushGO->setDefault( true );
    layout8->addWidget( pushGO );

    pushCancel = new TQPushButton( this, "pushCancel" );
    pushCancel->setAutoDefault( false );
    layout8->addWidget( pushCancel );

    SQ_ImageBCGLayout->addMultiCellLayout( layout8, 5, 5, 0, 1 );

    line2 = new TQFrame( this, "line2" );
    line2->setFrameShape( TQFrame::HLine );
    line2->setFrameShadow( TQFrame::Sunken );
    line2->setFrameShape( TQFrame::HLine );

    SQ_ImageBCGLayout->addMultiCellWidget( line2, 4, 4, 0, 1 );
    spacer11 = new TQSpacerItem( 16, 20, TQSizePolicy::Minimum, TQSizePolicy::MinimumExpanding );
    SQ_ImageBCGLayout->addItem( spacer11, 1, 1 );

    layout15 = new TQGridLayout( 0, 1, 1, 0, 6, "layout15"); 
    spacer13 = new TQSpacerItem( 1, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout15->addItem( spacer13, 1, 0 );

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

    layout15->addMultiCellWidget( textLabel3, 0, 0, 1, 2 );
    spacer35 = new TQSpacerItem( 1, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout15->addItem( spacer35, 1, 2 );

    pixmap1 = new SQ_BCGLabel( this, "pixmap1" );
    pixmap1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, pixmap1->sizePolicy().hasHeightForWidth() ) );
    pixmap1->setMinimumSize( TQSize( 160, 160 ) );

    layout15->addWidget( pixmap1, 1, 3 );

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

    layout15->addMultiCellWidget( textLabel4, 0, 0, 3, 4 );
    spacer34 = new TQSpacerItem( 1, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout15->addItem( spacer34, 1, 4 );

    pixmap = new SQ_BCGLabel( this, "pixmap" );
    pixmap->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, pixmap->sizePolicy().hasHeightForWidth() ) );
    pixmap->setMinimumSize( TQSize( 160, 160 ) );

    layout15->addWidget( pixmap, 1, 1 );

    SQ_ImageBCGLayout->addLayout( layout15, 2, 1 );
    languageChange();
    resize( TQSize(564, 391).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( spinRed, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotRedChanged(int) ) );
    connect( spinGreen, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotGreenChanged(int) ) );
    connect( spinG, TQ_SIGNAL( valueChanged(double) ), this, TQ_SLOT( slotGSpinChanged(double) ) );
    connect( spinC, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotCChanged(int) ) );
    connect( spinBlue, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotBlueChanged(int) ) );
    connect( spinB, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotBChanged(int) ) );
    connect( sliderRed, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotRedChanged(int) ) );
    connect( sliderGreen, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotGreenChanged(int) ) );
    connect( sliderG, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotGChanged(int) ) );
    connect( sliderC, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotCChanged(int) ) );
    connect( sliderBlue, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotBlueChanged(int) ) );
    connect( sliderB, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotBChanged(int) ) );
    connect( pushResetRed, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotResetRed() ) );
    connect( pushResetGreen, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotResetGreen() ) );
    connect( pushResetG, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotResetG() ) );
    connect( pushResetC, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotResetC() ) );
    connect( pushResetBlue, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotResetBlue() ) );
    connect( pushResetB, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotResetB() ) );
    connect( pushGO, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotStartBCG() ) );
    connect( push2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotPush() ) );
    connect( push1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotPush() ) );
    connect( pushCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );

    // tab order
    setTabOrder( push1, push2 );
    setTabOrder( push2, pushResetRed );
    setTabOrder( pushResetRed, pushResetGreen );
    setTabOrder( pushResetGreen, pushResetBlue );
    setTabOrder( pushResetBlue, sliderRed );
    setTabOrder( sliderRed, sliderGreen );
    setTabOrder( sliderGreen, sliderBlue );
    setTabOrder( sliderBlue, spinRed );
    setTabOrder( spinRed, spinGreen );
    setTabOrder( spinGreen, spinBlue );
    setTabOrder( spinBlue, pushGO );
    setTabOrder( pushGO, pushCancel );
    setTabOrder( pushCancel, pushResetB );
    setTabOrder( pushResetB, pushResetC );
    setTabOrder( pushResetC, pushResetG );
    setTabOrder( pushResetG, sliderB );
    setTabOrder( sliderB, sliderC );
    setTabOrder( sliderC, sliderG );
    setTabOrder( sliderG, spinB );
    setTabOrder( spinB, spinC );
    setTabOrder( spinC, spinG );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SQ_ImageBCG::languageChange()
{
    setCaption( tr2i18n( "Color balance" ) );
    pushResetG->setText( TQString::null );
    pushResetC->setText( TQString::null );
    pushResetB->setText( TQString::null );
    TQWhatsThis::add( sliderB, tr2i18n( "Brightness" ) );
    TQWhatsThis::add( sliderC, tr2i18n( "Contrast" ) );
    TQWhatsThis::add( sliderG, tr2i18n( "Gamma" ) );
    pushResetRed->setText( TQString::null );
    pushResetGreen->setText( TQString::null );
    pushResetBlue->setText( TQString::null );
    TQWhatsThis::add( sliderBlue, tr2i18n( "Blue" ) );
    TQWhatsThis::add( sliderGreen, tr2i18n( "Green" ) );
    TQWhatsThis::add( sliderRed, tr2i18n( "Red" ) );
    groupBox3->setTitle( TQString::null );
    push2->setText( TQString::null );
    push1->setText( TQString::null );
    pushGO->setText( tr2i18n( "Colorize" ) );
    pushCancel->setText( tr2i18n( "Close" ) );
    textLabel3->setText( tr2i18n( "Original image:" ) );
    textLabel4->setText( tr2i18n( "Image after colorizing:" ) );
}

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

TQMetaObject *SQ_ImageBCG::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_SQ_ImageBCG( "SQ_ImageBCG", &SQ_ImageBCG::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* SQ_ImageBCG::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 = {"languageChange", 0, 0 };
    static const TQUMethod slot_1 = {"slotResetG", 0, 0 };
    static const TQUMethod slot_2 = {"slotResetC", 0, 0 };
    static const TQUMethod slot_3 = {"slotResetB", 0, 0 };
    static const TQUMethod slot_4 = {"slotResetRed", 0, 0 };
    static const TQUMethod slot_5 = {"slotResetGreen", 0, 0 };
    static const TQUMethod slot_6 = {"slotResetBlue", 0, 0 };
    static const TQUMethod slot_7 = {"slotStartBCG", 0, 0 };
    static const TQUParameter param_slot_8[] = {
	{ "v", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"slotBChanged", 1, param_slot_8 };
    static const TQUParameter param_slot_9[] = {
	{ "v", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"slotCChanged", 1, param_slot_9 };
    static const TQUParameter param_slot_10[] = {
	{ "v", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"slotRedChanged", 1, param_slot_10 };
    static const TQUParameter param_slot_11[] = {
	{ "v", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_11 = {"slotGreenChanged", 1, param_slot_11 };
    static const TQUParameter param_slot_12[] = {
	{ "v", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_12 = {"slotBlueChanged", 1, param_slot_12 };
    static const TQUParameter param_slot_13[] = {
	{ "v", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_13 = {"slotGChanged", 1, param_slot_13 };
    static const TQUParameter param_slot_14[] = {
	{ "v", &static_QUType_double, 0, TQUParameter::In }
    };
    static const TQUMethod slot_14 = {"slotGSpinChanged", 1, param_slot_14 };
    static const TQUMethod slot_15 = {"slotPush", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected },
	{ "slotResetG()", &slot_1, TQMetaData::Private },
	{ "slotResetC()", &slot_2, TQMetaData::Private },
	{ "slotResetB()", &slot_3, TQMetaData::Private },
	{ "slotResetRed()", &slot_4, TQMetaData::Private },
	{ "slotResetGreen()", &slot_5, TQMetaData::Private },
	{ "slotResetBlue()", &slot_6, TQMetaData::Private },
	{ "slotStartBCG()", &slot_7, TQMetaData::Private },
	{ "slotBChanged(int)", &slot_8, TQMetaData::Private },
	{ "slotCChanged(int)", &slot_9, TQMetaData::Private },
	{ "slotRedChanged(int)", &slot_10, TQMetaData::Private },
	{ "slotGreenChanged(int)", &slot_11, TQMetaData::Private },
	{ "slotBlueChanged(int)", &slot_12, TQMetaData::Private },
	{ "slotGChanged(int)", &slot_13, TQMetaData::Private },
	{ "slotGSpinChanged(double)", &slot_14, TQMetaData::Private },
	{ "slotPush()", &slot_15, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_ptr, "SQ_ImageBCGOptions", TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"bcg", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "bcg(SQ_ImageBCGOptions*)", &signal_0, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"SQ_ImageBCG", parentObject,
	slot_tbl, 16,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_SQ_ImageBCG.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

#include <ntqobjectdefs.h>
#include <ntqsignalslotimp.h>

// TQ_SIGNAL bcg
void SQ_ImageBCG::bcg( SQ_ImageBCGOptions* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

bool SQ_ImageBCG::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    case 1: slotResetG(); break;
    case 2: slotResetC(); break;
    case 3: slotResetB(); break;
    case 4: slotResetRed(); break;
    case 5: slotResetGreen(); break;
    case 6: slotResetBlue(); break;
    case 7: slotStartBCG(); break;
    case 8: slotBChanged((int)static_QUType_int.get(_o+1)); break;
    case 9: slotCChanged((int)static_QUType_int.get(_o+1)); break;
    case 10: slotRedChanged((int)static_QUType_int.get(_o+1)); break;
    case 11: slotGreenChanged((int)static_QUType_int.get(_o+1)); break;
    case 12: slotBlueChanged((int)static_QUType_int.get(_o+1)); break;
    case 13: slotGChanged((int)static_QUType_int.get(_o+1)); break;
    case 14: slotGSpinChanged((double)static_QUType_double.get(_o+1)); break;
    case 15: slotPush(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

bool SQ_ImageBCG::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: bcg((SQ_ImageBCGOptions*)static_QUType_ptr.get(_o+1)); break;
    default:
	return TQDialog::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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