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.

66 lines
1.4 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_TFileInfoPane ) && !defined( __TFileInfoPane )
  12. #define __TFileInfoPane
  13. class TRect;
  14. struct TEvent;
  15. class TFileInfoPane : public TView
  16. {
  17. public:
  18. TFileInfoPane( const TRect& bounds );
  19. virtual void draw();
  20. virtual TPalette& getPalette() const;
  21. virtual void handleEvent( TEvent& event );
  22. private:
  23. TSearchRec file_block;
  24. static const char * const months[13];
  25. static const char * pmText;
  26. static const char * amText;
  27. #if !defined( NO_STREAM )
  28. virtual const char *streamableName() const
  29. { return name; }
  30. protected:
  31. TFileInfoPane( StreamableInit ) : TView ( streamableInit ) {}
  32. public:
  33. static const char * const name;
  34. static TStreamable *build();
  35. #endif // NO_STREAM
  36. };
  37. #if !defined( NO_STREAM )
  38. inline ipstream& operator >> ( ipstream& is, TFileInfoPane& cl )
  39. { return is >> (TStreamable&)cl; }
  40. inline ipstream& operator >> ( ipstream& is, TFileInfoPane*& cl )
  41. { return is >> (void *&)cl; }
  42. inline opstream& operator << ( opstream& os, TFileInfoPane& cl )
  43. { return os << (TStreamable&)cl; }
  44. inline opstream& operator << ( opstream& os, TFileInfoPane* cl )
  45. { return os << (TStreamable *)cl; }
  46. #endif // NO_STREAM
  47. #endif // Uses_TFileInfoPane