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

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

#include "keyserver.h"

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

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

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

    tab = new TQWidget( tabWidget2, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 

    textLabel2 = new TQLabel( tab, "textLabel2" );
    textLabel2->setFrameShape( TQLabel::NoFrame );
    textLabel2->setFrameShadow( TQLabel::Plain );

    tabLayout->addMultiCellWidget( textLabel2, 2, 2, 0, 3 );

    kCBimportks = new KComboBox( false, tab, "kCBimportks" );

    tabLayout->addMultiCellWidget( kCBimportks, 1, 1, 0, 3 );

    kLEimportid = new KLineEdit( tab, "kLEimportid" );

    tabLayout->addMultiCellWidget( kLEimportid, 3, 3, 0, 3 );

    textLabel1 = new TQLabel( tab, "textLabel1" );

    tabLayout->addMultiCellWidget( textLabel1, 0, 0, 0, 3 );

    Buttonsearch = new TQPushButton( tab, "Buttonsearch" );
    Buttonsearch->setDefault( true );

    tabLayout->addWidget( Buttonsearch, 6, 0 );

    Buttonimport = new TQPushButton( tab, "Buttonimport" );

    tabLayout->addMultiCellWidget( Buttonimport, 6, 6, 1, 2 );
    spacer2_2_3 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( spacer2_2_3, 5, 0 );
    spacer2_2_2_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( spacer2_2_2_2, 5, 3 );
    spacer4_2_2 = new TQSpacerItem( 160, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout->addItem( spacer4_2_2, 6, 3 );

    cBproxyI = new TQCheckBox( tab, "cBproxyI" );
    cBproxyI->setEnabled( false );

    tabLayout->addMultiCellWidget( cBproxyI, 4, 4, 0, 1 );

    kLEproxyI = new KLineEdit( tab, "kLEproxyI" );
    kLEproxyI->setEnabled( false );
    kLEproxyI->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, kLEproxyI->sizePolicy().hasHeightForWidth() ) );
    kLEproxyI->setReadOnly( true );

    tabLayout->addMultiCellWidget( kLEproxyI, 4, 4, 2, 3 );
    tabWidget2->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabWidget2, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); 

    Buttonexport = new TQPushButton( tab_2, "Buttonexport" );

    tabLayout_2->addWidget( Buttonexport, 7, 0 );
    spacer4_3 = new TQSpacerItem( 250, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addMultiCell( spacer4_3, 7, 7, 1, 2 );

    kCBexportks = new KComboBox( false, tab_2, "kCBexportks" );

    tabLayout_2->addMultiCellWidget( kCBexportks, 1, 1, 0, 2 );

    kCBexportkey = new KComboBox( false, tab_2, "kCBexportkey" );

    tabLayout_2->addMultiCellWidget( kCBexportkey, 3, 3, 0, 2 );

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

    tabLayout_2->addMultiCellWidget( textLabel3, 0, 0, 0, 2 );

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

    tabLayout_2->addMultiCellWidget( textLabel4, 2, 2, 0, 2 );
    spacer2_4 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer2_4, 6, 0 );
    spacer2_3_2 = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer2_3_2, 6, 2 );

    kLEproxyE = new KLineEdit( tab_2, "kLEproxyE" );
    kLEproxyE->setEnabled( false );
    kLEproxyE->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, kLEproxyE->sizePolicy().hasHeightForWidth() ) );
    kLEproxyE->setReadOnly( true );

    tabLayout_2->addWidget( kLEproxyE, 5, 2 );

    cBproxyE = new TQCheckBox( tab_2, "cBproxyE" );
    cBproxyE->setEnabled( false );

    tabLayout_2->addMultiCellWidget( cBproxyE, 5, 5, 0, 1 );

    exportAttributes = new TQCheckBox( tab_2, "exportAttributes" );
    exportAttributes->setChecked( true );

    tabLayout_2->addMultiCellWidget( exportAttributes, 4, 4, 0, 2 );
    tabWidget2->insertTab( tab_2, TQString::fromLatin1("") );

    keyServerWidgetLayout->addWidget( tabWidget2, 0, 0 );
    languageChange();
    resize( TQSize(465, 252).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void keyServerWidget::languageChange()
{
    textLabel2->setText( tr2i18n( "Text to search or ID of the key to import:" ) );
    TQWhatsThis::add( textLabel2, tr2i18n( "<qt><b>Text to search or ID of the key to import:</b><br />\n"
"				<p>There are multiple ways to search for a key, you can use a text or partial text search (example: entering Phil or Zimmerman will bring up all keys in which Phil or Zimmerman shows up) or you can search by the ID's of the key. Key ID's are strings of letters and numbers that uniquely identify a key (example: searching for 0xED7585F4 would bring up the key associated with that ID).</p>\n"
"				</qt>" ) );
    TQWhatsThis::add( kCBimportks, tr2i18n( "<b>Key Server Drop Down Dialog:</b>\n"
"Allows the user to select the Key Server which will be used to import PGP/GnuPG keys into the local keyring." ) );
    textLabel1->setText( tr2i18n( "Key server:" ) );
    TQWhatsThis::add( textLabel1, tr2i18n( "<qt><b>Key Server:</b><br /> <p>A Key Server is a centralized repository of PGP/GnuPG keys connected to the Internet which can be conveniently accessed in order to obtain or deposit keys. Select from the drop down list to specify which key server should be used.</p> <p>Often these keys are held by people whom the user has never met and as such the authenticity is dubious at best. Refer to the GnuPG manual covering \"Web-of-Trust\" relationships to find out how GnuPG works around the problem of verifying authenticity.</p> </qt>" ) );
    Buttonsearch->setText( tr2i18n( "&Search" ) );
    Buttonimport->setText( tr2i18n( "&Import" ) );
    cBproxyI->setText( tr2i18n( "Honor HTTP proxy:" ) );
    tabWidget2->changeTab( tab, tr2i18n( "Import" ) );
    Buttonexport->setText( tr2i18n( "&Export" ) );
    TQWhatsThis::add( Buttonexport, tr2i18n( "<qt><b>Export:</b><br />\n"
"				<p>Depressing this key will export the specified key to the specified server.</p>\n"
"				</qt>" ) );
    textLabel3->setText( tr2i18n( "Key server:" ) );
    textLabel4->setText( tr2i18n( "Key to be exported:" ) );
    TQWhatsThis::add( textLabel4, tr2i18n( "<qt><b>Key to be exported:</b><br />\n"
"				<p>This allows the user to specify the key from the drop down list that will be exported to the key server selected.</p>\n"
"				</qt>" ) );
    cBproxyE->setText( tr2i18n( "Honor HTTP proxy:" ) );
    exportAttributes->setText( tr2i18n( "Export attributes (photo id)" ) );
    tabWidget2->changeTab( tab_2, tr2i18n( "Export" ) );
}

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

TQMetaObject *keyServerWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_keyServerWidget( "keyServerWidget", &keyServerWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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