-rw-r--r-- | pwmanager/pwmanager/addentrywnd_emb.cpp | 213 | ||||
-rw-r--r-- | pwmanager/pwmanager/addentrywnd_emb.h | 73 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwgenwnd_emb.cpp | 137 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwgenwnd_emb.h | 59 |
4 files changed, 482 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/addentrywnd_emb.cpp b/pwmanager/pwmanager/addentrywnd_emb.cpp new file mode 100644 index 0000000..3a40cfc --- a/dev/null +++ b/pwmanager/pwmanager/addentrywnd_emb.cpp | |||
@@ -0,0 +1,213 @@ | |||
1 | /* | ||
2 | This file is part of PwManager/Platform independent. | ||
3 | Copyright (c) 2004 Ulf Schenk | ||
4 | |||
5 | This program is free software; you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation; either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program; if not, write to the Free Software | ||
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | |||
19 | As a special exception, permission is given to link this program | ||
20 | with any edition of Qt, and distribute the resulting executable, | ||
21 | without including the source code for Qt in the source distribution. | ||
22 | |||
23 | $Id$ | ||
24 | */ | ||
25 | |||
26 | #include "addentrywnd_emb.h" | ||
27 | |||
28 | #include <qlayout.h> | ||
29 | #include <qlabel.h> | ||
30 | #include <qtabwidget.h> | ||
31 | #include <qgroupbox.h> | ||
32 | #include <klocale.h> | ||
33 | #include <kcombobox.h> | ||
34 | #include <klineedit.h> | ||
35 | #include <qpushbutton.h> | ||
36 | |||
37 | /* | ||
38 | * Constructs a addEntryWnd as a child of 'parent', with the | ||
39 | * name 'name' and widget flags set to 'f'. | ||
40 | * | ||
41 | * The dialog will by default be modeless, unless you set 'modal' to | ||
42 | * TRUE to construct a modal dialog. | ||
43 | */ | ||
44 | addEntryWnd::addEntryWnd( QWidget* parent, const char* name) | ||
45 | : KDialogBase( KDialogBase::Plain, i18n( "Edit Password" ), | ||
46 | KDialogBase::Ok | KDialogBase::Cancel, | ||
47 | KDialogBase::Ok, parent, name, true ) | ||
48 | { | ||
49 | QWidget *page = plainPage(); | ||
50 | QVBoxLayout *pageLayout = new QVBoxLayout( page ); | ||
51 | |||
52 | QTabWidget* mTabWidget = new QTabWidget( page ); | ||
53 | pageLayout->addWidget( mTabWidget ); | ||
54 | |||
55 | //////////////////////////////////////////////////////////////////// | ||
56 | // This is the Password tab | ||
57 | QWidget *tab1 = new QWidget( mTabWidget ); | ||
58 | |||
59 | QGridLayout *layout = new QGridLayout( tab1, 3, 1 ); | ||
60 | layout->setMargin( KDialogBase::marginHint() ); | ||
61 | layout->setSpacing( KDialogBase::spacingHint() ); | ||
62 | |||
63 | |||
64 | |||
65 | int i = 0; | ||
66 | descLineEdit = new KLineEdit( tab1, "descLineEdit" ); | ||
67 | QLabel* label = new QLabel( descLineEdit, i18n("Description:"), tab1 ); | ||
68 | layout->addWidget( label, i, 0 ); | ||
69 | layout->addWidget( descLineEdit, i, 1 ); | ||
70 | i++; | ||
71 | |||
72 | categoryComboBox = new KComboBox( tab1 ); | ||
73 | label = new QLabel( categoryComboBox, i18n("Category:"), tab1 ); | ||
74 | layout->addWidget( label, i, 0 ); | ||
75 | layout->addWidget( categoryComboBox, i, 1 ); | ||
76 | i++; | ||
77 | categoryComboBox->setEditable( TRUE ); | ||
78 | categoryComboBox->setSizeLimit( 100 ); | ||
79 | categoryComboBox->setAutoCompletion( TRUE ); | ||
80 | categoryComboBox->setDuplicatesEnabled( FALSE ); | ||
81 | |||
82 | usernameLineEdit = new KLineEdit( tab1, "usernameLineEdit" ); | ||
83 | label = new QLabel( usernameLineEdit, i18n("Username:"), tab1 ); | ||
84 | layout->addWidget( label, i, 0 ); | ||
85 | layout->addWidget( usernameLineEdit, i, 1 ); | ||
86 | i++; | ||
87 | |||
88 | pwLineEdit = new KLineEdit( tab1, "pwLineEdit" ); | ||
89 | pwLineEdit->setEchoMode( QLineEdit::Password ); | ||
90 | label = new QLabel( pwLineEdit, i18n("Password:"), tab1 ); | ||
91 | layout->addWidget( label, i, 0 ); | ||
92 | layout->addWidget( pwLineEdit, i, 1 ); | ||
93 | i++; | ||
94 | |||
95 | revealButton = new QPushButton( i18n("&Reveal"), tab1, "revealButton" ); | ||
96 | revealButton->setToggleButton( TRUE ); | ||
97 | layout->addWidget( revealButton, i, 0 ); | ||
98 | |||
99 | generateButton = new QPushButton( i18n("&Generate"), tab1, "generateButton" ); | ||
100 | layout->addWidget( generateButton, i, 1 ); | ||
101 | i++; | ||
102 | |||
103 | urlLineEdit = new KLineEdit( tab1, "urlLineEdit" ); | ||
104 | label = new QLabel( urlLineEdit, i18n("URL:"), tab1 ); | ||
105 | layout->addWidget( label, i, 0 ); | ||
106 | layout->addWidget( urlLineEdit, i, 1 ); | ||
107 | i++; | ||
108 | |||
109 | mTabWidget->addTab( tab1, i18n( "&Password" ) ); | ||
110 | |||
111 | |||
112 | //////////////////////////////////////////////////////////////////// | ||
113 | // This is the Comment tab | ||
114 | QWidget *tab2 = new QWidget( mTabWidget ); | ||
115 | |||
116 | layout = new QGridLayout( tab2, 3, 1 ); | ||
117 | layout->setMargin( KDialogBase::marginHintSmall() ); | ||
118 | layout->setSpacing( KDialogBase::spacingHintSmall() ); | ||
119 | i = 0; | ||
120 | |||
121 | |||
122 | |||
123 | groupBox1 = new QGroupBox( tab2, "groupBox1" ); | ||
124 | commentDummy = new QLabel( groupBox1, "commentDummy" ); | ||
125 | commentDummy->setText( QString::null ); | ||
126 | |||
127 | groupBox1->setTitle( i18n( "Comment:" ) ); | ||
128 | |||
129 | layout->addMultiCellWidget( groupBox1, i, i, 0, 1 ); | ||
130 | i++; | ||
131 | |||
132 | |||
133 | advancedCommentButton = new QPushButton( i18n("advanced comment"), groupBox1, "advancedCommentButton" ); | ||
134 | advancedCommentButton->setToggleButton( FALSE ); | ||
135 | layout->addMultiCellWidget( advancedCommentButton, i, i, 0, 1 ); | ||
136 | i++; | ||
137 | |||
138 | |||
139 | mTabWidget->addTab( tab2, i18n( "&Comments" ) ); | ||
140 | |||
141 | |||
142 | //////////////////////////////////////////////////////////////////// | ||
143 | // This is the Launcher tab | ||
144 | QWidget *tab3 = new QWidget( mTabWidget ); | ||
145 | |||
146 | layout = new QGridLayout( tab3, 3, 1 ); | ||
147 | layout->setMargin( KDialogBase::marginHintSmall() ); | ||
148 | layout->setSpacing( KDialogBase::spacingHintSmall() ); | ||
149 | i = 0; | ||
150 | |||
151 | launcherLineEdit = new KLineEdit( tab3, "launcherLineEdit" ); | ||
152 | label = new QLabel( launcherLineEdit, i18n("Launcher:"), tab3 ); | ||
153 | |||
154 | QLabel* label1 = new QLabel( launcherLineEdit, i18n("$d = Description"), tab3 ); | ||
155 | QLabel* label2 = new QLabel( launcherLineEdit, i18n("$n = Username"), tab3 ); | ||
156 | QLabel* label3 = new QLabel( launcherLineEdit, i18n("$c = Comment"), tab3 ); | ||
157 | QLabel* label4 = new QLabel( launcherLineEdit, i18n("$u = URL"), tab3 ); | ||
158 | QLabel* label5 = new QLabel( launcherLineEdit, i18n("$p = Password"), tab3 ); | ||
159 | |||
160 | label = new QLabel( launcherLineEdit, i18n("Launcher:"), tab3 ); | ||
161 | |||
162 | layout->addWidget( label1, i, 0 ); | ||
163 | layout->addWidget( label2, i, 1 ); | ||
164 | i++; | ||
165 | layout->addWidget( label3, i, 0 ); | ||
166 | layout->addWidget( label4, i, 1 ); | ||
167 | i++; | ||
168 | layout->addWidget( label5, i, 0 ); | ||
169 | i++; | ||
170 | |||
171 | layout->addWidget( label, i, 0 ); | ||
172 | layout->addWidget( launcherLineEdit, i, 1 ); | ||
173 | i++; | ||
174 | |||
175 | |||
176 | mTabWidget->addTab( tab3, i18n( "&Launcher" ) ); | ||
177 | |||
178 | // signals and slots connections | ||
179 | connect( generateButton, SIGNAL( clicked() ), this, SLOT( generateButton_slot() ) ); | ||
180 | connect( revealButton, SIGNAL( toggled(bool) ), this, SLOT( revealButton_slot() ) ); | ||
181 | connect( advancedCommentButton, SIGNAL( toggled(bool) ), this, SLOT( advancedCommentButton_slot(bool) ) ); | ||
182 | |||
183 | } | ||
184 | |||
185 | /* | ||
186 | * Destroys the object and frees any allocated resources | ||
187 | */ | ||
188 | addEntryWnd::~addEntryWnd() | ||
189 | { | ||
190 | // no need to delete child widgets, Qt does it all for us | ||
191 | } | ||
192 | |||
193 | void addEntryWnd::slotOk() | ||
194 | { | ||
195 | qWarning( "addEntryWnd::slotOk(): Not implemented yet" ); | ||
196 | } | ||
197 | |||
198 | void addEntryWnd::revealButton_slot() | ||
199 | { | ||
200 | qWarning( "addEntryWnd::revealButton_slot(): Not implemented yet" ); | ||
201 | } | ||
202 | |||
203 | void addEntryWnd::generateButton_slot() | ||
204 | { | ||
205 | qWarning( "addEntryWnd::generateButton_slot(): Not implemented yet" ); | ||
206 | } | ||
207 | |||
208 | void addEntryWnd::advancedCommentButton_slot(bool) | ||
209 | { | ||
210 | qWarning( "addEntryWnd::advancedCommentButton_slot(bool): Not implemented yet" ); | ||
211 | } | ||
212 | |||
213 | |||
diff --git a/pwmanager/pwmanager/addentrywnd_emb.h b/pwmanager/pwmanager/addentrywnd_emb.h new file mode 100644 index 0000000..e368721 --- a/dev/null +++ b/pwmanager/pwmanager/addentrywnd_emb.h | |||
@@ -0,0 +1,73 @@ | |||
1 | /* | ||
2 | This file is part of PwManager/Platform independent. | ||
3 | Copyright (c) 2004 Ulf Schenk | ||
4 | |||
5 | This program is free software; you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation; either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program; if not, write to the Free Software | ||
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | |||
19 | As a special exception, permission is given to link this program | ||
20 | with any edition of Qt, and distribute the resulting executable, | ||
21 | without including the source code for Qt in the source distribution. | ||
22 | |||
23 | $Id$ | ||
24 | */ | ||
25 | |||
26 | #ifndef ADDENTRYWND_EMB_H | ||
27 | #define ADDENTRYWND_EMB_H | ||
28 | |||
29 | #include <qvariant.h> | ||
30 | #include <kdialogbase.h> | ||
31 | |||
32 | class QVBoxLayout; | ||
33 | class QHBoxLayout; | ||
34 | class QGridLayout; | ||
35 | class QSpacerItem; | ||
36 | class KLineEdit; | ||
37 | class QPushButton; | ||
38 | class KComboBox; | ||
39 | class QLabel; | ||
40 | class QGroupBox; | ||
41 | |||
42 | class addEntryWnd : public KDialogBase | ||
43 | { | ||
44 | Q_OBJECT | ||
45 | |||
46 | public: | ||
47 | addEntryWnd( QWidget* parent = 0, const char* name = 0); | ||
48 | ~addEntryWnd(); | ||
49 | |||
50 | KLineEdit* launcherLineEdit; | ||
51 | QPushButton* generateButton; | ||
52 | KLineEdit* descLineEdit; | ||
53 | KComboBox* categoryComboBox; | ||
54 | KLineEdit* usernameLineEdit; | ||
55 | KLineEdit* pwLineEdit; | ||
56 | KLineEdit* urlLineEdit; | ||
57 | |||
58 | QPushButton* revealButton; | ||
59 | QGroupBox* groupBox1; | ||
60 | QLabel* commentDummy; | ||
61 | QPushButton* advancedCommentButton; | ||
62 | |||
63 | public slots: | ||
64 | virtual void revealButton_slot(); | ||
65 | virtual void generateButton_slot(); | ||
66 | virtual void advancedCommentButton_slot(bool on); | ||
67 | |||
68 | protected slots: | ||
69 | virtual void slotOk(); | ||
70 | |||
71 | }; | ||
72 | |||
73 | #endif // ADDENTRYWND_H | ||
diff --git a/pwmanager/pwmanager/pwgenwnd_emb.cpp b/pwmanager/pwmanager/pwgenwnd_emb.cpp new file mode 100644 index 0000000..9655e9f --- a/dev/null +++ b/pwmanager/pwmanager/pwgenwnd_emb.cpp | |||
@@ -0,0 +1,137 @@ | |||
1 | /* | ||
2 | This file is part of PwManager/Platform independent. | ||
3 | Copyright (c) 2004 Ulf Schenk | ||
4 | |||
5 | This program is free software; you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation; either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program; if not, write to the Free Software | ||
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | |||
19 | As a special exception, permission is given to link this program | ||
20 | with any edition of Qt, and distribute the resulting executable, | ||
21 | without including the source code for Qt in the source distribution. | ||
22 | |||
23 | $Id$ | ||
24 | */ | ||
25 | |||
26 | #include "pwgenwnd_emb.h" | ||
27 | |||
28 | #include <qpushbutton.h> | ||
29 | #include <qgroupbox.h> | ||
30 | #include <qcheckbox.h> | ||
31 | #include <qlabel.h> | ||
32 | #include <qlineedit.h> | ||
33 | #include <qspinbox.h> | ||
34 | #include <qlayout.h> | ||
35 | |||
36 | #include "klocale.h" | ||
37 | |||
38 | /* | ||
39 | * Constructs a pwGenWnd as a child of 'parent', with the | ||
40 | * name 'name'. | ||
41 | * | ||
42 | */ | ||
43 | pwGenWnd::pwGenWnd( QWidget* parent, const char* name) | ||
44 | : KDialogBase( KDialogBase::Plain, i18n( "Password generator" ), | ||
45 | KDialogBase::Ok | KDialogBase::Cancel, | ||
46 | KDialogBase::Ok, parent, name, true ) | ||
47 | { | ||
48 | if ( !name ) | ||
49 | setName( "pwGenWnd" ); | ||
50 | |||
51 | QWidget *page = plainPage(); | ||
52 | QVBoxLayout* pwGenWndLayout = new QVBoxLayout( page, 11, 6, "pwGenWndLayout"); | ||
53 | |||
54 | QGroupBox* groupBox1 = new QGroupBox( page, "groupBox1" ); | ||
55 | groupBox1->setTitle( i18n( "Character set:" ) ); | ||
56 | groupBox1->setColumnLayout(0, Qt::Vertical ); | ||
57 | groupBox1->layout()->setSpacing( 6 ); | ||
58 | groupBox1->layout()->setMargin( 11 ); | ||
59 | QVBoxLayout* groupBox1Layout = new QVBoxLayout( groupBox1->layout() ); | ||
60 | groupBox1Layout->setAlignment( Qt::AlignTop ); | ||
61 | |||
62 | int_charLowerCheckBox = new QCheckBox( i18n("Lowercase (abc)"), groupBox1, "int_charLowerCheckBox" ); | ||
63 | int_charLowerCheckBox->setChecked( TRUE ); | ||
64 | groupBox1Layout->addWidget( int_charLowerCheckBox ); | ||
65 | |||
66 | int_charUpperCheckBox = new QCheckBox( i18n("Uppercase (ABC)"), groupBox1, "int_charUpperCheckBox" ); | ||
67 | int_charUpperCheckBox->setChecked( TRUE ); | ||
68 | groupBox1Layout->addWidget( int_charUpperCheckBox ); | ||
69 | |||
70 | |||
71 | int_charNumCheckBox = new QCheckBox( i18n("Numbers (123)"), groupBox1, "int_charNumCheckBox" ); | ||
72 | int_charNumCheckBox->setChecked( TRUE ); | ||
73 | groupBox1Layout->addWidget( int_charNumCheckBox ); | ||
74 | |||
75 | int_charSpecCheckBox = new QCheckBox( i18n("Special characters:"), groupBox1, "int_charSpecCheckBox" ); | ||
76 | groupBox1Layout->addWidget( int_charSpecCheckBox ); | ||
77 | |||
78 | QLabel* textLabel7 = new QLabel( groupBox1, "textLabel7" ); | ||
79 | QString st("\x21\x22\xc2\xa7\x24\x25\x26\x2f\x28\x29\x3d\x3f\x2c\x2e\x2d\x3b\x3a\x5f\x2b"); | ||
80 | textLabel7->setText( st.utf8() ); | ||
81 | groupBox1Layout->addWidget( textLabel7 ); | ||
82 | |||
83 | int_charBlankCheckBox = new QCheckBox( i18n( "Spaces (blank characters)"), groupBox1, "int_charBlankCheckBox" ); | ||
84 | groupBox1Layout->addWidget( int_charBlankCheckBox ); | ||
85 | |||
86 | QHBoxLayout* layout7 = new QHBoxLayout( 0, 0, 6, "layout7"); | ||
87 | |||
88 | int_charUserCheckBox = new QCheckBox( i18n("User defined:"), groupBox1, "int_charUserCheckBox" ); | ||
89 | layout7->addWidget( int_charUserCheckBox ); | ||
90 | |||
91 | int_userDefLineEdit = new QLineEdit( groupBox1, "int_userDefLineEdit" ); | ||
92 | int_userDefLineEdit->setEnabled( FALSE ); | ||
93 | layout7->addWidget( int_userDefLineEdit ); | ||
94 | groupBox1Layout->addLayout( layout7 ); | ||
95 | pwGenWndLayout->addWidget( groupBox1 ); | ||
96 | |||
97 | |||
98 | QHBoxLayout* layout8 = new QHBoxLayout( 0, 0, 6, "layout8"); | ||
99 | |||
100 | int_lenSpinBox = new QSpinBox( page, "int_lenSpinBox" ); | ||
101 | QLabel* textLabel2 = new QLabel( int_lenSpinBox, i18n("Password Length:"), page, "textLabel2" ); | ||
102 | layout8->addWidget( textLabel2 ); | ||
103 | |||
104 | int_lenSpinBox->setMaxValue( 9999 ); | ||
105 | int_lenSpinBox->setMinValue( 1 ); | ||
106 | int_lenSpinBox->setValue( 8 ); | ||
107 | layout8->addWidget( int_lenSpinBox ); | ||
108 | pwGenWndLayout->addLayout( layout8 ); | ||
109 | |||
110 | int_filterCheckBox = new QCheckBox( i18n( "Enable Filtering to get better passwords" ), page, "int_filterCheckBox" ); | ||
111 | int_filterCheckBox->setChecked( TRUE ); | ||
112 | pwGenWndLayout->addWidget( int_filterCheckBox ); | ||
113 | |||
114 | setButtonText( KDialogBase::Ok, "&Generate now" ); | ||
115 | |||
116 | // signals and slots connections | ||
117 | connect( int_charUserCheckBox, SIGNAL( toggled(bool) ), int_userDefLineEdit, SLOT( setEnabled(bool) ) ); | ||
118 | } | ||
119 | |||
120 | /* | ||
121 | * Destroys the object and frees any allocated resources | ||
122 | */ | ||
123 | pwGenWnd::~pwGenWnd() | ||
124 | { | ||
125 | // no need to delete child widgets, Qt does it all for us | ||
126 | } | ||
127 | |||
128 | void pwGenWnd::cancelButton_slot() | ||
129 | { | ||
130 | qWarning( "pwGenWnd::cancelButton_slot(): Not implemented yet" ); | ||
131 | } | ||
132 | |||
133 | void pwGenWnd::genButton_slot() | ||
134 | { | ||
135 | qWarning( "pwGenWnd::genButton_slot(): Not implemented yet" ); | ||
136 | } | ||
137 | |||
diff --git a/pwmanager/pwmanager/pwgenwnd_emb.h b/pwmanager/pwmanager/pwgenwnd_emb.h new file mode 100644 index 0000000..dcc1787 --- a/dev/null +++ b/pwmanager/pwmanager/pwgenwnd_emb.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /* | ||
2 | This file is part of PwManager/Platform independent. | ||
3 | Copyright (c) 2004 Ulf Schenk | ||
4 | |||
5 | This program is free software; you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation; either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program; if not, write to the Free Software | ||
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | |||
19 | As a special exception, permission is given to link this program | ||
20 | with any edition of Qt, and distribute the resulting executable, | ||
21 | without including the source code for Qt in the source distribution. | ||
22 | |||
23 | $Id$ | ||
24 | */ | ||
25 | |||
26 | #ifndef PWGENWND_EMB_H | ||
27 | #define PWGENWND_EMB_H | ||
28 | |||
29 | #include <kdialogbase.h> | ||
30 | |||
31 | class QLineEdit; | ||
32 | class QSpinBox; | ||
33 | class QCheckBox; | ||
34 | |||
35 | class pwGenWnd : public KDialogBase | ||
36 | { | ||
37 | Q_OBJECT | ||
38 | |||
39 | public: | ||
40 | pwGenWnd( QWidget* parent = 0, const char* name = 0); | ||
41 | ~pwGenWnd(); | ||
42 | |||
43 | QCheckBox* int_charLowerCheckBox; | ||
44 | QCheckBox* int_charUpperCheckBox; | ||
45 | QCheckBox* int_charNumCheckBox; | ||
46 | QCheckBox* int_charSpecCheckBox; | ||
47 | QCheckBox* int_charBlankCheckBox; | ||
48 | QCheckBox* int_charUserCheckBox; | ||
49 | QLineEdit* int_userDefLineEdit; | ||
50 | QSpinBox* int_lenSpinBox; | ||
51 | QCheckBox* int_filterCheckBox; | ||
52 | |||
53 | public slots: | ||
54 | virtual void cancelButton_slot(); | ||
55 | virtual void genButton_slot(); | ||
56 | |||
57 | }; | ||
58 | |||
59 | #endif // PWGENWND_H | ||