summaryrefslogtreecommitdiffstats
path: root/wizards/overviewpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/overviewpage.cpp')
-rw-r--r--wizards/overviewpage.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/wizards/overviewpage.cpp b/wizards/overviewpage.cpp
index e0a544ad..a15b580e 100644
--- a/wizards/overviewpage.cpp
+++ b/wizards/overviewpage.cpp
@@ -32,6 +32,7 @@
#include <kpushbutton.h>
#include <kstdguiitem.h>
+#include "wizards-config.h"
#include "egroupwarewizard.h"
#include "kolabwizard.h"
#include "sloxwizard.h"
@@ -60,25 +61,34 @@ OverViewPage::OverViewPage( TQWidget *parent, const char *name )
label = new TQLabel( i18n( "Select the type of server you want connect your KDE to:" ), this );
tqlayout->addMultiCellWidget( label, 2, 2, 0, 3 );
- TQPushButton *button = new TQPushButton( i18n("eGroupware"), this );
+ TQPushButton *button;
+
+#ifdef WITH_EGROUPWARE
+ button = new TQPushButton( i18n("eGroupware"), this );
tqlayout->addMultiCellWidget( button, 3, 3, 0, 3 );
connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( showWizardEGroupware() ) );
+#endif
// FIXME: Maybe hyperlinks would be better than buttons.
+#ifdef WITH_KOLAB
button = new TQPushButton( i18n("Kolab"), this );
tqlayout->addMultiCellWidget( button, 4, 4, 0, 3 );
connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( showWizardKolab() ) );
+#endif
+#ifdef WITH_SLOX
button = new TQPushButton( i18n("SUSE Linux Openexchange (SLOX)"), this );
tqlayout->addMultiCellWidget( button, 5, 5, 0, 3 );
connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( showWizardSlox() ) );
+#endif
+#ifdef WITH_NEWEXCHANGE
button = new TQPushButton( i18n("Microsoft Exchange"), this );
button->hide(); // not quite ready yet
tqlayout->addMultiCellWidget( button, 6, 6, 0, 3 );
connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( showWizardExchange() ) );
-
+#endif
TQFrame *frame = new TQFrame( this );
frame->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
@@ -100,26 +110,34 @@ OverViewPage::~OverViewPage()
void OverViewPage::showWizardEGroupware()
{
+#ifdef WITH_EGROUPWARE
EGroupwareWizard wizard;
wizard.exec();
+#endif
}
void OverViewPage::showWizardKolab()
{
+#ifdef WITH_KOLAB
KolabWizard wizard;
wizard.exec();
+#endif
}
void OverViewPage::showWizardSlox()
{
+#ifdef WITH_SLOX
SloxWizard wizard;
wizard.exec();
+#endif
}
void OverViewPage::showWizardExchange()
{
+#ifdef WITH_NEWEXCHANGE
ExchangeWizard wizard;
wizard.exec();
+#endif
}
#include "overviewpage.moc"