• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

digikam

albumiconitem.h

Go to the documentation of this file.
00001 /* ============================================================
00002  *
00003  * This file is a part of digiKam project
00004  * http://www.digikam.org
00005  *
00006  * Date        : 2003-04-25
00007  * Description : implementation to render album icon item.
00008  * 
00009  * Copyright (C) 2003-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
00010  * Copyright (C) 2003-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
00011  *
00012  * This program is free software; you can redistribute it
00013  * and/or modify it under the terms of the GNU General
00014  * Public License as published by the Free Software Foundation;
00015  * either version 2, or (at your option)
00016  * any later version.
00017  * 
00018  * This program is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  * GNU General Public License for more details.
00022  *
00023  * ============================================================ */
00024 
00025 #ifndef ALBUMICONITEM_H
00026 #define ALBUMICONITEM_H
00027 
00028 // Qt includes.
00029 
00030 #include <QRect>
00031 
00032 // Local includes.
00033 
00034 #include "iconitem.h"
00035 
00036 class QPainter;
00037 class QString;
00038 
00039 namespace Digikam
00040 {
00041 
00042 class ImageInfo;
00043 class AlbumIconItemPriv;
00044 
00045 class AlbumIconItem : public IconItem
00046 {
00047 
00048 public:
00049 
00050     AlbumIconItem(IconGroupItem* parent, const ImageInfo &info);
00051     ~AlbumIconItem();
00052 
00053     ImageInfo imageInfo() const;
00054     QString   filePath() const;
00055 
00056     QRect thumbnailRect() const;
00057 
00058     bool isDirty();
00059 
00060     static QString squeezedText(QPainter* p, int width, const QString& text);
00061 
00062     virtual int compare(IconItem *item);
00063     virtual QRect clickToOpenRect();
00064 
00065 protected:
00066 
00067     virtual void paintItem(QPainter *p);
00068 
00069 private:
00070 
00071     AlbumIconItemPriv *d;
00072 };
00073 
00074 }  // namespace Digikam
00075 
00076 #endif  // ALBUMICONITEM_H

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • digikam
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal