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

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

#include "envvarproxy_ui.h"

#include <ntqvariant.h>
#include <klineedit.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqpushbutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    leFtp = new KLineEdit( this, "leFtp" );

    EnvVarProxyDlgUILayout->addWidget( leFtp, 2, 1 );

    leHttp = new KLineEdit( this, "leHttp" );

    EnvVarProxyDlgUILayout->addWidget( leHttp, 0, 1 );

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

    EnvVarProxyDlgUILayout->addWidget( lbFtp, 2, 0 );

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

    EnvVarProxyDlgUILayout->addWidget( lbHttps, 1, 0 );

    cbShowValue = new TQCheckBox( this, "cbShowValue" );

    EnvVarProxyDlgUILayout->addWidget( cbShowValue, 4, 1 );

    pbVerify = new TQPushButton( this, "pbVerify" );

    EnvVarProxyDlgUILayout->addWidget( pbVerify, 0, 2 );

    pbDetect = new TQPushButton( this, "pbDetect" );

    EnvVarProxyDlgUILayout->addWidget( pbDetect, 1, 2 );

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

    EnvVarProxyDlgUILayout->addWidget( lbHttp, 0, 0 );

    leHttps = new KLineEdit( this, "leHttps" );

    EnvVarProxyDlgUILayout->addWidget( leHttps, 1, 1 );

    leNoProxy = new KLineEdit( this, "leNoProxy" );

    EnvVarProxyDlgUILayout->addWidget( leNoProxy, 3, 1 );

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

    EnvVarProxyDlgUILayout->addWidget( lbNoProxy, 3, 0 );
    languageChange();
    resize( TQSize(438, 133).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( leHttp, leHttps );
    setTabOrder( leHttps, leFtp );
    setTabOrder( leFtp, leNoProxy );
    setTabOrder( leNoProxy, pbVerify );
    setTabOrder( pbVerify, pbDetect );

    // buddies
    lbFtp->setBuddy( leFtp );
    lbHttps->setBuddy( leHttps );
    lbHttp->setBuddy( leHttp );
    lbNoProxy->setBuddy( leNoProxy );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void EnvVarProxyDlgUI::languageChange()
{
    TQWhatsThis::add( leFtp, tr2i18n( "<qt>\n"
"Enter the name of the environment variable, e.g. <b>FTP_PROXY</b>, used to store the address of the FTP proxy server.<p>\n"
"Alternatively, you can click on the <b>\"Auto Detect\"</b> button to attempt an automatic discovery of this variable.\n"
"</qt>" ) );
    TQWhatsThis::add( leHttp, tr2i18n( "<qt>\n"
"Enter the name of the environment variable, e.g. <b>HTTP_PROXY</b>, used to store the address of the HTTP proxy server.<p>\n"
"Alternatively, you can click on the <b>\"Auto Detect\"</b> button to attempt automatic discovery of this variable.\n"
"</qt>" ) );
    lbFtp->setText( tr2i18n( "&FTP:" ) );
    TQWhatsThis::add( lbFtp, tr2i18n( "<qt>\n"
"Enter the name of the environment variable, e.g. <b>FTP_PROXY</b>, used to store the address of the FTP proxy server.<p>\n"
"Alternatively, you can click on the <b>\"Auto Detect\"</b> button to attempt an automatic discovery of this variable.\n"
"</qt>" ) );
    lbHttps->setText( tr2i18n( "HTTP&S:" ) );
    TQWhatsThis::add( lbHttps, tr2i18n( "<qt>\n"
"Enter the name of the environment variable, e.g. <b>HTTPS_PROXY</b>, used to store the address of the HTTPS proxy server.<p>\n"
"Alternatively, you can click on the <b>\"Auto Detect\"</b> button to attempt an automatic discovery of this variable.\n"
"</qt>" ) );
    cbShowValue->setText( tr2i18n( "Show the &value of the environment variables" ) );
    pbVerify->setText( tr2i18n( "&Verify" ) );
    TQWhatsThis::add( pbVerify, tr2i18n( "<qt>Verify whether or not the environment variable names you supplied are valid. If an environment variable is not found, the associated labels will be <b>highlighted</b> to indicate that they are invalid.</qt>" ) );
    pbDetect->setText( tr2i18n( "Auto &Detect" ) );
    TQWhatsThis::add( pbDetect, tr2i18n( "<qt>Attempt automatic discovery of the environment variables used for setting system wide proxy information.<p> This feature works by searching for commonly used variable names such as HTTP_PROXY, FTP_PROXY and NO_PROXY.</qt>" ) );
    lbHttp->setText( tr2i18n( "H&TTP:" ) );
    TQWhatsThis::add( lbHttp, tr2i18n( "<qt>\n"
"Enter the name of the environment variable, e.g. <b>HTTP_PROXY</b>, used to store the address of the HTTP proxy server.<p>\n"
"Alternatively, you can click on the <b>\"Auto Detect\"</b> button to attempt automatic discovery of this variable.\n"
"</qt>" ) );
    TQWhatsThis::add( leHttps, tr2i18n( "<qt>\n"
"Enter the name of the environment variable, e.g. <b>HTTPS_PROXY</b>, used to store the address of the HTTPS proxy server.<p>\n"
"Alternatively, you can click on the <b>\"Auto Detect\"</b> button to attempt an automatic discovery of this variable.\n"
"</qt>" ) );
    TQWhatsThis::add( leNoProxy, tr2i18n( "<qt>\n"
"Enter the environment variable, e.g. <b>NO_PROXY</b>, used to store the addresses of sites for which the proxy server should not be used.<p>\n"
"Alternatively, you can click on the <b>\"Auto Detect\"</b> button to attempt an automatic discovery of this variable.\n"
"</qt>" ) );
    lbNoProxy->setText( tr2i18n( "NO &PROXY:" ) );
    TQWhatsThis::add( lbNoProxy, tr2i18n( "<qt>\n"
"Enter the environment variable, e.g. <b>NO_PROXY</b>, used to store the addresses of sites for which the proxy server should not be used.<p>\n"
"Alternatively, you can click on the <b>\"Auto Detect\"</b> button to attempt an automatic discovery of this variable.\n"
"</qt>" ) );
}

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

TQMetaObject *EnvVarProxyDlgUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_EnvVarProxyDlgUI( "EnvVarProxyDlgUI", &EnvVarProxyDlgUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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