home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tv20cpp.zip / tvision / help.h < prev    next >
C/C++ Source or Header  |  1998-01-19  |  1KB  |  71 lines

  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.  */
  11.  
  12. #if !defined( __HELP_H )
  13. #define __HELP_H
  14.  
  15. #define Uses_TStreamable
  16. #define Uses_ipstream
  17. #define Uses_opstream
  18. #define Uses_fpstream
  19. #define Uses_TObject
  20. #define Uses_TPoint
  21. #define Uses_TRect
  22. #define Uses_TEvent
  23. #define Uses_TScroller
  24. #define Uses_TScrollBar
  25. #define Uses_TWindow
  26. #include <tvision/tv.h>
  27.  
  28. #include <tvision/helpbase.h>
  29.  
  30. // THelpViewer
  31.  
  32. class THelpViewer : public TScroller
  33. {
  34. public:
  35.  
  36.     THelpViewer( const TRect&, TScrollBar*, TScrollBar*, THelpFile*, ushort );
  37.     ~THelpViewer();
  38.  
  39.     virtual void changeBounds( const TRect& );
  40.     virtual void draw();
  41.     virtual TPalette& getPalette() const;
  42.     virtual void handleEvent( TEvent& );
  43.     void makeSelectVisible( int, TPoint&, uchar&, int& );
  44.     void switchToTopic( int );
  45.  
  46.     THelpFile *hFile;
  47.     THelpTopic *topic;
  48.     int selected;
  49. };
  50.  
  51. // THelpWindow
  52.  
  53. class THelpWindow : public TWindow
  54. {
  55.  
  56.     static const char * helpWinTitle;
  57.  
  58. public:
  59.  
  60.     THelpWindow( THelpFile*, ushort );
  61.  
  62.     virtual TPalette& getPalette() const;
  63. };
  64.  
  65.  
  66. extern void notAssigned( opstream& s, int value );
  67.  
  68. extern TCrossRefHandler crossRefHandler;
  69.  
  70. #endif  // __HELP_H
  71.