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_TIndicator ) && !defined( __TIndicator )
  12. #define __TIndicator
  13. class TRect;
  14. class TPoint;
  15. class TIndicator : public TView
  16. {
  17. public:
  18. TIndicator( const TRect& );
  19. virtual void draw();
  20. virtual TPalette& getPalette() const;
  21. virtual void setState( ushort, Boolean );
  22. void setValue( const TPoint&, Boolean );
  23. static char dragFrame;
  24. static char normalFrame;
  25. static char modifiedStar;
  26. static char odragFrame;
  27. static char onormalFrame;
  28. static char omodifiedStar;
  29. protected:
  30. TPoint location;
  31. Boolean modified;
  32. private:
  33. #if !defined( NO_STREAM )
  34. virtual const char *streamableName() const
  35. { return name; }
  36. protected:
  37. TIndicator( StreamableInit );
  38. public:
  39. static const char * const name;
  40. static TStreamable *build();
  41. #endif // NO_STREAM
  42. };
  43. #if !defined( NO_STREAM )
  44. inline ipstream& operator >> ( ipstream& is, TIndicator& cl )
  45. { return is >> (TStreamable&)cl; }
  46. inline ipstream& operator >> ( ipstream& is, TIndicator*& cl )
  47. { return is >> (void *&)cl; }
  48. inline opstream& operator << ( opstream& os, TIndicator& cl )
  49. { return os << (TStreamable&)cl; }
  50. inline opstream& operator << ( opstream& os, TIndicator* cl )
  51. { return os << (TStreamable *)cl; }
  52. #endif // NO_STREAM
  53. #endif // Uses_TIndicator