KBFX – an alternative to T-Menu
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.

73 lines
1.7KB

  1. /*
  2. * Copyright (C) 2006
  3. * Siraj Razick <siraj@kdemail.net>
  4. * PhobosK <phobosk@mail.kbfx.net>
  5. * see Also AUTHORS
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU Library General Public License version 2 as
  9. * published by the Free Software Foundation
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this program; if not, write to the
  18. * Free Software Foundation, Inc.,
  19. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef KBFX_SPINX_TOP_H
  22. #define KBFX_SPINX_TOP_H
  23. #include <tqimage.h>
  24. #include <tqpainter.h>
  25. #include <tqpixmap.h>
  26. #include <tqwidget.h>
  27. #include <kiconloader.h>
  28. #include <klineedit.h>
  29. #include <kuser.h>
  30. #include <kbfxconfig.h>
  31. #include <kbfxplasmapixmapprovider.h>
  32. class KbfxSpinxTop:public TQWidget
  33. {
  34. Q_OBJECT
  35. public:
  36. KbfxSpinxTop ( TQWidget * parent = 0,const char * name = 0 );
  37. virtual ~KbfxSpinxTop();
  38. virtual void paintEvent ( TQPaintEvent * );
  39. virtual void mousePressEvent ( TQMouseEvent * e ) ;
  40. public slots:
  41. signals:
  42. void textChanged ( TQString );
  43. void sizeChange ( int );
  44. private:
  45. void loadFaceIcon();
  46. void createDudeBox();
  47. TQString getUserName();
  48. TQPixmap m_background;
  49. TQPixmap * m_pixmapbuff;
  50. TQPixmap m_faceIcon;
  51. TQPixmap m_dudeBox;
  52. TQString m_currentTextBuffer;
  53. TQString m_userName;
  54. TQPixmap m_iconPixmap;
  55. TQTimer * m_fadeTimer;
  56. };
  57. #endif