1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
/****************************************************************************
** Form implementation generated from reading ui file 'tosecurityroleui.ui'
**
** Created: Mon Feb 20 12:46:41 2006
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.4 edited Nov 24 2003 $)
**
** 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" ) );
}
|