1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : implementation to render album icon item.
9
* Copyright (C) 2003-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
10
* Copyright (C) 2003-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
12
* This program is free software; you can redistribute it
13
* and/or modify it under the terms of the GNU General
14
* Public License as published by the Free Software Foundation;
15
* either version 2, or (at your option)
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
23
* ============================================================ */
25
#ifndef ALBUMICONITEM_H
26
#define ALBUMICONITEM_H
44
class AlbumIconItemPriv;
46
class AlbumIconItem : public IconItem
51
AlbumIconItem(IconGroupItem* parent, const ImageInfo& info);
54
ImageInfo imageInfo() const;
55
QString filePath() const;
57
QRect thumbnailRect() const;
61
static void dateToString(const QDateTime& datetime, QString& str);
62
static QString squeezedText(QPainter* p, int width, const QString& text);
64
virtual int compare(IconItem *item);
65
virtual QRect clickToOpenRect();
66
virtual QRect clickToRateRect();
68
virtual void setRating(int rating);
69
virtual int rating() const;
73
virtual void paintItem(QPainter *p);
77
AlbumIconItemPriv* const d;
80
} // namespace Digikam
82
#endif // ALBUMICONITEM_H