1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date        : 2008-10-02
7  * Description : a presentation tool.
8  *
9  * Copyright (C) 2008-2009 by Valerio Fuoglio <valerio dot fuoglio 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 // Local includes
24 
25 #include "presentationcontainer.h"
26 
27 namespace DigikamGenericPresentationPlugin
28 {
29 
PresentationContainer()30 PresentationContainer::PresentationContainer()
31     : delayMsMaxValue               (0),
32       delayMsMinValue               (0),
33       delayMsLineStep               (0),
34       urlList                       (QList<QUrl>()),
35       mainPage                      (nullptr),
36       captionPage                   (nullptr),
37 
38 #ifdef HAVE_MEDIAPLAYER
39 
40       soundtrackPage                (nullptr),
41 
42 #endif
43 
44       advancedPage                  (nullptr),
45 
46       opengl                        (false),
47       openGlFullScale               (false),
48       delay                         (0),
49       printFileName                 (false),
50       printProgress                 (false),
51       printFileComments             (false),
52       loop                          (false),
53       shuffle                       (false),
54       offAutoDelay                  (false),
55       commentsFontColor             (0),
56       commentsBgColor               (0),
57       commentsDrawOutline           (false),
58       bgOpacity                     (10),
59       commentsLinesLength           (0),
60       captionFont                   (nullptr),
61 
62       soundtrackLoop                (false),
63       soundtrackPlay                (false),
64       soundtrackRememberPlaylist    (false),
65       soundtrackPlayListNeedsUpdate (false),
66 
67       useMilliseconds               (false),
68       enableMouseWheel              (false),
69       enableCache                   (false),
70       kbDisableFadeInOut            (false),
71       kbDisableCrossFade            (false),
72       kbEnableSameSpeed             (false),
73       cacheSize                     (0),
74 
75       iface                         (nullptr)
76 {
77 }
78 
~PresentationContainer()79 PresentationContainer::~PresentationContainer()
80 {
81     delete captionFont;
82 }
83 
84 } // namespace DigikamGenericPresentationPlugin
85