| 1 |
/* ============================================================ |
| 2 |
* |
| 3 |
* This file is a part of digiKam project |
| 4 |
* https://www.digikam.org |
| 5 |
* |
| 6 |
* Date : 2009-03-25 |
| 7 |
* Description : Tree View for album models |
| 8 |
* |
| 9 |
* SPDX-FileCopyrightText: 2009-2010 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de> |
| 10 |
* SPDX-FileCopyrightText: 2010-2011 by Andi Clemens <andi dot clemens at gmail dot com> |
| 11 |
* SPDX-FileCopyrightText: 2009-2026 by Gilles Caulier <caulier dot gilles at gmail dot com> |
| 12 |
* |
| 13 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 14 |
* |
| 15 |
* ============================================================ */ |
| 16 |
|
| 17 |
#pragma once |
| 18 |
|
| 19 |
// Local includes |
| 20 |
|
| 21 |
#include "abstractcheckablealbumtreeview.h" |
| 22 |
|
| 23 |
namespace Digikam |
| 24 |
{ |
| 25 |
|
| 26 |
class DateTreeView : public AbstractCountingAlbumTreeView |
| 27 |
{ |
| 28 |
Q_OBJECT |
| 29 |
|
| 30 |
public: |
| 31 |
|
| 32 |
explicit DateTreeView(QWidget* const parent = nullptr, Flags flags = DefaultFlags); |
| 33 |
|
| 34 |
DateAlbumModel* dalbumModel() const; |
| 35 |
DAlbum* currentAlbum() const; |
| 36 |
DAlbum* albumForIndex(const QModelIndex& index) const; |
| 37 |
|
| 38 |
void setDAlbumModel(DateAlbumModel* const model); |
| 39 |
void setAlbumFilterModel(AlbumFilterModel* const filterModel) override; |
| 40 |
|
| 41 |
public Q_SLOTS: |
| 42 |
|
| 43 |
void setCurrentAlbum(int dateId, bool selectInAlbumManager = true); |
| 44 |
}; |
| 45 |
|
| 46 |
} // namespace Digikam |