kspread

dlabel.h

00001 /*
00002 
00003  $Id: dlabel.h 466447 2005-10-02 17:54:10Z zander $
00004 
00005  KCalc 
00006 
00007  Copyright (C) Bernd Johannes Wuebben
00008                wuebben@math.cornell.edu
00009            wuebben@kde.org
00010 
00011  This program is free software; you can redistribute it and/or
00012  modify it under the terms of the GNU General Public License
00013  as published by the Free Software Foundation; either version 2
00014  of the License, or (at your option) any later version.
00015 
00016  This program is distributed in the hope that it will be useful,
00017  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  GNU General Public License for more details.
00020 
00021  You should have received a copy of the GNU General Public License
00022  along with this program; if not, write to the Free Software
00023  Foundation, Inc., 51 Franklin Street, Fifth Floor,
00024  * Boston, MA 02110-1301, USA.
00025 
00026  */
00027 
00028 
00029 #ifndef _D_LABEL_H_
00030 #define _D_LABEL_H_
00031 
00032 #include <qlabel.h>
00033 
00034 
00035 class DLabel : public QLabel {
00036 
00037 Q_OBJECT
00038 
00039 public:
00040 
00041 DLabel(QWidget *parent=0, const char *name=0);
00042 
00043   ~DLabel() {}
00044 
00045 protected:
00046   
00047   void  mousePressEvent ( QMouseEvent *);
00048 
00049 public:
00050   bool isLit();
00051   void setLit(bool _lit);
00052   int Button();
00053 
00054 private:
00055   int button;
00056   bool lit;
00057 
00058 signals:
00059   void clicked();
00060 
00061 };
00062 
00063 
00064 
00065 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys