Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

galaxyscreen.h

Go to the documentation of this file.
00001 /*
00002          _/_/_/     _/_/_/   _/_/_/_/    _/_/_/    _/    _/  _/_/_/_/ _/_/_/_/    _/_/_/   _/_/_/_/
00003         _/    _/  _/    _/  _/     _/  _/     _/  _/    _/  _/       _/     _/  _/    _/  _/     _/
00004        _/    _/  _/    _/  _/     _/  _/     _/  _/    _/  _/       _/     _/  _/    _/  _/     _/
00005       _/_/_/    _/    _/  _/_/_/_/   _/     _/  _/    _/  _/_/_/   _/_/_/_/   _/    _/  _/_/_/_/
00006      _/     _/ _/    _/  _/  _/     _/     _/  _/    _/  _/       _/  _/     _/    _/  _/  _/
00007     _/     _/ _/    _/  _/   _/    _/   _/_/  _/    _/  _/       _/   _/    _/    _/  _/   _/
00008    _/     _/ _/    _/  _/    _/     _/_/_/   _/    _/  _/       _/    _/   _/    _/  _/    _/
00009   _/_/_/_/   _/_/_/   _/     _/         _/   _/_/_/   _/_/_/_/ _/     _/   _/_/_/   _/     _/
00010 
00011   \author Hannosset Christophe
00012   \date 5 - Nov - 2003
00013 */
00014 
00015 #if !defined( __GALAXYSCREEN_H__ )
00016 #define __GALAXYSCREEN_H__
00017 
00018 class GalaxyScreen : public XImage      {
00019 private:
00020 
00021         XRect   galaxyRect;
00022 
00023         StarSystem      *curSS;
00024         XPoint  mp;
00025         
00026         int     zoom;
00027         XRect zr;
00028 
00029         XScrollBar      *sbh , *sbv;
00030 
00031         Timer   *timer;  
00032         XPoint lastMousePosition;  
00033 
00034 public:
00035 
00036         static SDL_Surface      *img , *bkgnd;
00037 
00038         GalaxyScreen( void );
00039 
00040         virtual ~GalaxyScreen( void );
00041 
00042         XPoint ToGalaxy( const XPoint &mp );
00043 
00044         void ResetGalaxyDisplay( void );
00045 
00046 protected:
00047 
00048         virtual const bool SetupWindow( const Message &msg );
00049         virtual const bool evMouseMove( const MouseMessage &msg );
00050         virtual const bool evMouseButtonUp( const MouseMessage &msg );
00051         virtual const bool evMouseLClick( const CtrlMessage &msg );
00052         virtual const bool evKeyUp( const KeyboardMessage &msg );
00053         virtual const bool evTimer( const CtrlMessage &msg );
00054 
00055         virtual void Draw( void );
00056 
00057 private:
00058         XLabel  *tooltip;
00061         void ShowTip( const XPoint &DrawPoint );
00062 
00064         void HideTip( void );
00065 };
00066 
00067 #endif

Generated on Fri Dec 5 04:05:59 2003 for Borqueror by doxygen 1.3.3