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.

70 lines
1.6 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. Modified by Salvador E. Tropea: added horizontal scrollbar.
  9. *
  10. *
  11. */
  12. #if defined( Uses_TColorItemList ) && !defined( __TColorItemList )
  13. #define __TColorItemList
  14. class TRect;
  15. class TScrollBar;
  16. class TColorItem;
  17. struct TEvent;
  18. class TColorItemList : public TListViewer
  19. {
  20. public:
  21. TColorItemList( const TRect& bounds,
  22. TScrollBar *aScrollBar,
  23. TColorItem *aItems,
  24. TScrollBar *aHScrollBar=0
  25. );
  26. virtual void focusItem( ccIndex item );
  27. virtual void getText( char *dest, ccIndex item, short maxLen );
  28. virtual void handleEvent( TEvent& event );
  29. protected:
  30. TColorItem *items;
  31. #if !defined( NO_STREAM )
  32. private:
  33. virtual const char *streamableName() const
  34. { return name; }
  35. protected:
  36. TColorItemList( StreamableInit );
  37. public:
  38. static const char * const name;
  39. static TStreamable *build();
  40. #endif
  41. };
  42. #if !defined( NO_STREAM )
  43. inline ipstream& operator >> ( ipstream& is, TColorItemList& cl )
  44. { return is >> (TStreamable&)cl; }
  45. inline ipstream& operator >> ( ipstream& is, TColorItemList*& cl )
  46. { return is >> (void *&)cl; }
  47. inline opstream& operator << ( opstream& os, TColorItemList& cl )
  48. { return os << (TStreamable&)cl; }
  49. inline opstream& operator << ( opstream& os, TColorItemList* cl )
  50. { return os << (TStreamable *)cl; }
  51. #endif // NO_STREAM
  52. #endif // Uses_TColorItemList