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

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

#include "kcmprivacydialog.h"

#include <ntqvariant.h>
#include <tdelistview.h>
#include <ktextedit.h>
#include <ntqsplitter.h>
#include <ntqpushbutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KCMPrivacyDialog as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KCMPrivacyDialog::KCMPrivacyDialog( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "KCMPrivacyDialog" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setSizeIncrement( TQSize( 0, 0 ) );
    setBaseSize( TQSize( 400, 550 ) );
    KCMPrivacyDialogLayout = new TQVBoxLayout( this, 0, 6, "KCMPrivacyDialogLayout"); 

    splitter1 = new TQSplitter( this, "splitter1" );
    splitter1->setOrientation( TQSplitter::Vertical );

    privacyListView = new TDEListView( splitter1, "privacyListView" );
    privacyListView->setShowSortIndicator( false );
    privacyListView->setResizeMode( TDEListView::AllColumns );
    privacyListView->setItemsMovable( false );
    privacyListView->setAutoOpen( false );

    statusTextEdit = new KTextEdit( splitter1, "statusTextEdit" );
    statusTextEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)7, 0, 0, statusTextEdit->sizePolicy().hasHeightForWidth() ) );
    statusTextEdit->setMinimumSize( TQSize( 0, 50 ) );
    statusTextEdit->setMaximumSize( TQSize( 32767, 200 ) );
    statusTextEdit->setResizePolicy( KTextEdit::Manual );
    statusTextEdit->setReadOnly( true );
    KCMPrivacyDialogLayout->addWidget( splitter1 );

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

    selectAllButton = new TQPushButton( this, "selectAllButton" );
    selectAllButton->setMinimumSize( TQSize( 80, 0 ) );
    selectAllButton->setMaximumSize( TQSize( 32767, 32767 ) );
    layout1->addWidget( selectAllButton );

    selectNoneButton = new TQPushButton( this, "selectNoneButton" );
    selectNoneButton->setMinimumSize( TQSize( 80, 0 ) );
    selectNoneButton->setMaximumSize( TQSize( 32767, 32767 ) );
    layout1->addWidget( selectNoneButton );
    spacer1 = new TQSpacerItem( 80, 20, TQSizePolicy::Maximum, TQSizePolicy::Minimum );
    layout1->addItem( spacer1 );

    cleanupButton = new TQPushButton( this, "cleanupButton" );
    cleanupButton->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, cleanupButton->sizePolicy().hasHeightForWidth() ) );
    cleanupButton->setMaximumSize( TQSize( 32767, 32767 ) );
    layout1->addWidget( cleanupButton );
    KCMPrivacyDialogLayout->addLayout( layout1 );
    languageChange();
    resize( TQSize(452, 226).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KCMPrivacyDialog::languageChange()
{
    setCaption( tr2i18n( "Privacy" ) );
    statusTextEdit->setText( TQString::null );
    selectAllButton->setText( tr2i18n( "Select All" ) );
    selectNoneButton->setText( tr2i18n( "Select None" ) );
    cleanupButton->setText( tr2i18n( "Clean Up" ) );
}

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

TQMetaObject *KCMPrivacyDialog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KCMPrivacyDialog( "KCMPrivacyDialog", &KCMPrivacyDialog::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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