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.

57 lines
1.1 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * help.h
  3. *
  4. * Turbo Vision - Version 2.0
  5. *
  6. * Copyright (c) 1994 by Borland International
  7. * All Rights Reserved.
  8. *
  9. * Modified by Sergio Sigala <ssigala@globalnet.it>
  10. * Modified by Salvador E. Tropea <set@ieee.org>, <set@users.sourceforge.net>
  11. */
  12. #if defined(Uses_THelpWindow) && !defined(THelpWindow_Included)
  13. #define THelpWindow_Included
  14. // THelpViewer
  15. class THelpViewer : public TScroller
  16. {
  17. public:
  18. THelpViewer( const TRect&, TScrollBar*, TScrollBar*, THelpFile*, ushort );
  19. ~THelpViewer();
  20. virtual void changeBounds( const TRect& );
  21. virtual void draw();
  22. virtual TPalette& getPalette() const;
  23. virtual void handleEvent( TEvent& );
  24. void makeSelectVisible( int, TPoint&, uchar&, int& );
  25. void switchToTopic( int );
  26. THelpFile *hFile;
  27. THelpTopic *topic;
  28. int selected;
  29. };
  30. // THelpWindow
  31. class THelpWindow : public TWindow
  32. {
  33. static const char * helpWinTitle;
  34. public:
  35. THelpWindow( THelpFile*, ushort );
  36. virtual TPalette& getPalette() const;
  37. };
  38. extern void notAssigned( opstream& s, int value );
  39. extern TCrossRefHandler crossRefHandler;
  40. #endif // Uses_THelpWindow && !THelpWindow_Included