diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-21 00:29:04 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-21 00:29:04 +0000 |
commit | f5b07a4a12d57d28dee8662d296dd400d26ba7fe (patch) | |
tree | 24b4c61a0576f1c5d3571cc8d6c81262e6171227 /wizards/overviewpage.cpp | |
parent | 6bab61d816e8321b2d66a7183af04269a832ea81 (diff) | |
download | tdepim-f5b07a4a12d57d28dee8662d296dd400d26ba7fe.tar.gz tdepim-f5b07a4a12d57d28dee8662d296dd400d26ba7fe.zip |
[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
Diffstat (limited to 'wizards/overviewpage.cpp')
-rw-r--r-- | wizards/overviewpage.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
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 <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" |