2 This file is part of kdepim.
4 Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
22 #include "overviewpage.h"
23 #include "groupwisewizard.h"
25 #include <kacceleratormanager.h>
28 #include <kiconloader.h>
30 #include <kpushbutton.h>
31 #include <KStandardGuiItem>
34 #include <QGridLayout>
36 OverViewPage::OverViewPage( QWidget
*parent
)
40 QGridLayout
*layout
= new QGridLayout
;
41 layout
->setSpacing( KDialog::spacingHint() );
42 layout
->setMargin( KDialog::marginHint() );
45 const QString msg
= i18n( "KDE Groupware Wizard" );
46 QLabel
*label
= new QLabel( "<qt><b><u><h2>" + msg
+ "</h2></u></b></qt>" , this );
47 layout
->addWidget( label
, 0, 0, 1, 3 );
49 label
= new QLabel( this );
50 label
->setPixmap( KIconLoader::global()->loadIcon( "network-wired", KIconLoader::Desktop
) );
51 layout
->addWidget( label
, 0, 3 );
53 label
= new QLabel( "", this );
54 layout
->addWidget( label
, 1, 0 );
55 layout
->setRowMinimumHeight( 1, 20 );
57 label
= new QLabel( i18n( "Select the type of server you would like Kontact to connect to:" ), this );
58 layout
->addWidget( label
, 2, 0, 1, 4 );
60 // FIXME: Maybe hyperlinks would be better than buttons.
62 /* QPushButton* button = new QPushButton( i18n("Kolab"), this );
63 layout->addWidget( button, 4, 0, 1, 4 );
64 connect( button, SIGNAL( clicked() ), SLOT( showWizardKolab() ) );*/
66 QPushButton
*button
= new QPushButton( i18n("Novell GroupWise"), this );
67 layout
->addWidget( button
, 6, 0, 1, 4 );
68 connect( button
, SIGNAL( clicked() ), SLOT( showWizardGroupwise() ) );
71 QFrame
*frame
= new QFrame( this );
72 frame
->setFrameStyle( QFrame::HLine
| QFrame::Sunken
);
73 layout
->addWidget( frame
, 8, 0, 1, 4 );
75 QPushButton
*cancelButton
= new KPushButton( KStandardGuiItem::close(), this );
76 layout
->addWidget( cancelButton
, 9, 3 );
78 connect( cancelButton
, SIGNAL( clicked() ), this, SIGNAL( cancel() ) );
80 layout
->setRowStretch( 8, 1 );
82 KAcceleratorManager::manage( this );
85 OverViewPage::~OverViewPage()
89 void OverViewPage::showWizardKolab()
91 /* KolabWizard wizard;
95 void OverViewPage::showWizardGroupwise()
97 GroupwiseWizard wizard
;
101 #include "overviewpage.moc"