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