| 1 |
/* ============================================================ |
| 2 |
* |
| 3 |
* This file is a part of digiKam project |
| 4 |
* https://www.digikam.org |
| 5 |
* |
| 6 |
* Date : 2003-03-09 |
| 7 |
* Description : Album properties dialog. |
| 8 |
* |
| 9 |
* SPDX-FileCopyrightText: 2003-2004 by Renchi Raju <renchi dot raju at gmail dot com> |
| 10 |
* SPDX-FileCopyrightText: 2005 by Tom Albers <tomalbers at kde dot nl> |
| 11 |
* SPDX-FileCopyrightText: 2006-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 |
// Qt includes |
| 20 |
|
| 21 |
#include <QString> |
| 22 |
#include <QStringList> |
| 23 |
#include <QDialog> |
| 24 |
|
| 25 |
namespace Digikam |
| 26 |
{ |
| 27 |
|
| 28 |
class PAlbum; |
| 29 |
|
| 30 |
class AlbumPropsEdit : public QDialog |
| 31 |
{ |
| 32 |
Q_OBJECT |
| 33 |
|
| 34 |
public: |
| 35 |
|
| 36 |
explicit AlbumPropsEdit(PAlbum* const album, bool create = false); |
| 37 |
~AlbumPropsEdit() override; |
| 38 |
|
| 39 |
QString title() const; |
| 40 |
QString comments() const; |
| 41 |
QDate date() const; |
| 42 |
int parent() const; |
| 43 |
QString category() const; |
| 44 |
QStringList albumCategories() const; |
| 45 |
|
| 46 |
public: |
| 47 |
|
| 48 |
static bool editProps(PAlbum* const album, |
| 49 |
QString& title, |
| 50 |
QString& comments, |
| 51 |
QDate& date, |
| 52 |
QString& category, |
| 53 |
QStringList& albumCategories); |
| 54 |
|
| 55 |
static bool createNew(PAlbum* const parent, |
| 56 |
QString& title, |
| 57 |
QString& comments, |
| 58 |
QDate& date, |
| 59 |
QString& category, |
| 60 |
QStringList& albumCategories, |
| 61 |
int& parentSelector); |
| 62 |
|
| 63 |
private Q_SLOTS: |
| 64 |
|
| 65 |
void slotTitleChanged(); |
| 66 |
void slotNewAlbumTextChanged(int index); |
| 67 |
void slotDateLowButtonClicked(); |
| 68 |
void slotDateAverageButtonClicked(); |
| 69 |
void slotDateHighButtonClicked(); |
| 70 |
void slotHelp(); |
| 71 |
|
| 72 |
private: |
| 73 |
|
| 74 |
/// @note disabled |
| 75 |
explicit AlbumPropsEdit(QWidget*) = delete; |
| 76 |
|
| 77 |
private: |
| 78 |
|
| 79 |
class Private; |
| 80 |
Private* const d = nullptr; |
| 81 |
}; |
| 82 |
|
| 83 |
} // namespace Digikam |