GR32_Reg.pas 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. unit GR32_Reg;
  2. (* ***** BEGIN LICENSE BLOCK *****
  3. * Version: MPL 1.1 or LGPL 2.1 with linking exception
  4. *
  5. * The contents of this file are subject to the Mozilla Public License Version
  6. * 1.1 (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. * http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. *
  15. * Alternatively, the contents of this file may be used under the terms of the
  16. * Free Pascal modified version of the GNU Lesser General Public License
  17. * Version 2.1 (the "FPC modified LGPL License"), in which case the provisions
  18. * of this license are applicable instead of those above.
  19. * Please see the file LICENSE.txt for additional information concerning this
  20. * license.
  21. *
  22. * The Original Code is Graphics32
  23. *
  24. * The Initial Developer of the Original Code is
  25. * Alex A. Denisov
  26. *
  27. * Portions created by the Initial Developer are Copyright (C) 2000-2009
  28. * the Initial Developer. All Rights Reserved.
  29. *
  30. * Contributor(s):
  31. *
  32. * ***** END LICENSE BLOCK ***** *)
  33. interface
  34. {$I GR32.inc}
  35. uses
  36. Classes, TypInfo,
  37. {$IFDEF FPC}
  38. LCLIntf, LResources, LazIDEIntf, PropEdits, ComponentEditors
  39. {$ELSE}
  40. DesignIntf
  41. {$ENDIF};
  42. procedure Register;
  43. implementation
  44. uses
  45. GR32,
  46. GR32_Dsgn_Color,
  47. GR32_Dsgn_Bitmap,
  48. GR32_Dsgn_Misc,
  49. GR32_Image,
  50. {$IFDEF Windows}
  51. GR32_ExtImage,
  52. {$ENDIF}
  53. GR32_Layers,
  54. GR32_RangeBars,
  55. GR32_ColorPicker,
  56. GR32_ColorSwatch,
  57. GR32_Resamplers;
  58. { Registration }
  59. procedure Register;
  60. begin
  61. RegisterComponents('Graphics32', [TPaintBox32, TImage32, TBitmap32List,
  62. TRangeBar, TGaugeBar, TImgView32{$IFDEF Windows}, TSyntheticImage32{$ENDIF},
  63. TColorPickerComponent, TColorPickerRGBA, TColorPickerHS, TColorPickerHSV,
  64. TColorPickerGTK, {$IFDEF COMPILER2010_UP} TColor32Dialog,{$ENDIF}
  65. TColorSwatch]);
  66. RegisterPropertyEditor(TypeInfo(TColor32), nil, '', TColor32Property);
  67. RegisterPropertyEditor(TypeInfo(TBitmap32), nil, '', TBitmap32Property);
  68. RegisterComponentEditor(TCustomImage32, TImage32Editor);
  69. RegisterPropertyEditor(TypeInfo(string), TBitmap32, 'ResamplerClassName', nil);
  70. RegisterPropertyEditor(TypeInfo(TCustomResampler), TBitmap32, 'Resampler', TResamplerClassProperty);
  71. RegisterPropertyEditor(TypeInfo(string), TKernelResampler, 'KernelClassName', nil);
  72. RegisterPropertyEditor(TypeInfo(TCustomKernel), TKernelResampler, 'Kernel', TKernelClassProperty);
  73. end;
  74. initialization
  75. {$IFDEF FPC}
  76. {$i GR32_reg.lrs}
  77. {$ENDIF}
  78. end.