summaryrefslogtreecommitdiffstats
path: root/src/userconfigdlg.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-31 01:08:31 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-31 01:08:31 -0500
commit9dc612fd768cd0ec40f7458f2f69534c1acd417a (patch)
tree585232723cb3168c6f9b959281bf486644daaa7e /src/userconfigdlg.cpp
parent6d3279772de658a37abc06c74726c72af9c0a484 (diff)
downloadkcmldapmanager-9dc612fd768cd0ec40f7458f2f69534c1acd417a.tar.gz
kcmldapmanager-9dc612fd768cd0ec40f7458f2f69534c1acd417a.zip
Fix user editing dialog
Diffstat (limited to 'src/userconfigdlg.cpp')
-rw-r--r--src/userconfigdlg.cpp26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/userconfigdlg.cpp b/src/userconfigdlg.cpp
index c49c8ae..a246aab 100644
--- a/src/userconfigdlg.cpp
+++ b/src/userconfigdlg.cpp
@@ -34,6 +34,7 @@
#include <tqcheckbox.h>
#include <kdatetimewidget.h>
#include <kpassdlg.h>
+#include <kiconloader.h>
#include "ldapmgr.h"
#include "userconfigdlg.h"
@@ -53,6 +54,13 @@ UserConfigDialog::UserConfigDialog(LDAPUserInfo user, LDAPConfig* parent, const
}
m_base->lastChanged->setEnabled(false);
+ m_base->detailsIcon->setPixmap(SmallIcon("personal.png"));
+ m_base->enabledIcon->setPixmap(SmallIcon("decrypted.png"));
+ m_base->disabledIcon->setPixmap(SmallIcon("encrypted.png"));
+ m_base->userIcon->setPixmap(SmallIcon("personal.png"));
+ m_base->groupsIcon->setPixmap(SmallIcon("kdmconfig.png"));
+ m_base->passwordIcon->setPixmap(SmallIcon("password.png"));
+
connect(m_base->loginName, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(processLockouts()));
connect(m_base->realName, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(processLockouts()));
connect(m_base->surName, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(processLockouts()));
@@ -63,9 +71,6 @@ UserConfigDialog::UserConfigDialog(LDAPUserInfo user, LDAPConfig* parent, const
connect(m_base->requirePasswordMinAge, TQT_SIGNAL(clicked()), this, TQT_SLOT(processLockouts()));
connect(m_base->primaryGroup, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(processLockouts()));
- // Update fields
-// KPasswordEdit* passwordEntry;
-
if (m_user.status == KRB5_DISABLED_ACCOUNT) {
m_base->userStatusEnabled->setChecked(false);
m_base->userStatusDisabled->setChecked(true);
@@ -95,7 +100,6 @@ UserConfigDialog::UserConfigDialog(LDAPUserInfo user, LDAPConfig* parent, const
item->setOn(group.userlist.contains(m_user.distinguishedName));
}
-// m_base->passwordEntry;
m_base->lastChanged->setText(m_user.password_last_changed.toString(TQt::TextDate));
if (m_user.password_expires) {
m_base->passwordExpireEnabled->setChecked(true);
@@ -116,6 +120,13 @@ UserConfigDialog::UserConfigDialog(LDAPUserInfo user, LDAPConfig* parent, const
// User information
m_base->givenName->setText(m_user.givenName);
m_base->surName->setText(m_user.surName);
+ m_base->initials->setText(m_user.initials);
+ m_base->title->setText(m_user.title);
+ m_base->description->setText(m_user.description);
+ m_base->office->setText(m_user.deliveryOffice);
+ m_base->telephoneNumber->setText(m_user.telephoneNumber);
+ m_base->faxNumber->setText(m_user.faxNumber);
+ m_base->email->setText(m_user.email);
processLockouts();
}
@@ -167,6 +178,13 @@ void UserConfigDialog::slotOk() {
// User information
m_user.givenName = m_base->givenName->text();
m_user.surName = m_base->surName->text();
+ m_user.initials = m_base->initials->text();
+ m_user.title = m_base->title->text();
+ m_user.description = m_base->description->text();
+ m_user.deliveryOffice = m_base->office->text();
+ m_user.telephoneNumber = m_base->telephoneNumber->text();
+ m_user.faxNumber = m_base->faxNumber->text();
+ m_user.email = m_base->email->text();
// Special handler for new group
if (m_user.distinguishedName == "") {