summaryrefslogtreecommitdiffabout
authorulf69 <ulf69>2004-09-23 19:33:54 (UTC)
committer ulf69 <ulf69>2004-09-23 19:33:54 (UTC)
commit15c6615421bc50d6d54dc334c90944749c347d9e (patch) (unidiff)
tree9843c16340d2681dc529cca410472136ea1123fd
parentccf18890228a471d048d591c0d488e63c2de1ccc (diff)
downloadkdepimpi-15c6615421bc50d6d54dc334c90944749c347d9e.zip
kdepimpi-15c6615421bc50d6d54dc334c90944749c347d9e.tar.gz
kdepimpi-15c6615421bc50d6d54dc334c90944749c347d9e.tar.bz2
modified the add password dialog to fit on embedded devices
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/addentrywndimpl.cpp30
-rw-r--r--pwmanager/pwmanager/addentrywndimpl.h19
-rw-r--r--pwmanager/pwmanager/pwgenwndimpl.cpp25
-rw-r--r--pwmanager/pwmanager/pwgenwndimpl.h12
-rw-r--r--pwmanager/pwmanager/pwm.cpp5
-rw-r--r--pwmanager/pwmanager/pwmanagerE.pro8
6 files changed, 90 insertions, 9 deletions
diff --git a/pwmanager/pwmanager/addentrywndimpl.cpp b/pwmanager/pwmanager/addentrywndimpl.cpp
index 73ba36c..ffd301f 100644
--- a/pwmanager/pwmanager/addentrywndimpl.cpp
+++ b/pwmanager/pwmanager/addentrywndimpl.cpp
@@ -1,173 +1,199 @@
1/*************************************************************************** 1/***************************************************************************
2 * * 2 * *
3 * copyright (C) 2003, 2004 by Michael Buesch * 3 * copyright (C) 2003, 2004 by Michael Buesch *
4 * email: mbuesch@freenet.de * 4 * email: mbuesch@freenet.de *
5 * * 5 * *
6 * Many very good improvements and the original implementations of * 6 * Many very good improvements and the original implementations of *
7 * them came from Matt Scifo <mscifo@o1.com> * 7 * them came from Matt Scifo <mscifo@o1.com> *
8 * * 8 * *
9 * This program is free software; you can redistribute it and/or modify * 9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License version 2 * 10 * it under the terms of the GNU General Public License version 2 *
11 * as published by the Free Software Foundation. * 11 * as published by the Free Software Foundation. *
12 * * 12 * *
13 ***************************************************************************/ 13 ***************************************************************************/
14 14
15/*************************************************************************** 15/***************************************************************************
16 * copyright (C) 2004 by Ulf Schenk 16 * copyright (C) 2004 by Ulf Schenk
17 * This file is originaly based on version 1.0.1 of pwmanager 17 * This file is originaly based on version 1.0.1 of pwmanager
18 * and was modified to run on embedded devices that run microkde 18 * and was modified to run on embedded devices that run microkde
19 * 19 *
20 * $Id$ 20 * $Id$
21 **************************************************************************/ 21 **************************************************************************/
22 22
23#include "addentrywndimpl.h" 23#include "addentrywndimpl.h"
24#include "pwmexception.h" 24#include "pwmexception.h"
25#include "pwgenwndimpl.h" 25#include "pwgenwndimpl.h"
26#ifndef PWM_EMBEDDED 26#ifndef PWM_EMBEDDED
27#include "advcommeditimpl.h" 27#include "advcommeditimpl.h"
28#endif 28#endif
29#include "htmlgen.h" 29#include "htmlgen.h"
30 30
31#include <kmessagebox.h> 31#include <kmessagebox.h>
32#include <klocale.h> 32#include <klocale.h>
33 33
34#include <qpushbutton.h> 34#include <qpushbutton.h>
35#include <qlabel.h> 35#include <qlabel.h>
36 36
37 37#ifndef PWM_EMBEDDED
38AddEntryWndImpl::AddEntryWndImpl() 38AddEntryWndImpl::AddEntryWndImpl()
39#ifdef PWM_EMBEDDED
40 : addEntryWnd( 0, "AddEntryWndImpl", TRUE) 39 : addEntryWnd( 0, "AddEntryWndImpl", TRUE)
40#else
41AddEntryWndImpl::AddEntryWndImpl( QWidget* parent, const char* name)
42 : addEntryWnd( parent, name)
41#endif 43#endif
42{ 44{
43 editAdvCommentButton = 0; 45 editAdvCommentButton = 0;
44 commentTextEdit = 0; 46 commentTextEdit = 0;
45 switchComment(false); 47 switchComment(false);
46 pwGen = new PwGenWndImpl(this); 48 pwGen = new PwGenWndImpl(this);
47} 49}
48 50
49AddEntryWndImpl::~AddEntryWndImpl() 51AddEntryWndImpl::~AddEntryWndImpl()
50{ 52{
51 delete_ifnot_null(editAdvCommentButton); 53 delete_ifnot_null(editAdvCommentButton);
52 delete_ifnot_null(commentTextEdit); 54 delete_ifnot_null(commentTextEdit);
53 delete pwGen; 55 delete pwGen;
54} 56}
55 57
58#ifdef PWM_EMBEDDED
59void AddEntryWndImpl::slotOk()
60{
61 slotApply();
62
63 if (pwLineEdit->text().isEmpty()) {
64 KMessageBox::error(this,
65 i18n("Sorry, you haven't set a password."),
66 i18n("no password"));
67 return;
68 }
69
70 if (descLineEdit->text().isEmpty()) {
71 KMessageBox::error(this,
72 i18n("You haven't set a \"Description\"."),
73 i18n("Description not set"));
74 return;
75 }
76
77 KDialogBase::slotOk();
78}
79#else
80
56void AddEntryWndImpl::okButton_slot() 81void AddEntryWndImpl::okButton_slot()
57{ 82{
58 if (pwLineEdit->text().isEmpty()) { 83 if (pwLineEdit->text().isEmpty()) {
59 KMessageBox::error(this, 84 KMessageBox::error(this,
60 i18n("Sorry, you haven't set a password."), 85 i18n("Sorry, you haven't set a password."),
61 i18n("no password")); 86 i18n("no password"));
62 return; 87 return;
63 } 88 }
64 if (descLineEdit->text().isEmpty()) { 89 if (descLineEdit->text().isEmpty()) {
65 KMessageBox::error(this, 90 KMessageBox::error(this,
66 i18n 91 i18n
67 ("You haven't set a \"Description\"."), 92 ("You haven't set a \"Description\"."),
68 i18n("Description not set")); 93 i18n("Description not set"));
69 return; 94 return;
70 } 95 }
71 done(1); 96 done(1);
72} 97}
73 98
74void AddEntryWndImpl::cancelButton_slot() 99void AddEntryWndImpl::cancelButton_slot()
75{ 100{
76 done(2); 101 done(2);
77} 102}
103#endif
78 104
79void AddEntryWndImpl::setCurrCategory(const QString &cat) 105void AddEntryWndImpl::setCurrCategory(const QString &cat)
80{ 106{
81 int i, count = categoryComboBox->count(); 107 int i, count = categoryComboBox->count();
82 108
83 for (i = 0; i < count; ++i) { 109 for (i = 0; i < count; ++i) {
84 if (categoryComboBox->text(i) == cat) { 110 if (categoryComboBox->text(i) == cat) {
85 categoryComboBox->setCurrentItem(i); 111 categoryComboBox->setCurrentItem(i);
86 return; 112 return;
87 } 113 }
88 } 114 }
89 BUG(); 115 BUG();
90} 116}
91 117
92void AddEntryWndImpl::revealButton_slot() 118void AddEntryWndImpl::revealButton_slot()
93{ 119{
94 if (revealButton->isOn()) { 120 if (revealButton->isOn()) {
95 pwLineEdit->setEchoMode(QLineEdit::Normal); 121 pwLineEdit->setEchoMode(QLineEdit::Normal);
96 } else { 122 } else {
97 pwLineEdit->setEchoMode(QLineEdit::Password); 123 pwLineEdit->setEchoMode(QLineEdit::Password);
98 } 124 }
99} 125}
100 126
101void AddEntryWndImpl::generateButton_slot() 127void AddEntryWndImpl::generateButton_slot()
102{ 128{
103 if (!pwGen->exec()) 129 if (!pwGen->exec())
104 return; 130 return;
105 setPassword(pwGen->getPassword()); 131 setPassword(pwGen->getPassword());
106} 132}
107 133
108QString AddEntryWndImpl::getComment() 134QString AddEntryWndImpl::getComment()
109{ 135{
110 if (isAdvancedComment()) { 136 if (isAdvancedComment()) {
111 return advCommentDta; 137 return advCommentDta;
112 } 138 }
113 return commentTextEdit->text(); 139 return commentTextEdit->text();
114} 140}
115 141
116void AddEntryWndImpl::setComment(const QString &comm) 142void AddEntryWndImpl::setComment(const QString &comm)
117{ 143{
118 if (HtmlGen::isHtml(comm)) { 144 if (HtmlGen::isHtml(comm)) {
119 advancedCommentButton->setOn(true); 145 advancedCommentButton->setOn(true);
120 advCommentDta = comm; 146 advCommentDta = comm;
121 } else { 147 } else {
122 advancedCommentButton->setOn(false); 148 advancedCommentButton->setOn(false);
123 commentTextEdit->setText(comm); 149 commentTextEdit->setText(comm);
124 } 150 }
125} 151}
126 152
127void AddEntryWndImpl::advancedCommentButton_slot(bool on) 153void AddEntryWndImpl::advancedCommentButton_slot(bool on)
128{ 154{
129 switchComment(on); 155 switchComment(on);
130} 156}
131 157
132void AddEntryWndImpl::switchComment(bool toAdvanced) 158void AddEntryWndImpl::switchComment(bool toAdvanced)
133{ 159{
134 useAdvComment = toAdvanced; 160 useAdvComment = toAdvanced;
135 if (toAdvanced) { 161 if (toAdvanced) {
136 if (commentTextEdit) { 162 if (commentTextEdit) {
137 savedCommentText = commentTextEdit->text(); 163 savedCommentText = commentTextEdit->text();
138 delete_and_null(commentTextEdit); 164 delete_and_null(commentTextEdit);
139 } 165 }
140 if (editAdvCommentButton) 166 if (editAdvCommentButton)
141 return; 167 return;
142 editAdvCommentButton = new QPushButton(i18n("Edit advanced comment..."), 168 editAdvCommentButton = new QPushButton(i18n("Edit advanced comment..."),
143 commentDummy); 169 commentDummy);
144 editAdvCommentButton->resize(commentDummy->size().width(), 50); 170 editAdvCommentButton->resize(commentDummy->size().width(), 50);
145 connect(editAdvCommentButton, SIGNAL(clicked()), 171 connect(editAdvCommentButton, SIGNAL(clicked()),
146 this, SLOT(editAdvCommentButton_slot())); 172 this, SLOT(editAdvCommentButton_slot()));
147 editAdvCommentButton->show(); 173 editAdvCommentButton->show();
148 } else { 174 } else {
149 delete_ifnot_null(editAdvCommentButton); 175 delete_ifnot_null(editAdvCommentButton);
150 if (commentTextEdit) 176 if (commentTextEdit)
151 return; 177 return;
152#ifndef PWM_EMBEDDED 178#ifndef PWM_EMBEDDED
153 commentTextEdit = new QTextEdit(commentDummy); 179 commentTextEdit = new QTextEdit(commentDummy);
154 commentTextEdit->setTextFormat(Qt::PlainText); 180 commentTextEdit->setTextFormat(Qt::PlainText);
155#else 181#else
156 commentTextEdit = new QMultiLineEdit(commentDummy); 182 commentTextEdit = new QMultiLineEdit(commentDummy);
157#endif 183#endif
158 commentTextEdit->resize(commentDummy->size()); 184 commentTextEdit->resize(commentDummy->size());
159 commentTextEdit->setText(savedCommentText); 185 commentTextEdit->setText(savedCommentText);
160 commentTextEdit->show(); 186 commentTextEdit->show();
161 } 187 }
162} 188}
163 189
164void AddEntryWndImpl::editAdvCommentButton_slot() 190void AddEntryWndImpl::editAdvCommentButton_slot()
165{ 191{
166#ifndef PWM_EMBEDDED 192#ifndef PWM_EMBEDDED
167 AdvCommEditImpl editor(this); 193 AdvCommEditImpl editor(this);
168 editor.setHtmlDta(advCommentDta); 194 editor.setHtmlDta(advCommentDta);
169 if (editor.exec()) 195 if (editor.exec())
170 return; 196 return;
171 advCommentDta = editor.getHtmlDta(); 197 advCommentDta = editor.getHtmlDta();
172#endif 198#endif
173} 199}
diff --git a/pwmanager/pwmanager/addentrywndimpl.h b/pwmanager/pwmanager/addentrywndimpl.h
index c0bfcee..622e9d2 100644
--- a/pwmanager/pwmanager/addentrywndimpl.h
+++ b/pwmanager/pwmanager/addentrywndimpl.h
@@ -1,114 +1,127 @@
1/*************************************************************************** 1/***************************************************************************
2 * * 2 * *
3 * copyright (C) 2003, 2004 by Michael Buesch * 3 * copyright (C) 2003, 2004 by Michael Buesch *
4 * email: mbuesch@freenet.de * 4 * email: mbuesch@freenet.de *
5 * * 5 * *
6 * This program is free software; you can redistribute it and/or modify * 6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License version 2 * 7 * it under the terms of the GNU General Public License version 2 *
8 * as published by the Free Software Foundation. * 8 * as published by the Free Software Foundation. *
9 * * 9 * *
10 ***************************************************************************/ 10 ***************************************************************************/
11 11
12/*************************************************************************** 12/***************************************************************************
13 * copyright (C) 2004 by Ulf Schenk 13 * copyright (C) 2004 by Ulf Schenk
14 * This file is originaly based on version 1.0.1 of pwmanager 14 * This file is originaly based on version 1.0.1 of pwmanager
15 * and was modified to run on embedded devices that run microkde 15 * and was modified to run on embedded devices that run microkde
16 * 16 *
17 * $Id$ 17 * $Id$
18 **************************************************************************/ 18 **************************************************************************/
19 19
20#ifndef __ADDENTRYWNDIMPL_H 20#ifndef __ADDENTRYWNDIMPL_H
21#define __ADDENTRYWNDIMPL_H 21#define __ADDENTRYWNDIMPL_H
22 22
23#include "addentrywnd.h"
24 23
25#include <qlineedit.h>
26#ifndef PWM_EMBEDDED 24#ifndef PWM_EMBEDDED
25#include <qlineedit.h>
27#include <qtextedit.h> 26#include <qtextedit.h>
27#include <qcombobox.h>
28#include "addentrywnd.h"
28#else 29#else
30#include <klineedit.h>
31#include <kcombobox.h>
29#include <qmultilineedit.h> 32#include <qmultilineedit.h>
33#include "addentrywnd_emb.h"
30#endif 34#endif
31 35
32#include <qcombobox.h>
33#include <qpushbutton.h> 36#include <qpushbutton.h>
34 37
35class PwGenWndImpl; 38class PwGenWndImpl;
36 39
37/** "add/edit" Window */ 40/** "add/edit" Window */
38class AddEntryWndImpl : public addEntryWnd 41class AddEntryWndImpl : public addEntryWnd
39{ 42{
40 Q_OBJECT 43 Q_OBJECT
41public: 44public:
45#ifndef PWM_EMBEDDED
42 AddEntryWndImpl(); 46 AddEntryWndImpl();
47#else
48 AddEntryWndImpl( QWidget* parent = 0, const char* name = 0);
49#endif
43 ~AddEntryWndImpl(); 50 ~AddEntryWndImpl();
44 51
45 /* get... functions */ 52 /* get... functions */
46 QString getDescription() 53 QString getDescription()
47 { return descLineEdit->text(); } 54 { return descLineEdit->text(); }
48 QString getCategory() 55 QString getCategory()
49 { return categoryComboBox->currentText(); } 56 { return categoryComboBox->currentText(); }
50 QString getUsername() 57 QString getUsername()
51 { return usernameLineEdit->text(); } 58 { return usernameLineEdit->text(); }
52 QString getPassword() 59 QString getPassword()
53 { return pwLineEdit->text(); } 60 { return pwLineEdit->text(); }
54 QString getUrl() 61 QString getUrl()
55 { return urlLineEdit->text(); } 62 { return urlLineEdit->text(); }
56 QString getLauncher() 63 QString getLauncher()
57 { return launcherLineEdit->text(); } 64 { return launcherLineEdit->text(); }
58 QString getComment(); 65 QString getComment();
59 66
60 /* set... functions */ 67 /* set... functions */
61 void setDescription(const QString &desc) 68 void setDescription(const QString &desc)
62 { descLineEdit->setText(desc); } 69 { descLineEdit->setText(desc); }
63 void setCurrCategory(const QString &cat); 70 void setCurrCategory(const QString &cat);
64 void addCategory(const QString &cat) 71 void addCategory(const QString &cat)
65 { categoryComboBox->insertItem(cat); } 72 { categoryComboBox->insertItem(cat); }
66 void setUsername(const QString &name) 73 void setUsername(const QString &name)
67 { usernameLineEdit->setText(name); } 74 { usernameLineEdit->setText(name); }
68 void setPassword(const QString &pw) 75 void setPassword(const QString &pw)
69 { pwLineEdit->setText(pw); } 76 { pwLineEdit->setText(pw); }
70 void setUrl(const QString &url) 77 void setUrl(const QString &url)
71 { urlLineEdit->setText(url); } 78 { urlLineEdit->setText(url); }
72 void setLauncher(const QString launcher) 79 void setLauncher(const QString launcher)
73 { launcherLineEdit->setText(launcher); } 80 { launcherLineEdit->setText(launcher); }
74 void setComment(const QString &comm); 81 void setComment(const QString &comm);
75 82
76 /** are we using an advanced comment */ 83 /** are we using an advanced comment */
77 bool isAdvancedComment() 84 bool isAdvancedComment()
78 { return useAdvComment; } 85 { return useAdvComment; }
79 86
80public slots: 87public slots:
88#ifndef PWM_EMBEDDED
89//MOC_SKIP_BEGIN
81 /** OK button pressed */ 90 /** OK button pressed */
82 void okButton_slot(); 91 void okButton_slot();
83 /** cancel button pressed */ 92 /** cancel button pressed */
84 void cancelButton_slot(); 93 void cancelButton_slot();
94//MOC_SKIP_END
95#else
96 virtual void slotOk();
97#endif
85 /** Reveal button pressed */ 98 /** Reveal button pressed */
86 void revealButton_slot(); 99 void revealButton_slot();
87 /** Generate button pressed */ 100 /** Generate button pressed */
88 void generateButton_slot(); 101 void generateButton_slot();
89 /** advanced comment button pressed */ 102 /** advanced comment button pressed */
90 void advancedCommentButton_slot(bool on); 103 void advancedCommentButton_slot(bool on);
91 /** edit advanced comment button pressed */ 104 /** edit advanced comment button pressed */
92 void editAdvCommentButton_slot(); 105 void editAdvCommentButton_slot();
93 106
94protected: 107protected:
95 void switchComment(bool toAdvanced); 108 void switchComment(bool toAdvanced);
96 109
97protected: 110protected:
98 QPushButton *editAdvCommentButton; 111 QPushButton *editAdvCommentButton;
99#ifndef PWM_EMBEDDED 112#ifndef PWM_EMBEDDED
100 QTextEdit *commentTextEdit; 113 QTextEdit *commentTextEdit;
101#else 114#else
102 QMultiLineEdit * commentTextEdit; 115 QMultiLineEdit * commentTextEdit;
103#endif 116#endif
104 /** saved data from normal comment text edit box */ 117 /** saved data from normal comment text edit box */
105 QString savedCommentText; 118 QString savedCommentText;
106 /** use an advanced comment? */ 119 /** use an advanced comment? */
107 bool useAdvComment; 120 bool useAdvComment;
108 /** data of advanced comment (if available) */ 121 /** data of advanced comment (if available) */
109 QString advCommentDta; 122 QString advCommentDta;
110 /** password generation object */ 123 /** password generation object */
111 PwGenWndImpl *pwGen; 124 PwGenWndImpl *pwGen;
112}; 125};
113 126
114#endif 127#endif
diff --git a/pwmanager/pwmanager/pwgenwndimpl.cpp b/pwmanager/pwmanager/pwgenwndimpl.cpp
index 01f5740..5313060 100644
--- a/pwmanager/pwmanager/pwgenwndimpl.cpp
+++ b/pwmanager/pwmanager/pwgenwndimpl.cpp
@@ -1,112 +1,137 @@
1/*************************************************************************** 1/***************************************************************************
2 * * 2 * *
3 * copyright (C) 2004 by Michael Buesch * 3 * copyright (C) 2004 by Michael Buesch *
4 * email: mbuesch@freenet.de * 4 * email: mbuesch@freenet.de *
5 * * 5 * *
6 * This program is free software; you can redistribute it and/or modify * 6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License version 2 * 7 * it under the terms of the GNU General Public License version 2 *
8 * as published by the Free Software Foundation. * 8 * as published by the Free Software Foundation. *
9 * * 9 * *
10 ***************************************************************************/ 10 ***************************************************************************/
11 11
12/*************************************************************************** 12/***************************************************************************
13 * copyright (C) 2004 by Ulf Schenk 13 * copyright (C) 2004 by Ulf Schenk
14 * This file is originaly based on version 1.0.1 of pwmanager 14 * This file is originaly based on version 1.0.1 of pwmanager
15 * and was modified to run on embedded devices that run microkde 15 * and was modified to run on embedded devices that run microkde
16 * 16 *
17 * $Id$ 17 * $Id$
18 **************************************************************************/ 18 **************************************************************************/
19 19
20#include "pwgenwndimpl.h" 20#include "pwgenwndimpl.h"
21#include "pwmexception.h" 21#include "pwmexception.h"
22#include "genpasswd.h" 22#include "genpasswd.h"
23 23
24#include <qtabwidget.h> 24#include <qtabwidget.h>
25#include <qspinbox.h> 25#include <qspinbox.h>
26#include <qcheckbox.h> 26#include <qcheckbox.h>
27#include <qlineedit.h> 27#include <qlineedit.h>
28 28
29#include <klocale.h> 29#include <klocale.h>
30#include <kmessagebox.h> 30#include <kmessagebox.h>
31 31
32 32
33#ifndef PWM_EMBEDDED
33PwGenWndImpl::PwGenWndImpl(QWidget *parent, 34PwGenWndImpl::PwGenWndImpl(QWidget *parent,
34 const char *name, 35 const char *name,
35 bool modal, 36 bool modal,
36 WFlags fl) 37 WFlags fl)
37 : pwGenWnd(parent, name, modal, fl) 38 : pwGenWnd(parent, name, modal, fl)
38{ 39{
39} 40}
40 41
42#else
43PwGenWndImpl::PwGenWndImpl( QWidget* parent, const char* name)
44 : pwGenWnd( parent, name)
45{
46}
47#endif
48
41PwGenWndImpl::~PwGenWndImpl() 49PwGenWndImpl::~PwGenWndImpl()
42{ 50{
43} 51}
44 52
53#ifdef PWM_EMBEDDED
54void PwGenWndImpl::slotOk()
55{
56 // internal generator
57 if (!optionsSanityIntGen())
58 return;
59 if (!startIntGen())
60 return;
61
62 KDialogBase::slotOk();
63}
64#endif
65
45void PwGenWndImpl::genButton_slot() 66void PwGenWndImpl::genButton_slot()
46{ 67{
68#ifndef PWM_EMBEDDED
47 // internal generator 69 // internal generator
48 if (!optionsSanityIntGen()) 70 if (!optionsSanityIntGen())
49 return; 71 return;
50 if (startIntGen()) 72 if (startIntGen())
51 goto exit_success; 73 goto exit_success;
52 done(0); 74 done(0);
53exit_success: 75exit_success:
54 done(1); 76 done(1);
77#endif
55} 78}
56 79
57void PwGenWndImpl::cancelButton_slot() 80void PwGenWndImpl::cancelButton_slot()
58{ 81{
82#ifndef PWM_EMBEDDED
59 done(0); 83 done(0);
84#endif
60} 85}
61 86
62bool PwGenWndImpl::optionsSanityIntGen() 87bool PwGenWndImpl::optionsSanityIntGen()
63{ 88{
64 if (int_charLowerCheckBox->isChecked()) 89 if (int_charLowerCheckBox->isChecked())
65 return true; 90 return true;
66 if (int_charUpperCheckBox->isChecked()) 91 if (int_charUpperCheckBox->isChecked())
67 return true; 92 return true;
68 if (int_charNumCheckBox->isChecked()) 93 if (int_charNumCheckBox->isChecked())
69 return true; 94 return true;
70 if (int_charSpecCheckBox->isChecked()) 95 if (int_charSpecCheckBox->isChecked())
71 return true; 96 return true;
72 if (int_charUserCheckBox->isChecked()) { 97 if (int_charUserCheckBox->isChecked()) {
73 if (int_userDefLineEdit->text().length() >= 2) 98 if (int_userDefLineEdit->text().length() >= 2)
74 return true; 99 return true;
75 if (int_charBlankCheckBox->isChecked()) 100 if (int_charBlankCheckBox->isChecked())
76 return true; 101 return true;
77 } 102 }
78 KMessageBox::error(this, 103 KMessageBox::error(this,
79 i18n("Incorrect Charset selection!\n" 104 i18n("Incorrect Charset selection!\n"
80 "It's impossible to generate a sane " 105 "It's impossible to generate a sane "
81 "password with the selected charset(s).\n" 106 "password with the selected charset(s).\n"
82 "Please select more charsets."), 107 "Please select more charsets."),
83 i18n("Incorrect Charset selection")); 108 i18n("Incorrect Charset selection"));
84 return false; 109 return false;
85} 110}
86 111
87bool PwGenWndImpl::startIntGen() 112bool PwGenWndImpl::startIntGen()
88{ 113{
89 GenPasswd gen; 114 GenPasswd gen;
90 gen.setLen(int_lenSpinBox->value()); 115 gen.setLen(int_lenSpinBox->value());
91 gen.setUseFilter(int_filterCheckBox->isChecked()); 116 gen.setUseFilter(int_filterCheckBox->isChecked());
92 gen.setCharset(int_charLowerCheckBox->isChecked(), 117 gen.setCharset(int_charLowerCheckBox->isChecked(),
93 int_charUpperCheckBox->isChecked(), 118 int_charUpperCheckBox->isChecked(),
94 int_charNumCheckBox->isChecked(), 119 int_charNumCheckBox->isChecked(),
95 int_charSpecCheckBox->isChecked(), 120 int_charSpecCheckBox->isChecked(),
96 int_charBlankCheckBox->isChecked(), 121 int_charBlankCheckBox->isChecked(),
97 int_charUserCheckBox->isChecked() ? 122 int_charUserCheckBox->isChecked() ?
98 int_userDefLineEdit->text() : 123 int_userDefLineEdit->text() :
99 QString::null); 124 QString::null);
100 QString pw(gen.gen()); 125 QString pw(gen.gen());
101 if (pw.isEmpty()) 126 if (pw.isEmpty())
102 return false; 127 return false;
103 password = pw; 128 password = pw;
104 return true; 129 return true;
105} 130}
106 131
107QString PwGenWndImpl::getPassword() 132QString PwGenWndImpl::getPassword()
108{ 133{
109 QString ret(password); 134 QString ret(password);
110 password = QString::null; 135 password = QString::null;
111 return ret; 136 return ret;
112} 137}
diff --git a/pwmanager/pwmanager/pwgenwndimpl.h b/pwmanager/pwmanager/pwgenwndimpl.h
index 5c25643..994ff2f 100644
--- a/pwmanager/pwmanager/pwgenwndimpl.h
+++ b/pwmanager/pwmanager/pwgenwndimpl.h
@@ -1,54 +1,66 @@
1/*************************************************************************** 1/***************************************************************************
2 * * 2 * *
3 * copyright (C) 2004 by Michael Buesch * 3 * copyright (C) 2004 by Michael Buesch *
4 * email: mbuesch@freenet.de * 4 * email: mbuesch@freenet.de *
5 * * 5 * *
6 * This program is free software; you can redistribute it and/or modify * 6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License version 2 * 7 * it under the terms of the GNU General Public License version 2 *
8 * as published by the Free Software Foundation. * 8 * as published by the Free Software Foundation. *
9 * * 9 * *
10 ***************************************************************************/ 10 ***************************************************************************/
11 11
12/*************************************************************************** 12/***************************************************************************
13 * copyright (C) 2004 by Ulf Schenk 13 * copyright (C) 2004 by Ulf Schenk
14 * This file is originaly based on version 1.0.1 of pwmanager 14 * This file is originaly based on version 1.0.1 of pwmanager
15 * and was modified to run on embedded devices that run microkde 15 * and was modified to run on embedded devices that run microkde
16 * 16 *
17 * $Id$ 17 * $Id$
18 **************************************************************************/ 18 **************************************************************************/
19 19
20#ifndef __PWGENWNDIMPL_H 20#ifndef __PWGENWNDIMPL_H
21#define __PWGENWNDIMPL_H 21#define __PWGENWNDIMPL_H
22 22
23#ifndef PWM_EMBEDDED
23#include "pwgenwnd.h" 24#include "pwgenwnd.h"
25#else
26#include "pwgenwnd_emb.h"
27#endif
24 28
25class PwGenWndImpl : public pwGenWnd 29class PwGenWndImpl : public pwGenWnd
26{ 30{
27public: 31public:
32#ifndef PWM_EMBEDDED
28 PwGenWndImpl(QWidget *parent = 0, 33 PwGenWndImpl(QWidget *parent = 0,
29 const char *name = 0, 34 const char *name = 0,
30 bool modal = FALSE, 35 bool modal = FALSE,
31 WFlags fl = 0); 36 WFlags fl = 0);
37#else
38 PwGenWndImpl( QWidget* parent = 0, const char* name = 0);
39#endif
40
32 ~PwGenWndImpl(); 41 ~PwGenWndImpl();
33 42
34 /** returns the generated password */ 43 /** returns the generated password */
35 QString getPassword(); 44 QString getPassword();
36 45
37protected slots: 46protected slots:
38 /** generate button pressed */ 47 /** generate button pressed */
39 void genButton_slot(); 48 void genButton_slot();
49#ifdef PWM_EMBEDDED
50 virtual void slotOk();
51#endif
40 /** cancel button pressed */ 52 /** cancel button pressed */
41 void cancelButton_slot(); 53 void cancelButton_slot();
42 54
43protected: 55protected:
44 /** start the internal generator */ 56 /** start the internal generator */
45 bool startIntGen(); 57 bool startIntGen();
46 /** check all options of the internal generator */ 58 /** check all options of the internal generator */
47 bool optionsSanityIntGen(); 59 bool optionsSanityIntGen();
48 60
49protected: 61protected:
50 /** the generated password */ 62 /** the generated password */
51 QString password; 63 QString password;
52}; 64};
53 65
54#endif // __PWGENWNDIMPL_H 66#endif // __PWGENWNDIMPL_H
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp
index 08fcb25..107e845 100644
--- a/pwmanager/pwmanager/pwm.cpp
+++ b/pwmanager/pwmanager/pwm.cpp
@@ -475,193 +475,198 @@ void PwM::new_slot()
475} 475}
476 476
477//US ENH 477//US ENH
478void PwM::open_slot() 478void PwM::open_slot()
479{ 479{
480 open_slot(""); 480 open_slot("");
481} 481}
482 482
483void PwM::open_slot(QString fn) 483void PwM::open_slot(QString fn)
484{ 484{
485 openDoc(fn); 485 openDoc(fn);
486} 486}
487 487
488PwMDoc * PwM::openDoc(QString filename, bool openDeepLocked) 488PwMDoc * PwM::openDoc(QString filename, bool openDeepLocked)
489{ 489{
490 if (!isVirgin()) { 490 if (!isVirgin()) {
491 // open the document in a new window. 491 // open the document in a new window.
492 PwM *newInstance = init->createMainWnd(); 492 PwM *newInstance = init->createMainWnd();
493 PwMDoc *newDoc = newInstance->openDoc(filename, openDeepLocked); 493 PwMDoc *newDoc = newInstance->openDoc(filename, openDeepLocked);
494 if (!newDoc) { 494 if (!newDoc) {
495 newInstance->setForceQuit(true); 495 newInstance->setForceQuit(true);
496 delete_and_null(newInstance); 496 delete_and_null(newInstance);
497 } 497 }
498 return newDoc; 498 return newDoc;
499 } 499 }
500 500
501 if (!curDoc()->openDocUi(curDoc(), filename, openDeepLocked)) 501 if (!curDoc()->openDocUi(curDoc(), filename, openDeepLocked))
502 return 0; 502 return 0;
503 showStatMsg(i18n("Successfully opened file.")); 503 showStatMsg(i18n("Successfully opened file."));
504 updateCaption(); 504 updateCaption();
505 setVirgin(false); 505 setVirgin(false);
506 return curDoc(); 506 return curDoc();
507} 507}
508 508
509PwMView * PwM::makeNewListView(PwMDoc *doc) 509PwMView * PwM::makeNewListView(PwMDoc *doc)
510{ 510{
511 PwMView *ret = new PwMView(this, this, doc); 511 PwMView *ret = new PwMView(this, this, doc);
512 ret->setFont(conf()->confGlobEntryFont()); 512 ret->setFont(conf()->confGlobEntryFont());
513 ret->show(); 513 ret->show();
514 return ret; 514 return ret;
515} 515}
516 516
517void PwM::close_slot() 517void PwM::close_slot()
518{ 518{
519 close(); 519 close();
520} 520}
521 521
522void PwM::quitButton_slot() 522void PwM::quitButton_slot()
523{ 523{
524 init->shutdownApp(0); 524 init->shutdownApp(0);
525} 525}
526 526
527void PwM::save_slot() 527void PwM::save_slot()
528{ 528{
529 save(); 529 save();
530} 530}
531 531
532bool PwM::save() 532bool PwM::save()
533{ 533{
534 if (!curDoc()->saveDocUi(curDoc())) 534 if (!curDoc()->saveDocUi(curDoc()))
535 return false; 535 return false;
536 showStatMsg(i18n("Successfully saved data.")); 536 showStatMsg(i18n("Successfully saved data."));
537 updateCaption(); 537 updateCaption();
538 return true; 538 return true;
539} 539}
540 540
541void PwM::saveAs_slot() 541void PwM::saveAs_slot()
542{ 542{
543 saveAs(); 543 saveAs();
544} 544}
545 545
546bool PwM::saveAs() 546bool PwM::saveAs()
547{ 547{
548 if (!curDoc()->saveAsDocUi(curDoc())) 548 if (!curDoc()->saveAsDocUi(curDoc()))
549 return false; 549 return false;
550 showStatMsg(i18n("Successfully saved data.")); 550 showStatMsg(i18n("Successfully saved data."));
551 updateCaption(); 551 updateCaption();
552 return true; 552 return true;
553} 553}
554 554
555//US ENH : changed code to run with older MOC 555//US ENH : changed code to run with older MOC
556void PwM::addPwd_slot() 556void PwM::addPwd_slot()
557{ 557{
558 addPwd_slot(0, 0); 558 addPwd_slot(0, 0);
559} 559}
560 560
561void PwM::addPwd_slot(QString *pw, PwMDoc *_doc) 561void PwM::addPwd_slot(QString *pw, PwMDoc *_doc)
562{ 562{
563 PwMDoc *doc; 563 PwMDoc *doc;
564 if (_doc) { 564 if (_doc) {
565 doc = _doc; 565 doc = _doc;
566 } else { 566 } else {
567 doc = curDoc(); 567 doc = curDoc();
568 } 568 }
569 PWM_ASSERT(doc); 569 PWM_ASSERT(doc);
570 doc->timer()->getLock(DocTimer::id_autoLockTimer); 570 doc->timer()->getLock(DocTimer::id_autoLockTimer);
571#ifndef PWM_EMBEDDED
571 AddEntryWndImpl w; 572 AddEntryWndImpl w;
573#else
574 AddEntryWndImpl w(this, "addentrywndimpl");
575#endif
576
572 vector<string> catList; 577 vector<string> catList;
573 doc->getCategoryList(&catList); 578 doc->getCategoryList(&catList);
574 unsigned i, size = catList.size(); 579 unsigned i, size = catList.size();
575 for (i = 0; i < size; ++i) { 580 for (i = 0; i < size; ++i) {
576 w.addCategory(catList[i].c_str()); 581 w.addCategory(catList[i].c_str());
577 } 582 }
578 w.setCurrCategory(view->getCurrentCategory()); 583 w.setCurrCategory(view->getCurrentCategory());
579 if (pw) 584 if (pw)
580 w.pwLineEdit->setText(*pw); 585 w.pwLineEdit->setText(*pw);
581 586
582 tryAgain: 587 tryAgain:
583 if (w.exec() == 1) 588 if (w.exec() == 1)
584 { 589 {
585 PwMDataItem d; 590 PwMDataItem d;
586 d.desc = w.getDescription().latin1(); 591 d.desc = w.getDescription().latin1();
587 d.name = w.getUsername().latin1(); 592 d.name = w.getUsername().latin1();
588 d.pw = w.getPassword().latin1(); 593 d.pw = w.getPassword().latin1();
589 d.comment = w.getComment().latin1(); 594 d.comment = w.getComment().latin1();
590 d.url = w.getUrl().latin1(); 595 d.url = w.getUrl().latin1();
591 d.launcher = w.getLauncher().latin1(); 596 d.launcher = w.getLauncher().latin1();
592 PwMerror ret = doc->addEntry(w.getCategory(), &d); 597 PwMerror ret = doc->addEntry(w.getCategory(), &d);
593 if (ret == e_entryExists) { 598 if (ret == e_entryExists) {
594 KMessageBox::error(this, 599 KMessageBox::error(this,
595 i18n 600 i18n
596 ("An entry with this \"Description\", " 601 ("An entry with this \"Description\", "
597 "does already exist.\n" 602 "does already exist.\n"
598 "Please select another description."), 603 "Please select another description."),
599 i18n("entry already exists.")); 604 i18n("entry already exists."));
600 goto tryAgain; 605 goto tryAgain;
601 } else if (ret == e_maxAllowedEntr) { 606 } else if (ret == e_maxAllowedEntr) {
602 KMessageBox::error(this, i18n("The maximum possible number of entries " 607 KMessageBox::error(this, i18n("The maximum possible number of entries "
603 "has been reached. You can't add more entries."), 608 "has been reached. You can't add more entries."),
604 i18n("maximum number of entries")); 609 i18n("maximum number of entries"));
605 doc->timer()->putLock(DocTimer::id_autoLockTimer); 610 doc->timer()->putLock(DocTimer::id_autoLockTimer);
606 return; 611 return;
607 } 612 }
608 } 613 }
609 setVirgin(false); 614 setVirgin(false);
610 doc->timer()->putLock(DocTimer::id_autoLockTimer); 615 doc->timer()->putLock(DocTimer::id_autoLockTimer);
611} 616}
612 617
613//US ENH : changed code to run with older MOC 618//US ENH : changed code to run with older MOC
614void PwM::editPwd_slot() 619void PwM::editPwd_slot()
615{ 620{
616 editPwd_slot(0,0,0); 621 editPwd_slot(0,0,0);
617} 622}
618 623
619void PwM::editPwd_slot(const QString *category) 624void PwM::editPwd_slot(const QString *category)
620{ 625{
621 editPwd_slot(category, 0, 0); 626 editPwd_slot(category, 0, 0);
622} 627}
623 628
624void PwM::editPwd_slot(const QString *category, const int *index, 629void PwM::editPwd_slot(const QString *category, const int *index,
625 PwMDoc *_doc) 630 PwMDoc *_doc)
626{ 631{
627 PwMDoc *doc; 632 PwMDoc *doc;
628 if (_doc) { 633 if (_doc) {
629 doc = _doc; 634 doc = _doc;
630 } else { 635 } else {
631 doc = curDoc(); 636 doc = curDoc();
632 } 637 }
633 PWM_ASSERT(doc); 638 PWM_ASSERT(doc);
634 if (doc->isDocEmpty()) 639 if (doc->isDocEmpty())
635 return; 640 return;
636 if (doc->isDeepLocked()) 641 if (doc->isDeepLocked())
637 return; 642 return;
638 doc->timer()->getLock(DocTimer::id_autoLockTimer); 643 doc->timer()->getLock(DocTimer::id_autoLockTimer);
639 unsigned int curEntryIndex; 644 unsigned int curEntryIndex;
640 if (index) { 645 if (index) {
641 curEntryIndex = *index; 646 curEntryIndex = *index;
642 } else { 647 } else {
643 if (!(view->getCurEntryIndex(&curEntryIndex))) { 648 if (!(view->getCurEntryIndex(&curEntryIndex))) {
644 printDebug("couldn't get index. Maybe we have a binary entry here."); 649 printDebug("couldn't get index. Maybe we have a binary entry here.");
645 doc->timer()->putLock(DocTimer::id_autoLockTimer); 650 doc->timer()->putLock(DocTimer::id_autoLockTimer);
646 return; 651 return;
647 } 652 }
648 } 653 }
649 QString curCategory; 654 QString curCategory;
650 if (category) { 655 if (category) {
651 curCategory = *category; 656 curCategory = *category;
652 } else { 657 } else {
653 curCategory = view->getCurrentCategory(); 658 curCategory = view->getCurrentCategory();
654 } 659 }
655 PwMDataItem currItem; 660 PwMDataItem currItem;
656 if (!doc->getEntry(curCategory, curEntryIndex, &currItem, true)) { 661 if (!doc->getEntry(curCategory, curEntryIndex, &currItem, true)) {
657 doc->timer()->putLock(DocTimer::id_autoLockTimer); 662 doc->timer()->putLock(DocTimer::id_autoLockTimer);
658 return; 663 return;
659 } 664 }
660 BUG_ON(currItem.binary); 665 BUG_ON(currItem.binary);
661 666
662 AddEntryWndImpl w; 667 AddEntryWndImpl w;
663 vector<string> catList; 668 vector<string> catList;
664 doc->getCategoryList(&catList); 669 doc->getCategoryList(&catList);
665 unsigned i, size = catList.size(); 670 unsigned i, size = catList.size();
666 for (i = 0; i < size; ++i) { 671 for (i = 0; i < size; ++i) {
667 w.addCategory(catList[i].c_str()); 672 w.addCategory(catList[i].c_str());
diff --git a/pwmanager/pwmanager/pwmanagerE.pro b/pwmanager/pwmanager/pwmanagerE.pro
index 5c29ea4..87142b7 100644
--- a/pwmanager/pwmanager/pwmanagerE.pro
+++ b/pwmanager/pwmanager/pwmanagerE.pro
@@ -1,153 +1,153 @@
1 TEMPLATE= app 1 TEMPLATE= app
2 CONFIG += qt warn_on 2 CONFIG += qt warn_on
3 3
4 4
5 TARGET = pwmpi 5 TARGET = pwmpi
6OBJECTS_DIR = obj/$(PLATFORM) 6OBJECTS_DIR = obj/$(PLATFORM)
7MOC_DIR = moc/$(PLATFORM) 7MOC_DIR = moc/$(PLATFORM)
8DESTDIR=$(QPEDIR)/bin 8DESTDIR=$(QPEDIR)/bin
9 9
10INCLUDEPATH += . ../../qtcompat ../../qtcompat/xml ../../libkdepim ../../microkde ../../microkde/kdecore ../../microkde/kdeui ../../microkde/kutils $(QPEDIR)/include 10INCLUDEPATH += . ../../qtcompat ../../qtcompat/xml ../../libkdepim ../../microkde ../../microkde/kdecore ../../microkde/kdeui ../../microkde/kutils $(QPEDIR)/include
11DEFINES += PWM_EMBEDDED PWM_DEBUG 11DEFINES += PWM_EMBEDDED PWM_DEBUG
12LIBS += -lmicrokde 12LIBS += -lmicrokde
13LIBS += -lmicroqtcompat 13LIBS += -lmicroqtcompat
14LIBS += -lmicrokdepim 14LIBS += -lmicrokdepim
15LIBS += -L$(QPEDIR)/lib 15LIBS += -L$(QPEDIR)/lib
16LIBS += -lqpe 16LIBS += -lqpe
17LIBS += -lbz2 17LIBS += -lbz2
18LIBS += $(QTOPIALIB) 18LIBS += $(QTOPIALIB)
19 19
20#INTERFACES = \ 20#INTERFACES = \
21#addentrywnd.ui \ 21#addentrywnd.ui \
22#configwnd.ui \ 22#configwnd.ui \
23#findwnd.ui \ 23#findwnd.ui \
24#getmasterpwwnd.ui \ 24#getmasterpwwnd.ui \
25#pwgenwnd.ui \ 25#pwgenwnd.ui \
26#setmasterpwwnd.ui \ 26#setmasterpwwnd.ui \
27#subtbledit.ui 27#subtbledit.ui
28 28
29#INTERFACES = \ 29#INTERFACES = \
30#subtbledit.ui \ 30#subtbledit.ui \
31 31
32 32
33 33
34#HEADERS = \ 34#HEADERS = \
35#configuration_31compat.h \ 35#configuration_31compat.h \
36#configuration.h \ 36#configuration.h \
37#configwnd.h \ 37#configwnd.h \
38#configwndimpl.h \ 38#configwndimpl.h \
39#selftest.h 39#selftest.h
40 40
41HEADERS = \ 41HEADERS = \
42addentrywnd.h \ 42addentrywnd_emb.h \
43addentrywndimpl.h \ 43addentrywndimpl.h \
44base64.h \ 44base64.h \
45binentrygen.h \ 45binentrygen.h \
46blowfish.h \ 46blowfish.h \
47commentbox.h \ 47commentbox.h \
48compiler.h \ 48compiler.h \
49compressbzip2.h \ 49compressbzip2.h \
50compressgzip.h \ 50compressgzip.h \
51findwnd.h \ 51findwnd.h \
52findwndimpl.h \ 52findwndimpl.h \
53genpasswd.h \ 53genpasswd.h \
54getkeycardwnd.h \ 54getkeycardwnd.h \
55getmasterpwwnd.h \ 55getmasterpwwnd.h \
56getmasterpwwndimpl.h \ 56getmasterpwwndimpl.h \
57globalstuff.h \ 57globalstuff.h \
58gpasmanfile.h \ 58gpasmanfile.h \
59htmlgen.h \ 59htmlgen.h \
60htmlparse.h \ 60htmlparse.h \
61ipc.h \ 61ipc.h \
62listobjselectwnd.h \ 62listobjselectwnd.h \
63listviewpwm.h \ 63listviewpwm.h \
64printtext.h \ 64printtext.h \
65pwgenwnd.h \ 65pwgenwnd_emb.h \
66pwgenwndimpl.h \ 66pwgenwndimpl.h \
67pwmdoc.h \ 67pwmdoc.h \
68pwmdocui.h \ 68pwmdocui.h \
69pwmexception.h \ 69pwmexception.h \
70pwm.h \ 70pwm.h \
71pwminit.h \ 71pwminit.h \
72pwmprefs.h \ 72pwmprefs.h \
73pwmprint.h \ 73pwmprint.h \
74pwmtray.h \ 74pwmtray.h \
75pwmview.h \ 75pwmview.h \
76pwmviewstyle_0.h \ 76pwmviewstyle_0.h \
77pwmviewstyle_1.h \ 77pwmviewstyle_1.h \
78pwmviewstyle.h \ 78pwmviewstyle.h \
79randomizer.h \ 79randomizer.h \
80rc2.h \ 80rc2.h \
81rencatwnd.h \ 81rencatwnd.h \
82serializer.h \ 82serializer.h \
83setmasterpwwnd.h \ 83setmasterpwwnd.h \
84setmasterpwwndimpl.h \ 84setmasterpwwndimpl.h \
85sha1.h \ 85sha1.h \
86subtbledit.h \ 86subtbledit.h \
87subtbleditimpl.h \ 87subtbleditimpl.h \
88waitwnd.h \ 88waitwnd.h \
89kcmconfigs/kcmpwmconfig.h \ 89kcmconfigs/kcmpwmconfig.h \
90kcmconfigs/pwmconfigwidget.h \ 90kcmconfigs/pwmconfigwidget.h \
91 91
92#sources that need not be build 92#sources that need not be build
93#SOURCES = \ 93#SOURCES = \
94#advcommeditimpl.cpp \ 94#advcommeditimpl.cpp \
95#configuration.cpp \ 95#configuration.cpp \
96#configwnd.cpp \ 96#configwnd.cpp \
97#configwndimpl.cpp \ 97#configwndimpl.cpp \
98#configuration_31compat.cpp \ 98#configuration_31compat.cpp \
99#htmlparse.cpp \ 99#htmlparse.cpp \
100#printtext.cpp \ 100#printtext.cpp \
101#selftest.cpp \ 101#selftest.cpp \
102#pwmprint.cpp \ 102#pwmprint.cpp \
103#spinforsignal.cpp 103#spinforsignal.cpp
104 104
105SOURCES = \ 105SOURCES = \
106addentrywnd.cpp \ 106addentrywnd_emb.cpp \
107addentrywndimpl.cpp \ 107addentrywndimpl.cpp \
108base64.cpp \ 108base64.cpp \
109binentrygen.cpp \ 109binentrygen.cpp \
110blowfish.cpp \ 110blowfish.cpp \
111commentbox.cpp \ 111commentbox.cpp \
112compressbzip2.cpp \ 112compressbzip2.cpp \
113compressgzip.cpp \ 113compressgzip.cpp \
114findwnd.cpp \ 114findwnd.cpp \
115findwndimpl.cpp \ 115findwndimpl.cpp \
116genpasswd.cpp \ 116genpasswd.cpp \
117getkeycardwnd.cpp \ 117getkeycardwnd.cpp \
118getmasterpwwnd.cpp \ 118getmasterpwwnd.cpp \
119getmasterpwwndimpl.cpp \ 119getmasterpwwndimpl.cpp \
120globalstuff.cpp \ 120globalstuff.cpp \
121gpasmanfile.cpp \ 121gpasmanfile.cpp \
122htmlgen.cpp \ 122htmlgen.cpp \
123ipc.cpp \ 123ipc.cpp \
124listobjselectwnd.cpp \ 124listobjselectwnd.cpp \
125listviewpwm.cpp \ 125listviewpwm.cpp \
126main.cpp \ 126main.cpp \
127pwgenwnd.cpp \ 127pwgenwnd_emb.cpp \
128pwgenwndimpl.cpp \ 128pwgenwndimpl.cpp \
129pwm.cpp \ 129pwm.cpp \
130pwmdoc.cpp \ 130pwmdoc.cpp \
131pwmdocui.cpp \ 131pwmdocui.cpp \
132pwmexception.cpp \ 132pwmexception.cpp \
133pwminit.cpp \ 133pwminit.cpp \
134pwmprefs.cpp \ 134pwmprefs.cpp \
135pwmtray.cpp \ 135pwmtray.cpp \
136pwmview.cpp \ 136pwmview.cpp \
137pwmviewstyle_0.cpp \ 137pwmviewstyle_0.cpp \
138pwmviewstyle_1.cpp \ 138pwmviewstyle_1.cpp \
139pwmviewstyle.cpp \ 139pwmviewstyle.cpp \
140randomizer.cpp \ 140randomizer.cpp \
141rc2.cpp \ 141rc2.cpp \
142rencatwnd.cpp \ 142rencatwnd.cpp \
143serializer.cpp \ 143serializer.cpp \
144setmasterpwwnd.cpp \ 144setmasterpwwnd.cpp \
145setmasterpwwndimpl.cpp \ 145setmasterpwwndimpl.cpp \
146sha1.cpp \ 146sha1.cpp \
147subtbledit.cpp \ 147subtbledit.cpp \
148subtbleditimpl.cpp \ 148subtbleditimpl.cpp \
149waitwnd.cpp \ 149waitwnd.cpp \
150kcmconfigs/kcmpwmconfig.cpp \ 150kcmconfigs/kcmpwmconfig.cpp \
151kcmconfigs/pwmconfigwidget.cpp \ 151kcmconfigs/pwmconfigwidget.cpp \
152 152
153 153