From c75197f5f239ac226d8443f17be7559a74f39c4b Mon Sep 17 00:00:00 2001 From: wp Date: Sat, 16 Sep 2017 16:42:14 +0000 Subject: [PATCH] DateTimeCtls: HiRes icons for TDateTimePicker by Roland Hahn. Switch icons to .res format. git-svn-id: trunk@55875 - --- .gitattributes | 6 +++- .../design/datetimecontrolsreg.pas | 5 ++- .../datetimectrls/design/datetimectrls.lrs | 33 ------------------ .../datetimectrls/design/datetimectrls.res | Bin 0 -> 2031 bytes .../design/datetimectrlsdsgn.lpk | 8 ++--- .../pictures/TDateTimePicker.png | Bin 353 -> 369 bytes .../pictures/TDateTimePicker_150.png | Bin 0 -> 417 bytes .../pictures/TDateTimePicker_200.png | Bin 0 -> 501 bytes .../pictures/datetimectrls_list.txt | 4 +++ .../pictures/make_datetimectrls_images.bat | 2 ++ 10 files changed, 17 insertions(+), 41 deletions(-) delete mode 100644 components/datetimectrls/design/datetimectrls.lrs create mode 100644 components/datetimectrls/design/datetimectrls.res create mode 100644 components/datetimectrls/pictures/TDateTimePicker_150.png create mode 100644 components/datetimectrls/pictures/TDateTimePicker_200.png create mode 100644 components/datetimectrls/pictures/datetimectrls_list.txt create mode 100644 components/datetimectrls/pictures/make_datetimectrls_images.bat diff --git a/.gitattributes b/.gitattributes index a16943e891..66fd5419b6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1160,13 +1160,17 @@ components/datetimectrls/design/Makefile svneol=native#text/plain components/datetimectrls/design/Makefile.compiled svneol=native#text/plain components/datetimectrls/design/Makefile.fpc svneol=native#text/plain components/datetimectrls/design/datetimecontrolsreg.pas svneol=native#text/pascal -components/datetimectrls/design/datetimectrls.lrs svneol=native#text/pascal +components/datetimectrls/design/datetimectrls.res -text components/datetimectrls/design/datetimectrlsdsgn.lpk svneol=native#text/xml components/datetimectrls/design/datetimectrlsdsgn.pas svneol=native#text/pascal components/datetimectrls/design/datetimepickerpropedit.pas svneol=native#text/pascal components/datetimectrls/lclcalwrapper.pas svneol=native#text/pascal components/datetimectrls/pictures/TDBDateTimePicker.png -text svneol=unset#image/png components/datetimectrls/pictures/TDateTimePicker.png -text svneol=unset#image/png +components/datetimectrls/pictures/TDateTimePicker_150.png -text +components/datetimectrls/pictures/TDateTimePicker_200.png -text +components/datetimectrls/pictures/datetimectrls_list.txt svneol=native#text/plain +components/datetimectrls/pictures/make_datetimectrls_images.bat svneol=native#text/plain components/datetimectrls/readme.txt svneol=native#text/plain components/dbexport/README.txt svneol=native#text/plain components/dbexport/dbexportimg.res -text diff --git a/components/datetimectrls/design/datetimecontrolsreg.pas b/components/datetimectrls/design/datetimecontrolsreg.pas index 3623d0ef5c..befb9d2bfb 100644 --- a/components/datetimectrls/design/datetimecontrolsreg.pas +++ b/components/datetimectrls/design/datetimecontrolsreg.pas @@ -31,6 +31,8 @@ procedure Register; implementation +{$R datetimectrls.res} + uses Classes, DateTimePicker, DBDateTimePicker, LResources; @@ -40,8 +42,5 @@ begin RegisterComponents('Data Controls', [TDBDateTimePicker]); end; -initialization -{$i datetimectrls.lrs} - end. diff --git a/components/datetimectrls/design/datetimectrls.lrs b/components/datetimectrls/design/datetimectrls.lrs deleted file mode 100644 index 7fa51d985e..0000000000 --- a/components/datetimectrls/design/datetimectrls.lrs +++ /dev/null @@ -1,33 +0,0 @@ -LazarusResources.Add('TDateTimePicker','PNG',[ - #137'PNG'#13#10#26#10#0#0#0#13'IHDR'#0#0#0#24#0#0#0#24#8#6#0#0#0#224'w='#248#0 - +#0#0#7'tIME'#7#218#3#23#8'$'#25'n'#143#152#193#0#0#0#23'tEXtSoftware'#0'GLDP' - +'NG ver 3.4q'#133#164#225#0#0#0#8'tpNGGLD3'#0#0#0#0'J'#128')'#31#0#0#0#4'gAM' - +'A'#0#0#177#143#11#252'a'#5#0#0#0#206'IDATx'#156#221#148'1'#14#2'!'#16'E9' - +#150'g"'#246#155'P'#209#210'Zx'#6'.`'#236#12#198#214#27'Xli'#165'{'#132#209 - +#193#176'!d 0B'#161#147#188#252'd'#19#230#207#31#194#10#241#23'5M;'#232#9'i' - +#176','#143'f'#210's'#238'|)'#27'h'#173'AJY'#165#177#129#16#218#19#12'P'#179 - +#9#156's`'#173#173#210'pN)'#5#198#152':'#131#214#21'a'#179#152#172'A'#12'NTC' - +#238#146'I'#131'y'#190#193'f{bA%!'#13#184#144'SS'#6#251#195#157#165'M'#6'%' - +#222#29'V'#226#239#221#18'`'#227#143#194#200#4#224#25#146#160#219#29#228'v' - +#157'r'#188'>='#205#9'r'#187'N'#21#155'3'#19#0#185#235'tr'#150'A'#205#196'A' - +#155#31#218#208#151#252'-E'#3#172#244'g'#197#161'h'#240#179#245#2'2'#16#136 - +#27#211'e'#18'f'#0#0#0#0'IEND'#174'B`'#130 -]); -LazarusResources.Add('TDBDateTimePicker','PNG',[ - #137'PNG'#13#10#26#10#0#0#0#13'IHDR'#0#0#0#24#0#0#0#24#8#6#0#0#0#224'w='#248#0 - +#0#0#7'tIME'#7#218#3#23#8'1'#25'Y:~'#213#0#0#0#23'tEXtSoftware'#0'GLDPNG ver' - +' 3.4q'#133#164#225#0#0#0#8'tpNGGLD3'#0#0#0#0'J'#128')'#31#0#0#0#4'gAMA'#0#0 - +#177#143#11#252'a'#5#0#0#1'(IDATx'#156'c`'#160'''X~'#232#217#127#167#178'#X1' - +'H'#142'*'#6'_~'#248#249'?'#8#128#232#189#23#223#128#13#158#184#233'>e'#22 - +#129'4'#22#204#190#6'6'#8'd('#186#225#213#139'o'#130#229'S&_'#2'[B'#178#5'0' - +#141'0'#23'b3'#28'&'#15'RK'#150#5' '#131#144#131#2#29'#'#251#130'd'#11'\+' - +#142#194'-'#0#185#30'['#28' '#251#132','#31#128','#1'i'#134'YP^>'#137'"L0' - +#136'@'#138#136#5' '#181#207#159'?'#134'c'#16#127#253#134#237#8'K'#176#5#17 - +#204#2'CCc'#188#24#217#2'{{;'#236#22#224#10'"'#170#249#0'W'#16#193'pee'#227 - +#255#170#170'*'#156#184#162#162#3'#'#14#136#10#162#251#247'o'#255#159#182#245 - +'9Q4'#204'P'#24'F'#137'dPR'#196#22'D '#205#196'b'#12'Wc'#3#200'e'#18'!'#31#0 - +'M'#2'ct'#31#16#157'7'#8#249#0#217#2#162'}'#128'n'#1'9q@'#150#15#208']Kv'#28 - +#224#242#1#204#2#154#249#0#31#222'~'#230#29#24'S='#14'@'#134'"'#211'dY@*&' - +#201#2#16'x'#255#254'-'#195#186'u'#219#255#195'0rN'#197#133'I'#178#128#26#0#0 - +#242#176#9'l'#161#206':'#16#0#0#0#0'IEND'#174'B`'#130 -]); diff --git a/components/datetimectrls/design/datetimectrls.res b/components/datetimectrls/design/datetimectrls.res new file mode 100644 index 0000000000000000000000000000000000000000..1a2eb5de7232a3c2bd3af1323a0d8d272bccc207 GIT binary patch literal 2031 zcmZQzU|>)H;{X347|28cg^UagHb9a8|G5}K7+e?}fut)CdouU}=>Q<@%-{`V1wnNQ z2q3g~2Kc%2a!GLkMR+|uTtG@BK$wFKNIodH{Q;y{ik&<|IDnvrBc%h#=PdAuEM{Qf zI|9OtQ?>b|fr64Ht`Q}{`DrEPiAAXl<>lpinR(g8$%zH2dih1^v)|cB0TsRTba4#v z=zKfnAaApRNL&3ZzJ=BnF6XNX8O}>=OWhsV0 zbnpMk?gQ()SFkP(nHRd{wN;Xe=2D}uS3LqwT#D1~?0Q#vyW_L_1n+bC3=M@cfuW)d z3*J{hwq5MFW|NL{ErzZul~2HgnA36K_l94Ou*THj7{ zU3@sa{=S<>ZXi6}>&+*=fF>2CFD-U%uC$*U?oBstEIh=Mpr}8^{ zx~|%>LWj+^bq2@2s2zLG9{ag;lCG7?>{8o#@edgdR-LX4n<>%*iX^0X{z^hT8v$dP z$an@RGXTePIMdH|s>X8>D4sJK-_9`1YXQdd{>3s$!G{$s4nGqyQSf7seIg=wrR0jI zv$N;s=N?>AT2d;P)&wRve$zSK)Ea;E2HW``=M6X<7GKohmFBnTyPW&5qeI0ruZFc@ zdb;(ejJW4&k1XO!ldqR9{r2$nvm3okrLq2T-8Wnrrk`eAmZ{_$oD#`)*dSoq(kpv6 zYaU5_lf1F{|I1w;(sa%jhlH};-p0s~dwY=vSHv{cnt28d=>jZ_63HCE3?<+iSg-3O zao|el+Q#?4GiI?d2(*2we&@vKC*t~~x-9UB_l3C?*=DbgY|^;g`QG)H?w6l`cQ2E- zz4y~4YW*IjCk%T&XBK$%Z(FIco?)kOf41YbZ};xAJ(ipQ|JTA@1`jH@KGeMR54-g4 z<+|Q^8&7@>>08cVy8QRonud)he^y)0W4bcu-P_ehi)Jk>vSD3e>AQ8Mj6Y+RUvRG0 z@!*8azSmL`ifa!{%Kv5>7{@4k;M$pM4KM1?#0A7L_PQ;$sGqidO|81;brZC-vm2Op z9Dri5GQx=l`sfEoN~JL&-?1x~o9z#8FCdcOMsE^`KCeTBKmCXHwX@!lvNA9*YJk#F#hm1X1?mxXFK*T^-=rL2 z=+URe7GL+{r#(l*i@oCa8+hmKcxjg^)@UMjW*?gwM~cR-hgZAvo1O-%#WO`aZDKX( zH4slSmQmvm@}9=3&^)1;NmluHQwn#CcHbdghMjWJG77(2bmSX!7&F@<1LEvDm3$03 z9J)GK6}FzAZ{LEr<68R>3n&&d$kuByKWQS6jakd%&f%>L)|Ez`=sl)W`o< ztgJWxfusMZdr2|DV6@t7V|cnE(m5&XjnDT!y}DCua}LKV literal 0 HcmV?d00001 diff --git a/components/datetimectrls/design/datetimectrlsdsgn.lpk b/components/datetimectrls/design/datetimectrlsdsgn.lpk index 490456c9f9..18a39482a9 100644 --- a/components/datetimectrls/design/datetimectrlsdsgn.lpk +++ b/components/datetimectrls/design/datetimectrlsdsgn.lpk @@ -24,12 +24,12 @@ - - - - + + + + diff --git a/components/datetimectrls/pictures/TDateTimePicker.png b/components/datetimectrls/pictures/TDateTimePicker.png index 0d7c98d5691dae2b544432815dcfa28a9f4a6696..ac82df407ec081cd1db0b68d7a6a313b49e80c00 100644 GIT binary patch delta 342 zcmV-c0jd7s0`UTnB!2{RLP=Bz2nYy#2xN!=000SaNLh0L01m_e01m_fl`9S#0000P zbVXQnQ*UN;cVTj60C#tHE@^ISb7Ns}WiD@WXPfRk8UO$Q?ny*JR7i>Kl)(*yAQXmw znhv2mI7H8SaRAR4wqOgRXIHT24&e@V2M+XLFd|SuZIdSbFMki7^4|Z+i@>jos0F1| zo>jE#I$|U#r7~9Pj1WQ!A(q^_?seOU^GA?N&TjyKaU4-q6#$^`d*eN$L9DVYLs^!~ z+S@=mixKDC`RwDDtP!+rd$@RA*V^8C2hIH%U6|#GHGlCP2#qc|r$|xQA}i9lIDlrD z-Zt1x04akAoKFoFr-XnNsX+ol^!;9fty7jK^JkF~%`hD!usLOV1ZP1_K>z@;j|==^1poj5 z&PhZ;RCt`-lrathArM75mS-aNn^4ixT6hL7VC)RW)*D!CX@8}AgwesUA!HyhLZOqq z{A3g6&mY1H@fS5sJLm~%uq=;e(sS;7DH~|5K}uPrv4IfU6AVzZ37m6at*z2j6=AcOtU(M;R738PNrQR5!Df46K_wv#xR6s*2K&RErA-DU-W^ur@7)q$DPXz;W3 Y0x}SY8`EVHW&i*H07*qoM6N<$f}}WsH~;_u diff --git a/components/datetimectrls/pictures/TDateTimePicker_150.png b/components/datetimectrls/pictures/TDateTimePicker_150.png new file mode 100644 index 0000000000000000000000000000000000000000..333102c181041c9b10d78b1b3b20d7ee5ca39ada GIT binary patch literal 417 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbBSc;uILpXq-h9ji|$mcBZh%9Dc z;5!1sj8nDwq=ABxC9V-A!TD(=<%vb94CUqJdYO6I#mR{Use1WE>9gP2NHH)l%6Ymt zhD5Z!o#x2bWFX*bzpVX&touY(Y2RvoA-;o(9e0?SZdb9rbNC{lvZF~L(|h%ntT)lT zsS6I*)EPHCKhE(?e9EPRPoIT`vYuk`dbvS$)%TNjb?Hwp&wsJYPoi64lXPTR?al@r zYrn$#-#Z>lWX@t@_+;aLd)qVCTvkOE-^&VJN(>CoWm-;b4=s7IBQh{iqN&*KsMebD zjFhz#Ca&N7cad{yq?Klyp;}CNQnm1s{{a{8tj(D*=i9H7pC^9}y1(X_yzNTgfLnEX zx1;9F;lCWkv|vU4p&I3T6LT0^Hcro(#KX{(V0xe9y%A&7q?cA6>Sj)AGgmhM3ovpx z?RZY*clLB$wPS@2n{De1j(t%(_MAQTbLk{qE0x)$w)5g2G8(KpT^Tl0qz4$B44$rj JF6*2UngE5Lq;>!R literal 0 HcmV?d00001 diff --git a/components/datetimectrls/pictures/TDateTimePicker_200.png b/components/datetimectrls/pictures/TDateTimePicker_200.png new file mode 100644 index 0000000000000000000000000000000000000000..ec7ef0feb89475950ef1c782b129f73a1bb75403 GIT binary patch literal 501 zcmVh zLrJseND3M%8YI%JQD8y#EX#t0U&Yu4&-l+U2tcFJC=DAAIF8e8;fRPNNp5@vfR|@G z@@QV?CgM0=bz|3crS{?L=Gct_bzM(hi`Yc~m&*mFX(CNiWLXBoFi@7I)V;GQ#9{1X zv4j8Vy6|Q!&vR5&1>3d(0Bzf%C<<7XC48PRfM*Z{0T^Qlf&c&zMNxk(LKwi*iLHU} z`)Ha501$@qd+tI3P83Dtdv;O8OVFKoYc}h|vMAGu??w78^!fd}rXM}t`9xZ;yaMC^ zyz^;rN{_awD6asy6OU^_*7n}t2IC%||N5c2FyMF!@O datetimectrls_list.txt +..\..\..\tools\lazres.exe ..\design\datetimectrls.res @datetimectrls_list.txt