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.

75 lines
1.5 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Turbo Vision - Version 2.0
  3. *
  4. * Copyright (c) 1994 by Borland International
  5. * All Rights Reserved.
  6. *
  7. Modified by Robert H�hne to be used for RHIDE.
  8. *
  9. *
  10. */
  11. #if defined( Uses_THistory ) && !defined( __THistory )
  12. #define __THistory
  13. class TRect;
  14. class TInputLine;
  15. struct TEvent;
  16. class THistoryWindow;
  17. class THistory : public TView
  18. {
  19. public:
  20. THistory( const TRect& bounds, TInputLine *aLink, ushort aHistoryId );
  21. virtual void draw();
  22. virtual TPalette& getPalette() const;
  23. virtual void handleEvent( TEvent& event );
  24. virtual THistoryWindow *initHistoryWindow( const TRect& bounds );
  25. virtual void shutDown();
  26. static char icon[];
  27. static char oicon[];
  28. protected:
  29. TInputLine *link;
  30. ushort historyId;
  31. private:
  32. #if !defined( NO_STREAM )
  33. virtual const char *streamableName() const
  34. { return name; }
  35. protected:
  36. THistory( StreamableInit );
  37. virtual void write( opstream& );
  38. virtual void *read( ipstream& );
  39. public:
  40. static const char * const name;
  41. static TStreamable *build();
  42. #endif // NO_STREAM
  43. };
  44. #if !defined( NO_STREAM )
  45. inline ipstream& operator >> ( ipstream& is, THistory& cl )
  46. { return is >> (TStreamable&)cl; }
  47. inline ipstream& operator >> ( ipstream& is, THistory*& cl )
  48. { return is >> (void *&)cl; }
  49. inline opstream& operator << ( opstream& os, THistory& cl )
  50. { return os << (TStreamable&)cl; }
  51. inline opstream& operator << ( opstream& os, THistory* cl )
  52. { return os << (TStreamable *)cl; }
  53. #endif // NO_STREAM
  54. #endif // Uses_THistory