/****************************************************************************
** Form implementation generated from reading ui file 'tosecurityuserui.ui'
**
** Created: Tue Sep 18 08:21:24 2007
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "tosecurityuserui.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qlineedit.h>
#include <qtabwidget.h>
#include <qcheckbox.h>
#include <qframe.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "toeditwidget.h"

/*
 *  Constructs a toSecurityUserUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
toSecurityUserUI::toSecurityUserUI( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "toSecurityUserUI" );
    toSecurityUserUILayout = new QGridLayout( this, 1, 1, 11, 6, "toSecurityUserUILayout"); 

    NameLabel = new QLabel( this, "NameLabel" );

    toSecurityUserUILayout->addWidget( NameLabel, 0, 0 );

    ProfileLabel = new QLabel( this, "ProfileLabel" );

    toSecurityUserUILayout->addWidget( ProfileLabel, 0, 3 );

    Profile = new QComboBox( FALSE, this, "Profile" );

    toSecurityUserUILayout->addMultiCellWidget( Profile, 0, 0, 4, 5 );

    Name = new QLineEdit( this, "Name" );

    toSecurityUserUILayout->addMultiCellWidget( Name, 0, 0, 1, 2 );
    Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    toSecurityUserUILayout->addItem( Spacer4, 6, 3 );

    Authentication = new QTabWidget( this, "Authentication" );
    Authentication->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, Authentication->sizePolicy().hasHeightForWidth() ) );

    PasswordTab = new QWidget( Authentication, "PasswordTab" );
    PasswordTabLayout = new QGridLayout( PasswordTab, 1, 1, 11, 6, "PasswordTabLayout"); 

    TextLabel4 = new QLabel( PasswordTab, "TextLabel4" );

    PasswordTabLayout->addWidget( TextLabel4, 0, 0 );

    Password = new QLineEdit( PasswordTab, "Password" );
    Password->setEchoMode( QLineEdit::Password );

    PasswordTabLayout->addWidget( Password, 0, 1 );

    Password2 = new QLineEdit( PasswordTab, "Password2" );
    Password2->setEchoMode( QLineEdit::Password );

    PasswordTabLayout->addWidget( Password2, 1, 1 );

    TextLabel4_2 = new QLabel( PasswordTab, "TextLabel4_2" );

    PasswordTabLayout->addWidget( TextLabel4_2, 1, 0 );
    Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    PasswordTabLayout->addItem( Spacer1, 1, 2 );

    ExpirePassword = new QCheckBox( PasswordTab, "ExpirePassword" );

    PasswordTabLayout->addWidget( ExpirePassword, 2, 0 );
    Authentication->insertTab( PasswordTab, QString::fromLatin1("") );

    ExternalTab = new QWidget( Authentication, "ExternalTab" );
    ExternalTabLayout = new QGridLayout( ExternalTab, 1, 1, 11, 6, "ExternalTabLayout"); 

    TextLabel3 = new QLabel( ExternalTab, "TextLabel3" );

    ExternalTabLayout->addWidget( TextLabel3, 0, 0 );
    Authentication->insertTab( ExternalTab, QString::fromLatin1("") );

    GlobalTab = new QWidget( Authentication, "GlobalTab" );
    GlobalTabLayout = new QGridLayout( GlobalTab, 1, 1, 11, 6, "GlobalTabLayout"); 

    GlobalName = new QLineEdit( GlobalTab, "GlobalName" );

    GlobalTabLayout->addWidget( GlobalName, 1, 0 );

    TextLabel1 = new QLabel( GlobalTab, "TextLabel1" );

    GlobalTabLayout->addWidget( TextLabel1, 0, 0 );
    Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    GlobalTabLayout->addItem( Spacer5, 2, 0 );
    Authentication->insertTab( GlobalTab, QString::fromLatin1("") );

    toSecurityUserUILayout->addMultiCellWidget( Authentication, 1, 1, 0, 5 );

    TextLabel6_2 = new QLabel( this, "TextLabel6_2" );

    toSecurityUserUILayout->addMultiCellWidget( TextLabel6_2, 3, 3, 3, 4 );

    Locked = new QCheckBox( this, "Locked" );

    toSecurityUserUILayout->addMultiCellWidget( Locked, 5, 5, 0, 5 );

    TempSpace = new QComboBox( FALSE, this, "TempSpace" );

    toSecurityUserUILayout->addWidget( TempSpace, 3, 5 );

    Line1 = new QFrame( this, "Line1" );
    Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );

    toSecurityUserUILayout->addMultiCellWidget( Line1, 4, 4, 0, 5 );

    TextLabel6 = new QLabel( this, "TextLabel6" );

    toSecurityUserUILayout->addMultiCellWidget( TextLabel6, 3, 3, 0, 1 );

    DefaultSpace = new QComboBox( FALSE, this, "DefaultSpace" );

    toSecurityUserUILayout->addWidget( DefaultSpace, 3, 2 );

    Line2 = new QFrame( this, "Line2" );
    Line2->setFrameStyle( QFrame::HLine | QFrame::Sunken );

    toSecurityUserUILayout->addMultiCellWidget( Line2, 2, 2, 0, 5 );
    languageChange();
    resize( QSize(560, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( Name, Profile );
    setTabOrder( Profile, Authentication );
    setTabOrder( Authentication, Password );
    setTabOrder( Password, Password2 );
    setTabOrder( Password2, ExpirePassword );
    setTabOrder( ExpirePassword, GlobalName );
    setTabOrder( GlobalName, DefaultSpace );
    setTabOrder( DefaultSpace, TempSpace );
    setTabOrder( TempSpace, Locked );

    // buddies
    NameLabel->setBuddy( Name );
    ProfileLabel->setBuddy( Profile );
    TextLabel4->setBuddy( Password );
    TextLabel4_2->setBuddy( Password2 );
    TextLabel1->setBuddy( GlobalName );
    TextLabel6_2->setBuddy( TempSpace );
    TextLabel6->setBuddy( DefaultSpace );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void toSecurityUserUI::languageChange()
{
    setCaption( tr( "Form1" ) );
    NameLabel->setText( tr( "&Name" ) );
    ProfileLabel->setText( tr( "P&rofile" ) );
    TextLabel4->setText( tr( "Enter Password" ) );
    TextLabel4_2->setText( tr( "Confirm Password" ) );
    ExpirePassword->setText( tr( "Expire Password" ) );
    Authentication->changeTab( PasswordTab, tr( "&Password" ) );
    TextLabel3->setText( tr( "User authenticated by the operating system" ) );
    Authentication->changeTab( ExternalTab, tr( "&External" ) );
    TextLabel1->setText( tr( "&X.500 External Name" ) );
    Authentication->changeTab( GlobalTab, tr( "&Global" ) );
    TextLabel6_2->setText( tr( "&Temporary Tablespace" ) );
    Locked->setText( tr( "&Account Locked" ) );
    TextLabel6->setText( tr( "&Default Tablespace" ) );
}

