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

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

#include "kprivacysettings.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqframe.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqbuttongroup.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "kdialog.h"

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

    line1 = new TQFrame( this, "line1" );
    line1->setFrameShape( TQFrame::HLine );
    line1->setFrameShadow( TQFrame::Sunken );
    line1->setFrameShape( TQFrame::HLine );

    KPrivacySettingsLayout->addMultiCellWidget( line1, 1, 1, 0, 1 );

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

    KPrivacySettingsLayout->addWidget( textLabel1, 0, 0 );

    _privacyLevel = new TQComboBox( false, this, "_privacyLevel" );
    _privacyLevel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, _privacyLevel->sizePolicy().hasHeightForWidth() ) );

    KPrivacySettingsLayout->addWidget( _privacyLevel, 0, 1 );

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

    textLabel2 = new TQLabel( buttonGroup1_2, "textLabel2" );
    buttonGroup1_2Layout->addWidget( textLabel2 );

    _warnFinancialMarketeer = new TQCheckBox( buttonGroup1_2, "_warnFinancialMarketeer" );
    buttonGroup1_2Layout->addWidget( _warnFinancialMarketeer );

    _warnFinancialSpammer = new TQCheckBox( buttonGroup1_2, "_warnFinancialSpammer" );
    buttonGroup1_2Layout->addWidget( _warnFinancialSpammer );

    KPrivacySettingsLayout->addMultiCellWidget( buttonGroup1_2, 6, 6, 0, 1 );

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

    textLabel2_2 = new TQLabel( buttonGroup1, "textLabel2_2" );
    buttonGroup1Layout->addWidget( textLabel2_2 );

    _warnHealthMarketeer = new TQCheckBox( buttonGroup1, "_warnHealthMarketeer" );
    buttonGroup1Layout->addWidget( _warnHealthMarketeer );

    _warnHealthSpammer = new TQCheckBox( buttonGroup1, "_warnHealthSpammer" );
    buttonGroup1Layout->addWidget( _warnHealthSpammer );

    KPrivacySettingsLayout->addMultiCellWidget( buttonGroup1, 5, 5, 0, 1 );

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

    textLabel2_3 = new TQLabel( buttonGroup1_2_2, "textLabel2_3" );
    buttonGroup1_2_2Layout->addWidget( textLabel2_3 );

    _warnDemographicsBigBrother = new TQCheckBox( buttonGroup1_2_2, "_warnDemographicsBigBrother" );
    buttonGroup1_2_2Layout->addWidget( _warnDemographicsBigBrother );

    _warnDemographicsSpammer = new TQCheckBox( buttonGroup1_2_2, "_warnDemographicsSpammer" );
    buttonGroup1_2_2Layout->addWidget( _warnDemographicsSpammer );

    KPrivacySettingsLayout->addMultiCellWidget( buttonGroup1_2_2, 7, 7, 0, 1 );

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

    KPrivacySettingsLayout->addMultiCellWidget( _warnSpammers, 2, 2, 0, 1 );

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

    KPrivacySettingsLayout->addMultiCellWidget( _warnShady, 3, 3, 0, 1 );

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

    textLabel2_2_2 = new TQLabel( buttonGroup4, "textLabel2_2_2" );

    buttonGroup4Layout->addMultiCellWidget( textLabel2_2_2, 0, 0, 0, 1 );

    textLabel2_2_2_2 = new TQLabel( buttonGroup4, "textLabel2_2_2_2" );

    buttonGroup4Layout->addMultiCellWidget( textLabel2_2_2_2, 2, 2, 0, 1 );

    _warnPersonalHabits = new TQCheckBox( buttonGroup4, "_warnPersonalHabits" );

    buttonGroup4Layout->addMultiCellWidget( _warnPersonalHabits, 3, 3, 0, 1 );

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

    _warnPersonalTelephone = new TQCheckBox( buttonGroup4, "_warnPersonalTelephone" );
    layout1->addWidget( _warnPersonalTelephone );

    _warnPersonalMail = new TQCheckBox( buttonGroup4, "_warnPersonalMail" );
    layout1->addWidget( _warnPersonalMail );

    buttonGroup4Layout->addLayout( layout1, 1, 0 );

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

    _warnPersonalEmail = new TQCheckBox( buttonGroup4, "_warnPersonalEmail" );
    layout3->addWidget( _warnPersonalEmail );

    _warnPersonalBigBrother = new TQCheckBox( buttonGroup4, "_warnPersonalBigBrother" );
    layout3->addWidget( _warnPersonalBigBrother );

    buttonGroup4Layout->addLayout( layout3, 1, 1 );

    KPrivacySettingsLayout->addMultiCellWidget( buttonGroup4, 4, 4, 0, 1 );
    languageChange();
    resize( TQSize(905, 724).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    textLabel1->setBuddy( _privacyLevel );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KPrivacySettings::languageChange()
{
    setCaption( tr2i18n( "Privacy Settings" ) );
    textLabel1->setText( tr2i18n( "Network privacy level:" ) );
    _privacyLevel->clear();
    _privacyLevel->insertItem( tr2i18n( "Low" ) );
    _privacyLevel->insertItem( tr2i18n( "Medium" ) );
    _privacyLevel->insertItem( tr2i18n( "High" ) );
    _privacyLevel->insertItem( tr2i18n( "Custom" ) );
    buttonGroup1_2->setTitle( tr2i18n( "Financial Information" ) );
    textLabel2->setText( tr2i18n( "Warn me when I visit a site that uses my financial or purchase information:" ) );
    _warnFinancialMarketeer->setText( tr2i18n( "For marketing or advertising purposes" ) );
    _warnFinancialSpammer->setText( tr2i18n( "To share with other companies" ) );
    buttonGroup1->setTitle( tr2i18n( "Health Information" ) );
    textLabel2_2->setText( tr2i18n( "Warn me when I visit a site that uses my health or medical information: " ) );
    _warnHealthMarketeer->setText( tr2i18n( "For marketing or advertising purposes" ) );
    _warnHealthSpammer->setText( tr2i18n( "To share with other companies" ) );
    buttonGroup1_2_2->setTitle( tr2i18n( "Demographics" ) );
    textLabel2_3->setText( tr2i18n( "Warn me when I visit a site that uses my non-personally identifiable information:" ) );
    _warnDemographicsBigBrother->setText( tr2i18n( "To determine my interests, habits or general behavior" ) );
    _warnDemographicsSpammer->setText( tr2i18n( "To share with other companies" ) );
    _warnSpammers->setText( tr2i18n( "Warn me when I visit a site that shares my personal information with other companies" ) );
    _warnShady->setText( tr2i18n( "Warn me when I visit a site that does not let me know what information they have about me" ) );
    buttonGroup4->setTitle( tr2i18n( "Personal Information" ) );
    textLabel2_2_2->setText( tr2i18n( "Warn me when I visit a site that may contact me about other products or services:" ) );
    textLabel2_2_2_2->setText( tr2i18n( "Warn me when I visit a site that may use my personal information to:" ) );
    _warnPersonalHabits->setText( tr2i18n( "Determine my habits, interests or general behavior" ) );
    _warnPersonalTelephone->setText( tr2i18n( "Via telephone" ) );
    _warnPersonalMail->setText( tr2i18n( "Via mail" ) );
    _warnPersonalEmail->setText( tr2i18n( "Via email" ) );
    _warnPersonalBigBrother->setText( tr2i18n( "And do not allow me to remove my contact information" ) );
}

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

TQMetaObject *KPrivacySettings::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KPrivacySettings( "KPrivacySettings", &KPrivacySettings::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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