From f5b07a4a12d57d28dee8662d296dd400d26ba7fe Mon Sep 17 00:00:00 2001 From: samelian Date: Mon, 21 Mar 2011 00:29:04 +0000 Subject: [kdepim] initial cmake support for: knotes, kode, korganizer, kresources, plugins, wizards git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225440 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- wizards/overviewpage.cpp | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'wizards/overviewpage.cpp') diff --git a/wizards/overviewpage.cpp b/wizards/overviewpage.cpp index e0a544ad9..a15b580eb 100644 --- a/wizards/overviewpage.cpp +++ b/wizards/overviewpage.cpp @@ -32,6 +32,7 @@ #include #include +#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" -- cgit v1.2.1