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.

98 lines
4.0 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. /* ---------------------------------------------------------------------- */
  12. /* class TDialog */
  13. /* */
  14. /* Palette layout */
  15. /* 1 = Frame passive */
  16. /* 2 = Frame active */
  17. /* 3 = Frame icon */
  18. /* 4 = ScrollBar page area */
  19. /* 5 = ScrollBar controls */
  20. /* 6 = StaticText */
  21. /* 7 = Label normal */
  22. /* 8 = Label selected */
  23. /* 9 = Label shortcut */
  24. /* 10 = Button normal */
  25. /* 11 = Button default */
  26. /* 12 = Button selected */
  27. /* 13 = Button disabled */
  28. /* 14 = Button shortcut */
  29. /* 15 = Button shadow */
  30. /* 16 = Cluster normal */
  31. /* 17 = Cluster selected */
  32. /* 18 = Cluster shortcut */
  33. /* 19 = InputLine normal text */
  34. /* 20 = InputLine selected text */
  35. /* 21 = InputLine arrows */
  36. /* 22 = History arrow */
  37. /* 23 = History sides */
  38. /* 24 = HistoryWindow scrollbar page area */
  39. /* 25 = HistoryWindow scrollbar controls */
  40. /* 26 = ListViewer normal */
  41. /* 27 = ListViewer focused */
  42. /* 28 = ListViewer selected */
  43. /* 29 = ListViewer divider */
  44. /* 30 = InfoPane */
  45. /* 31 = Cluster disabled */
  46. /* 32 = Reserved */
  47. /* ---------------------------------------------------------------------- */
  48. #if defined( Uses_TDialog ) && !defined( __TDialog )
  49. #define __TDialog
  50. class TRect;
  51. struct TEvent;
  52. class TDialog : public TWindow
  53. {
  54. public:
  55. TDialog( const TRect& bounds, const char *aTitle );
  56. virtual TPalette& getPalette() const;
  57. virtual void handleEvent( TEvent& event );
  58. virtual Boolean valid( ushort command );
  59. #if !defined( NO_STREAM )
  60. private:
  61. virtual const char *streamableName() const
  62. { return name; }
  63. protected:
  64. TDialog( StreamableInit );
  65. public:
  66. static const char * const name;
  67. static TStreamable *build();
  68. #endif // NO_STREAM
  69. };
  70. #if !defined( NO_STREAM )
  71. inline ipstream& operator >> ( ipstream& is, TDialog& cl )
  72. { return is >> (TStreamable&)cl; }
  73. inline ipstream& operator >> ( ipstream& is, TDialog*& cl )
  74. { return is >> (void *&)cl; }
  75. inline opstream& operator << ( opstream& os, TDialog& cl )
  76. { return os << (TStreamable&)cl; }
  77. inline opstream& operator << ( opstream& os, TDialog* cl )
  78. { return os << (TStreamable *)cl; }
  79. #endif // NO_STREAM
  80. #endif // Uses_TDialog