summaryrefslogtreecommitdiffstats
path: root/src/primaryrealmwizard/primaryrealmwizard.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-15 23:53:15 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-15 23:53:15 -0600
commitf90df49b284a4027fe75ff1be59c7a38fe38c17a (patch)
treee06de5271c580ba7f4dbf40bd5a743156a8d4865 /src/primaryrealmwizard/primaryrealmwizard.cpp
parent937cb8d13055b13da6e267989404ac529b0633d6 (diff)
downloadkcmldapcontroller-f90df49b284a4027fe75ff1be59c7a38fe38c17a.tar.gz
kcmldapcontroller-f90df49b284a4027fe75ff1be59c7a38fe38c17a.zip
Use libtdeldap kadmin talker method
Minor GUI enhancements
Diffstat (limited to 'src/primaryrealmwizard/primaryrealmwizard.cpp')
-rw-r--r--src/primaryrealmwizard/primaryrealmwizard.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/primaryrealmwizard/primaryrealmwizard.cpp b/src/primaryrealmwizard/primaryrealmwizard.cpp
index 6dbf9bc..3177afa 100644
--- a/src/primaryrealmwizard/primaryrealmwizard.cpp
+++ b/src/primaryrealmwizard/primaryrealmwizard.cpp
@@ -129,6 +129,10 @@ void PrimaryRealmWizard::next() {
if (currentPage()==intropage) {
TQWizard::next();
realmpage->validateEntries();
+
+ // Focus the first entry field on the new wizard page
+ realmpage->txtKDC->setFocus();
+ realmpage->txtKDC->selectAll();
}
else if (currentPage()==realmpage) {
// Save realm information
@@ -150,6 +154,10 @@ void PrimaryRealmWizard::next() {
TQWizard::next();
certpage->processLockouts();
certpage->validateEntries();
+
+ // Focus the first entry field on the new wizard page
+ certpage->organizationName->setFocus();
+ certpage->organizationName->selectAll();
}
else if (currentPage()==certpage) {
// Save certificate information
@@ -216,9 +224,13 @@ void PrimaryRealmWizard::next() {
TQWizard::next();
finishpage->validateEntries();
+
+ // Focus the first entry field on the new wizard page
+ finishpage->ldapAdminUsername->setFocus();
+ finishpage->ldapAdminUsername->selectAll();
}
if (currentPage()==finishpage) {
- finishButton()->setFocus();
+ //
}
}
@@ -293,6 +305,8 @@ void PrimaryRealmWizard::accept() {
nextButton()->setEnabled(false);
finishButton()->setEnabled(false);
cancelButton()->setEnabled(false);
+ finishpage->setEnabled(false);
+
if (m_controller->createNewLDAPRealm(this, m_realmconfig, finishpage->ldapAdminUsername->text(), finishpage->ldapAdminGroupname->text(), finishpage->ldapMachineAdminGroupname->text(), finishpage->ldapStandardUserGroupname->text(), finishpage->ldapAdminPassword->password(), "admin", finishpage->ldapAdminPassword->password(), finishpage->ldapAdminRealm->text(), m_certconfig, &errorString) == 0) {
done(0);
}
@@ -300,6 +314,7 @@ void PrimaryRealmWizard::accept() {
KMessageBox::error(this, i18n("<qt><b>Unable to create new realm!</b><p>Details: %1</qt>").arg(errorString), i18n("Unable to create new realm"));
}
+ finishpage->setEnabled(true);
backButton()->setEnabled(true);
finishButton()->setEnabled(true);
cancelButton()->setEnabled(true);