1
/****************************************************************************
2
** Form implementation generated from reading ui file '../../src/tosecurityuserui.ui'
4
** Created: Sa Jan 20 20:43:31 2007
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 "tosecurityuserui.h"
13
#include <qpushbutton.h>
15
#include <qcombobox.h>
16
#include <qlineedit.h>
17
#include <qtabwidget.h>
18
#include <qcheckbox.h>
22
#include <qwhatsthis.h>
23
#include "toeditwidget.h"
26
* Constructs a toSecurityUserUI as a child of 'parent', with the
27
* name 'name' and widget flags set to 'f'.
29
toSecurityUserUI::toSecurityUserUI( QWidget* parent, const char* name, WFlags fl )
30
: QWidget( parent, name, fl )
33
setName( "toSecurityUserUI" );
34
toSecurityUserUILayout = new QGridLayout( this, 1, 1, 11, 6, "toSecurityUserUILayout");
36
NameLabel = new QLabel( this, "NameLabel" );
38
toSecurityUserUILayout->addWidget( NameLabel, 0, 0 );
40
ProfileLabel = new QLabel( this, "ProfileLabel" );
42
toSecurityUserUILayout->addWidget( ProfileLabel, 0, 3 );
44
Profile = new QComboBox( FALSE, this, "Profile" );
46
toSecurityUserUILayout->addMultiCellWidget( Profile, 0, 0, 4, 5 );
48
Name = new QLineEdit( this, "Name" );
50
toSecurityUserUILayout->addMultiCellWidget( Name, 0, 0, 1, 2 );
51
Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
52
toSecurityUserUILayout->addItem( Spacer4, 6, 3 );
54
Authentication = new QTabWidget( this, "Authentication" );
55
Authentication->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, Authentication->sizePolicy().hasHeightForWidth() ) );
57
PasswordTab = new QWidget( Authentication, "PasswordTab" );
58
PasswordTabLayout = new QGridLayout( PasswordTab, 1, 1, 11, 6, "PasswordTabLayout");
60
TextLabel4 = new QLabel( PasswordTab, "TextLabel4" );
62
PasswordTabLayout->addWidget( TextLabel4, 0, 0 );
64
Password = new QLineEdit( PasswordTab, "Password" );
65
Password->setEchoMode( QLineEdit::Password );
67
PasswordTabLayout->addWidget( Password, 0, 1 );
69
Password2 = new QLineEdit( PasswordTab, "Password2" );
70
Password2->setEchoMode( QLineEdit::Password );
72
PasswordTabLayout->addWidget( Password2, 1, 1 );
74
TextLabel4_2 = new QLabel( PasswordTab, "TextLabel4_2" );
76
PasswordTabLayout->addWidget( TextLabel4_2, 1, 0 );
77
Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
78
PasswordTabLayout->addItem( Spacer1, 1, 2 );
80
ExpirePassword = new QCheckBox( PasswordTab, "ExpirePassword" );
82
PasswordTabLayout->addWidget( ExpirePassword, 2, 0 );
83
Authentication->insertTab( PasswordTab, QString::fromLatin1("") );
85
ExternalTab = new QWidget( Authentication, "ExternalTab" );
86
ExternalTabLayout = new QGridLayout( ExternalTab, 1, 1, 11, 6, "ExternalTabLayout");
88
TextLabel3 = new QLabel( ExternalTab, "TextLabel3" );
90
ExternalTabLayout->addWidget( TextLabel3, 0, 0 );
91
Authentication->insertTab( ExternalTab, QString::fromLatin1("") );
93
GlobalTab = new QWidget( Authentication, "GlobalTab" );
94
GlobalTabLayout = new QGridLayout( GlobalTab, 1, 1, 11, 6, "GlobalTabLayout");
96
GlobalName = new QLineEdit( GlobalTab, "GlobalName" );
98
GlobalTabLayout->addWidget( GlobalName, 1, 0 );
100
TextLabel1 = new QLabel( GlobalTab, "TextLabel1" );
102
GlobalTabLayout->addWidget( TextLabel1, 0, 0 );
103
Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
104
GlobalTabLayout->addItem( Spacer5, 2, 0 );
105
Authentication->insertTab( GlobalTab, QString::fromLatin1("") );
107
toSecurityUserUILayout->addMultiCellWidget( Authentication, 1, 1, 0, 5 );
109
TextLabel6_2 = new QLabel( this, "TextLabel6_2" );
111
toSecurityUserUILayout->addMultiCellWidget( TextLabel6_2, 3, 3, 3, 4 );
113
Locked = new QCheckBox( this, "Locked" );
115
toSecurityUserUILayout->addMultiCellWidget( Locked, 5, 5, 0, 5 );
117
TempSpace = new QComboBox( FALSE, this, "TempSpace" );
119
toSecurityUserUILayout->addWidget( TempSpace, 3, 5 );
121
Line1 = new QFrame( this, "Line1" );
122
Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );
124
toSecurityUserUILayout->addMultiCellWidget( Line1, 4, 4, 0, 5 );
126
TextLabel6 = new QLabel( this, "TextLabel6" );
128
toSecurityUserUILayout->addMultiCellWidget( TextLabel6, 3, 3, 0, 1 );
130
DefaultSpace = new QComboBox( FALSE, this, "DefaultSpace" );
132
toSecurityUserUILayout->addWidget( DefaultSpace, 3, 2 );
134
Line2 = new QFrame( this, "Line2" );
135
Line2->setFrameStyle( QFrame::HLine | QFrame::Sunken );
137
toSecurityUserUILayout->addMultiCellWidget( Line2, 2, 2, 0, 5 );
139
resize( QSize(560, 480).expandedTo(minimumSizeHint()) );
140
clearWState( WState_Polished );
143
setTabOrder( Name, Profile );
144
setTabOrder( Profile, Authentication );
145
setTabOrder( Authentication, Password );
146
setTabOrder( Password, Password2 );
147
setTabOrder( Password2, ExpirePassword );
148
setTabOrder( ExpirePassword, GlobalName );
149
setTabOrder( GlobalName, DefaultSpace );
150
setTabOrder( DefaultSpace, TempSpace );
151
setTabOrder( TempSpace, Locked );
154
NameLabel->setBuddy( Name );
155
ProfileLabel->setBuddy( Profile );
156
TextLabel4->setBuddy( Password );
157
TextLabel4_2->setBuddy( Password2 );
158
TextLabel1->setBuddy( GlobalName );
159
TextLabel6_2->setBuddy( TempSpace );
160
TextLabel6->setBuddy( DefaultSpace );
164
* Destroys the object and frees any allocated resources
166
toSecurityUserUI::~toSecurityUserUI()
168
// no need to delete child widgets, Qt does it all for us
172
* Sets the strings of the subwidgets using the current
175
void toSecurityUserUI::languageChange()
177
setCaption( tr( "Form1" ) );
178
NameLabel->setText( tr( "&Name" ) );
179
ProfileLabel->setText( tr( "P&rofile" ) );
180
TextLabel4->setText( tr( "Enter Password" ) );
181
TextLabel4_2->setText( tr( "Confirm Password" ) );
182
ExpirePassword->setText( tr( "Expire Password" ) );
183
Authentication->changeTab( PasswordTab, tr( "&Password" ) );
184
TextLabel3->setText( tr( "User authenticated by the operating system" ) );
185
Authentication->changeTab( ExternalTab, tr( "&External" ) );
186
TextLabel1->setText( tr( "&X.500 External Name" ) );
187
Authentication->changeTab( GlobalTab, tr( "&Global" ) );
188
TextLabel6_2->setText( tr( "&Temporary Tablespace" ) );
189
Locked->setText( tr( "&Account Locked" ) );
190
TextLabel6->setText( tr( "&Default Tablespace" ) );