GR32.Design.Reg.pas 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. unit GR32.Design.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. * ***** END LICENSE BLOCK ***** *)
  31. interface
  32. {$include GR32.inc}
  33. uses
  34. Classes, TypInfo,
  35. {$IFDEF FPC}
  36. LCLIntf, LResources, LazIDEIntf, PropEdits, ComponentEditors
  37. {$ELSE}
  38. DesignIntf
  39. {$ENDIF};
  40. procedure Register;
  41. implementation
  42. {$IFDEF FPC}
  43. {$R 'GR32.Design.Reg.dcr'}
  44. {$ENDIF}
  45. uses
  46. GR32,
  47. GR32.Design.Color32,
  48. GR32.Design.BitmapEditor,
  49. GR32.Design.Misc,
  50. GR32_Image,
  51. {$ifdef MSWINDOWS}
  52. GR32_ExtImage,
  53. {$ENDIF}
  54. GR32_RangeBars,
  55. GR32_ColorPicker,
  56. GR32_ColorSwatch,
  57. GR32_Resamplers;
  58. { Registration }
  59. procedure Register;
  60. begin
  61. RegisterComponents('Graphics32', [
  62. TPaintBox32,
  63. TImage32,
  64. TBitmap32List,
  65. TRangeBar,
  66. TGaugeBar,
  67. TImgView32,
  68. {$ifdef MSWINDOWS}
  69. TSyntheticImage32,
  70. {$ENDIF}
  71. TColorPickerComponent,
  72. TColorPickerRGBA,
  73. TColorPickerHS,
  74. TColorPickerHSV,
  75. TColorPickerGTK,
  76. TColorSwatch
  77. ]);
  78. RegisterComponentEditor(TCustomImage32, TImage32Editor);
  79. RegisterPropertyEditor(TypeInfo(TColor32), nil, '', TColor32Property);
  80. RegisterPropertyEditor(TypeInfo(TBitmap32), nil, '', TBitmap32Property);
  81. RegisterPropertyEditor(TypeInfo(string), TBitmap32, 'ResamplerClassName', nil);
  82. RegisterPropertyEditor(TypeInfo(TCustomResampler), TBitmap32, 'Resampler', TResamplerClassProperty);
  83. RegisterPropertyEditor(TypeInfo(string), TKernelResampler, 'KernelClassName', nil);
  84. RegisterPropertyEditor(TypeInfo(TCustomKernel), TKernelResampler, 'Kernel', TKernelClassProperty);
  85. end;
  86. end.