home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / MEDIT.LZH / STATUS.H < prev    next >
C/C++ Source or Header  |  1995-10-18  |  2KB  |  81 lines

  1. #if !defined(__status_h)              // 番兵。まだインクルードされていない場合にのみ,このファイルを使用
  2. #define __status_h
  3.  
  4. /*  Project medit
  5.     Project Team DoGA
  6.     Copyright (c) 1995. All Rights Reserved.
  7.  
  8.     サブシステム:    medit.apx Application
  9.     ファイル:        status.h
  10.     作成者:          Taka2
  11.  
  12.  
  13.     概要
  14.     ====
  15.     TWinStatus (TWindow) 用のクラス定義
  16. */
  17.  
  18. #include <owl\owlpch.h>
  19. #pragma hdrstop
  20.  
  21. #include <owl\window.h>
  22.  
  23. #define ID_BUTTON_OK 510
  24. #define ID_BUTTON_CANCEL 511
  25.  
  26. #include "meditapp.rh"            // すべてのリソースの定義
  27. class Pose;
  28. class Motion;
  29. class CameraMotion;
  30. class AnimationData;
  31. class Vector;
  32. enum StatusMode {STAT_INIT, STAT_NONE, STAT_OBJ, STAT_CAMERA, STAT_TARGET, STAT_LIGHT, STAT_SELZOOM, STAT_PLAY};
  33. class TButton;
  34. class TStatusBar;
  35. class TGadget;
  36. class TTextGadget;
  37.  
  38. //{{TWindow = TWinStatus}}
  39. class TWinStatus : public TWindow {
  40.     int textwidth, textheight;
  41.     AnimationData *anim;
  42.     StatusMode nowstatus;
  43.  
  44.     void DisplayStatusObject(TDC& dc, int flag, Motion *m);
  45.     void DisplayStatusCamera(TDC& dc, int flag, CameraMotion *m);
  46.     void DisplayStatusTarget(TDC& dc, int flag, CameraMotion *m);
  47.     void DisplayStatusNewMotion(TDC& dc, int flag);
  48.     void DisplayStatusLight(TDC& dc, int flag);
  49.     void VectorOutInt(TDC& dc, int x, int y, Vector &v);
  50.     void VectorOutFloat(TDC& dc, int x, int y, Vector &v);
  51. public:
  52.     void DisplayPosition(Vector& v);
  53.     void DisplayRotation(Vector& v);
  54.     void DisplayRotationYZ(Vector& v);
  55.     void DisplayTarget(Vector& v);
  56.     void DisplayScale(Vector& v);
  57.     void DisplayStatus(int flag);
  58.     void DisplayStatusTemp(Motion *m);
  59.     int UpdateStatus(void);
  60.     void Redraw(void);
  61. public:
  62.     TWinStatus (TWindow* parent, AnimationData *dat, int x, int y, int w, int h);
  63. //    TWinStatus (TWindow* parent, const char far* title = 0, TModule* module = 0);
  64.     virtual ~TWinStatus ();
  65. //{{TWinStatusVIRTUAL_BEGIN}}
  66. public:
  67.     virtual void Paint (TDC& dc, BOOL erase, TRect& rect);
  68.     virtual void SetupWindow ();
  69. //{{TWinStatusVIRTUAL_END}}
  70.  
  71. //{{TWinStatusRSP_TBL_BEGIN}}
  72. protected:
  73.     void EvLButtonDown (UINT modKeys, TPoint& point);
  74. //{{TWinStatusRSP_TBL_END}}
  75. DECLARE_RESPONSE_TABLE(TWinStatus);
  76. };    //{{TWinStatus}}
  77.  
  78.  
  79. #endif                                      // __status_h の番兵
  80.  
  81.