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

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

#include "kchmsetupdialog.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlabel.h>
#include <ntqspinbox.h>
#include <ntqcheckbox.h>
#include <ntqgroupbox.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KCHMSetupDialog 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.
 */
KCHMSetupDialog::KCHMSetupDialog( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "MyDialog1" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setSizeGripEnabled( false );
    setModal( true );
    MyDialog1Layout = new TQVBoxLayout( this, 11, 6, "MyDialog1Layout"); 
    MyDialog1Layout->setResizeMode( TQLayout::Minimum );

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

    Widget8 = new TQWidget( tabWidget, "Widget8" );
    Widget8Layout = new TQVBoxLayout( Widget8, 11, 6, "Widget8Layout"); 

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

    buttonGroup1 = new TQButtonGroup( Widget8, "buttonGroup1" );
    buttonGroup1->setColumnLayout(0, TQt::Vertical );
    buttonGroup1->layout()->setSpacing( 6 );
    buttonGroup1->layout()->setMargin( 11 );
    buttonGroup1Layout = new TQVBoxLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( TQt::AlignTop );

    m_radioOnBeginOpenDialog = new TQRadioButton( buttonGroup1, "m_radioOnBeginOpenDialog" );
    buttonGroup1Layout->addWidget( m_radioOnBeginOpenDialog );

    m_radioOnBeginOpenLast = new TQRadioButton( buttonGroup1, "m_radioOnBeginOpenLast" );
    buttonGroup1Layout->addWidget( m_radioOnBeginOpenLast );
    layout4->addWidget( buttonGroup1 );

    buttonGroup2 = new TQButtonGroup( Widget8, "buttonGroup2" );
    buttonGroup2->setColumnLayout(0, TQt::Vertical );
    buttonGroup2->layout()->setSpacing( 6 );
    buttonGroup2->layout()->setMargin( 11 );
    buttonGroup2Layout = new TQVBoxLayout( buttonGroup2->layout() );
    buttonGroup2Layout->setAlignment( TQt::AlignTop );

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

    textLabel1 = new TQLabel( buttonGroup2, "textLabel1" );
    layout3->addWidget( textLabel1 );

    m_historySize = new TQSpinBox( buttonGroup2, "m_historySize" );
    m_historySize->setValue( 10 );
    layout3->addWidget( m_historySize );

    textLabel2 = new TQLabel( buttonGroup2, "textLabel2" );
    layout3->addWidget( textLabel2 );
    buttonGroup2Layout->addLayout( layout3 );

    m_rememberHistoryInfo = new TQCheckBox( buttonGroup2, "m_rememberHistoryInfo" );
    buttonGroup2Layout->addWidget( m_rememberHistoryInfo );
    layout4->addWidget( buttonGroup2 );
    Widget8Layout->addLayout( layout4 );

    groupBox1 = new TQGroupBox( Widget8, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQHBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    buttonGroup4 = new TQButtonGroup( groupBox1, "buttonGroup4" );
    buttonGroup4->setColumnLayout(0, TQt::Vertical );
    buttonGroup4->layout()->setSpacing( 6 );
    buttonGroup4->layout()->setMargin( 11 );
    buttonGroup4Layout = new TQVBoxLayout( buttonGroup4->layout() );
    buttonGroup4Layout->setAlignment( TQt::AlignTop );

    m_radioExtLinkOpenAlways = new TQRadioButton( buttonGroup4, "m_radioExtLinkOpenAlways" );
    buttonGroup4Layout->addWidget( m_radioExtLinkOpenAlways );

    m_radioExtLinkAsk = new TQRadioButton( buttonGroup4, "m_radioExtLinkAsk" );
    buttonGroup4Layout->addWidget( m_radioExtLinkAsk );

    m_radioExtLinkOpenNever = new TQRadioButton( buttonGroup4, "m_radioExtLinkOpenNever" );
    buttonGroup4Layout->addWidget( m_radioExtLinkOpenNever );
    groupBox1Layout->addWidget( buttonGroup4 );

    buttonGroup5 = new TQButtonGroup( groupBox1, "buttonGroup5" );
    buttonGroup5->setColumnLayout(0, TQt::Vertical );
    buttonGroup5->layout()->setSpacing( 6 );
    buttonGroup5->layout()->setMargin( 11 );
    buttonGroup5Layout = new TQVBoxLayout( buttonGroup5->layout() );
    buttonGroup5Layout->setAlignment( TQt::AlignTop );

    m_radioNewChmOpenAlways = new TQRadioButton( buttonGroup5, "m_radioNewChmOpenAlways" );
    buttonGroup5Layout->addWidget( m_radioNewChmOpenAlways );

    m_radioNewChmAsk = new TQRadioButton( buttonGroup5, "m_radioNewChmAsk" );
    buttonGroup5Layout->addWidget( m_radioNewChmAsk );

    m_radioNewChmOpenNever = new TQRadioButton( buttonGroup5, "m_radioNewChmOpenNever" );
    buttonGroup5Layout->addWidget( m_radioNewChmOpenNever );
    groupBox1Layout->addWidget( buttonGroup5 );
    Widget8Layout->addWidget( groupBox1 );
    tabWidget->insertTab( Widget8, TQString::fromLatin1("") );

    Widget9 = new TQWidget( tabWidget, "Widget9" );
    Widget9Layout = new TQVBoxLayout( Widget9, 11, 6, "Widget9Layout"); 

    m_groupQtsettings = new TQGroupBox( Widget9, "m_groupQtsettings" );
    m_groupQtsettings->setColumnLayout(0, TQt::Vertical );
    m_groupQtsettings->layout()->setSpacing( 6 );
    m_groupQtsettings->layout()->setMargin( 11 );
    m_groupQtsettingsLayout = new TQHBoxLayout( m_groupQtsettings->layout() );
    m_groupQtsettingsLayout->setAlignment( TQt::AlignTop );

    textLabel1_2 = new TQLabel( m_groupQtsettings, "textLabel1_2" );
    textLabel1_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
    textLabel1_2->setLineWidth( 1 );
    textLabel1_2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    m_groupQtsettingsLayout->addWidget( textLabel1_2 );

    m_qtBrowserPath = new TQLineEdit( m_groupQtsettings, "m_qtBrowserPath" );
    m_qtBrowserPath->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_qtBrowserPath->sizePolicy().hasHeightForWidth() ) );
    m_groupQtsettingsLayout->addWidget( m_qtBrowserPath );
    Widget9Layout->addWidget( m_groupQtsettings );

    m_groupKDEsettings = new TQGroupBox( Widget9, "m_groupKDEsettings" );
    m_groupKDEsettings->setColumnLayout(0, TQt::Vertical );
    m_groupKDEsettings->layout()->setSpacing( 6 );
    m_groupKDEsettings->layout()->setMargin( 11 );
    m_groupKDEsettingsLayout = new TQHBoxLayout( m_groupKDEsettings->layout() );
    m_groupKDEsettingsLayout->setAlignment( TQt::AlignTop );

    buttonGroup5_2 = new TQButtonGroup( m_groupKDEsettings, "buttonGroup5_2" );
    buttonGroup5_2->setColumnLayout(0, TQt::Vertical );
    buttonGroup5_2->layout()->setSpacing( 6 );
    buttonGroup5_2->layout()->setMargin( 11 );
    buttonGroup5_2Layout = new TQVBoxLayout( buttonGroup5_2->layout() );
    buttonGroup5_2Layout->setAlignment( TQt::AlignTop );

    m_radioUseQtextBrowser = new TQRadioButton( buttonGroup5_2, "m_radioUseQtextBrowser" );
    buttonGroup5_2Layout->addWidget( m_radioUseQtextBrowser );

    m_radioUseTDEHTMLPart = new TQRadioButton( buttonGroup5_2, "m_radioUseTDEHTMLPart" );
    buttonGroup5_2Layout->addWidget( m_radioUseTDEHTMLPart );
    m_groupKDEsettingsLayout->addWidget( buttonGroup5_2 );

    groupKhtmlSecurity = new TQGroupBox( m_groupKDEsettings, "groupKhtmlSecurity" );
    groupKhtmlSecurity->setColumnLayout(0, TQt::Vertical );
    groupKhtmlSecurity->layout()->setSpacing( 6 );
    groupKhtmlSecurity->layout()->setMargin( 11 );
    groupKhtmlSecurityLayout = new TQGridLayout( groupKhtmlSecurity->layout() );
    groupKhtmlSecurityLayout->setAlignment( TQt::AlignTop );

    m_enableJS = new TQCheckBox( groupKhtmlSecurity, "m_enableJS" );

    groupKhtmlSecurityLayout->addWidget( m_enableJS, 0, 0 );

    m_enablePlugins = new TQCheckBox( groupKhtmlSecurity, "m_enablePlugins" );

    groupKhtmlSecurityLayout->addWidget( m_enablePlugins, 0, 1 );

    m_enableJava = new TQCheckBox( groupKhtmlSecurity, "m_enableJava" );

    groupKhtmlSecurityLayout->addWidget( m_enableJava, 1, 0 );

    m_enableRefresh = new TQCheckBox( groupKhtmlSecurity, "m_enableRefresh" );

    groupKhtmlSecurityLayout->addWidget( m_enableRefresh, 1, 1 );
    m_groupKDEsettingsLayout->addWidget( groupKhtmlSecurity );
    Widget9Layout->addWidget( m_groupKDEsettings );
    tabWidget->insertTab( Widget9, TQString::fromLatin1("") );

    TabPage = new TQWidget( tabWidget, "TabPage" );
    TabPageLayout = new TQVBoxLayout( TabPage, 11, 6, "TabPageLayout"); 

    buttonGroup7 = new TQButtonGroup( TabPage, "buttonGroup7" );
    buttonGroup7->setColumnLayout(0, TQt::Vertical );
    buttonGroup7->layout()->setSpacing( 6 );
    buttonGroup7->layout()->setMargin( 11 );
    buttonGroup7Layout = new TQVBoxLayout( buttonGroup7->layout() );
    buttonGroup7Layout->setAlignment( TQt::AlignTop );

    m_advViewSourceInternal = new TQRadioButton( buttonGroup7, "m_advViewSourceInternal" );
    buttonGroup7Layout->addWidget( m_advViewSourceInternal );

    m_advViewSourceExternal = new TQRadioButton( buttonGroup7, "m_advViewSourceExternal" );
    buttonGroup7Layout->addWidget( m_advViewSourceExternal );

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

    textLabel1_3 = new TQLabel( buttonGroup7, "textLabel1_3" );
    layout4_2->addWidget( textLabel1_3 );

    m_advExternalProgramName = new TQLineEdit( buttonGroup7, "m_advExternalProgramName" );
    layout4_2->addWidget( m_advExternalProgramName );
    buttonGroup7Layout->addLayout( layout4_2 );
    TabPageLayout->addWidget( buttonGroup7 );

    groupBox6 = new TQButtonGroup( TabPage, "groupBox6" );
    groupBox6->setColumnLayout(0, TQt::Vertical );
    groupBox6->layout()->setSpacing( 6 );
    groupBox6->layout()->setMargin( 11 );
    groupBox6Layout = new TQGridLayout( groupBox6->layout() );
    groupBox6Layout->setAlignment( TQt::AlignTop );

    m_useSearchEngineInternal = new TQRadioButton( groupBox6, "m_useSearchEngineInternal" );

    groupBox6Layout->addWidget( m_useSearchEngineInternal, 1, 0 );

    m_labelUseSearchEngineInternal = new TQLabel( groupBox6, "m_labelUseSearchEngineInternal" );
    m_labelUseSearchEngineInternal->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 10, 0, m_labelUseSearchEngineInternal->sizePolicy().hasHeightForWidth() ) );
    m_labelUseSearchEngineInternal->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );

    groupBox6Layout->addWidget( m_labelUseSearchEngineInternal, 1, 1 );

    m_useSearchEngineNew = new TQRadioButton( groupBox6, "m_useSearchEngineNew" );

    groupBox6Layout->addWidget( m_useSearchEngineNew, 0, 0 );

    m_labelUseSearchEngineNew = new TQLabel( groupBox6, "m_labelUseSearchEngineNew" );
    m_labelUseSearchEngineNew->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 10, 0, m_labelUseSearchEngineNew->sizePolicy().hasHeightForWidth() ) );
    m_labelUseSearchEngineNew->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );

    groupBox6Layout->addWidget( m_labelUseSearchEngineNew, 0, 1 );
    TabPageLayout->addWidget( groupBox6 );
    tabWidget->insertTab( TabPage, TQString::fromLatin1("") );
    MyDialog1Layout->addWidget( tabWidget );

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

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

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

    buttonCancel = new TQPushButton( this, "buttonCancel" );
    buttonCancel->setAutoDefault( true );
    Layout1->addWidget( buttonCancel );
    MyDialog1Layout->addLayout( Layout1 );
    languageChange();
    resize( TQSize(654, 343).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( buttonHelp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotShowHelp() ) );
    connect( m_radioUseTDEHTMLPart, TQ_SIGNAL( toggled(bool) ), groupKhtmlSecurity, TQ_SLOT( setEnabled(bool) ) );
    connect( m_advViewSourceExternal, TQ_SIGNAL( toggled(bool) ), m_advExternalProgramName, TQ_SLOT( setEnabled(bool) ) );
    connect( m_radioUseQtextBrowser, TQ_SIGNAL( toggled(bool) ), groupKhtmlSecurity, TQ_SLOT( setDisabled(bool) ) );

    // tab order
    setTabOrder( m_advViewSourceInternal, m_advViewSourceExternal );
    setTabOrder( m_advViewSourceExternal, m_useSearchEngineNew );
    setTabOrder( m_useSearchEngineNew, m_useSearchEngineInternal );
    setTabOrder( m_useSearchEngineInternal, tabWidget );
    setTabOrder( tabWidget, m_radioOnBeginOpenDialog );
    setTabOrder( m_radioOnBeginOpenDialog, m_radioOnBeginOpenLast );
    setTabOrder( m_radioOnBeginOpenLast, m_historySize );
    setTabOrder( m_historySize, m_rememberHistoryInfo );
    setTabOrder( m_rememberHistoryInfo, m_radioExtLinkOpenAlways );
    setTabOrder( m_radioExtLinkOpenAlways, m_radioExtLinkAsk );
    setTabOrder( m_radioExtLinkAsk, m_radioExtLinkOpenNever );
    setTabOrder( m_radioExtLinkOpenNever, m_radioNewChmOpenAlways );
    setTabOrder( m_radioNewChmOpenAlways, m_radioNewChmAsk );
    setTabOrder( m_radioNewChmAsk, m_radioNewChmOpenNever );
    setTabOrder( m_radioNewChmOpenNever, m_qtBrowserPath );
    setTabOrder( m_qtBrowserPath, m_radioUseQtextBrowser );
    setTabOrder( m_radioUseQtextBrowser, m_radioUseTDEHTMLPart );
    setTabOrder( m_radioUseTDEHTMLPart, m_enableJS );
    setTabOrder( m_enableJS, m_enablePlugins );
    setTabOrder( m_enablePlugins, m_enableJava );
    setTabOrder( m_enableJava, m_enableRefresh );
    setTabOrder( m_enableRefresh, m_advExternalProgramName );
    setTabOrder( m_advExternalProgramName, buttonHelp );
    setTabOrder( buttonHelp, buttonOk );
    setTabOrder( buttonOk, buttonCancel );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KCHMSetupDialog::languageChange()
{
    setCaption( tr2i18n( "KchmViewer settings" ) );
    buttonGroup1->setTitle( tr2i18n( "If no arguments given on load" ) );
    m_radioOnBeginOpenDialog->setText( tr2i18n( "Open the 'open CHM file' dialog" ) );
    m_radioOnBeginOpenLast->setText( tr2i18n( "Open the &last used CHM file, if exist" ) );
    buttonGroup2->setTitle( tr2i18n( "History" ) );
    textLabel1->setText( tr2i18n( "Store history information for" ) );
    m_historySize->setPrefix( TQString::null );
    textLabel2->setText( tr2i18n( "latest files" ) );
    m_rememberHistoryInfo->setText( tr2i18n( "R&emember extra information for history files" ) );
    TQToolTip::add( m_rememberHistoryInfo, tr2i18n( "Remembers the information about the files, which were opened. Remembers last opened page, search history, font size, bookmarks and so on." ) );
    groupBox1->setTitle( tr2i18n( "CHM security settings" ) );
    buttonGroup4->setTitle( tr2i18n( "When external link clicked" ) );
    m_radioExtLinkOpenAlways->setText( tr2i18n( "Alwa&ys open it in external browser" ) );
    m_radioExtLinkAsk->setText( tr2i18n( "Ask for confirmation" ) );
    m_radioExtLinkOpenNever->setText( tr2i18n( "Do not open the link" ) );
    buttonGroup5->setTitle( tr2i18n( "When link pointed to a new CHM file clicked" ) );
    m_radioNewChmOpenAlways->setText( tr2i18n( "Always open a new CHM file" ) );
    m_radioNewChmAsk->setText( tr2i18n( "Ask for confirmation" ) );
    m_radioNewChmOpenNever->setText( tr2i18n( "Do not open a new CHM file" ) );
    tabWidget->changeTab( Widget8, tr2i18n( "General behavior" ) );
    m_groupQtsettings->setTitle( tr2i18n( "TQt version settings" ) );
    textLabel1_2->setText( tr2i18n( "Enter the path to the program, which will be used as a browser for external links.  A <i>%s</i> symbol will be replaced by the URL clicked." ) );
    m_groupKDEsettings->setTitle( tr2i18n( "TDE version settings" ) );
    buttonGroup5_2->setTitle( tr2i18n( "To show HTML content, use" ) );
    m_radioUseQtextBrowser->setText( tr2i18n( "&QTextBrowser-based widget" ) );
    m_radioUseTDEHTMLPart->setText( tr2i18n( "&TDEHTMLPart-based widget" ) );
    groupKhtmlSecurity->setTitle( tr2i18n( "TDEHTMLPart security" ) );
    m_enableJS->setText( tr2i18n( "Enable Java&Script" ) );
    m_enablePlugins->setText( tr2i18n( "Enable &plugins" ) );
    m_enableJava->setText( tr2i18n( "Enable &Java" ) );
    m_enableRefresh->setText( tr2i18n( "Enable &refresh" ) );
    tabWidget->changeTab( Widget9, tr2i18n( "Version-specific settings" ) );
    buttonGroup7->setTitle( tr2i18n( "View HTML source command uses" ) );
    m_advViewSourceInternal->setText( tr2i18n( "Built-in HTML source viewer" ) );
    m_advViewSourceExternal->setText( tr2i18n( "E&xternal program, specified below" ) );
    textLabel1_3->setText( tr2i18n( "External program:" ) );
    groupBox6->setTitle( tr2i18n( "Search engine to use" ) );
    m_useSearchEngineInternal->setText( TQString::null );
    m_labelUseSearchEngineInternal->setText( tr2i18n( "Use the search based on internal CHM index. This engine cannot search for any symbols except underscode, does not support multibyte languages, and is not always available." ) );
    m_useSearchEngineNew->setText( TQString::null );
    m_labelUseSearchEngineNew->setText( tr2i18n( "Use new kchmviewer internal  search engine (recommended). This engine indexes symbols, so it is possible to search for special symbols (like \"C++\"). All languages are supported. The index will be generated before the first search." ) );
    tabWidget->changeTab( TabPage, tr2i18n( "Advanced" ) );
    buttonHelp->setText( tr2i18n( "&Help" ) );
    buttonHelp->setAccel( TQKeySequence( tr2i18n( "F1" ) ) );
    buttonOk->setText( tr2i18n( "&OK" ) );
    buttonCancel->setText( tr2i18n( "&Cancel" ) );
}

void KCHMSetupDialog::m_radioUseTDEHTMLPart_toggled(bool)
{
    tqWarning( "KCHMSetupDialog::m_radioUseTDEHTMLPart_toggled(bool): Not implemented yet" );
}

void KCHMSetupDialog::slotShowHelp()
{
    tqWarning( "KCHMSetupDialog::slotShowHelp(): Not implemented yet" );
}

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

TQMetaObject *KCHMSetupDialog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KCHMSetupDialog( "KCHMSetupDialog", &KCHMSetupDialog::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KCHMSetupDialog::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 TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"m_radioUseTDEHTMLPart_toggled", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"slotShowHelp", 0, 0 };
    static const TQUMethod slot_2 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "m_radioUseTDEHTMLPart_toggled(bool)", &slot_0, TQMetaData::Public },
	{ "slotShowHelp()", &slot_1, TQMetaData::Public },
	{ "languageChange()", &slot_2, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KCHMSetupDialog", parentObject,
	slot_tbl, 3,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KCHMSetupDialog.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KCHMSetupDialog::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: m_radioUseTDEHTMLPart_toggled((bool)static_QUType_bool.get(_o+1)); break;
    case 1: slotShowHelp(); break;
    case 2: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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