~ubuntu-branches/ubuntu/edgy/digikam/edgy-proposed

« back to all changes in this revision

Viewing changes to digikamcameraclient/cameraui/cameraiconitem.h

  • Committer: Bazaar Package Importer
  • Author(s): Paul Telford
  • Date: 2004-09-23 17:21:39 UTC
  • Revision ID: james.westby@ubuntu.com-20040923172139-3b3ji0dvomon3lod
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 * File  : cameraiconitem.h
 
3
 * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
4
 * Date  : 2003-01-23
 
5
 * Description : 
 
6
 * 
 
7
 * Copyright 2003 by Renchi Raju
 
8
 
 
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)
 
13
 * any later version.
 
14
 * 
 
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.
 
19
 * 
 
20
 * ============================================================ */
 
21
 
 
22
#ifndef CAMERAICONITEM_H
 
23
#define CAMERAICONITEM_H
 
24
 
 
25
#include "thumbitem.h"
 
26
 
 
27
class QString;
 
28
class QPixmap;
 
29
class QImage;
 
30
class QPainter;
 
31
class QColorGroup;
 
32
 
 
33
class GPFileItemInfo;
 
34
class ThumbView;
 
35
 
 
36
class CameraIconItem : public ThumbItem
 
37
{
 
38
    friend class CameraIconView;
 
39
    
 
40
public:
 
41
 
 
42
    CameraIconItem(ThumbView* parent,
 
43
                   const GPFileItemInfo* fileInfo,
 
44
                   const QPixmap& pixmap);
 
45
    ~CameraIconItem();
 
46
 
 
47
    const GPFileItemInfo* fileInfo();
 
48
    
 
49
    void setPixmap(const QImage& thumb);
 
50
 
 
51
protected:
 
52
 
 
53
    virtual void paintItem(QPainter *p, const QColorGroup& cg);
 
54
    
 
55
private:
 
56
 
 
57
    void loadNewEmblem();
 
58
 
 
59
    const GPFileItemInfo* fileInfo_;
 
60
    int pixWidth_, pixHeight_;
 
61
 
 
62
    static QPixmap* newEmblem;
 
63
    static const char* new_xpm[];
 
64
};
 
65
 
 
66
#endif /* CAMERAICONITEM_H */