~ubuntu-branches/ubuntu/wily/tora/wily-proposed

« back to all changes in this revision

Viewing changes to src/tosecurityuserui.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Albin Tonnerre
  • Date: 2007-05-29 13:13:36 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529131336-85ygaddivvmkd3xc
Tags: 1.3.21pre22-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules: call dh_iconcache
  - Remove g++ build dependency
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
** Form implementation generated from reading ui file '../../src/tosecurityuserui.ui'
 
3
**
 
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 $)
 
6
**
 
7
** WARNING! All changes made in this file will be lost!
 
8
****************************************************************************/
 
9
 
 
10
#include "tosecurityuserui.h"
 
11
 
 
12
#include <qvariant.h>
 
13
#include <qpushbutton.h>
 
14
#include <qlabel.h>
 
15
#include <qcombobox.h>
 
16
#include <qlineedit.h>
 
17
#include <qtabwidget.h>
 
18
#include <qcheckbox.h>
 
19
#include <qframe.h>
 
20
#include <qlayout.h>
 
21
#include <qtooltip.h>
 
22
#include <qwhatsthis.h>
 
23
#include "toeditwidget.h"
 
24
 
 
25
/*
 
26
 *  Constructs a toSecurityUserUI as a child of 'parent', with the
 
27
 *  name 'name' and widget flags set to 'f'.
 
28
 */
 
29
toSecurityUserUI::toSecurityUserUI( QWidget* parent, const char* name, WFlags fl )
 
30
    : QWidget( parent, name, fl )
 
31
{
 
32
    if ( !name )
 
33
        setName( "toSecurityUserUI" );
 
34
    toSecurityUserUILayout = new QGridLayout( this, 1, 1, 11, 6, "toSecurityUserUILayout"); 
 
35
 
 
36
    NameLabel = new QLabel( this, "NameLabel" );
 
37
 
 
38
    toSecurityUserUILayout->addWidget( NameLabel, 0, 0 );
 
39
 
 
40
    ProfileLabel = new QLabel( this, "ProfileLabel" );
 
41
 
 
42
    toSecurityUserUILayout->addWidget( ProfileLabel, 0, 3 );
 
43
 
 
44
    Profile = new QComboBox( FALSE, this, "Profile" );
 
45
 
 
46
    toSecurityUserUILayout->addMultiCellWidget( Profile, 0, 0, 4, 5 );
 
47
 
 
48
    Name = new QLineEdit( this, "Name" );
 
49
 
 
50
    toSecurityUserUILayout->addMultiCellWidget( Name, 0, 0, 1, 2 );
 
51
    Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
 
52
    toSecurityUserUILayout->addItem( Spacer4, 6, 3 );
 
53
 
 
54
    Authentication = new QTabWidget( this, "Authentication" );
 
55
    Authentication->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, Authentication->sizePolicy().hasHeightForWidth() ) );
 
56
 
 
57
    PasswordTab = new QWidget( Authentication, "PasswordTab" );
 
58
    PasswordTabLayout = new QGridLayout( PasswordTab, 1, 1, 11, 6, "PasswordTabLayout"); 
 
59
 
 
60
    TextLabel4 = new QLabel( PasswordTab, "TextLabel4" );
 
61
 
 
62
    PasswordTabLayout->addWidget( TextLabel4, 0, 0 );
 
63
 
 
64
    Password = new QLineEdit( PasswordTab, "Password" );
 
65
    Password->setEchoMode( QLineEdit::Password );
 
66
 
 
67
    PasswordTabLayout->addWidget( Password, 0, 1 );
 
68
 
 
69
    Password2 = new QLineEdit( PasswordTab, "Password2" );
 
70
    Password2->setEchoMode( QLineEdit::Password );
 
71
 
 
72
    PasswordTabLayout->addWidget( Password2, 1, 1 );
 
73
 
 
74
    TextLabel4_2 = new QLabel( PasswordTab, "TextLabel4_2" );
 
75
 
 
76
    PasswordTabLayout->addWidget( TextLabel4_2, 1, 0 );
 
77
    Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
 
78
    PasswordTabLayout->addItem( Spacer1, 1, 2 );
 
79
 
 
80
    ExpirePassword = new QCheckBox( PasswordTab, "ExpirePassword" );
 
81
 
 
82
    PasswordTabLayout->addWidget( ExpirePassword, 2, 0 );
 
83
    Authentication->insertTab( PasswordTab, QString::fromLatin1("") );
 
84
 
 
85
    ExternalTab = new QWidget( Authentication, "ExternalTab" );
 
86
    ExternalTabLayout = new QGridLayout( ExternalTab, 1, 1, 11, 6, "ExternalTabLayout"); 
 
87
 
 
88
    TextLabel3 = new QLabel( ExternalTab, "TextLabel3" );
 
89
 
 
90
    ExternalTabLayout->addWidget( TextLabel3, 0, 0 );
 
91
    Authentication->insertTab( ExternalTab, QString::fromLatin1("") );
 
92
 
 
93
    GlobalTab = new QWidget( Authentication, "GlobalTab" );
 
94
    GlobalTabLayout = new QGridLayout( GlobalTab, 1, 1, 11, 6, "GlobalTabLayout"); 
 
95
 
 
96
    GlobalName = new QLineEdit( GlobalTab, "GlobalName" );
 
97
 
 
98
    GlobalTabLayout->addWidget( GlobalName, 1, 0 );
 
99
 
 
100
    TextLabel1 = new QLabel( GlobalTab, "TextLabel1" );
 
101
 
 
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("") );
 
106
 
 
107
    toSecurityUserUILayout->addMultiCellWidget( Authentication, 1, 1, 0, 5 );
 
108
 
 
109
    TextLabel6_2 = new QLabel( this, "TextLabel6_2" );
 
110
 
 
111
    toSecurityUserUILayout->addMultiCellWidget( TextLabel6_2, 3, 3, 3, 4 );
 
112
 
 
113
    Locked = new QCheckBox( this, "Locked" );
 
114
 
 
115
    toSecurityUserUILayout->addMultiCellWidget( Locked, 5, 5, 0, 5 );
 
116
 
 
117
    TempSpace = new QComboBox( FALSE, this, "TempSpace" );
 
118
 
 
119
    toSecurityUserUILayout->addWidget( TempSpace, 3, 5 );
 
120
 
 
121
    Line1 = new QFrame( this, "Line1" );
 
122
    Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );
 
123
 
 
124
    toSecurityUserUILayout->addMultiCellWidget( Line1, 4, 4, 0, 5 );
 
125
 
 
126
    TextLabel6 = new QLabel( this, "TextLabel6" );
 
127
 
 
128
    toSecurityUserUILayout->addMultiCellWidget( TextLabel6, 3, 3, 0, 1 );
 
129
 
 
130
    DefaultSpace = new QComboBox( FALSE, this, "DefaultSpace" );
 
131
 
 
132
    toSecurityUserUILayout->addWidget( DefaultSpace, 3, 2 );
 
133
 
 
134
    Line2 = new QFrame( this, "Line2" );
 
135
    Line2->setFrameStyle( QFrame::HLine | QFrame::Sunken );
 
136
 
 
137
    toSecurityUserUILayout->addMultiCellWidget( Line2, 2, 2, 0, 5 );
 
138
    languageChange();
 
139
    resize( QSize(560, 480).expandedTo(minimumSizeHint()) );
 
140
    clearWState( WState_Polished );
 
141
 
 
142
    // tab order
 
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 );
 
152
 
 
153
    // buddies
 
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 );
 
161
}
 
162
 
 
163
/*
 
164
 *  Destroys the object and frees any allocated resources
 
165
 */
 
166
toSecurityUserUI::~toSecurityUserUI()
 
167
{
 
168
    // no need to delete child widgets, Qt does it all for us
 
169
}
 
170
 
 
171
/*
 
172
 *  Sets the strings of the subwidgets using the current
 
173
 *  language.
 
174
 */
 
175
void toSecurityUserUI::languageChange()
 
176
{
 
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" ) );
 
191
}
 
192