digiKam
albumselecttabs.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 : 2008-26-02
7  * Description : a widget to select albums using a tab of folder views.
8  *
9  * Copyright (C) 2008-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 DIGIKAM_ALBUM_SELECT_TABS_H
25 #define DIGIKAM_ALBUM_SELECT_TABS_H
26 
27 // Qt includes
28 
29 #include <QTabWidget>
30 
31 // Local includes
32 
33 #include "album.h"
34 
35 namespace Digikam
36 {
37 
38 class AbstractCheckableAlbumModel;
39 class AlbumLabelsSearchHandler;
40 
41 class AlbumSelectTabs : public QTabWidget
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit AlbumSelectTabs(const QString& name, QWidget* const parent = nullptr);
48  ~AlbumSelectTabs() override;
49 
50  AlbumList selectedAlbums() const;
51  void enableVirtualAlbums(bool flag = true);
52 
55 
56 Q_SIGNALS:
57 
59 
60 private:
61 
62  class Private;
63  Private* const d;
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_ALBUM_SELECT_TABS_H
Definition: albumlabelssearchhandler.h:34
Definition: albumselecttabs.h:42
AlbumLabelsSearchHandler * albumLabelsHandler() const
Definition: albumselecttabs.cpp:277
~AlbumSelectTabs() override
Definition: albumselecttabs.cpp:230
void enableVirtualAlbums(bool flag=true)
Definition: albumselecttabs.cpp:260
AlbumList selectedAlbums() const
Definition: albumselecttabs.cpp:243
AlbumSelectTabs(const QString &name, QWidget *const parent=nullptr)
Definition: albumselecttabs.cpp:110
QList< AbstractCheckableAlbumModel * > albumModels() const
Definition: albumselecttabs.cpp:267
Definition: datefolderview.cpp:43