chalk

kis_icon_item.h
1/*
2 * Copyright (c) 1999 Matthias Elter <elter@kde.org>
3 * Copyright (c) 2003 Patrick Julien <freak@codepimps.org
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.g
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19#ifndef KIS_ICON_ITEM_H_
20#define KIS_ICON_ITEM_H_
21
22#include <koIconChooser.h>
23
24class KisResource;
25
26class KisIconItem : public KoIconItem {
27
28public:
29 KisIconItem(KisResource *resource);
30 virtual ~KisIconItem();
31
32 virtual TQPixmap& pixmap() const;
33 virtual TQPixmap& thumbPixmap() const;
34
35 KisResource *resource() const;
36
37 virtual int compare(const KoIconItem *other) const;
38
39 void updatePixmaps();
40
41private:
42 KisResource *m_resource;
43 TQPixmap m_pixmap;
44 TQPixmap m_thumb;
45};
46
47#endif // KIS_ICON_ITEM_H_
48
The KisResource class provides a representation of Chalk image resources.