Bibletime – a bible study tool
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.

cwritedisplay.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*********
  2. *
  3. * This file is part of BibleTime's source code, http://www.bibletime.info/.
  4. *
  5. * Copyright 1999-2006 by the BibleTime developers.
  6. * The BibleTime source code is licensed under the GNU General Public License version 2.0.
  7. *
  8. **********/
  9. #ifndef CWRITEDISPLAY_H
  10. #define CWRITEDISPLAY_H
  11. #include "cdisplay.h"
  12. class TDEActionCollection;
  13. class TDEToolBar;
  14. /**The base class for all read/write-display classes.
  15. *@author The BibleTime team
  16. */
  17. class CWriteDisplay : public CDisplay {
  18. protected:
  19. friend class CDisplay;
  20. friend class CPlainWriteDisplay;
  21. CWriteDisplay( CWriteWindow* writeWindow );
  22. ~CWriteDisplay();
  23. public: // Public methods
  24. /**
  25. * Sets the current modified status of the widget.
  26. */
  27. virtual void setModified( const bool modified ) = 0;
  28. /**
  29. * Returns true if the current text was modified.
  30. */
  31. virtual const bool isModified() const = 0;
  32. /**
  33. * Returns the text of this edit widget.
  34. */
  35. virtual const TQString plainText() = 0;
  36. /**
  37. * Creates the necessary action objects and puts them on the toolbar.
  38. */
  39. virtual void setupToolbar( TDEToolBar* bar, TDEActionCollection* actionCollection ) = 0;
  40. };
  41. #endif