File indexing completed on 2025-01-05 04:00:08

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2003-02-01
0007  * Description : album view configuration setup tab
0008  *
0009  * SPDX-FileCopyrightText: 2003-2004 by Renchi Raju <renchi dot raju at gmail dot com>
0010  * SPDX-FileCopyrightText: 2005-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_SETUP_ALBUM_VIEW_H
0017 #define DIGIKAM_SETUP_ALBUM_VIEW_H
0018 
0019 // Qt includes
0020 
0021 #include <QScrollArea>
0022 
0023 namespace Digikam
0024 {
0025 
0026 class SetupAlbumView : public QScrollArea
0027 {
0028     Q_OBJECT
0029 
0030 public:
0031 
0032     enum AlbumTab
0033     {
0034         IconView = 0,
0035         FolderView,
0036         Preview,
0037         FullScreen,
0038         MimeType,
0039         Category
0040     };
0041 
0042 public:
0043 
0044     explicit SetupAlbumView(QWidget* const parent = nullptr);
0045     ~SetupAlbumView() override;
0046 
0047     void setActiveTab(AlbumTab tab);
0048     AlbumTab activeTab() const;
0049 
0050     void applySettings();
0051 
0052     bool useLargeThumbsHasChanged() const;
0053 
0054 private:
0055 
0056     void readSettings();
0057 
0058 private Q_SLOTS:
0059 
0060     void slotUseLargeThumbsToggled(bool);
0061 
0062 private:
0063 
0064     class Private;
0065     Private* const d;
0066 };
0067 
0068 } // namespace Digikam
0069 
0070 #endif // DIGIKAM_SETUP_ALBUM_VIEW_H