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.

knowitedit.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /***************************************************************************
  2. knowitedit.h - description
  3. -------------------
  4. begin : pi± maj 23 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_EDIT_H__
  17. #define __KNOWIT_EDIT_H__
  18. #include <ktextedit.h>
  19. class KnowitEdit : public KTextEdit
  20. {
  21. Q_OBJECT
  22. public:
  23. bool swapEOL;
  24. KnowitEdit(const TQString& text, const TQString& context=TQString(),
  25. TQWidget* parent=0, const char* name = 0);
  26. KnowitEdit(TQWidget* parent=0, const char* name = 0);
  27. virtual void keyPressEvent(TQKeyEvent* e);
  28. virtual void contentsDragEnterEvent(TQDragEnterEvent* event);
  29. virtual void contentsDropEvent(TQDropEvent* event);
  30. signals:
  31. void textDropped(const TQString& s, int flags);
  32. };
  33. #endif