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.

83 lines
1.7 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_TColorDialog ) && !defined( __TColorDialog )
  12. #define __TColorDialog
  13. class TColorGroup;
  14. struct TEvent;
  15. class TColorDisplay;
  16. class TColorGroupList;
  17. class TLabel;
  18. class TColorSelector;
  19. class TMonoSelector;
  20. class TPalette;
  21. class TColorDialog : public TDialog
  22. {
  23. public:
  24. TColorDialog( TPalette *aPalette, TColorGroup *aGroups );
  25. ~TColorDialog();
  26. virtual uint32 dataSize();
  27. virtual void getData( void *rec );
  28. virtual void handleEvent( TEvent& event );
  29. virtual void setData( void *rec);
  30. TPalette *pal;
  31. protected:
  32. TColorDisplay *display;
  33. TColorGroupList *groups;
  34. TLabel *forLabel;
  35. TColorSelector *forSel;
  36. TLabel *bakLabel;
  37. TColorSelector *bakSel;
  38. TLabel *monoLabel;
  39. TMonoSelector *monoSel;
  40. #if !defined( NO_STREAM )
  41. private:
  42. virtual const char *streamableName() const
  43. { return name; }
  44. protected:
  45. TColorDialog( StreamableInit );
  46. virtual void write( opstream& );
  47. virtual void *read( ipstream& );
  48. public:
  49. static const char * const name;
  50. static TStreamable *build();
  51. #endif
  52. };
  53. #if !defined( NO_STREAM )
  54. inline ipstream& operator >> ( ipstream& is, TColorDialog& cl )
  55. { return is >> (TStreamable&)cl; }
  56. inline ipstream& operator >> ( ipstream& is, TColorDialog*& cl )
  57. { return is >> (void *&)cl; }
  58. inline opstream& operator << ( opstream& os, TColorDialog& cl )
  59. { return os << (TStreamable&)cl; }
  60. inline opstream& operator << ( opstream& os, TColorDialog* cl )
  61. { return os << (TStreamable *)cl; }
  62. #endif // NO_STREAM
  63. #endif // TColorDialog