/****************************************************************************
** Form implementation generated from reading ui file 'tosecurityroleui.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 "tosecurityroleui.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qtabwidget.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

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

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

    toSecurityRoleUILayout->addWidget( Name, 0, 1 );

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

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

    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 );
    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"); 

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

    GlobalTabLayout->addWidget( TextLabel3_2, 0, 0 );
    Authentication->insertTab( GlobalTab, QString::fromLatin1("") );

    NoneTab = new QWidget( Authentication, "NoneTab" );
    NoneTabLayout = new QGridLayout( NoneTab, 1, 1, 11, 6, "NoneTabLayout"); 

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

    NoneTabLayout->addWidget( TextLabel1, 0, 0 );
    Authentication->insertTab( NoneTab, QString::fromLatin1("") );

    toSecurityRoleUILayout->addMultiCellWidget( Authentication, 1, 1, 0, 1 );
    Spacer1_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    toSecurityRoleUILayout->addItem( Spacer1_2, 2, 1 );
    languageChange();
    resize( QSize(576, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    NameLabel->setBuddy( Name );
    TextLabel4->setBuddy( Password );
    TextLabel4_2->setBuddy( Password2 );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void toSecurityRoleUI::languageChange()
{
    setCaption( tr( "Form2" ) );
    NameLabel->setText( tr( "&Name" ) );
    TextLabel4->setText( tr( "Enter Password" ) );
    TextLabel4_2->setText( tr( "Confirm Password" ) );
    Authentication->changeTab( PasswordTab, tr( "&Password" ) );
    TextLabel3->setText( tr( "Role authenticated by the operating system" ) );
    Authentication->changeTab( ExternalTab, tr( "&External" ) );
    TextLabel3_2->setText( tr( "Role authenticated globally" ) );
    Authentication->changeTab( GlobalTab, tr( "&Global" ) );
    TextLabel1->setText( tr( "No password required for role" ) );
    Authentication->changeTab( NoneTab, tr( "None" ) );
}

