home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / c / vista / !hyperview / h / hyperview next >
Encoding:
Text File  |  1996-01-25  |  2.0 KB  |  66 lines

  1. // **************************************************************************
  2. //                     Copyright 1996 David Allison
  3. //
  4. //             VV    VV    IIIIII     SSSSS     TTTTTT       AA
  5. //             VV    VV      II      SS           TT       AA  AA
  6. //             VV    VV      II        SSSS       TT      AA    AA
  7. //              VV  VV       II           SS      TT      AAAAAAAA
  8. //                VV       IIIIII     SSSS        TT      AA    AA
  9. //
  10. //                    MULTI-THREADED C++ WIMP CLASS LIBRARY
  11. //                                for RISC OS
  12. // **************************************************************************
  13. //
  14. //             P U B L I C    D O M A I N    L I C E N C E
  15. //             -------------------------------------------
  16. //
  17. //     This library is copyright. You may not sell the library for
  18. //     profit, but you may sell products which use it providing
  19. //     those products are presented as executable code and are not
  20. //     libraries themselves.  The library is supplied without any
  21. //     warranty and the copyright owner cannot be held responsible for
  22. //     damage resulting from failure of any part of this library.
  23. //
  24. //          See the User Manual for details of the licence.
  25. //
  26. // *************************************************************************
  27. //
  28. //  main HyperView reader file
  29. //
  30.  
  31. #ifndef __hyperview_h
  32. #define __hyperview_h
  33.  
  34. #include "Vista:vista.h"
  35. #include "viewer.h"
  36.  
  37. class HyperView ;
  38.  
  39. class Loader : public DataSave
  40.    {
  41.    public:
  42.       Loader (HyperView *h) ;
  43.       ~Loader() ;
  44.       void receive (int action, int task, int my_ref, int your_ref, int data_length, void *data) ;
  45.    private:
  46.       HyperView *hyperview ;
  47.    } ;
  48.  
  49.  
  50. class HyperView : public Task
  51.    {
  52.    public:
  53.       HyperView() ;
  54.       void click(int x, int y, int button, int icon) ;
  55.       void menu (MenuItem items[]) ;
  56.       Viewer *find_viewer (int handle) ;
  57.       void add_viewer (Viewer *v) ;
  58.       void delete_viewer (Viewer *v) ;
  59.    private:
  60.       Viewer *viewers ;
  61.       Viewer *last_viewer ;
  62.       Loader *loader ;
  63.    } ;
  64.  
  65. #endif
  66.