digiKam
showfotosetup.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 : 2005-04-02
7  * Description : showFoto setup dialog.
8  *
9  * Copyright (C) 2005-2022 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)
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 SHOW_FOTO_SETUP_H
25 #define SHOW_FOTO_SETUP_H
26 
27 // Local includes
28 
29 #include "dconfigdlg.h"
30 
31 using namespace Digikam;
32 
33 namespace ShowFoto
34 {
35 
36 class ShowfotoSetup : public DConfigDlg
37 {
38  Q_OBJECT
39 
40 public:
41 
42  enum Page
43  {
44  LastPageUsed = -1,
45 
46  EditorPage = 0,
54 
55  SetupPageEnumLast
56  };
57 
58 public:
59 
60  explicit ShowfotoSetup(QWidget* const parent = nullptr, Page page = LastPageUsed);
61  ~ShowfotoSetup() override;
62 
63  static bool execMetadataFilters(QWidget* const parent, int tab);
64  static bool execExifTool(QWidget* const parent);
65 
69  static bool execSinglePage(Page page);
70  static bool execSinglePage(QWidget* const parent, Page page);
71 
72  static void onlineVersionCheck();
73 
74 private Q_SLOTS:
75 
76  void slotOkClicked();
77  void slotHelp();
78 
79 private:
80 
81  ShowfotoSetup::Page activePageIndex();
82  void showPage(ShowfotoSetup::Page page);
83 
84 private:
85 
86  class Private;
87  Private* const d;
88 };
89 
90 } // namespace ShowFoto
91 
92 #endif // SHOW_FOTO_SETUP_H
A dialog base class which can handle multiple pages.
Definition: dconfigdlg.h:59
Definition: showfotosetup.h:37
Page
Definition: showfotosetup.h:43
@ MetadataPage
Definition: showfotosetup.h:47
@ IOFilesPage
Definition: showfotosetup.h:50
@ ToolTipPage
Definition: showfotosetup.h:48
@ RawPage
Definition: showfotosetup.h:49
@ PluginsPage
Definition: showfotosetup.h:52
@ MiscellaneousPage
Definition: showfotosetup.h:53
@ ICCPage
Definition: showfotosetup.h:51
Definition: datefolderview.cpp:43
Definition: showfotofolderviewbar.cpp:52