home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / MEDIT.LZH / DRANGE.H < prev    next >
C/C++ Source or Header  |  1996-07-05  |  2KB  |  90 lines

  1. #if !defined(__drange_h)              // 番兵。まだインクルードされていない場合にのみ,このファイルを使用
  2. #define __drange_h
  3.  
  4. /*  Project medit
  5.     Project Team DoGA
  6.     Copyright (c) 1995. All Rights Reserved.
  7.  
  8.     サブシステム:    medit.apx Application
  9.     ファイル:        drange.h
  10.     作成者:          Taka2
  11.  
  12.  
  13.     概要
  14.     ====
  15.     TDRange (TDialog) 用のクラス定義
  16. */
  17.  
  18. #include <owl\owlpch.h>
  19. #pragma hdrstop
  20.  
  21. #include <owl\dialog.h>
  22.  
  23. #include "meditapp.rh"            // すべてのリソースの定義
  24.  
  25. class AnimationData;
  26. class Motion;
  27. class TScrollBar;
  28. class TStatic;
  29. enum DirType;
  30. enum DragMode {DRAG_NONE, DRAG_BEGIN, DRAG_END, DRAG_SPEED_BEGIN, DRAG_SPEED_END};
  31.  
  32. //{{TDialog = TDRange}}
  33. class TDRange : public TDialog {
  34.     int axisx, axisy, rangex, rangey;
  35.     int radius;
  36.  
  37.     int begin, end;
  38.     int lastbegin, lastend;
  39.  
  40.     double speed[2];
  41.     DragMode dragflag;
  42.  
  43.     TStatic *message;
  44.     TStatic *framebegin, *frameend;
  45.     TStatic *pointbegin, *pointend;
  46.     TStatic *framebegintext, *frameendtext;
  47.     AnimationData *anim;
  48.     Motion *motion;
  49.     char *mess;
  50.  
  51.     double GetSpeedBegin(TPoint& p);
  52.     double GetSpeedEnd(TPoint& p);
  53.     TPoint GetBezierBegin(double s = -1);
  54.     TPoint GetBezierEnd(double s = -1);
  55.     int GetX(int pos);
  56.     void DrawLine(TDC& dc);
  57.     void DrawBegin(TDC& dc);
  58.     void DrawEnd(TDC& dc);
  59.     void DrawMarker(TDC& dc);
  60.     void Draw(void);
  61.     void Redraw(void);
  62.  
  63.     void MoveBegin(void);
  64.     void MoveEnd(void);
  65. public:
  66.     TDRange (TWindow* parent, AnimationData *a, Motion *m, char *_mess, TResId resId = DIALOG_RANGE, TModule* module = 0);
  67.     virtual ~TDRange ();
  68.  
  69. //{{TDRangeVIRTUAL_BEGIN}}
  70. public:
  71.     virtual void SetupWindow ();
  72.     virtual void Paint (TDC& dc, BOOL erase, TRect& rect);
  73. //{{TDRangeVIRTUAL_END}}
  74.  
  75. //{{TDRangeRSP_TBL_BEGIN}}
  76. protected:
  77.     void EvLButtonDown (UINT modKeys, TPoint& point);
  78.     void EvLButtonUp (UINT modKeys, TPoint& point);
  79.     void CmOK ();
  80.     void EvPaint ();
  81.     void EvMouseMove (UINT modKeys, TPoint& point);
  82.     void HelpClicked ();
  83. //{{TDRangeRSP_TBL_END}}
  84. DECLARE_RESPONSE_TABLE(TDRange);
  85. };    //{{TDRange}}
  86.  
  87.  
  88. #endif                                      // __drange_h の番兵
  89.  
  90.