1
/* ============================================================
2
* File : cameraiconitem.h
3
* Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
7
* Copyright 2003 by Renchi Raju
9
* This program is free software; you can redistribute it
10
* and/or modify it under the terms of the GNU General
11
* Public License as published bythe Free Software Foundation;
12
* either version 2, or (at your option)
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* ============================================================ */
22
#ifndef CAMERAICONITEM_H
23
#define CAMERAICONITEM_H
25
#include "thumbitem.h"
36
class CameraIconItem : public ThumbItem
38
friend class CameraIconView;
42
CameraIconItem(ThumbView* parent,
43
const GPFileItemInfo* fileInfo,
44
const QPixmap& pixmap);
47
const GPFileItemInfo* fileInfo();
49
void setPixmap(const QImage& thumb);
53
virtual void paintItem(QPainter *p, const QColorGroup& cg);
59
const GPFileItemInfo* fileInfo_;
60
int pixWidth_, pixHeight_;
62
static QPixmap* newEmblem;
63
static const char* new_xpm[];
66
#endif /* CAMERAICONITEM_H */