summaryrefslogtreecommitdiffstats
path: root/src/bondrealmpage.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-18 16:03:27 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-18 16:03:27 -0500
commit37acc91cacd3f5c85e3254fcfd5794fcdcbadc27 (patch)
tree8a724d562c4bf6b2024340f507f58b1d4cf82af6 /src/bondrealmpage.cpp
parent96936f9f1272296b22c7ed6d6e68e944ba78a6b6 (diff)
downloadkcmldap-37acc91cacd3f5c85e3254fcfd5794fcdcbadc27.tar.gz
kcmldap-37acc91cacd3f5c85e3254fcfd5794fcdcbadc27.zip
Can now add/remove realms to TDE config file
Diffstat (limited to 'src/bondrealmpage.cpp')
-rw-r--r--src/bondrealmpage.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/bondrealmpage.cpp b/src/bondrealmpage.cpp
index 09d9d31..020c5a5 100644
--- a/src/bondrealmpage.cpp
+++ b/src/bondrealmpage.cpp
@@ -30,16 +30,35 @@
#include <kiconloader.h>
#include <dcopclient.h>
#include <kprocess.h>
+#include <klineedit.h>
+#include <kwizard.h>
#include "bondrealmpage.h"
BondRealmPage::BondRealmPage(TQWidget *parent, const char *name ) : BondRealmPageDlg(parent,name) {
- px_introSidebar->setPixmap(UserIcon("step1.png"));
+ px_introSidebar->setPixmap(UserIcon("step2.png"));
+
+ connect(txtRealmName, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(validateEntries()));
+ connect(txtKDC, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(validateEntries()));
+ connect(txtAdminServer, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(validateEntries()));
+
+ m_parentWizard = dynamic_cast<KWizard*>(parent);
}
-BondRealmPage::~BondRealmPage(){
+BondRealmPage::~BondRealmPage() {
//
}
+void BondRealmPage::validateEntries() {
+ if (m_parentWizard) {
+ if ((txtRealmName->text() != "") && (txtKDC->text() != "") && (txtAdminServer->text() != "")) {
+ m_parentWizard->nextButton()->setEnabled(true);
+ }
+ else {
+ m_parentWizard->nextButton()->setEnabled(false);
+ }
+ }
+}
+
#include "bondrealmpage.moc"