1
/****************************************************************************
2
** Form implementation generated from reading ui file 'tosecurityroleui.ui'
4
** Created: Mon Feb 20 12:46:41 2006
5
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.4 edited Nov 24 2003 $)
7
** WARNING! All changes made in this file will be lost!
8
****************************************************************************/
10
#include "tosecurityroleui.h"
13
#include <qpushbutton.h>
14
#include <qlineedit.h>
16
#include <qtabwidget.h>
19
#include <qwhatsthis.h>
22
* Constructs a toSecurityRoleUI as a child of 'parent', with the
23
* name 'name' and widget flags set to 'f'.
25
toSecurityRoleUI::toSecurityRoleUI( QWidget* parent, const char* name, WFlags fl )
26
: QWidget( parent, name, fl )
29
setName( "toSecurityRoleUI" );
30
toSecurityRoleUILayout = new QGridLayout( this, 1, 1, 11, 6, "toSecurityRoleUILayout");
32
Name = new QLineEdit( this, "Name" );
34
toSecurityRoleUILayout->addWidget( Name, 0, 1 );
36
NameLabel = new QLabel( this, "NameLabel" );
38
toSecurityRoleUILayout->addWidget( NameLabel, 0, 0 );
40
Authentication = new QTabWidget( this, "Authentication" );
41
Authentication->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, Authentication->sizePolicy().hasHeightForWidth() ) );
43
PasswordTab = new QWidget( Authentication, "PasswordTab" );
44
PasswordTabLayout = new QGridLayout( PasswordTab, 1, 1, 11, 6, "PasswordTabLayout");
46
TextLabel4 = new QLabel( PasswordTab, "TextLabel4" );
48
PasswordTabLayout->addWidget( TextLabel4, 0, 0 );
50
Password = new QLineEdit( PasswordTab, "Password" );
51
Password->setEchoMode( QLineEdit::Password );
53
PasswordTabLayout->addWidget( Password, 0, 1 );
55
Password2 = new QLineEdit( PasswordTab, "Password2" );
56
Password2->setEchoMode( QLineEdit::Password );
58
PasswordTabLayout->addWidget( Password2, 1, 1 );
60
TextLabel4_2 = new QLabel( PasswordTab, "TextLabel4_2" );
62
PasswordTabLayout->addWidget( TextLabel4_2, 1, 0 );
63
Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
64
PasswordTabLayout->addItem( Spacer1, 1, 2 );
65
Authentication->insertTab( PasswordTab, QString::fromLatin1("") );
67
ExternalTab = new QWidget( Authentication, "ExternalTab" );
68
ExternalTabLayout = new QGridLayout( ExternalTab, 1, 1, 11, 6, "ExternalTabLayout");
70
TextLabel3 = new QLabel( ExternalTab, "TextLabel3" );
72
ExternalTabLayout->addWidget( TextLabel3, 0, 0 );
73
Authentication->insertTab( ExternalTab, QString::fromLatin1("") );
75
GlobalTab = new QWidget( Authentication, "GlobalTab" );
76
GlobalTabLayout = new QGridLayout( GlobalTab, 1, 1, 11, 6, "GlobalTabLayout");
78
TextLabel3_2 = new QLabel( GlobalTab, "TextLabel3_2" );
80
GlobalTabLayout->addWidget( TextLabel3_2, 0, 0 );
81
Authentication->insertTab( GlobalTab, QString::fromLatin1("") );
83
NoneTab = new QWidget( Authentication, "NoneTab" );
84
NoneTabLayout = new QGridLayout( NoneTab, 1, 1, 11, 6, "NoneTabLayout");
86
TextLabel1 = new QLabel( NoneTab, "TextLabel1" );
88
NoneTabLayout->addWidget( TextLabel1, 0, 0 );
89
Authentication->insertTab( NoneTab, QString::fromLatin1("") );
91
toSecurityRoleUILayout->addMultiCellWidget( Authentication, 1, 1, 0, 1 );
92
Spacer1_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
93
toSecurityRoleUILayout->addItem( Spacer1_2, 2, 1 );
95
resize( QSize(576, 480).expandedTo(minimumSizeHint()) );
96
clearWState( WState_Polished );
99
NameLabel->setBuddy( Name );
100
TextLabel4->setBuddy( Password );
101
TextLabel4_2->setBuddy( Password2 );
105
* Destroys the object and frees any allocated resources
107
toSecurityRoleUI::~toSecurityRoleUI()
109
// no need to delete child widgets, Qt does it all for us
113
* Sets the strings of the subwidgets using the current
116
void toSecurityRoleUI::languageChange()
118
setCaption( tr( "Form2" ) );
119
NameLabel->setText( tr( "&Name" ) );
120
TextLabel4->setText( tr( "Enter Password" ) );
121
TextLabel4_2->setText( tr( "Confirm Password" ) );
122
Authentication->changeTab( PasswordTab, tr( "&Password" ) );
123
TextLabel3->setText( tr( "Role authenticated by the operating system" ) );
124
Authentication->changeTab( ExternalTab, tr( "&External" ) );
125
TextLabel3_2->setText( tr( "Role authenticated globally" ) );
126
Authentication->changeTab( GlobalTab, tr( "&Global" ) );
127
TextLabel1->setText( tr( "No password required for role" ) );
128
Authentication->changeTab( NoneTab, tr( "None" ) );