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_TMonoSelector ) && !defined( __TMonoSelector )
  12. #define __TMonoSelector
  13. class TRect;
  14. struct TEvent;
  15. class TMonoSelector : public TCluster
  16. {
  17. public:
  18. TMonoSelector( const TRect& bounds );
  19. virtual void draw();
  20. virtual void handleEvent( TEvent& event );
  21. virtual Boolean mark( int item );
  22. void newColor();
  23. virtual void press( int item );
  24. void movedTo( int item );
  25. static char button[];
  26. static char obutton[];
  27. private:
  28. #if !defined( NO_STREAM )
  29. virtual const char *streamableName() const
  30. { return name; }
  31. protected:
  32. TMonoSelector( StreamableInit );
  33. public:
  34. static const char * const name;
  35. static TStreamable *build();
  36. #endif // NO_STREAM
  37. };
  38. #if !defined( NO_STREAM )
  39. inline ipstream& operator >> ( ipstream& is, TMonoSelector& cl )
  40. { return is >> (TStreamable&)cl; }
  41. inline ipstream& operator >> ( ipstream& is, TMonoSelector*& cl )
  42. { return is >> (void *&)cl; }
  43. inline opstream& operator << ( opstream& os, TMonoSelector& cl )
  44. { return os << (TStreamable&)cl; }
  45. inline opstream& operator << ( opstream& os, TMonoSelector* cl )
  46. { return os << (TStreamable *)cl; }
  47. #endif // NO_STREAM
  48. #endif // Uses_TMonoSelector