digikam
albumicongroupitem.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 : 2005-04-25 00007 * Description : implementation to render album icons group item. 00008 * 00009 * Copyright (C) 2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu> 00010 * 00011 * This program is free software; you can redistribute it 00012 * and/or modify it under the terms of the GNU General 00013 * Public License as published by the Free Software Foundation; 00014 * either version 2, or (at your option) 00015 * any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * ============================================================ */ 00023 00024 #ifndef ALBUMICONGROUPITEM_H 00025 #define ALBUMICONGROUPITEM_H 00026 00027 // Local includes. 00028 00029 #include "icongroupitem.h" 00030 00031 namespace Digikam 00032 { 00033 00034 class AlbumIconView; 00035 00036 class AlbumIconGroupItem : public IconGroupItem 00037 { 00038 00039 public: 00040 00041 AlbumIconGroupItem(AlbumIconView* view, int albumID); 00042 ~AlbumIconGroupItem(); 00043 00044 int albumID() const { return m_albumID; } 00045 00046 virtual int compare(IconGroupItem* group); 00047 00048 protected: 00049 00050 void paintBanner(QPainter *p); 00051 00052 private: 00053 00054 int m_albumID; 00055 AlbumIconView* m_view; 00056 }; 00057 00058 } // namespace Digikam 00059 00060 #endif /* ALBUMICONGROUPITEM_H */
KDE 4.2 API Reference