TDE personal information management applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
1.4 KiB

  1. /*******************************************************************
  2. KNotes -- Notes for the KDE project
  3. Copyright (c) 1997-2004, The KNotes Developers
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. as published by the Free Software Foundation; either version 2
  7. of the License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15. *******************************************************************/
  16. #ifndef KNOTEBUTTON_H
  17. #define KNOTEBUTTON_H
  18. #include <tqpushbutton.h>
  19. class TQPainter;
  20. class TQEvent;
  21. class TQResizeEvent;
  22. class KNoteButton: public TQPushButton
  23. {
  24. Q_OBJECT
  25. public:
  26. KNoteButton( const TQString& icon, TQWidget *parent=0, const char *name=0 );
  27. ~KNoteButton();
  28. virtual TQSize sizeHint() const;
  29. protected:
  30. virtual void enterEvent( TQEvent * );
  31. virtual void leaveEvent( TQEvent * );
  32. virtual void drawButton( TQPainter *p );
  33. virtual void drawButtonLabel( TQPainter *p );
  34. private:
  35. bool m_flat;
  36. };
  37. #endif