parent
8fdae616e9
commit
fd4d12151c
@ -0,0 +1,45 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2012 by Timothy Pearson *
|
||||
* kb9vqf@pearsoncomputing.net *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <tqstringlist.h>
|
||||
#include <tqlabel.h>
|
||||
#include <tqmap.h>
|
||||
|
||||
#include <kapplication.h>
|
||||
#include <ksimpleconfig.h>
|
||||
#include <klocale.h>
|
||||
#include <kdebug.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <kiconloader.h>
|
||||
#include <dcopclient.h>
|
||||
#include <kprocess.h>
|
||||
|
||||
#include "bondfinishpage.h"
|
||||
|
||||
BondFinishPage::BondFinishPage(TQWidget *parent, const char *name ) : BondFinishPageDlg(parent,name) {
|
||||
|
||||
px_introSidebar->setPixmap(UserIcon("step2.png"));
|
||||
}
|
||||
|
||||
BondFinishPage::~BondFinishPage(){
|
||||
//
|
||||
}
|
||||
|
||||
#include "bondfinishpage.moc"
|
@ -0,0 +1,43 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2012 by Timothy Pearson *
|
||||
* kb9vqf@pearsoncomputing.net *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef BONDFINISHPAGE_H
|
||||
#define BONDFINISHPAGE_H
|
||||
|
||||
#include "ldap.h"
|
||||
|
||||
#include "bondfinishpagedlg.h"
|
||||
|
||||
class TQStringList;
|
||||
|
||||
/**Abstract class for the first wizard page. Sets the according selection on save()
|
||||
*@author Timothy Pearson
|
||||
*/
|
||||
|
||||
class BondFinishPage : public BondFinishPageDlg {
|
||||
Q_OBJECT
|
||||
public:
|
||||
BondFinishPage(TQWidget *parent=0, const char *name=0);
|
||||
~BondFinishPage();
|
||||
|
||||
LDAPRealmConfig m_realmConfig;
|
||||
};
|
||||
|
||||
#endif
|
@ -0,0 +1,82 @@
|
||||
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
|
||||
<class>BondFinishPageDlg</class>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>BondFinishPageDlg</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>678</width>
|
||||
<height>452</height>
|
||||
</rect>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLabel" row="0" column="0" rowspan="9" colspan="1">
|
||||
<property name="name">
|
||||
<cstring>px_introSidebar</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>170</width>
|
||||
<height>430</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>Panel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>Sunken</enum>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="indent">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer row="2" column="1">
|
||||
<property name="name">
|
||||
<cstring>Spacer6</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<spacer row="7" column="1">
|
||||
<property name="name">
|
||||
<cstring>Spacer5</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
</spacer>
|
||||
</grid>
|
||||
</widget>
|
||||
<layoutdefaults spacing="3" margin="6"/>
|
||||
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
|
||||
</UI>
|
@ -0,0 +1,45 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2012 by Timothy Pearson *
|
||||
* kb9vqf@pearsoncomputing.net *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <tqstringlist.h>
|
||||
#include <tqlabel.h>
|
||||
#include <tqmap.h>
|
||||
|
||||
#include <kapplication.h>
|
||||
#include <ksimpleconfig.h>
|
||||
#include <klocale.h>
|
||||
#include <kdebug.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <kiconloader.h>
|
||||
#include <dcopclient.h>
|
||||
#include <kprocess.h>
|
||||
|
||||
#include "bondrealmpage.h"
|
||||
|
||||
BondRealmPage::BondRealmPage(TQWidget *parent, const char *name ) : BondRealmPageDlg(parent,name) {
|
||||
|
||||
px_introSidebar->setPixmap(UserIcon("step1.png"));
|
||||
}
|
||||
|
||||
BondRealmPage::~BondRealmPage(){
|
||||
//
|
||||
}
|
||||
|
||||
#include "bondrealmpage.moc"
|
@ -0,0 +1,43 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2012 by Timothy Pearson *
|
||||
* kb9vqf@pearsoncomputing.net *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef BONDREALMPAGE_H
|
||||
#define BONDREALMPAGE_H
|
||||
|
||||
#include "ldap.h"
|
||||
|
||||
#include "bondrealmpagedlg.h"
|
||||
|
||||
class TQStringList;
|
||||
|
||||
/**Abstract class for the first wizard page. Sets the according selection on save()
|
||||
*@author Timothy Pearson
|
||||
*/
|
||||
|
||||
class BondRealmPage : public BondRealmPageDlg {
|
||||
Q_OBJECT
|
||||
public:
|
||||
BondRealmPage(TQWidget *parent=0, const char *name=0);
|
||||
~BondRealmPage();
|
||||
|
||||
LDAPRealmConfig m_realmConfig;
|
||||
};
|
||||
|
||||
#endif
|
@ -0,0 +1,82 @@
|
||||
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
|
||||
<class>BondRealmPageDlg</class>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>BondRealmPageDlg</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>678</width>
|
||||
<height>452</height>
|
||||
</rect>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQLabel" row="0" column="0" rowspan="9" colspan="1">
|
||||
<property name="name">
|
||||
<cstring>px_introSidebar</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>170</width>
|
||||
<height>430</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>Panel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>Sunken</enum>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="indent">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
<spacer row="2" column="1">
|
||||
<property name="name">
|
||||
<cstring>Spacer6</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
<spacer row="7" column="1">
|
||||
<property name="name">
|
||||
<cstring>Spacer5</cstring>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>Expanding</enum>
|
||||
</property>
|
||||
</spacer>
|
||||
</grid>
|
||||
</widget>
|
||||
<layoutdefaults spacing="3" margin="6"/>
|
||||
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
|
||||
</UI>
|
@ -0,0 +1,156 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2012 by Timothy Pearson *
|
||||
* kb9vqf@pearsoncomputing.net *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <tqpushbutton.h>
|
||||
#include <tqlabel.h>
|
||||
#include <tqstring.h>
|
||||
#include <tqstringlist.h>
|
||||
#include <tqfile.h>
|
||||
#include <tqtimer.h>
|
||||
#include <tqcursor.h>
|
||||
|
||||
#include <ksimpleconfig.h>
|
||||
#include <kglobal.h>
|
||||
#include <kglobalsettings.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <klocale.h>
|
||||
#include <kapplication.h>
|
||||
#include <klistview.h>
|
||||
#include <krun.h>
|
||||
#include <kmessagebox.h>
|
||||
#include <kconfig.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <kdebug.h>
|
||||
|
||||
#include "bondrealmpage.h"
|
||||
#include "bondfinishpage.h"
|
||||
|
||||
#include "bondwizard.h"
|
||||
#include "bondwizard.moc"
|
||||
|
||||
BondWizard::BondWizard(TQWidget *parent, const char *name)
|
||||
: KWizard(parent, name, true) {
|
||||
|
||||
realmpage= new BondRealmPage(this);
|
||||
addPage( realmpage, i18n( "Step 1: Introduction" ) );
|
||||
setHelpEnabled(TQWizard::page(0), false);
|
||||
|
||||
finishpage= new BondFinishPage(this);
|
||||
addPage(finishpage, i18n( "Step 2: I want it my Way..." ) );
|
||||
setHelpEnabled(TQWizard::page(1), false);
|
||||
|
||||
setFinishEnabled(TQWizard::page(1), true);
|
||||
|
||||
setPosition();
|
||||
}
|
||||
|
||||
BondWizard::~BondWizard() {
|
||||
}
|
||||
|
||||
|
||||
void BondWizard::next() {
|
||||
if(currentPage()==realmpage) {
|
||||
realm_dirty=true; // set the dirty flag, changes done that need reverting
|
||||
// realmpage->save();
|
||||
TQWizard::next();
|
||||
}
|
||||
if(currentPage()==finishpage) {
|
||||
finishButton()->setFocus();
|
||||
}
|
||||
}
|
||||
|
||||
void BondWizard::slotNext() {
|
||||
TQWizard::next();
|
||||
}
|
||||
|
||||
void BondWizard::back() {
|
||||
TQWizard::back();
|
||||
}
|
||||
|
||||
bool BondWizard::askClose(){
|
||||
TQString text;
|
||||
if (currentPage()==realmpage) {
|
||||
text = i18n("<p>Are you sure you want to quit the LDAP Bonding Wizard?</p>"
|
||||
"<p>If yes, click <b>Quit</b> and all changes will be lost."
|
||||
"<br>If not, click <b>Cancel</b> to return and finish your setup.</p>");
|
||||
} else {
|
||||
text = i18n("<p>Are you sure you want to quit the LDAP Bonding Wizard?</p>"
|
||||
"<p>If not, click <b>Cancel</b> to return and finish bonding.</p>");
|
||||
}
|
||||
int status = KMessageBox::warningContinueCancel(this, text, i18n("All Changes Will Be Lost"), KStdGuiItem::quit());
|
||||
if(status==KMessageBox::Continue){
|
||||
setDefaults();
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/** the cancel button is connected to the reject() slot of TQDialog,
|
||||
* so we have to reimplement this here to add a dialogbox to ask if we
|
||||
* really want to quit the wizard.
|
||||
*/
|
||||
void BondWizard::reject(){
|
||||
if (askClose()){
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
void BondWizard::closeEvent(TQCloseEvent* e){
|
||||
if ( askClose() )
|
||||
exit(0);
|
||||
else
|
||||
e->ignore();
|
||||
}
|
||||
|
||||
/** maybe call a dialog that the wizard has finished. */
|
||||
void BondWizard::accept(){
|
||||
exit(0);
|
||||
}
|
||||
|
||||
/** calls all save functions after resetting all features/ OS/ theme selections to Trinity default */
|
||||
void BondWizard::setDefaults(){
|
||||
// if(realm_dirty)
|
||||
// realmpage->save(false);
|
||||
}
|
||||
|
||||
/** there seems to be a bug in TQWizard, that makes this evil hack necessary */
|
||||
void BondWizard::setPosition() {
|
||||
TQSize hint = realmpage->sizeHint();
|
||||
TQSize finish_size = finishpage->sizeHint();
|
||||
|
||||
// get the width of the broadest child-widget
|
||||
if ( hint.width() < finish_size.width() )
|
||||
hint.setWidth(finish_size.width());
|
||||
|
||||
// get the height of the highest child-widget
|
||||
if ( hint.height() < finish_size.height() )
|
||||
hint.setHeight(finish_size.height());
|
||||
|
||||
// set the position
|
||||
TQRect rect = KGlobalSettings::desktopGeometry(TQCursor::pos());
|
||||
int w = rect.x() + (rect.width() - hint.width())/2 - 9;
|
||||
int h = rect.y() + (rect.height() - hint.height())/2;
|
||||
move(w, h);
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2012 by Timothy Pearson *
|
||||
* kb9vqf@pearsoncomputing.net *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef BONDWIZARD_H
|
||||
#define BONDWIZARD_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <kapplication.h>
|
||||
#include <kwizard.h>
|
||||
|
||||
/** prototypes */
|
||||
class KLanguageCombo;
|
||||
class BondRealmPage;
|
||||
class BondFinishPage;
|
||||
|
||||
/** BondWizard is the base class of the project */
|
||||
class BondWizard : public KWizard {
|
||||
Q_OBJECT
|
||||
public:
|
||||
/** construtor */
|
||||
BondWizard(TQWidget* parent=0, const char *name=0);
|
||||
/** destructor */
|
||||
~BondWizard();
|
||||
|
||||
virtual void next();
|
||||
virtual void back();
|
||||
|
||||
public slots: // Public slots
|
||||
/** calls all save functions after resetting all fields to Trinity default */
|
||||
void setDefaults();
|
||||
/** the cancel button is connected to the reject() slot of TQDialog,
|
||||
* so we have to reimplement this here to add a dialogbox to
|
||||
* ask if we really want to quit the wizard.
|
||||
*/
|
||||
void reject();
|
||||
/** maybe call a dialog that the wizard has finished.
|
||||
* Calls applySettings() to save the current selection.
|
||||
*/
|
||||
void accept();
|
||||
/** We need this to use it in a TQTimer */
|
||||
void slotNext();
|
||||
|
||||
private:
|
||||
void setPosition();
|
||||
|
||||
private:
|
||||
BondRealmPage* realmpage;
|
||||
BondFinishPage* finishpage;
|
||||
bool realm_dirty;
|
||||
|
||||
protected: // Protected methods
|
||||
// the close button on the titlebar sets e->accept() which we don't want.
|
||||
virtual void closeEvent(TQCloseEvent*);
|
||||
bool askClose();
|
||||
};
|
||||
|
||||
#endif
|
@ -0,0 +1,60 @@
|
||||
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
|
||||
<class>RealmPropertiesBase</class>
|
||||
<widget class="TQWidget">
|
||||
<property name="name">
|
||||
<cstring>RealmPropertiesBase</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>664</width>
|
||||
<height>503</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>3</hsizetype>
|
||||
<vsizetype>3</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>640</width>
|
||||
<height>480</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="caption">
|
||||
<string>LDAP Realm Properties</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
<widget class="TQGroupBox" row="0" column="0">
|
||||
<property name="name">
|
||||
<cstring>groupBox1</cstring>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy>
|
||||
<hsizetype>7</hsizetype>
|
||||
<vsizetype>7</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Basic Settings</string>
|
||||
</property>
|
||||
<grid>
|
||||
<property name="name">
|
||||
<cstring>unnamed</cstring>
|
||||
</property>
|
||||
</grid>
|
||||
</widget>
|
||||
</grid>
|
||||
</widget>
|
||||
<layoutdefaults spacing="6" margin="11"/>
|
||||
</UI>
|
@ -0,0 +1,42 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2012 by Timothy Pearson *
|
||||
* kb9vqf@pearsoncomputing.net *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <klocale.h>
|
||||
#include <klineedit.h>
|
||||
#include <kactionselector.h>
|
||||
#include <tqlistbox.h>
|
||||
#include <kpushbutton.h>
|
||||
#include <tqpixmap.h>
|
||||
#include <tqiconset.h>
|
||||
|
||||
#include "realmpropertiesdialog.h"
|
||||
|
||||
RealmPropertiesDialog::RealmPropertiesDialog(LDAPRealmConfig* realm, TQWidget* parent, const char* name)
|
||||
: KDialogBase(parent, name, true, i18n("Realm Properties"), Ok|Cancel, Ok, true), m_realmConfig(realm)
|
||||
{
|
||||
m_base = new RealmPropertiesBase(this);
|
||||
}
|
||||
|
||||
void RealmPropertiesDialog::slotOk()
|
||||
{
|
||||
// accept(); or reject();
|
||||
}
|
||||
|
||||
#include "realmpropertiesdialog.moc"
|
@ -0,0 +1,44 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2012 by Timothy Pearson *
|
||||
* kb9vqf@pearsoncomputing.net *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef _SERVICECONFIGDIALOG_H_
|
||||
#define _SERVICECONFIGDIALOG_H_
|
||||
|
||||
#include <kdialogbase.h>
|
||||
|
||||
#include "ldap.h"
|
||||
#include "realmpropertiesbase.h"
|
||||
|
||||
class RealmPropertiesDialog : public KDialogBase
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RealmPropertiesDialog(LDAPRealmConfig* realm, TQWidget* parent = 0, const char* name = 0);
|
||||
|
||||
public slots:
|
||||
void slotOk();
|
||||
|
||||
private:
|
||||
RealmPropertiesBase *m_base;
|
||||
LDAPRealmConfig* m_realmConfig;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in new issue