1 /* ============================================================ 2 * 3 * This file is a part of digiKam project 4 * https://www.digikam.org 5 * 6 * Date : 2017-06-27 7 * Description : a tool to create calendar. 8 * 9 * Copyright (C) 2017-2021 by Gilles Caulier <caulier dot gilles at gmail dot com> 10 * 11 * This program is free software; you can redistribute it 12 * and/or modify it under the terms of the GNU General 13 * Public License as published by the Free Software Foundation; 14 * either version 2, or (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * ============================================================ */ 22 23 #include "calintropage.h" 24 25 // Qt includes 26 27 #include <QLabel> 28 #include <QPixmap> 29 #include <QIcon> 30 31 // KDE includes 32 33 #include <klocalizedstring.h> 34 35 // Local includes 36 37 #include "digikam_config.h" 38 #include "digikam_debug.h" 39 #include "dlayoutbox.h" 40 #include "calwizard.h" 41 42 namespace DigikamGenericCalendarPlugin 43 { 44 CalIntroPage(QWizard * const dialog,const QString & title)45CalIntroPage::CalIntroPage(QWizard* const dialog, const QString& title) 46 : DWizardPage(dialog, title) 47 { 48 DVBox* const vbox = new DVBox(this); 49 QLabel* const desc = new QLabel(vbox); 50 51 desc->setWordWrap(true); 52 desc->setOpenExternalLinks(true); 53 54 QString str = QLatin1String("<qt>"); 55 str.append(i18n("<p><h1><b>Welcome to Calendar Tool</b></h1></p>" 56 "<p>This assistant will guide you to create " 57 "and print a calendar with a selection of images taken " 58 "from your collection.</p>")); 59 60 #ifdef HAVE_KCALENDAR 61 62 str.append(i18n("<p>This tool will also allow to set specific dates " 63 "on your calendar using external data event files as " 64 "<a href='https://en.wikipedia.org/wiki/VCalendar'>vCalendar</a>, and " 65 "<a href='https://en.wikipedia.org/wiki/Icalendar'>iCalendar</a> formats.</p>")); 66 67 #endif 68 69 str.append(QLatin1String("</qt>")); 70 71 desc->setText(str); 72 setPageWidget(vbox); 73 setLeftBottomPix(QIcon::fromTheme(QLatin1String("office-calendar"))); 74 } 75 ~CalIntroPage()76CalIntroPage::~CalIntroPage() 77 { 78 } 79 80 } // namespace DigikamGenericCalendarPlugin 81