MMTPANEL.INT 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Tel.: +0351-8012255 =}
  7. {= Loewenstr.7a = info@swiftsoft.de =}
  8. {========================================================================}
  9. {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
  10. {========================================================================}
  11. {= This code is for reference purposes only and may not be copied or =}
  12. {= distributed in any format electronic or otherwise except one copy =}
  13. {= for backup purposes. =}
  14. {= =}
  15. {= No Delphi Component Kit or Component individually or in a collection=}
  16. {= subclassed or otherwise from the code in this unit, or associated =}
  17. {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
  18. {= without express permission from SwiftSoft. =}
  19. {= =}
  20. {= For more licence informations please refer to the associated =}
  21. {= HelpFile. =}
  22. {========================================================================}
  23. {= $Date: 20.01.1998 - 18:00:00 $ =}
  24. {========================================================================}
  25. unit MMTPanel;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. {$IFDEF WIN32}
  30. Windows,
  31. {$ELSE}
  32. WinTypes,
  33. WinProcs,
  34. {$ENDIF}
  35. SysUtils,
  36. Messages,
  37. Classes,
  38. Graphics,
  39. Controls,
  40. Forms,
  41. Dialogs,
  42. ExtCtrls,
  43. Menus,
  44. MMSystem,
  45. MMObj,
  46. MMUtils,
  47. MMMath,
  48. MMMulDiv,
  49. MMRegs,
  50. MMPCMSup,
  51. MMPanel;
  52. type
  53. TMMZoomChangeEvent = procedure(Sender: TObject; Min, Max: Longint) of Object;
  54. {-- TMMTimePanel -----------------------------------------------------}
  55. TMMTimePanel = class(TMMCustomMarkerPanel)
  56. public
  57. constructor Create(AOwner: TComponent); override;
  58. destructor Destroy; override;
  59. property PWaveFormat: PWaveFormatEx read FPWaveFormat write SetPWaveFormat;
  60. property GridWidthX;
  61. property MarkerList;
  62. published
  63. property OnClick;
  64. property OnDblClick;
  65. property OnMouseDown;
  66. property OnMouseMove;
  67. property OnMouseUp;
  68. property OnResize;
  69. property OnTrackBegin;
  70. property OnTrackEnd;
  71. property OnHelpLocatorChanged;
  72. property OnLocatorChanged;
  73. property OnMarkerAChanged;
  74. property OnMarkerBChanged;
  75. property OnMarkersChanged;
  76. property OnRangeChanged;
  77. property OnGridChanged: TNotifyEvent read FOnGridChanged write FOnGridChanged;
  78. property OnZooming: TMMZoomChangeEvent read FOnZooming write FOnZooming;
  79. property OnZoomEnd: TMMZoomChangeEvent read FOnZoomEnd write FOnZoomEnd;
  80. property Height default 20;
  81. property Align;
  82. property Alignment;
  83. property Bevel;
  84. property Enabled;
  85. property Color;
  86. property Ctl3D;
  87. property Font;
  88. property ParentFont;
  89. property ParentColor;
  90. property ParentCtl3D;
  91. property ParentShowHint;
  92. property PopupMenu;
  93. property ShowHint;
  94. property TabOrder;
  95. property TabStop;
  96. property Visible;
  97. property AutoScroll;
  98. property CorralLocator;
  99. property UseHelpLocator;
  100. property UseLocator;
  101. property UseMarkers;
  102. property SnapToGrid;
  103. property SnapRange;
  104. property HelpLocator;
  105. property Locator;
  106. property MarkerA;
  107. property MarkerB;
  108. property LocatorColor;
  109. property MarkerAColor;
  110. property MarkerBColor;
  111. property DrawSolid;
  112. property DrawGriff;
  113. property RangeMinX;
  114. property RangeMaxX;
  115. property DispMinX;
  116. property DispMaxX;
  117. property ZoomColor: TColor read FZoomColor write FZoomColor default clYellow;
  118. property Zoom: Boolean read FZoom write FZoom default True;
  119. property GridStepsX: integer read FGridStepsX write SetGridStepsX default 2;
  120. end;
  121. implementation