lazreport: restore resource images from LRS and make a RES file instead

git-svn-id: trunk@43130 -
This commit is contained in:
paul 2013-10-06 13:49:24 +00:00
parent 78486741b6
commit 249665f319
22 changed files with 38 additions and 4307 deletions

19
.gitattributes vendored
View File

@ -2105,9 +2105,24 @@ components/lazreport/samples/userds/usuario.lrf svneol=native#text/xml
components/lazreport/source/addons/DialogControls/lr_dialogdesign.lpk svneol=native#text/plain
components/lazreport/source/addons/DialogControls/lr_dialogdesign.pas svneol=native#text/plain
components/lazreport/source/addons/DialogControls/lrdbdialogcontrols.pas svneol=native#text/plain
components/lazreport/source/addons/DialogControls/lrdbdialogcontrols_img.inc svneol=native#text/plain
components/lazreport/source/addons/DialogControls/lrdbdialogcontrols_img.res -text
components/lazreport/source/addons/DialogControls/lrdialogcontrols.pas svneol=native#text/plain
components/lazreport/source/addons/DialogControls/lrdialogcontrols_img.inc svneol=native#text/plain
components/lazreport/source/addons/DialogControls/lrdialogcontrols_img.res -text
components/lazreport/source/addons/DialogControls/resources/lrdialogcontrols_img.txt svneol=native#text/plain
components/lazreport/source/addons/DialogControls/resources/mk_res.bat svneol=native#text/plain
components/lazreport/source/addons/DialogControls/resources/tlrbutton.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrbuttonpanel.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrcheckbox.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrcombobox.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrdateedit.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrdblookupcombobox.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlredit.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrimage.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrlabel.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrlistbox.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrmemo.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrradiobutton.bmp -text
components/lazreport/source/addons/DialogControls/resources/tlrradiogroup.bmp -text
components/lazreport/source/addons/SqlDB/lr_ibconnection.pas svneol=native#text/plain
components/lazreport/source/addons/SqlDB/lr_pqconnection.pas svneol=native#text/plain
components/lazreport/source/addons/SqlDB/lr_sqldb.lpk svneol=native#text/plain

View File

@ -35,7 +35,7 @@ unit lrDBDialogControls;
interface
uses
Classes, SysUtils, LResources, LRDialogControls, Graphics, LR_Class,
Classes, SysUtils, LRDialogControls, Graphics, LR_Class,
Controls, DbCtrls, StdCtrls, DB;
type
@ -75,6 +75,8 @@ type
end;
implementation
{$R lrdbdialogcontrols_img.res}
uses lclintf, Themes, LCLType, DBPropEdits, PropEdits, LR_Utils, LR_DBRel;
var
@ -253,7 +255,6 @@ begin
end;
initialization
{$I lrdbdialogcontrols_img.inc}
InitLRComp;
RegisterPropertyEditor(TypeInfo(string), TlrDBLookupComboBox, 'ListSource', TlrDBLookupComboBoxListSourceProperty);

View File

@ -1,112 +0,0 @@
LazarusResources.Add('tlrdblookupcombobox','BMP',[
'BM'#138#9#0#0#0#0#0#0#138#0#0#0'|'#0#0#0#24#0#0#0#24#0#0#0#1#0' '#0#3#0#0#0#0
+#9#0#0#19#11#0#0#19#11#0#0#0#0#0#0#0#0#0#0#0#0#255#0#0#255#0#0#255#0#0#0#0#0
+#0#255#1#0#0#0#0#0#0#0#0#0#0#0'T'#184#30#252#0#0#0#0#0#0#0#0'fff'#252#0#0#0#0
+#0#0#0#0#196#245'('#255#0#0#0#0#0#0#0#0#0#0#0#0#4#0#0#0#0#0#0#0#0#0#0#0#0#0#0
+#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+#255#255#255#0#255#255#255#0#237#239#239'?'#183#174#174#255#183#174#174#255
+#183#174#174#255#183#176#175#255#183#176#175#255#183#176#175#255#183#176#175
+#255#183#176#175#255#183#176#175#255#183#176#175#255#183#176#175#255#183#176
+#175#255#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255
+#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#146
+'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'
+#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255
+#183#176#175#255#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+#255#0#146'ww'#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255
+#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255
+#255#255#255#255#255#255#255#255#255#255#255#146'ww'#255#183#176#175#255#255
+#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#146'ww'#255
+#255#255#255#255'311'#255'311'#255'311'#255'311'#255'311'#255'311'#255'311'
+#255'311'#255'311'#255#255#255#255#255#146'ww'#255#183#176#175#255#255#255
+#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#146'ww'#255#255#255
+#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255
+#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255
+#255#255#255#255#146'ww'#255#183#176#175#255#255#255#255#0#255#255#255#0#255
+#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+#255#0#255#255#255#0#255#255#255#0#146'ww'#255#188#187#189#255#188#187#189
+#255#188#187#189#255#188#187#189#255#188#187#189#255#188#187#189#255#188#187
+#189#255#188#187#189#255#188#187#189#255#188#187#189#255#188#187#189#255#146
+'ww'#255#183#176#175#255#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+#255#255#255#0#146'ww'#255#188#187#189#255'311'#255'311'#255'311'#255'311'
+#255'311'#255'311'#255'311'#255'311'#255'311'#255#188#187#189#255#146'ww'#255
+#183#176#175#255#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+#255#255#0#254#253#252#0#254#253#252#0#254#253#252#0#254#253#252#0#254#253
+#252#0#146'ww'#255#188#187#189#255#188#187#189#255#188#187#189#255#188#187
+#189#255#188#187#189#255#188#187#189#255#188#187#189#255#188#187#189#255#188
+#187#189#255#188#187#189#255#188#187#189#255#146'ww'#255#183#176#175#255#255
+#255#255#0#255#255#255#0#254#253#252#0#254#253#252#0#230#194#167#255#196'vB'
+#255#196'vB'#255#196'vB'#255#196'vB'#255#196'vB'#255#146'ww'#255#255#255#255
+#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255
+#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255
+#255#255#255#146'ww'#255#183#176#175#255#255#255#255#0#255#255#255#0#230#194
+#167#255#197'xE'#255#196'vB'#255#236#209#189#255#255#255#255#255#243#225#211
+#255#236#209#189#255#230#194#167#255#146'ww'#255#255#255#255#255'311'#255'31'
+'1'#255'311'#255'311'#255'311'#255'311'#255'311'#255'311'#255'311'#255#255
+#255#255#255#146'ww'#255#183#176#175#255#255#255#255#0#255#255#255#0#197'xE'
+#255#217#163'{'#255#223#178#145#255#236#209#189#255#255#255#255#255#243#225
+#211#255#236#209#189#255#230#194#167#255#146'ww'#255#255#255#255#255#255#255
+#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255
+#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255
+#146'ww'#255#183#176#175#255#255#255#255#0#255#255#255#0#210#147'd'#255#217
+#163'{'#255#223#178#145#255#196'vB'#255#196'vB'#255#146'ww'#255#146'ww'#255
+#146'ww'#255#129'yy'#255'zzz'#255'zzz'#255'zzz'#255'zzz'#255'zzz'#255'zzz'
+#255'zzz'#255#136'xx'#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#183
+#176#175#255#255#255#255#0#255#255#255#0#210#147'd'#255#197'xE'#255#196'vB'
+#255#236#209#189#255#255#255#255#255#146'ww'#255#255#255#255#255#255#255#255
+#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255
,#255#255#255#255#255#255#255#255#255#255#255#255#255#255#146'ww'#255#227#231
+#231#255#227#231#231#255#227#231#231#255#146'ww'#255#183#176#175#255#255#255
+#255#0#255#255#255#0#197'xE'#255#217#163'{'#255#223#178#145#255#236#209#189
+#255#255#255#255#255#146'ww'#255#255#255#255#255'311'#255'311'#255'311'#255
+'311'#255'311'#255'311'#255'311'#255'311'#255#255#255#255#255#146'ww'#255#227
+#231#231#255'>??'#255#227#231#231#255#146'ww'#255#183#176#175#255#255#255#255
+#0#255#255#255#0#210#147'd'#255#217#163'{'#255#223#178#145#255#196'vB'#255
+#196'vB'#255#146'ww'#255#255#255#255#255#255#255#255#255#255#255#255#255#255
+#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255#255
+#255#255#255#255#255#255#255#255#146'ww'#255#227#231#231#255#227#231#231#255
+#227#231#231#255#146'ww'#255#237#239#239'?'#255#255#255#0#255#255#255#0#210
+#147'd'#255#197'xE'#255#196'vB'#255#236#209#189#255#255#255#255#255#146'ww'
+#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255
+#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#146'ww'#255#146
+'ww'#255#146'ww'#255#237#239#239'?'#255#255#255#0#255#255#255#0#255#255#255#0
+#197'xE'#255#217#163'{'#255#223#178#145#255#236#209#189#255#255#255#255#255
+#243#225#211#255#236#209#189#255#230#194#167#255#223#178#145#255#217#163'{'
+#255#214#155'p'#255#196'vB'#255#254#253#252#0#254#253#252#0#255#255#255#0#255
+#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+#255#0#255#255#255#0#255#255#255#0#255#255#255#0#210#147'd'#255#217#163'{'
+#255#223#178#145#255#196'vB'#255#196'vB'#255#196'vB'#255#196'vB'#255#196'vB'
+#255#196'vB'#255#217#163'{'#255#214#155'p'#255#210#147'd'#255#254#253#252#0
+#254#253#252#0#0#0#0#255#0#0#0#255#255#255#255#0#255#255#255#0#0#0#0#255#0#0
+#0#255#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#210#147'd'#255
+#196'vB'#255#196'vB'#255#230#194#167#255#236#209#189#255#230#194#167#255#223
+#178#145#255#217#163'{'#255#214#155'p'#255#196'vB'#255#196'vB'#255#210#147'd'
+#255#254#253#252#0#254#253#252#0#0#0#0#255#0#0#0#255#255#255#255#0#255#255
+#255#0#0#0#0#255#0#0#0#255#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+#255#0#196'vB'#255#214#155'p'#255#223#178#145#255#236#209#189#255#243#225#211
+#255#236#209#189#255#230#194#167#255#223#178#145#255#217#163'{'#255#214#155
+'p'#255#210#147'd'#255#196'vB'#255#254#253#252#0#254#253#252#0#255#255#255#0
+#255#255#255#0#0#0#0#255#0#0#0#255#255#255#255#0#255#255#255#0#255#255#255#0
+#255#255#255#0#255#255#255#0#255#255#255#0#230#194#167#255#196'vB'#255#196'v'
+'B'#255#243#225#211#255#255#255#255#255#243#225#211#255#236#209#189#255#230
+#194#167#255#223#178#145#255#196'vB'#255#196'vB'#255#230#194#167#255#254#253
+#252#0#254#253#252#0'ffw'#255#0#0#0#255#255#255#255#0#255#255#255#0#0#0#0#255
+'ffw'#255#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#254#253#252
+#0#254#253#252#0#230#194#167#255#196'vB'#255#196'vB'#255#196'vB'#255#196'vB'
+#255#196'vB'#255#196'vB'#255#230#194#167#255#254#253#252#0#254#253#252#0#255
+#255#255#0#255#255#255#0'ffw'#255#0#0#0#255#255#255#255#0#255#255#255#0#0#0#0
+#255'ffw'#255#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255
+#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255
+#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0
+#255#255#255#0
]);

View File

@ -35,7 +35,7 @@ unit LRDialogControls;
interface
uses
Classes, SysUtils, LResources, Graphics, DB, LR_Class, Controls, StdCtrls,
Classes, SysUtils, Graphics, DB, LR_Class, Controls, StdCtrls,
LMessages, LCLType, LCLIntf, Buttons, EditBtn, Themes, ButtonPanel;
type
@ -306,6 +306,8 @@ procedure Register;
procedure DoRegsiterControl(var cmpBMP:TBitmap; lrClass:TlrVisualControlClass);
implementation
{$R lrdialogcontrols_img.res}
uses typinfo, types,
lrDBDialogControls;
@ -331,7 +333,7 @@ begin
if not assigned(cmpBMP) then
begin
cmpBMP := TBitmap.Create;
cmpBMP.LoadFromLazarusResource(lrClass.ClassName);
cmpBMP.LoadFromResourceName(HInstance, lrClass.ClassName);
frRegisterObject(lrClass, cmpBMP, lrClass.ClassName, nil, otlUIControl, nil);
end;
end;
@ -1168,7 +1170,6 @@ end;
initialization
{$I lrdialogcontrols_img.inc}
InitLRComp;
finalization

View File

@ -0,0 +1,12 @@
tlrbutton.bmp
tlrbuttonpanel.bmp
tlrcheckbox.bmp
tlrcombobox.bmp
tlrdateedit.bmp
tlredit.bmp
tlrimage.bmp
tlrlabel.bmp
tlrlistbox.bmp
tlrmemo.bmp
tlrradiobutton.bmp
tlrradiogroup.bmp

View File

@ -0,0 +1,2 @@
..\..\..\..\..\..\tools\lazres.exe ..\lrdbdialogcontrols_img.res tlrdblookupcombobox.bmp
..\..\..\..\..\..\tools\lazres.exe ..\lrdialogcontrols_img.res @lrdialogcontrols_img.txt

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB