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

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

#include "bgdialog_ui.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <kurlrequester.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <kcombobox.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqcombobox.h>
#include <kcolorbutton.h>
#include <ntqslider.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a BGDialog_UI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
BGDialog_UI::BGDialog_UI( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "BGDialog_UI" );
    BGDialog_UILayout = new TQGridLayout( this, 1, 1, 1, KDialog::spacingHint(), "BGDialog_UILayout"); 

    m_pDesktopLabel = new TQLabel( this, "m_pDesktopLabel" );
    m_pDesktopLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_pDesktopLabel->sizePolicy().hasHeightForWidth() ) );

    BGDialog_UILayout->addWidget( m_pDesktopLabel, 0, 0 );

    m_comboDesktop = new KComboBox( false, this, "m_comboDesktop" );
    m_comboDesktop->setEnabled( true );
    m_comboDesktop->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_comboDesktop->sizePolicy().hasHeightForWidth() ) );

    BGDialog_UILayout->addWidget( m_comboDesktop, 0, 1 );

    m_comboScreen = new KComboBox( false, this, "m_comboScreen" );
    m_comboScreen->setEnabled( true );
    m_comboScreen->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_comboScreen->sizePolicy().hasHeightForWidth() ) );

    BGDialog_UILayout->addWidget( m_comboScreen, 0, 2 );
    Spacer37 = new TQSpacerItem( 0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    BGDialog_UILayout->addMultiCell( Spacer37, 0, 0, 3, 4 );

    layout36 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "layout36"); 

    m_screenArrangement = new TQWidget( this, "m_screenArrangement" );
    m_screenArrangement->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)1, 0, 0, m_screenArrangement->sizePolicy().hasHeightForWidth() ) );
    m_screenArrangement->setMinimumSize( TQSize( 100, 0 ) );
    layout36->addWidget( m_screenArrangement );

    layout35 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "layout35"); 
    unnamedLayout = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "unnamedLayout"); 
    spacer800 = new TQSpacerItem( 4, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    unnamedLayout->addItem( spacer800 );

    m_buttonIdentifyScreens = new TQPushButton( this, "m_buttonIdentifyScreens" );
    m_buttonIdentifyScreens->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_buttonIdentifyScreens->sizePolicy().hasHeightForWidth() ) );
    unnamedLayout->addWidget( m_buttonIdentifyScreens );
    spacer810 = new TQSpacerItem( 4, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    unnamedLayout->addItem( spacer810 );
    layout35->addLayout( unnamedLayout );
    unnamedLayout_2 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "unnamedLayout_2"); 
    spacer80 = new TQSpacerItem( 4, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    unnamedLayout_2->addItem( spacer80 );

    m_buttonAdvanced = new TQPushButton( this, "m_buttonAdvanced" );
    m_buttonAdvanced->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_buttonAdvanced->sizePolicy().hasHeightForWidth() ) );
    unnamedLayout_2->addWidget( m_buttonAdvanced );
    spacer81 = new TQSpacerItem( 4, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    unnamedLayout_2->addItem( spacer81 );
    layout35->addLayout( unnamedLayout_2 );
    unnamedLayout_3 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "unnamedLayout_3"); 
    spacer80_2 = new TQSpacerItem( 4, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    unnamedLayout_3->addItem( spacer80_2 );

    m_buttonGetNew = new TQPushButton( this, "m_buttonGetNew" );
    m_buttonGetNew->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_buttonGetNew->sizePolicy().hasHeightForWidth() ) );
    unnamedLayout_3->addWidget( m_buttonGetNew );
    spacer81_2 = new TQSpacerItem( 4, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    unnamedLayout_3->addItem( spacer81_2 );
    layout35->addLayout( unnamedLayout_3 );
    layout36->addLayout( layout35 );
    spacer13 = new TQSpacerItem( 20, 0, TQSizePolicy::Minimum, TQSizePolicy::MinimumExpanding );
    layout36->addItem( spacer13 );

    BGDialog_UILayout->addMultiCellLayout( layout36, 1, 2, 4, 4 );

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

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

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

    m_cbCrossFadeBg = new TQCheckBox( groupBox3, "m_cbCrossFadeBg" );

    groupBox3Layout->addWidget( m_cbCrossFadeBg, 8, 1 );

    m_comboBlend = new TQComboBox( false, groupBox3, "m_comboBlend" );

    groupBox3Layout->addWidget( m_comboBlend, 5, 1 );

    layout31 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "layout31"); 

    m_colorPrimary = new KColorButton( groupBox3, "m_colorPrimary" );
    layout31->addWidget( m_colorPrimary );

    m_colorSecondary = new KColorButton( groupBox3, "m_colorSecondary" );
    layout31->addWidget( m_colorSecondary );

    groupBox3Layout->addLayout( layout31, 3, 1 );

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

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

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

    groupBox3Layout->addWidget( m_lblBlending, 5, 0 );

    layout23 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "layout23"); 

    m_lblBlendBalance = new TQLabel( groupBox3, "m_lblBlendBalance" );
    layout23->addWidget( m_lblBlendBalance );

    m_sliderBlend = new TQSlider( groupBox3, "m_sliderBlend" );
    m_sliderBlend->setMinValue( -20 );
    m_sliderBlend->setMaxValue( 20 );
    m_sliderBlend->setPageStep( 1 );
    m_sliderBlend->setOrientation( TQSlider::Horizontal );
    m_sliderBlend->setTickmarks( TQSlider::NoMarks );
    m_sliderBlend->setTickInterval( 10 );
    layout23->addWidget( m_sliderBlend );

    groupBox3Layout->addLayout( layout23, 6, 1 );

    m_cbBlendReverse = new TQCheckBox( groupBox3, "m_cbBlendReverse" );

    groupBox3Layout->addWidget( m_cbBlendReverse, 7, 1 );

    m_comboPattern = new TQComboBox( false, groupBox3, "m_comboPattern" );
    m_comboPattern->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, m_comboPattern->sizePolicy().hasHeightForWidth() ) );

    groupBox3Layout->addWidget( m_comboPattern, 2, 1 );
    spacer6_2_2 = new TQSpacerItem( 120, 10, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    groupBox3Layout->addItem( spacer6_2_2, 1, 1 );
    spacer6_2 = new TQSpacerItem( 130, 10, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    groupBox3Layout->addItem( spacer6_2, 4, 1 );

    m_comboWallpaperPos = new TQComboBox( false, groupBox3, "m_comboWallpaperPos" );

    groupBox3Layout->addWidget( m_comboWallpaperPos, 0, 1 );

    BGDialog_UILayout->addMultiCellWidget( groupBox3, 2, 2, 0, 3 );

    m_buttonGroupBackground = new TQButtonGroup( this, "m_buttonGroupBackground" );
    m_buttonGroupBackground->setColumnLayout(0, TQt::Vertical );
    m_buttonGroupBackground->layout()->setSpacing( KDialog::spacingHint() );
    m_buttonGroupBackground->layout()->setMargin( KDialog::marginHint() );
    m_buttonGroupBackgroundLayout = new TQGridLayout( m_buttonGroupBackground->layout() );
    m_buttonGroupBackgroundLayout->setAlignment( TQt::AlignTop );

    m_radioNoPicture = new TQRadioButton( m_buttonGroupBackground, "m_radioNoPicture" );

    m_buttonGroupBackgroundLayout->addWidget( m_radioNoPicture, 0, 0 );

    m_radioSlideShow = new TQRadioButton( m_buttonGroupBackground, "m_radioSlideShow" );

    m_buttonGroupBackgroundLayout->addWidget( m_radioSlideShow, 2, 0 );

    m_radioPicture = new TQRadioButton( m_buttonGroupBackground, "m_radioPicture" );
    m_radioPicture->setChecked( true );

    m_buttonGroupBackgroundLayout->addWidget( m_radioPicture, 1, 0 );
    spacer20 = new TQSpacerItem( 260, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    m_buttonGroupBackgroundLayout->addMultiCell( spacer20, 0, 0, 1, 3 );

    m_buttonSetupWallpapers = new TQPushButton( m_buttonGroupBackground, "m_buttonSetupWallpapers" );

    m_buttonGroupBackgroundLayout->addWidget( m_buttonSetupWallpapers, 2, 1 );
    spacer19 = new TQSpacerItem( 110, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    m_buttonGroupBackgroundLayout->addMultiCell( spacer19, 2, 2, 2, 3 );

    m_urlWallpaperButton = new TQPushButton( m_buttonGroupBackground, "m_urlWallpaperButton" );
    m_urlWallpaperButton->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_urlWallpaperButton->sizePolicy().hasHeightForWidth() ) );

    m_buttonGroupBackgroundLayout->addWidget( m_urlWallpaperButton, 1, 3 );

    m_urlWallpaperBox = new KComboBox( false, m_buttonGroupBackground, "m_urlWallpaperBox" );
    m_urlWallpaperBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, m_urlWallpaperBox->sizePolicy().hasHeightForWidth() ) );

    m_buttonGroupBackgroundLayout->addMultiCellWidget( m_urlWallpaperBox, 1, 1, 1, 2 );

    BGDialog_UILayout->addMultiCellWidget( m_buttonGroupBackground, 1, 1, 0, 3 );
    languageChange();
    resize( TQSize(603, 433).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_buttonGroupBackground, TQ_SIGNAL( toggled(bool) ), groupBox3, TQ_SLOT( setEnabled(bool) ) );

    // tab order
    setTabOrder( m_comboScreen, m_comboDesktop );
    setTabOrder( m_comboDesktop, m_radioPicture );
    setTabOrder( m_radioPicture, m_urlWallpaperBox );
    setTabOrder( m_urlWallpaperBox, m_urlWallpaperButton );
    setTabOrder( m_urlWallpaperButton, m_buttonSetupWallpapers );
    setTabOrder( m_buttonSetupWallpapers, m_comboWallpaperPos );
    setTabOrder( m_comboWallpaperPos, m_comboPattern );
    setTabOrder( m_comboPattern, m_colorPrimary );
    setTabOrder( m_colorPrimary, m_colorSecondary );
    setTabOrder( m_colorSecondary, m_comboBlend );
    setTabOrder( m_comboBlend, m_sliderBlend );
    setTabOrder( m_sliderBlend, m_cbBlendReverse );
    setTabOrder( m_cbBlendReverse, m_buttonAdvanced );

    // buddies
    m_pDesktopLabel->setBuddy( m_comboDesktop );
    m_lblWallpaperPos->setBuddy( m_comboWallpaperPos );
    m_lblColors->setBuddy( m_comboPattern );
    m_lblBlending->setBuddy( m_comboBlend );
    m_lblBlendBalance->setBuddy( m_sliderBlend );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void BGDialog_UI::languageChange()
{
    m_pDesktopLabel->setText( tr2i18n( "Setting for &desktop:" ) );
    TQWhatsThis::add( m_pDesktopLabel, tr2i18n( "Choose the desktop you wish to configure the background for from this list. If you want the same background settings to be applied to all desktops select the \"All Desktops\" option." ) );
    m_comboDesktop->clear();
    m_comboDesktop->insertItem( tr2i18n( "All Desktops" ) );
    TQWhatsThis::add( m_comboDesktop, tr2i18n( "Choose the desktop you wish to configure the background for from this list. If you want the same background settings to be applied to all desktops select the \"All Desktops\" option." ) );
    m_comboScreen->clear();
    m_comboScreen->insertItem( tr2i18n( "Across All Screens" ) );
    m_comboScreen->insertItem( tr2i18n( "On Each Screen" ) );
    TQWhatsThis::add( m_comboScreen, tr2i18n( "Choose the screen you wish to configure the background for from this list." ) );
    m_buttonIdentifyScreens->setText( tr2i18n( "Identify Screens" ) );
    TQWhatsThis::add( m_buttonIdentifyScreens, tr2i18n( "Click this button to show the identifying number for each screen." ) );
    m_buttonAdvanced->setText( tr2i18n( "Advanced Options" ) );
    TQWhatsThis::add( m_buttonAdvanced, tr2i18n( "Click this button to set the icon text colors and shadow, set up a program to run for the background picture or control the size of the background cache." ) );
    m_buttonGetNew->setText( tr2i18n( "Get New Wallpapers" ) );
    TQWhatsThis::add( m_buttonGetNew, tr2i18n( "Click this button to give you a list of new wallpapers to download from the Internet." ) );
    groupBox3->setTitle( tr2i18n( "Options" ) );
    m_lblWallpaperPos->setText( tr2i18n( "Posi&tion:" ) );
    TQWhatsThis::add( m_lblWallpaperPos, tr2i18n( "<qt>You can choose here how a background picture is shown on the desktop:\n"
"<ul>\n"
"<li><em>Centered:</em> Center the picture on the desktop.</li>\n"
" <li><em>Tiled:</em> Tile the picture beginning at the top left of the desktop, so the desktop is totally covered up.</li>\n"
"<li><em>Center Tiled:</em> Center the picture on the desktop and then tile around it so that the background is totally covered up.</li>\n"
"<li><em>Centered Maxpect:</em> Magnify the picture without distorting it until it fills either the width or height of the desktop, and then center it on the desktop.</li>\n"
"<li><em>Scaled:</em> Magnify the picture, until the entire desktop is covered. This may result in some distortion of the picture.</li>\n"
"<li><em>Centered Auto Fit:</em> If the picture fits the desktop this mode works like the Centered option. If the picture is larger than the desktop it is scaled down to fit while keeping the aspect ratio.</li>\n"
"<li><em>Scale and Crop:</em> Magnify the picture without distorting it until it fills both the width and height of the desktop (cropping the picture if necessary), and then center it on the desktop.</li>\n"
"</ul></qt>" ) );
    m_cbCrossFadeBg->setText( tr2i18n( "Cross-fading background" ) );
    TQWhatsThis::add( m_cbCrossFadeBg, tr2i18n( "Enables a smooth fading effect when changing background image." ) );
    TQWhatsThis::add( m_comboBlend, tr2i18n( "If you have selected to use a background picture you can choose various methods of blending the background colors with the picture. The default option of \"No Blending\" means that the picture simply obscures the background colors below." ) );
    m_colorPrimary->setText( TQString::null );
    TQWhatsThis::add( m_colorPrimary, tr2i18n( "Click to choose the primary background color." ) );
    m_colorSecondary->setText( TQString::null );
    TQWhatsThis::add( m_colorSecondary, tr2i18n( "Click to choose the secondary background color. If no secondary color is required by the pattern selected this button will be disabled." ) );
    m_lblColors->setText( tr2i18n( "Co&lors:" ) );
    m_lblBlending->setText( tr2i18n( "&Blending:" ) );
    m_lblBlendBalance->setText( tr2i18n( "Balance:" ) );
    TQWhatsThis::add( m_lblBlendBalance, tr2i18n( "You can use this slider to control the degree of blending. You can experiment by moving the slider and looking at the effects in the preview image." ) );
    TQWhatsThis::add( m_sliderBlend, tr2i18n( "You can use this slider to control the degree of blending. You can experiment by moving the slider and looking at the effects in the preview image." ) );
    m_cbBlendReverse->setText( tr2i18n( "Reverse roles" ) );
    TQWhatsThis::add( m_cbBlendReverse, tr2i18n( "For some types of blending, you can reverse the role of the background and the picture by checking this option." ) );
    TQWhatsThis::add( m_comboWallpaperPos, tr2i18n( "<qt>You can choose here how a background picture is shown on the desktop:\n"
"<ul>\n"
"<li><em>Centered:</em> Center the picture on the desktop.</li>\n"
" <li><em>Tiled:</em> Tile the picture beginning at the top left of the desktop, so the desktop is totally covered up.</li>\n"
"<li><em>Center Tiled:</em> Center the picture on the desktop and then tile around it so that the background is totally covered up.</li>\n"
"<li><em>Centered Maxpect:</em> Magnify the picture without distorting it until it fills either the width or height of the desktop, and then center it on the desktop.</li>\n"
"<li><em>Scaled:</em> Magnify the picture, until the entire desktop is covered. This may result in some distortion of the picture.</li>\n"
"<li><em>Centered Auto Fit:</em> If the picture fits the desktop this mode works like the Centered option. If the picture is larger than the desktop it is scaled down to fit while keeping the aspect ratio.</li>\n"
"<li><em>Scale and Crop:</em> Magnify the picture without distorting it until it fills both the width and height of the desktop (cropping the picture if necessary), and then center it on the desktop.</li>\n"
"</ul></qt>" ) );
    m_buttonGroupBackground->setTitle( tr2i18n( "Background" ) );
    m_radioNoPicture->setText( tr2i18n( "&No picture" ) );
    m_radioSlideShow->setText( tr2i18n( "&Slide show:" ) );
    m_radioPicture->setText( tr2i18n( "&Picture:" ) );
    m_buttonSetupWallpapers->setText( tr2i18n( "Set&up..." ) );
    TQWhatsThis::add( m_buttonSetupWallpapers, tr2i18n( "Click this button to select a set of images to be used as background pictures. One picture at a time will be shown for a specified amount of time, after which another image from the set will be shown. Images can be shown at random or in the order you specify them." ) );
    m_urlWallpaperButton->setText( TQString::null );
}

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

TQMetaObject *BGDialog_UI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_BGDialog_UI( "BGDialog_UI", &BGDialog_UI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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