knotes Library API Documentation

knotebutton.h

00001 /*******************************************************************
00002  KNotes -- Notes for the KDE project
00003 
00004  Copyright (c) 1997-2004, The KNotes Developers
00005 
00006  This program is free software; you can redistribute it and/or
00007  modify it under the terms of the GNU General Public License
00008  as published by the Free Software Foundation; either version 2
00009  of the License, or (at your option) any later version.
00010 
00011  This program is distributed in the hope that it will be useful,
00012  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  GNU General Public License for more details.
00015 
00016  You should have received a copy of the GNU General Public License
00017  along with this program; if not, write to the Free Software
00018  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019 *******************************************************************/
00020 
00021 #ifndef KNOTEBUTTON_H
00022 #define KNOTEBUTTON_H
00023 
00024 #include <qpushbutton.h>
00025 
00026 class QPainter;
00027 class QEvent;
00028 class QResizeEvent;
00029 
00030 
00031 class KNoteButton: public QPushButton
00032 {
00033     Q_OBJECT
00034 public:
00035     KNoteButton( const QString& icon, QWidget *parent=0, const char *name=0 );
00036     ~KNoteButton();
00037 
00038     virtual QSize sizeHint() const;
00039 
00040 protected:
00041     virtual void enterEvent( QEvent * );
00042     virtual void leaveEvent( QEvent * );
00043 
00044     virtual void drawButton( QPainter *p );
00045     virtual void drawButtonLabel( QPainter *p );
00046 
00047 private:
00048     bool m_flat;
00049 };
00050 
00051 #endif
KDE Logo
This file is part of the documentation for knotes Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:36:55 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003