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

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

#include "filemodedlg.h"

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

/*
 *  Constructs a FileModeDlg as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
FileModeDlg::FileModeDlg( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "FileModeDlg" );
    setSizeGripEnabled( true );
    FileModeDlgLayout = new TQVBoxLayout( this, 11, 6, "FileModeDlgLayout"); 

    GroupBox1 = new TQGroupBox( this, "GroupBox1" );
    TQFont GroupBox1_font(  GroupBox1->font() );
    GroupBox1->setFont( GroupBox1_font ); 
    GroupBox1->setColumnLayout(0, TQt::Vertical );
    GroupBox1->layout()->setSpacing( 6 );
    GroupBox1->layout()->setMargin( 11 );
    GroupBox1Layout = new TQGridLayout( GroupBox1->layout() );
    GroupBox1Layout->setAlignment( TQt::AlignTop );

    Line4 = new TQFrame( GroupBox1, "Line4" );
    Line4->setFrameShape( TQFrame::VLine );
    Line4->setFrameShadow( TQFrame::Sunken );
    Line4->setFrameShape( TQFrame::VLine );

    GroupBox1Layout->addMultiCellWidget( Line4, 0, 3, 4, 4 );
    Spacer37 = new TQSpacerItem( 20, 43, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    GroupBox1Layout->addMultiCell( Spacer37, 4, 4, 1, 2 );
    Spacer38 = new TQSpacerItem( 70, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    GroupBox1Layout->addMultiCell( Spacer38, 1, 2, 6, 6 );

    TextLabel3 = new TQLabel( GroupBox1, "TextLabel3" );
    TQFont TextLabel3_font(  TextLabel3->font() );
    TextLabel3->setFont( TextLabel3_font ); 

    GroupBox1Layout->addWidget( TextLabel3, 3, 0 );

    TextLabel4 = new TQLabel( GroupBox1, "TextLabel4" );
    TQFont TextLabel4_font(  TextLabel4->font() );
    TextLabel4->setFont( TextLabel4_font ); 

    GroupBox1Layout->addWidget( TextLabel4, 0, 1 );

    othersReadChk = new TQCheckBox( GroupBox1, "othersReadChk" );
    TQFont othersReadChk_font(  othersReadChk->font() );
    othersReadChk->setFont( othersReadChk_font ); 

    GroupBox1Layout->addWidget( othersReadChk, 3, 1 );

    TextLabel6 = new TQLabel( GroupBox1, "TextLabel6" );
    TQFont TextLabel6_font(  TextLabel6->font() );
    TextLabel6->setFont( TextLabel6_font ); 

    GroupBox1Layout->addWidget( TextLabel6, 0, 3 );

    TextLabel5 = new TQLabel( GroupBox1, "TextLabel5" );
    TQFont TextLabel5_font(  TextLabel5->font() );
    TextLabel5->setFont( TextLabel5_font ); 

    GroupBox1Layout->addWidget( TextLabel5, 0, 2 );

    groupWriteChk = new TQCheckBox( GroupBox1, "groupWriteChk" );
    TQFont groupWriteChk_font(  groupWriteChk->font() );
    groupWriteChk->setFont( groupWriteChk_font ); 

    GroupBox1Layout->addWidget( groupWriteChk, 2, 2 );

    othersWriteChk = new TQCheckBox( GroupBox1, "othersWriteChk" );
    TQFont othersWriteChk_font(  othersWriteChk->font() );
    othersWriteChk->setFont( othersWriteChk_font ); 

    GroupBox1Layout->addWidget( othersWriteChk, 3, 2 );

    ownerWriteChk = new TQCheckBox( GroupBox1, "ownerWriteChk" );
    TQFont ownerWriteChk_font(  ownerWriteChk->font() );
    ownerWriteChk->setFont( ownerWriteChk_font ); 

    GroupBox1Layout->addWidget( ownerWriteChk, 1, 2 );

    othersExecChk = new TQCheckBox( GroupBox1, "othersExecChk" );
    TQFont othersExecChk_font(  othersExecChk->font() );
    othersExecChk->setFont( othersExecChk_font ); 

    GroupBox1Layout->addWidget( othersExecChk, 3, 3 );

    groupReadChk = new TQCheckBox( GroupBox1, "groupReadChk" );
    TQFont groupReadChk_font(  groupReadChk->font() );
    groupReadChk->setFont( groupReadChk_font ); 

    GroupBox1Layout->addWidget( groupReadChk, 2, 1 );

    ownerReadChk = new TQCheckBox( GroupBox1, "ownerReadChk" );
    TQFont ownerReadChk_font(  ownerReadChk->font() );
    ownerReadChk->setFont( ownerReadChk_font ); 

    GroupBox1Layout->addWidget( ownerReadChk, 1, 1 );

    TextLabel1 = new TQLabel( GroupBox1, "TextLabel1" );
    TQFont TextLabel1_font(  TextLabel1->font() );
    TextLabel1->setFont( TextLabel1_font ); 

    GroupBox1Layout->addWidget( TextLabel1, 1, 0 );

    groupExecChk = new TQCheckBox( GroupBox1, "groupExecChk" );
    TQFont groupExecChk_font(  groupExecChk->font() );
    groupExecChk->setFont( groupExecChk_font ); 

    GroupBox1Layout->addWidget( groupExecChk, 2, 3 );

    TextLabel2 = new TQLabel( GroupBox1, "TextLabel2" );
    TQFont TextLabel2_font(  TextLabel2->font() );
    TextLabel2->setFont( TextLabel2_font ); 

    GroupBox1Layout->addWidget( TextLabel2, 2, 0 );

    ownerExecChk = new TQCheckBox( GroupBox1, "ownerExecChk" );
    TQFont ownerExecChk_font(  ownerExecChk->font() );
    ownerExecChk->setFont( ownerExecChk_font ); 

    GroupBox1Layout->addWidget( ownerExecChk, 1, 3 );

    stickyBitChk = new TQCheckBox( GroupBox1, "stickyBitChk" );
    TQFont stickyBitChk_font(  stickyBitChk->font() );
    stickyBitChk->setFont( stickyBitChk_font ); 

    GroupBox1Layout->addWidget( stickyBitChk, 3, 5 );

    setGIDChk = new TQCheckBox( GroupBox1, "setGIDChk" );
    TQFont setGIDChk_font(  setGIDChk->font() );
    setGIDChk->setFont( setGIDChk_font ); 

    GroupBox1Layout->addWidget( setGIDChk, 2, 5 );

    setUIDChk = new TQCheckBox( GroupBox1, "setUIDChk" );
    TQFont setUIDChk_font(  setUIDChk->font() );
    setUIDChk->setFont( setUIDChk_font ); 

    GroupBox1Layout->addWidget( setUIDChk, 1, 5 );

    TextLabel8 = new TQLabel( GroupBox1, "TextLabel8" );
    TQFont TextLabel8_font(  TextLabel8->font() );
    TextLabel8->setFont( TextLabel8_font ); 

    GroupBox1Layout->addWidget( TextLabel8, 0, 5 );
    FileModeDlgLayout->addWidget( GroupBox1 );

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

    buttonHelp = new TQPushButton( this, "buttonHelp" );
    buttonHelp->setAutoDefault( true );
    Layout1->addWidget( buttonHelp );
    Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout1->addItem( Horizontal_Spacing2 );

    buttonOk = new TQPushButton( this, "buttonOk" );
    buttonOk->setAutoDefault( true );
    buttonOk->setDefault( true );
    Layout1->addWidget( buttonOk );

    buttonCancel = new TQPushButton( this, "buttonCancel" );
    buttonCancel->setAutoDefault( true );
    Layout1->addWidget( buttonCancel );
    FileModeDlgLayout->addLayout( Layout1 );
    languageChange();
    resize( TQSize(370, 220).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( buttonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );

    // tab order
    setTabOrder( ownerReadChk, ownerWriteChk );
    setTabOrder( ownerWriteChk, ownerExecChk );
    setTabOrder( ownerExecChk, groupReadChk );
    setTabOrder( groupReadChk, groupWriteChk );
    setTabOrder( groupWriteChk, groupExecChk );
    setTabOrder( groupExecChk, othersReadChk );
    setTabOrder( othersReadChk, othersWriteChk );
    setTabOrder( othersWriteChk, othersExecChk );
    setTabOrder( othersExecChk, setUIDChk );
    setTabOrder( setUIDChk, setGIDChk );
    setTabOrder( setGIDChk, stickyBitChk );
    setTabOrder( stickyBitChk, buttonHelp );
    setTabOrder( buttonHelp, buttonOk );
    setTabOrder( buttonOk, buttonCancel );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FileModeDlg::languageChange()
{
    setCaption( tr2i18n( "Access Modifiers" ) );
    GroupBox1->setTitle( tr2i18n( "Access Permissions" ) );
    TextLabel3->setText( tr2i18n( "Others" ) );
    TextLabel4->setText( tr2i18n( "Read" ) );
    othersReadChk->setText( TQString::null );
    TextLabel6->setText( tr2i18n( "Exec" ) );
    TextLabel5->setText( tr2i18n( "Write" ) );
    groupWriteChk->setText( TQString::null );
    othersWriteChk->setText( TQString::null );
    ownerWriteChk->setText( TQString::null );
    othersExecChk->setText( TQString::null );
    groupReadChk->setText( TQString::null );
    ownerReadChk->setText( TQString::null );
    TextLabel1->setText( tr2i18n( "Owner" ) );
    groupExecChk->setText( TQString::null );
    TextLabel2->setText( tr2i18n( "Group" ) );
    ownerExecChk->setText( TQString::null );
    stickyBitChk->setText( tr2i18n( "Sticky" ) );
    setGIDChk->setText( tr2i18n( "Set GID" ) );
    setUIDChk->setText( tr2i18n( "Set UID" ) );
    TextLabel8->setText( tr2i18n( "Special" ) );
    buttonHelp->setText( tr2i18n( "&Help" ) );
    buttonHelp->setAccel( TQKeySequence( tr2i18n( "F1" ) ) );
    buttonOk->setText( tr2i18n( "&OK" ) );
    buttonCancel->setText( tr2i18n( "&Cancel" ) );
}

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

TQMetaObject *FileModeDlg::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_FileModeDlg( "FileModeDlg", &FileModeDlg::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* FileModeDlg::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"FileModeDlg", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_FileModeDlg.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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