digiKam
presentation_mainpage.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2008-09-09
7  * Description : a presentation tool.
8  *
9  * Copyright (C) 2008-2009 by Valerio Fuoglio <valerio dot fuoglio at gmail dot com>
10  * Copyright (C) 2009 by Andi Clemens <andi dot clemens at googlemail dot com>
11  * Copyright (C) 2012-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  * Copyright (C) 2021 by Phuoc Khanh Le <phuockhanhnk94 at gmail dot com>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_PRESENTATION_MAIN_PAGE_H
27 #define DIGIKAM_PRESENTATION_MAIN_PAGE_H
28 
29 // Qt includes
30 
31 #include <QPixmap>
32 
33 // Local includes
34 
35 #include "ui_presentation_mainpage.h"
36 
37 class QTreeWidgetItem;
38 
40 {
41 
42 class PresentationContainer;
43 class LoadingDescription;
44 
45 class PresentationMainPage : public QWidget,
46  public Ui::PresentationMainPage
47 {
48  Q_OBJECT
49 
50 public:
51 
52  explicit PresentationMainPage(QWidget* const parent,
53  PresentationContainer* const sharedData);
54  ~PresentationMainPage() override;
55 
56  void readSettings();
57  void saveSettings();
58  bool updateUrlList();
59 
60  void removeImageFromList(const QUrl& url);
61 
62 Q_SIGNALS :
63 
64  void signalTotalTimeChanged(const QTime&);
65 
66 private Q_SLOTS:
67 
68  void slotOpenGLToggled();
69  void slotEffectChanged();
70  void slotDelayChanged(int);
71  void slotOffAutoDelay();
72  void slotPrintCommentsToggled();
73  void slotUseMillisecondsToggled();
74  void slotThumbnail(const LoadingDescription&, const QPixmap&);
75  void slotImageListChanged();
76 
77  void slotPortfolioDurationChanged(int);
78  void slotImagesFilesSelected(QTreeWidgetItem* item);
79 
80 private:
81 
82  void setupConnections();
83  void loadEffectNames();
84  void loadEffectNamesGL();
85  void showNumberImages();
86  void addItems(const QList<QUrl>& fileList);
87 
88 private:
89 
90  class Private;
91  Private* const d;
92 };
93 
94 } // namespace DigikamGenericPresentationPlugin
95 
96 #endif // DIGIKAM_PRESENTATION_MAIN_PAGE_H
Definition: presentationcontainer.h:54
Definition: presentation_mainpage.h:47
void removeImageFromList(const QUrl &url)
Definition: presentation_mainpage.cpp:538
PresentationMainPage(QWidget *const parent, PresentationContainer *const sharedData)
Definition: presentation_mainpage.cpp:84
void saveSettings()
Definition: presentation_mainpage.cpp:162
~PresentationMainPage() override
Definition: presentation_mainpage.cpp:125
void readSettings()
Definition: presentation_mainpage.cpp:130
bool updateUrlList()
Definition: presentation_mainpage.cpp:373
Definition: presentation_audiopage.cpp:46