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.
 
 
 
 
 
 

82 lines
1.7 KiB

  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. #include "kbfxplasmacanvasitem.h"
  22. #include <tdeapplication.h>
  23. #include <kdesktopfile.h>
  24. #include <kiconeffect.h>
  25. void KbfxPlasmaCanvasItem::mousePressEvent ( TQMouseEvent * e )
  26. {
  27. e = e;
  28. //TODO:
  29. //implement this class
  30. //emit clicked();
  31. //tqDebug("Recive Mouse Press Event");
  32. }
  33. void
  34. KbfxPlasmaCanvasItem::mouseReleaseEvent ( TQMouseEvent * e )
  35. {
  36. e = e;
  37. // TQPixmap pix = labelIcon();
  38. emit clicked();
  39. }
  40. void KbfxPlasmaCanvasItem::mouseMoveEvent ( TQMouseEvent * e )
  41. {
  42. e=e;
  43. //tqDebug("Item revices Mouse Event");
  44. }
  45. void KbfxPlasmaCanvasItem::enterEvent ( TQEvent * e )
  46. {
  47. e=e;
  48. //tqDebug("Mouse Enters");
  49. }
  50. void
  51. KbfxPlasmaCanvasItem::exec()
  52. {
  53. if ( m_source == 0 )
  54. return;
  55. // TDEIconEffect::visualActivate(new TQWidget(), this->boundingRect());
  56. m_source->exec();
  57. }
  58. bool
  59. KbfxPlasmaCanvasItem::isCurrent()
  60. {
  61. return m_isCurrent;
  62. }
  63. void
  64. KbfxPlasmaCanvasItem::setCurrent ( bool state )
  65. {
  66. m_isCurrent = state;
  67. }