diff options
Diffstat (limited to 'freebsdtvision/lib/help.h')
-rw-r--r-- | freebsdtvision/lib/help.h | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/freebsdtvision/lib/help.h b/freebsdtvision/lib/help.h new file mode 100644 index 0000000..50cddc4 --- /dev/null +++ b/freebsdtvision/lib/help.h @@ -0,0 +1,117 @@ +/* + * help.h + * + * Turbo Vision - Version 2.0 + * + * Copyright (c) 1994 by Borland International + * All Rights Reserved. + * + * Modified by Sergio Sigala <sergio@sigala.it> + */ + +#if !defined( __HELP_H ) +#define __HELP_H + +/** \file help.h + * help.h + */ + +#define Uses_TStreamable +#define Uses_ipstream +#define Uses_opstream +#define Uses_fpstream +#define Uses_TObject +#define Uses_TPoint +#define Uses_TRect +#define Uses_TEvent +#define Uses_TScroller +#define Uses_TScrollBar +#define Uses_TWindow +#include <tvision/tv.h> + +#include <tvision/helpbase.h> + +// THelpViewer + +/** + * Part of the help system. + */ +class THelpViewer : public TScroller +{ +public: + /** + * Undocumented. + */ + THelpViewer( const TRect&, TScrollBar*, TScrollBar*, THelpFile*, ushort ); + /** + * Undocumented. + */ + ~THelpViewer(); + /** + * Undocumented. + */ + virtual void changeBounds( const TRect& ); + /** + * Undocumented. + */ + virtual void draw(); + /** + * Undocumented. + */ + virtual TPalette& getPalette() const; + /** + * Undocumented. + */ + virtual void handleEvent( TEvent& ); + /** + * Undocumented. + */ + void makeSelectVisible( int, TPoint&, uchar&, int& ); + /** + * Undocumented. + */ + void switchToTopic( int ); + /** + * Undocumented. + */ + THelpFile *hFile; + /** + * Undocumented. + */ + THelpTopic *topic; + /** + * Undocumented. + */ + int selected; +}; + +// THelpWindow + +/** + * Part of the help system. + */ +class THelpWindow : public TWindow +{ + static const char * helpWinTitle; +public: + /** + * Undocumented. + */ + THelpWindow( THelpFile*, ushort ); + /** + * Undocumented. + */ + virtual TPalette& getPalette() const; +}; + +/** + * Undocumented. + */ +extern void notAssigned( opstream& s, int value ); + +/** + * Undocumented. + */ +extern TCrossRefHandler crossRefHandler; + +#endif // __HELP_H |