00001 /* 00002 * help.h 00003 * 00004 * Turbo Vision - Version 2.0 00005 * 00006 * Copyright (c) 1994 by Borland International 00007 * All Rights Reserved. 00008 * 00009 * Modified by Sergio Sigala <sergio@sigala.it> 00010 */ 00011 00012 #if !defined( __HELP_H ) 00013 #define __HELP_H 00014 00019 #define Uses_TStreamable 00020 #define Uses_ipstream 00021 #define Uses_opstream 00022 #define Uses_fpstream 00023 #define Uses_TObject 00024 #define Uses_TPoint 00025 #define Uses_TRect 00026 #define Uses_TEvent 00027 #define Uses_TScroller 00028 #define Uses_TScrollBar 00029 #define Uses_TWindow 00030 #include <tvision/tv.h> 00031 00032 #include <tvision/helpbase.h> 00033 00034 // THelpViewer 00035 00039 class THelpViewer : public TScroller 00040 { 00041 public: 00045 THelpViewer( const TRect&, TScrollBar*, TScrollBar*, THelpFile*, ushort ); 00049 ~THelpViewer(); 00053 virtual void changeBounds( const TRect& ); 00057 virtual void draw(); 00061 virtual TPalette& getPalette() const; 00065 virtual void handleEvent( TEvent& ); 00069 void makeSelectVisible( int, TPoint&, uchar&, int& ); 00073 void switchToTopic( int ); 00077 THelpFile *hFile; 00081 THelpTopic *topic; 00085 int selected; 00086 }; 00087 00088 // THelpWindow 00089 00093 class THelpWindow : public TWindow 00094 { 00095 static const char * helpWinTitle; 00096 public: 00100 THelpWindow( THelpFile*, ushort ); 00104 virtual TPalette& getPalette() const; 00105 }; 00106 00110 extern void notAssigned( opstream& s, int value ); 00111 00115 extern TCrossRefHandler crossRefHandler; 00116 00117 #endif // __HELP_H