digiKam
previewsettings.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 : 2014-11-14
7  * Description : Settings container for preview settings
8  *
9  * Copyright (C) 2014 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
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)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_PREVIEW_SETTINGS_H
25 #define DIGIKAM_PREVIEW_SETTINGS_H
26 
27 // Local includes
28 
29 #include "digikam_export.h"
30 
31 namespace Digikam
32 {
33 
34 class DIGIKAM_EXPORT PreviewSettings
35 {
36 public:
37 
38  enum Quality
39  {
45 
52 
57  HighQualityPreview
58  };
59 
61  {
64  RawPreviewFromRawHalfSize
65  };
66 
67 public:
68 
69  explicit PreviewSettings(Quality quality = HighQualityPreview,
70  RawLoading rawLoading = RawPreviewAutomatic);
71  ~PreviewSettings();
72 
73  bool operator==(const PreviewSettings& other) const;
74 
75 public:
76 
77  static PreviewSettings fastPreview();
78  static PreviewSettings highQualityPreview();
79 
80 public:
81 
85 };
86 
87 } // namespace Digikam
88 
89 #endif // DIGIKAM_PREVIEW_SETTINGS_H
Definition: previewsettings.h:35
bool convertToEightBit
Definition: previewsettings.h:84
Quality
Definition: previewsettings.h:39
@ FastPreview
Definition: previewsettings.h:44
@ FastButLargePreview
Definition: previewsettings.h:51
Quality quality
Definition: previewsettings.h:82
RawLoading rawLoading
Definition: previewsettings.h:83
RawLoading
Definition: previewsettings.h:61
@ RawPreviewFromEmbeddedPreview
Definition: previewsettings.h:63
@ RawPreviewAutomatic
Definition: previewsettings.h:62
Definition: datefolderview.cpp:43
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49