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

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

#include "filessettings.h"

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

/*
 *  Constructs a FilesSettings as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
FilesSettings::FilesSettings( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "FilesSettings" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
    FilesSettingsLayout = new TQVBoxLayout( this, 11, 6, "FilesSettingsLayout"); 

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, groupBox1->sizePolicy().hasHeightForWidth() ) );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQGridLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

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

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

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

    groupBox1Layout->addWidget( textLabel3, 0, 0 );

    kcfg_passwdsrc = new KLineEdit( groupBox1, "kcfg_passwdsrc" );

    groupBox1Layout->addMultiCellWidget( kcfg_passwdsrc, 0, 0, 1, 2 );

    kcfg_groupsrc = new KLineEdit( groupBox1, "kcfg_groupsrc" );

    groupBox1Layout->addMultiCellWidget( kcfg_groupsrc, 1, 1, 1, 2 );

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

    groupBox1Layout->addMultiCellWidget( textLabel5, 2, 2, 0, 1 );

    kcfg_shadowsrc = new KLineEdit( groupBox1, "kcfg_shadowsrc" );

    groupBox1Layout->addWidget( kcfg_shadowsrc, 2, 2 );

    kcfg_gshadowsrc = new KLineEdit( groupBox1, "kcfg_gshadowsrc" );

    groupBox1Layout->addWidget( kcfg_gshadowsrc, 3, 2 );

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

    groupBox1Layout->addMultiCellWidget( textLabel6, 3, 3, 0, 1 );

    kcfg_md5shadow = new TQCheckBox( groupBox1, "kcfg_md5shadow" );

    groupBox1Layout->addMultiCellWidget( kcfg_md5shadow, 4, 4, 0, 2 );
    FilesSettingsLayout->addWidget( groupBox1 );

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, groupBox2->sizePolicy().hasHeightForWidth() ) );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQGridLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    textLabel3_2 = new TQLabel( groupBox2, "textLabel3_2" );

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

    textLabel4_2 = new TQLabel( groupBox2, "textLabel4_2" );

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

    textLabel5_2 = new TQLabel( groupBox2, "textLabel5_2" );

    groupBox2Layout->addWidget( textLabel5_2, 2, 0 );

    textLabel6_2 = new TQLabel( groupBox2, "textLabel6_2" );

    groupBox2Layout->addWidget( textLabel6_2, 3, 0 );

    kcfg_nispasswdsrc = new KLineEdit( groupBox2, "kcfg_nispasswdsrc" );

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

    kcfg_nisgroupsrc = new KLineEdit( groupBox2, "kcfg_nisgroupsrc" );

    groupBox2Layout->addWidget( kcfg_nisgroupsrc, 1, 1 );

    kcfg_nisminuid = new KLineEdit( groupBox2, "kcfg_nisminuid" );

    groupBox2Layout->addWidget( kcfg_nisminuid, 2, 1 );

    kcfg_nismingid = new KLineEdit( groupBox2, "kcfg_nismingid" );

    groupBox2Layout->addWidget( kcfg_nismingid, 3, 1 );
    FilesSettingsLayout->addWidget( groupBox2 );
    spacer3 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    FilesSettingsLayout->addItem( spacer3 );
    languageChange();
    resize( TQSize(405, 315).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    textLabel4->setBuddy( kcfg_groupsrc );
    textLabel3->setBuddy( kcfg_passwdsrc );
    textLabel5->setBuddy( kcfg_shadowsrc );
    textLabel6->setBuddy( kcfg_gshadowsrc );
    textLabel3_2->setBuddy( kcfg_nispasswdsrc );
    textLabel4_2->setBuddy( kcfg_nisgroupsrc );
    textLabel5_2->setBuddy( kcfg_nisminuid );
    textLabel6_2->setBuddy( kcfg_nismingid );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FilesSettings::languageChange()
{
    groupBox1->setTitle( tr2i18n( "Local User Database Files" ) );
    textLabel4->setText( tr2i18n( "Group file:" ) );
    textLabel3->setText( tr2i18n( "Password file:" ) );
    textLabel5->setText( tr2i18n( "Shadow password file:" ) );
    textLabel6->setText( tr2i18n( "Shadow group file:" ) );
    kcfg_md5shadow->setText( tr2i18n( "MD5 shadow passwords" ) );
    groupBox2->setTitle( tr2i18n( "NIS Settings" ) );
    textLabel3_2->setText( tr2i18n( "NIS password source:" ) );
    textLabel4_2->setText( tr2i18n( "NIS group source:" ) );
    textLabel5_2->setText( tr2i18n( "NIS minimum UID:" ) );
    textLabel6_2->setText( tr2i18n( "NIS minimum GID:" ) );
}

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

TQMetaObject *FilesSettings::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_FilesSettings( "FilesSettings", &FilesSettings::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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