File indexing completed on 2025-01-19 03:53:23
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2008-26-02 0007 * Description : a widget to select albums using a tab of folder views. 0008 * 0009 * SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_ALBUM_SELECT_TABS_H 0016 #define DIGIKAM_ALBUM_SELECT_TABS_H 0017 0018 // Qt includes 0019 0020 #include <QTabWidget> 0021 0022 // Local includes 0023 0024 #include "album.h" 0025 0026 namespace Digikam 0027 { 0028 0029 class AbstractCheckableAlbumModel; 0030 class AlbumLabelsSearchHandler; 0031 0032 class AlbumSelectTabs : public QTabWidget 0033 { 0034 Q_OBJECT 0035 0036 public: 0037 0038 explicit AlbumSelectTabs(const QString& name, QWidget* const parent = nullptr); 0039 ~AlbumSelectTabs() override; 0040 0041 AlbumList selectedAlbums() const; 0042 void enableVirtualAlbums(bool flag = true); 0043 0044 QList<AbstractCheckableAlbumModel*> albumModels() const; 0045 AlbumLabelsSearchHandler* albumLabelsHandler() const; 0046 0047 Q_SIGNALS: 0048 0049 void signalAlbumSelectionChanged(); 0050 0051 private: 0052 0053 class Private; 0054 Private* const d; 0055 }; 0056 0057 } // namespace Digikam 0058 0059 #endif // DIGIKAM_ALBUM_SELECT_TABS_H