File indexing completed on 2025-01-05 03:52:00
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2017-06-27 0007 * Description : a tool to create calendar. 0008 * 0009 * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #include "calintropage.h" 0016 0017 // Qt includes 0018 0019 #include <QLabel> 0020 #include <QPixmap> 0021 #include <QIcon> 0022 0023 // KDE includes 0024 0025 #include <klocalizedstring.h> 0026 0027 // Local includes 0028 0029 #include "digikam_config.h" 0030 #include "digikam_debug.h" 0031 #include "dlayoutbox.h" 0032 #include "calwizard.h" 0033 0034 namespace DigikamGenericCalendarPlugin 0035 { 0036 0037 CalIntroPage::CalIntroPage(QWizard* const dialog, const QString& title) 0038 : DWizardPage(dialog, title) 0039 { 0040 DVBox* const vbox = new DVBox(this); 0041 QLabel* const desc = new QLabel(vbox); 0042 0043 desc->setWordWrap(true); 0044 desc->setOpenExternalLinks(true); 0045 0046 QString str = QLatin1String("<qt>"); 0047 str.append(i18n("<p><h1><b>Welcome to Calendar Tool</b></h1></p>" 0048 "<p>This assistant will guide you to create " 0049 "and print a calendar with a selection of images taken " 0050 "from your collection.</p>")); 0051 0052 #ifdef HAVE_KCALENDAR 0053 0054 str.append(i18n("<p>This tool will also allow to set specific dates " 0055 "on your calendar using external data event files as " 0056 "<a href='https://en.wikipedia.org/wiki/VCalendar'>vCalendar</a>, and " 0057 "<a href='https://en.wikipedia.org/wiki/Icalendar'>iCalendar</a> formats.</p>")); 0058 0059 #endif 0060 0061 str.append(QLatin1String("</qt>")); 0062 0063 desc->setText(str); 0064 setPageWidget(vbox); 0065 setLeftBottomPix(QIcon::fromTheme(QLatin1String("office-calendar"))); 0066 } 0067 0068 CalIntroPage::~CalIntroPage() 0069 { 0070 } 0071 0072 } // namespace DigikamGenericCalendarPlugin 0073 0074 #include "moc_calintropage.cpp"