KnowIt – tool for managing notes
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.

knowittree.h 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /***************************************************************************
  2. knowittree.h - description
  3. -------------------
  4. begin : sob gru 20 2003
  5. copyright : (C) 2003 by Micha³ Rudolf
  6. email : mrudolf@kdewebdev.org
  7. ***************************************************************************/
  8. /***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************/
  16. #ifndef __KNOWIT_TREE_H__
  17. #define __KNOWIT_TREE_H__
  18. #include <tdelistview.h>
  19. class TQDragMoveEvent;
  20. class KnowitTree : public TDEListView
  21. {
  22. Q_OBJECT
  23. public:
  24. KnowitTree(TQWidget* parent=0, const char* name = 0);
  25. TQListViewItem* prevItem;
  26. void takeNode(TQListViewItem* item);
  27. void insertNode(TQListViewItem* parent, TQListViewItem* item, TQListViewItem* after = 0);
  28. protected:
  29. virtual void contentsDragMoveEvent(TQDragMoveEvent* event);
  30. public slots:
  31. /** Shows only first-level notes */
  32. void slotCollapseAll();
  33. /** Shows only root of selected tree */
  34. void slotCollapse();
  35. /** Shows all notes */
  36. void slotExpandAll();
  37. /** Shows all notes of selected tree */
  38. void slotExpand();
  39. /** Move note up */
  40. void slotItemUp();
  41. /** Move note down */
  42. void slotItemDown();
  43. /** Move note at the beginning of current list */
  44. void slotItemBegin();
  45. /** Move note at the end of current list */
  46. void slotItemEnd();
  47. /** Move note level up */
  48. void slotItemLeft();
  49. /** Move note level down */
  50. void slotItemRight();
  51. };
  52. #endif