chalk

kis_iconwidget.h
1/*
2 * Copyright (c) 2000 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.
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
20#ifndef KIS_ICONWIDGET_H_
21#define KIS_ICONWIDGET_H_
22
23#include <tqtoolbutton.h>
24
25class KoIconItem;
26
27class KisIconWidget : public TQToolButton {
28 typedef TQToolButton super;
29 TQ_OBJECT
30
31
36public:
37 KisIconWidget(TQWidget *parent = 0, const char *name = 0);
38
39public slots:
40 void slotSetItem(KoIconItem& item);
41
42protected:
43 virtual void drawButtonLabel(TQPainter *gc);
44
45private:
46 KoIconItem *m_item;
47};
48
49#endif // KIS_ICONWIDGET_H_
50