kspread

dlabel.h
1/*
2
3 $Id: dlabel.h 466447 2005-10-02 17:54:10Z zander $
4
5 KCalc
6
7 Copyright (C) Bernd Johannes Wuebben
8 wuebben@math.cornell.edu
9 wuebben@kde.org
10
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation; either version 2
14 of the License, or (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA.
25
26 */
27
28
29#ifndef _D_LABEL_H_
30#define _D_LABEL_H_
31
32#include <tqlabel.h>
33
34
35class DLabel : public TQLabel {
36
37TQ_OBJECT
38
39
40public:
41
42DLabel(TQWidget *parent=0, const char *name=0);
43
44 ~DLabel() {}
45
46protected:
47
48 void mousePressEvent ( TQMouseEvent *);
49
50public:
51 bool isLit();
52 void setLit(bool _lit);
53 int Button();
54
55private:
56 int button;
57 bool lit;
58
59signals:
60 void clicked();
61
62};
63
64
65
66#endif