MMTools.pas
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:8k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. {========================================================================}
  2. {=                (c) 1995-98 SwiftSoft Ronald Dittrich                 =}
  3. {========================================================================}
  4. {=                          All Rights Reserved                         =}
  5. {========================================================================}
  6. {=  D 01099 Dresden             = Fax.: +49 (0)351-8037944              =}
  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: 09.08.98 - 16:34:41 $                                        =}
  24. {========================================================================}
  25. unit MMTools;
  26. {$I COMPILER.INC}
  27. {$DEFINE FULL_INSTALL}
  28. {$IFDEF FULL_INSTALL}
  29.        {$DEFINE _WAVE}
  30.        {$DEFINE _VISUAL}
  31.   {$IFDEF WIN32}
  32.        {$DEFINE _DESIGN}
  33.        {.$DEFINE _WMA}
  34.        {.$DEFINE _MPEG}
  35.        {.$DEFINE _CDROM}
  36.        {$DEFINE _MIXER}
  37.        {.$DEFINE _HDREC}
  38.        {$DEFINE _FILTER}
  39.        {$DEFINE _EFFECTS}
  40.     {$IFNDEF CBUILDER}
  41.        {$DEFINE _DSOUND}
  42.        {.$DEFINE _AVI}
  43.     {$ENDIF}
  44.        {.$DEFINE _DIRECTX}
  45.        {.$DEFINE _PCX}
  46.   {$ENDIF}
  47. {$ENDIF}
  48. {$IFDEF BUILD_ACTIVEX}
  49.   {$UNDEF _DESIGN}
  50.   {$UNDEF _MIXER}
  51.   {$UNDEF _HDREC}
  52.   {$UNDEF _AVI}
  53.   {$UNDEF _DIRECTX}
  54. {$ENDIF}
  55. interface
  56. procedure Register;
  57. implementation
  58. {$IFDEF WIN32}
  59.    {$R MMTOOLS.D32}
  60. {$ELSE}
  61.    {$R MMTOOLS.D16}
  62. {$ENDIF}
  63. uses
  64.     Controls,
  65.     Classes,
  66.     {$IFDEF DELPHI6}
  67.     DesignIntf,
  68.     DesignEditors,
  69.     {$ELSE}
  70.     DsgnIntf,
  71.     {$ENDIF}
  72.     {$IFNDEF DELPHI3}
  73.     FiltEdit,
  74.     {$ENDIF}
  75.     SysUtils,
  76.     MPlayer,
  77.     MMAbout,
  78.     MMObj,
  79.     MMUtils,
  80.     MMDesign,
  81.     MMIde,
  82.     MMPropEd,
  83.     MMPanel,
  84.     MMLabel,
  85.     MMScroll,
  86.     MMClrBtn,
  87.     MMButton,
  88.     MMLEDs,
  89.     MMLEDLbl,
  90.     MMSpin,
  91.     MMSwitch,
  92.     MMScrlr,
  93.     MMCDInfo,
  94.     MMHTimer,
  95.     MMLTimer,
  96.     MMSplit,
  97.     MMWheel,
  98.     MMEdit,
  99.     MMSlider,
  100.     MMGauge,
  101.     MMEGauge,
  102.     MMProgr
  103.     {$IFDEF WIN32}
  104.     ,MMProps,
  105.     MMScrSv,
  106.     MMMemMap,
  107.     MMFFile,
  108.     MMFFEdit,
  109.     MMFFPrp,
  110.     MMThread
  111.     {$ENDIF}
  112.     {$IFDEF _DESIGN}
  113.     ,MMDesReg
  114.     {$ENDIF}
  115.     {$IFDEF _WAVE}
  116.     ,MMWavReg
  117.     {$ENDIF}
  118.     {$IFDEF _VISUAL}
  119.     ,MMVisReg
  120.     {$ENDIF}
  121.     {$IFDEF _WMA}
  122.     ,MMWMAReg
  123.     {$ENDIF}
  124.     {$IFDEF _MPEG}
  125.     ,MMMpReg
  126.     {$ENDIF}
  127.     {$IFDEF _CDROM}
  128.     ,MMCDReg
  129.     {$ENDIF}
  130.     {$IFDEF _MIXER}
  131.     ,MMMixReg
  132.     {$ENDIF}
  133.     {$IFDEF _HDREC}
  134.     ,MMHdReg
  135.     {$ENDIF}
  136.     {$IFDEF _FILTER}
  137.     ,MMFltReg
  138.     {$ENDIF}
  139.     {$IFDEF _EFFECTS}
  140.     ,MMFXReg
  141.     {$ENDIF}
  142.     {$IFDEF _DSOUND}
  143.     ,MMDsReg
  144.     {$ENDIF}
  145.     {$IFDEF _AVI}
  146.     ,MMAVIReg
  147.     {$ENDIF}
  148.     {$IFDEF _DIRECTX}
  149.     ,MMDXReg
  150.     {$ENDIF}
  151.     {$IFDEF _PCX}
  152.     ,MMPCXReg
  153.     {$ENDIF}
  154.     ;
  155. {=========================================================================}
  156. procedure Register;
  157. begin
  158.      RegisterComponents('MMTools', [TMMDesigner,
  159.                                   {$IFDEF WIN32}
  160.                                     TMMProperties,
  161.                                     TMMJoystickProperties,
  162.                                     TMMThread,
  163.                                     TMMMemMapFile,
  164.                                     TMMFastFile,
  165.                                     TMMFastFileDialog,
  166.                                     TMMScreenSaver,
  167.                                   {$ENDIF}
  168.                                     TMMScroller,
  169.                                     TMMHiTimer,
  170.                                     TMMLongTimer,
  171.                                     TMMCDInfo,
  172.                                     TMMScrollPanel,
  173.                                     TMMMarkerPanel,
  174.                                     TMMLED,
  175.                                     TMMLEDMode,
  176.                                     TMMLEDDigit,
  177.                                     TMMLEDPanel,
  178.                                     TMMLEDLabel,
  179.                                     TMMColorButton,
  180.                                     TMMSpeedButton,
  181.                                     TMMSpinButton,
  182.                                     TMMLEDSpin,
  183.                                     TMMSwitch,
  184.                                     TMMWheel,
  185.                                     TMMSlider,
  186.                                     TMMGauge,
  187.                                     TMMProgress,
  188.                                     TMMLEDGauge,
  189.                                     TMMNumberEdit,
  190.                                     TMMFloatNumberEdit,
  191.                                     TMMLabel,
  192.                                     TMMSplitter,
  193.                                     TMMBorder,
  194.                                     TMMPanel]);
  195.      {$IFDEF TRIAL}
  196.      RegisterPropertyEditor(TypeInfo(TMMAboutBox),nil,'',TMMAboutBoxEditor);
  197.      {$ENDIF}
  198.      RegisterPropertyEditor(TypeInfo(TComponent),TMMLEDDigit,'Connect',TMMLEDDigitConnectEditor);
  199.      {$IFDEF WIN32}
  200.      RegisterPropertyEditor(TypeInfo(TFileName),TMMMemMapFile,'FileName',TMMMemMapFileNameProperty );
  201.      RegisterPropertyEditor(TypeInfo(TFileName),TMMFastFile,'FileName',TMMFastFileNameProperty );
  202.      {$ENDIF}
  203.      RegisterPropertyEditor(TypeInfo(TWinControl),TMMSplitter,'SizeControl',TMMSplitterSizeControlEditor);
  204.      RegisterComponentEditor(TMMDesigner, TMMDesignerEditor);
  205.      {$IFDEF WIN32}
  206.      RegisterComponentEditor(TMMFastFile, TMMFastFileEditor);
  207.      RegisterComponentEditor(TMMPropertiesDialog, TMMPropertiesEditor);
  208.      {$ENDIF}
  209.      RegisterPropertyEditor(TypeInfo(TMMDeviceId),nil,'',TMMDeviceIdProperty);
  210.      { register all additional packages }
  211.      {$IFDEF _DESIGN}
  212.      MMDesReg.Register;
  213.      {$ENDIF}
  214.      {$IFDEF _WAVE}
  215.      MMWavReg.Register;
  216.      {$ENDIF}
  217.      {$IFDEF _VISUAL}
  218.      MMVisReg.Register;
  219.      {$ENDIF}
  220.      {$IFDEF _WMA}
  221.      MMWMAReg.Register;
  222.      {$ENDIF}
  223.      {$IFDEF _MPEG}
  224.      MMMpReg.Register;
  225.      {$ENDIF}
  226.      {$IFDEF _CDROM}
  227.      MMCDReg.Register;
  228.      {$ENDIF}
  229.      {$IFDEF _MIXER}
  230.      MMMixReg.Register;
  231.      {$ENDIF}
  232.      {$IFDEF _HDREC}
  233.      MMHdReg.Register;
  234.      {$ENDIF}
  235.      {$IFDEF _FILTER}
  236.      MMFltReg.Register;
  237.      {$ENDIF}
  238.      {$IFDEF _EFFECTS}
  239.      MMFXReg.Register;
  240.      {$ENDIF}
  241.      {$IFDEF _DSOUND}
  242.      MMDsReg.Register;
  243.      {$ENDIF}
  244.      {$IFDEF _AVI}
  245.      MMAVIReg.Register;
  246.      {$ENDIF}
  247.      {$IFDEF _DIRECTX}
  248.      MMDXReg.Register;
  249.      {$ENDIF}
  250.      {$IFDEF _PCX}
  251.      MMPCXReg.Register;
  252.      {$ENDIF}
  253. end;
  254. initialization
  255.      { Register the properties for TMMDesigner }
  256.      RegisterProperty(ptOutput,'Misc',TMMCDInfo,'Player',TMediaPlayer,nil);
  257. end.