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

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

#include "konqueror.h"

#include <ntqvariant.h>
#include <kurlrequester.h>
#include <kcombobox.h>
#include <kpushbutton.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqlineedit.h>
#include <ntqspinbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "konqueror.ui.h"

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

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

    buttonGroup1 = new TQButtonGroup( groupBox1, "buttonGroup1" );

    kcfg_SystemProxy = new TQRadioButton( buttonGroup1, "kcfg_SystemProxy" );
    kcfg_SystemProxy->setGeometry( TQRect( 6, 19, 390, 21 ) );

    kcfg_TorkProxy = new TQRadioButton( buttonGroup1, "kcfg_TorkProxy" );
    kcfg_TorkProxy->setGeometry( TQRect( 6, 49, 390, 21 ) );
    kcfg_TorkProxy->setChecked( true );

    groupBox1Layout->addMultiCellWidget( buttonGroup1, 0, 0, 0, 1 );

    kcfg_PrivoxyLocation = new KURLComboRequester( groupBox1, "kcfg_PrivoxyLocation" );

    groupBox1Layout->addWidget( kcfg_PrivoxyLocation, 1, 1 );

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

    groupBox1Layout->addWidget( textLabel2, 1, 0 );

    KonqLayout->addWidget( groupBox1, 0, 0 );

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQGridLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    groupBox3 = new TQGroupBox( groupBox2, "groupBox3" );

    kcfg_DisableJava = new TQCheckBox( groupBox3, "kcfg_DisableJava" );
    kcfg_DisableJava->setGeometry( TQRect( 10, 20, 200, 21 ) );
    kcfg_DisableJava->setChecked( true );

    kcfg_DisableCookies = new TQCheckBox( groupBox3, "kcfg_DisableCookies" );
    kcfg_DisableCookies->setGeometry( TQRect( 10, 50, 190, 21 ) );

    kcfg_DisableBrowserIdentification = new TQCheckBox( groupBox3, "kcfg_DisableBrowserIdentification" );
    kcfg_DisableBrowserIdentification->setGeometry( TQRect( 10, 80, 370, 21 ) );

    kcfg_DisablePlugins = new TQCheckBox( groupBox3, "kcfg_DisablePlugins" );
    kcfg_DisablePlugins->setGeometry( TQRect( 220, 20, 190, 21 ) );

    kcfg_DisableCaching = new TQCheckBox( groupBox3, "kcfg_DisableCaching" );
    kcfg_DisableCaching->setGeometry( TQRect( 220, 47, 190, 21 ) );

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

    groupBox4 = new TQGroupBox( groupBox2, "groupBox4" );

    textLabel3 = new TQLabel( groupBox4, "textLabel3" );
    textLabel3->setGeometry( TQRect( 10, 30, 61, 21 ) );

    textLabel3_2 = new TQLabel( groupBox4, "textLabel3_2" );
    textLabel3_2->setGeometry( TQRect( 10, 60, 61, 21 ) );

    textLabel3_3 = new TQLabel( groupBox4, "textLabel3_3" );
    textLabel3_3->setGeometry( TQRect( 10, 90, 61, 21 ) );

    kcfg_KonqHttpsProxy = new TQLineEdit( groupBox4, "kcfg_KonqHttpsProxy" );
    kcfg_KonqHttpsProxy->setGeometry( TQRect( 90, 60, 161, 21 ) );

    kcfg_KonqFtpProxy = new TQLineEdit( groupBox4, "kcfg_KonqFtpProxy" );
    kcfg_KonqFtpProxy->setGeometry( TQRect( 90, 90, 161, 21 ) );

    kcfg_KonqHttpProxyPort = new TQSpinBox( groupBox4, "kcfg_KonqHttpProxyPort" );
    kcfg_KonqHttpProxyPort->setGeometry( TQRect( 260, 30, 71, 21 ) );
    kcfg_KonqHttpProxyPort->setMaxValue( 65535 );

    kcfg_KonqHttpsProxyPort = new TQSpinBox( groupBox4, "kcfg_KonqHttpsProxyPort" );
    kcfg_KonqHttpsProxyPort->setGeometry( TQRect( 260, 60, 71, 21 ) );
    kcfg_KonqHttpsProxyPort->setMaxValue( 65535 );

    kcfg_KonqFtpProxyPort = new TQSpinBox( groupBox4, "kcfg_KonqFtpProxyPort" );
    kcfg_KonqFtpProxyPort->setGeometry( TQRect( 260, 90, 71, 21 ) );
    kcfg_KonqFtpProxyPort->setMaxValue( 65535 );

    kcfg_KonqHttpProxy = new TQLineEdit( groupBox4, "kcfg_KonqHttpProxy" );
    kcfg_KonqHttpProxy->setGeometry( TQRect( 90, 30, 161, 21 ) );

    groupBox2Layout->addWidget( groupBox4, 0, 0 );

    KonqLayout->addWidget( groupBox2, 1, 0 );
    languageChange();
    resize( TQSize(474, 498).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( kcfg_TorkProxy, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( kcfg_TorkProxy_toggled(bool) ) );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Konq::languageChange()
{
    setCaption( tr2i18n( "Konqueror" ) );
    groupBox1->setTitle( tr2i18n( "Privacy Proxy" ) );
    buttonGroup1->setTitle( tr2i18n( "Manage Proxy as follows" ) );
    kcfg_SystemProxy->setText( tr2i18n( "Let my Privacy Proxy start and look after itself." ) );
    kcfg_TorkProxy->setText( tr2i18n( "Let TorK start and manage Privoxy as my privacy proxy." ) );
    textLabel2->setText( tr2i18n( "Location of Privoxy TorK will manage:" ) );
    groupBox2->setTitle( tr2i18n( "Konqueror Settings" ) );
    groupBox3->setTitle( tr2i18n( "Anonymity Safeguards" ) );
    kcfg_DisableJava->setText( tr2i18n( "Disable Java/Javascript" ) );
    kcfg_DisableCookies->setText( tr2i18n( "Disable Cookies" ) );
    kcfg_DisableBrowserIdentification->setText( tr2i18n( "Disable Browser Identification" ) );
    kcfg_DisablePlugins->setText( tr2i18n( "Disable Plugins" ) );
    kcfg_DisableCaching->setText( tr2i18n( "Disable Caching" ) );
    groupBox4->setTitle( tr2i18n( "Connect to Privacy Proxy as Follows" ) );
    textLabel3->setText( tr2i18n( "HTTP:" ) );
    textLabel3_2->setText( tr2i18n( "HTTPS:" ) );
    textLabel3_3->setText( tr2i18n( "FTP:" ) );
}

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

TQMetaObject *Konq::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_Konq( "Konq", &Konq::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

bool Konq::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: kcfg_TorkProxy_toggled((bool)static_QUType_bool.get(_o+1)); break;
    case 1: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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