home *** CD-ROM | disk | FTP | other *** search
- // **************************************************************************
- // Copyright 1996 David Allison
- //
- // VV VV IIIIII SSSSS TTTTTT AA
- // VV VV II SS TT AA AA
- // VV VV II SSSS TT AA AA
- // VV VV II SS TT AAAAAAAA
- // VV IIIIII SSSS TT AA AA
- //
- // MULTI-THREADED C++ WIMP CLASS LIBRARY
- // for RISC OS
- // **************************************************************************
- //
- // P U B L I C D O M A I N L I C E N C E
- // -------------------------------------------
- //
- // This library is copyright. You may not sell the library for
- // profit, but you may sell products which use it providing
- // those products are presented as executable code and are not
- // libraries themselves. The library is supplied without any
- // warranty and the copyright owner cannot be held responsible for
- // damage resulting from failure of any part of this library.
- //
- // See the User Manual for details of the licence.
- //
- // *************************************************************************
- //
- // main HyperView reader file
- //
-
- #ifndef __hyperview_h
- #define __hyperview_h
-
- #include "Vista:vista.h"
- #include "viewer.h"
-
- class HyperView ;
-
- class Loader : public DataSave
- {
- public:
- Loader (HyperView *h) ;
- ~Loader() ;
- void receive (int action, int task, int my_ref, int your_ref, int data_length, void *data) ;
- private:
- HyperView *hyperview ;
- } ;
-
-
- class HyperView : public Task
- {
- public:
- HyperView() ;
- void click(int x, int y, int button, int icon) ;
- void menu (MenuItem items[]) ;
- Viewer *find_viewer (int handle) ;
- void add_viewer (Viewer *v) ;
- void delete_viewer (Viewer *v) ;
- private:
- Viewer *viewers ;
- Viewer *last_viewer ;
- Loader *loader ;
- } ;
-
- #endif
-