From 81d47b134448dd464c1c3b750c6695e5363c6ff2 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Tue, 12 Oct 2010 22:54:20 +0000 Subject: [PATCH] ephoto is mostly ready again! Well, at least that was what I had time and stamina to do. Please join the development with your ideas and requirements. The toolbar is now placed on top, because default.edc (from elementary) says so. We better use elementary's profile to define the theme to use, and a theme could have it at the bottom (mobiles?). I've added all options to toolbar, which makes it very wide on single image viewer. We'll later introduce toolbar item "visibility priority" to auto-hide items and add a "More" menu if the elementary's profile says so, other options will be to make it scrollable (as it is now). EXIF rotation support is not right in my opinion. We're using map to rotate, but it is not doing fine, as I said in another bug. We should have code to request evas to load the image rotated, then we re-load the image and it should work better (need to check how that would work with region load from JPEG, used by elm_photocam). Preferences are out as I ran out of time. SVN revision: 53319 --- data/Makefile.am | 5 +- data/images/COPYING.icons | 67 - data/images/Makefile.am | 18 - data/images/change_directory.png | Bin 1604 -> 0 bytes data/images/filter.png | Bin 4018 -> 0 bytes data/images/first.png | Bin 2122 -> 0 bytes data/images/go_back.png | Bin 2285 -> 0 bytes data/images/last.png | Bin 2178 -> 0 bytes data/images/next.png | Bin 2038 -> 0 bytes data/images/play_slideshow.png | Bin 1665 -> 0 bytes data/images/preferences.png | Bin 3762 -> 0 bytes data/images/previous.png | Bin 2028 -> 0 bytes data/images/view_presentation.png | Bin 2197 -> 0 bytes data/themes/default/ephoto.edc | 2019 ++++++++++------------------- src/bin/ephoto.h | 3 +- src/bin/ephoto_flow_browser.c | 268 +++- src/bin/ephoto_main.c | 58 +- src/bin/ephoto_thumb_browser.c | 141 +- 18 files changed, 1060 insertions(+), 1519 deletions(-) delete mode 100644 data/images/COPYING.icons delete mode 100644 data/images/Makefile.am delete mode 100644 data/images/change_directory.png delete mode 100644 data/images/filter.png delete mode 100644 data/images/first.png delete mode 100644 data/images/go_back.png delete mode 100644 data/images/last.png delete mode 100644 data/images/next.png delete mode 100644 data/images/play_slideshow.png delete mode 100644 data/images/preferences.png delete mode 100644 data/images/previous.png delete mode 100644 data/images/view_presentation.png diff --git a/data/Makefile.am b/data/Makefile.am index 0f08499..0166737 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,5 +1,2 @@ -## Process this file with automake to produce Makefile.in - MAINTAINERCLEANFILES = Makefile.in Makefile - -SUBDIRS = themes images +SUBDIRS = themes diff --git a/data/images/COPYING.icons b/data/images/COPYING.icons deleted file mode 100644 index e709d0c..0000000 --- a/data/images/COPYING.icons +++ /dev/null @@ -1,67 +0,0 @@ -Creative Commons Attribution-ShareAlike 2.5 License Agreement - -CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. - -License - -THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. - -BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. - -1. Definitions - - 1. "Collective Work" means a work, such as a periodical issue, anthology or encyclopedia, in which the Work in its entirety in unmodified form, along with a number of other contributions, constituting separate and independent works in themselves, are assembled into a collective whole. A work that constitutes a Collective Work will not be considered a Derivative Work (as defined below) for the purposes of this License. - 2. "Derivative Work" means a work based upon the Work or upon the Work and other pre-existing works, such as a translation, musical arrangement, dramatization, fictionalization, motion picture version, sound recording, art reproduction, abridgment, condensation, or any other form in which the Work may be recast, transformed, or adapted, except that a work that constitutes a Collective Work will not be considered a Derivative Work for the purpose of this License. For the avoidance of doubt, where the Work is a musical composition or sound recording, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered a Derivative Work for the purpose of this License. - 3. "Licensor" means the individual or entity that offers the Work under the terms of this License. - 4. "Original Author" means the individual or entity who created the Work. - 5. "Work" means the copyrightable work of authorship offered under the terms of this License. - 6. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. - 7. "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike. - -2. Fair Use Rights. Nothing in this license is intended to reduce, limit, or restrict any rights arising from fair use, first sale or other limitations on the exclusive rights of the copyright owner under copyright law or other applicable laws. - -3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: - - 1. to reproduce the Work, to incorporate the Work into one or more Collective Works, and to reproduce the Work as incorporated in the Collective Works; - 2. to create and reproduce Derivative Works; - 3. to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission the Work including as incorporated in Collective Works; - 4. to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission Derivative Works. - 5. - - For the avoidance of doubt, where the work is a musical composition: - 1. Performance Royalties Under Blanket Licenses. Licensor waives the exclusive right to collect, whether individually or via a performance rights society (e.g. ASCAP, BMI, SESAC), royalties for the public performance or public digital performance (e.g. webcast) of the Work. - 2. Mechanical Rights and Statutory Royalties. Licensor waives the exclusive right to collect, whether individually or via a music rights society or designated agent (e.g. Harry Fox Agency), royalties for any phonorecord You create from the Work ("cover version") and distribute, subject to the compulsory license created by 17 USC Section 115 of the US Copyright Act (or the equivalent in other jurisdictions). - 6. Webcasting Rights and Statutory Royalties. For the avoidance of doubt, where the Work is a sound recording, Licensor waives the exclusive right to collect, whether individually or via a performance-rights society (e.g. SoundExchange), royalties for the public digital performance (e.g. webcast) of the Work, subject to the compulsory license created by 17 USC Section 114 of the US Copyright Act (or the equivalent in other jurisdictions). - -The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. All rights not expressly granted by Licensor are hereby reserved. - -4. Restrictions.The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: - - 1. You may distribute, publicly display, publicly perform, or publicly digitally perform the Work only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Work that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Work itself to be made subject to the terms of this License. If You create a Collective Work, upon notice from any Licensor You must, to the extent practicable, remove from the Collective Work any credit as required by clause 4(c), as requested. If You create a Derivative Work, upon notice from any Licensor You must, to the extent practicable, remove from the Derivative Work any credit as required by clause 4(c), as requested. - 2. You may distribute, publicly display, publicly perform, or publicly digitally perform a Derivative Work only under the terms of this License, a later version of this License with the same License Elements as this License, or a Creative Commons iCommons license that contains the same License Elements as this License (e.g. Attribution-ShareAlike 2.5 Japan). You must include a copy of, or the Uniform Resource Identifier for, this License or other license specified in the previous sentence with every copy or phonorecord of each Derivative Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Derivative Works that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder, and You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Derivative Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Derivative Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Derivative Work itself to be made subject to the terms of this License. - 3. If you distribute, publicly display, publicly perform, or publicly digitally perform the Work or any Derivative Works or Collective Works, You must keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or (ii) if the Original Author and/or Licensor designate another party or parties (e.g. a sponsor institute, publishing entity, journal) for attribution in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; the title of the Work if supplied; to the extent reasonably practicable, the Uniform Resource Identifier, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and in the case of a Derivative Work, a credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). Such credit may be implemented in any reasonable manner; provided, however, that in the case of a Derivative Work or Collective Work, at a minimum such credit will appear where any other comparable authorship credit appears and in a manner at least as prominent as such other comparable authorship credit. - -5. Representations, Warranties and Disclaimer - -UNLESS OTHERWISE AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE MATERIALS, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. - -6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -7. Termination - - 1. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Derivative Works or Collective Works from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. - 2. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. - -8. Miscellaneous - - 1. Each time You distribute or publicly digitally perform the Work or a Collective Work, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. - 2. Each time You distribute or publicly digitally perform a Derivative Work, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. - 3. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. - 4. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. - 5. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. - -Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. - -Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, neither party will use the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. - -Creative Commons may be contacted at http://creativecommons.org/. diff --git a/data/images/Makefile.am b/data/images/Makefile.am deleted file mode 100644 index 620c382..0000000 --- a/data/images/Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -MAINTAINERCLEANFILES = Makefile.in Makefile - -IMAGES = \ -change_directory.png \ -filter.png \ -view_presentation.png \ -play_slideshow.png \ -first.png \ -last.png \ -next.png \ -previous.png \ -preferences.png \ -go_back.png - -imagesdir = $(pkgdatadir)/images -images_DATA = $(IMAGES) - -EXTRA_DIST = $(IMAGES) diff --git a/data/images/change_directory.png b/data/images/change_directory.png deleted file mode 100644 index d50d60276c93c12976c232b431f171ef4e9450b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1604 zcmV-K2D|x*P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igY# z0|o_Ao5Rci00qQJL_t(&-tC#aizI6m#(!^pbaz$v?yAhf3KtB-4FppS{Rh@S5CgLt z2pUWzEV7{7$Y3{f1jWciyrAA};YPwW(lt=@f@t81jLzuV)345n*tZ_h`~ z%(~MGbKua`U0v1BQ_nf|oO&B>;wEn5|2oX-n@5ixeM42h4J2nBpsHt{EQ+GPJLkUo zE^3bUJ0R zSfHwe5RM6Sq&nao!H&e%))s@oAbmeiE~LVGW8b@XZ!#PX z+1lD-I2;nkF;Ns@%+XEH81qtg`@Hu&efsoU+uPgU+u7MEu0o)x>zes|&cVUKF^RKO zIPGq*x5x z_rLN17(LGi8WADSb0(7sAq0N%$Gap+L~IN`gj1~fRlNV?hsq}=8k=9_g1l5681uQW zz5SP8|A0^TDj*`vW-~$v81C}u&Cipj(RGeDgY^%+7vB2ed!Ov7xje+m_t8N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;B(7ake!TA-we5Xqt?{iJR+T6r@gbtXq>3ir+{VPiS6p`W3->MhQAJj| zak%wu2pB}c#>7M(7KDHyWTI+%hA4)xw#TN23Z!O!#}Erhp@f8?*$0t=f-0y&4GnNw zrn|qne#(uj>gyg#wxo}tEp^=Ps02g=h=3G@*Y&Z$U@#zTnYGSC14a~NGM2R5f$cuo>+Eh@h$gEn|WPzqUqe5$mF|2$pp1ZMfOwXHwhCOHlG3z zf#Zb|Gtn3LfHKULEFmEUvU{QOLWR?euJRHgQx-Ud(S0RkM0K&iu1k8}?%S{nL$m(7MU^^!S62~O?Z~$VO=R+EIIe=$rrc?GU@s33IcUiO3Q)>0M2d`& z(N-ugvS|@kT!Dy@B18ZdhMNrvHnvPC1q;^BITTvoIRtXdbt(cLpC*8J*ZRxPwVrxz>#kQbpTF$OsGhRGIvqs1 zP%wshAchP8fcyUM_0|h#GWFa3zPY>eLYK^+aUaH&O&U~E zD#Aj@hO&%AK|~qt^Vf-hC>emV<{Wud|LdcJyy&exJ6jGNZSv+#zZa7$t}*c`BB?;v zD$x8u$sTM=41)ODs+hm-Faan4&WX4DmJ4UGMEv*Hr&1r!S~&lX^5)bYw0v^ZL@tcJ zadOer$3V)?N1p=)^snxq*KY09Csr05rcip}$S(%)S z=B_<`(X>~RB0T%t&qwn1kYZyQE`Xvf-vfQ%clu{@9_%=^>Gk!i>z8~tS##xgaQNa* zFuafn^OuplgB!j2-gczyD>~n9q5PP|=i(qr%7I{q7PWBh;0FJXtsnIK^e0|&B!8c0rXcGxQPCT_KB&4*Yc_#=V^et9WRUhf#BghD*$XJR18Ea#0tc|e!4`r^FVp^ZN-~a#s07*qoM6N<$g1H*@ Ag8%>k diff --git a/data/images/go_back.png b/data/images/go_back.png deleted file mode 100644 index f6abdb02514d50b1da3cda0c64cb84df535e99bf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2285 zcmV+P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0Gg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K0;}5eJ zGC9~eHq`y1bouH1*a)stoe?h#`(sd43yor#Ofc-e@B@2%dwGHk}2 zxG#AcAzT@?omWbogn1{cwg)W3#O5hUA&6qPyL3(A8`494$zuK%m+@PU?qAgr?Pyc( z{AUoFH>0+5N~u>Sk2ZYrddQJ|Ys#+{O6Vv>Y{+jV=9aQo8glNj$~FFumSf62dNo4x zWYpH@;g!~NN8)H>5ctTL2DB#x}9NlzpV(2O_- zjp%tPw9eT`b4Y={{ZcLUTh?@aM}{ z(U8=4GJs6Hlc@md1oa0->m{tZ2?x{*Pcqe)mvy}-C%-`oyJ$H2m&ob5y7KQo$Qwz0 z$}|SK$S}4Z4mTo$T=W2x&Lc88mRH`-)z=m2Kg=sAI1>)lsg~2neGO*=Tkrk}FQ@UO z>LtIZqSk{5tsh=V=LwYzvFbr47SG_WQDX=w3%#R_k#(oozVJzQrwrIk@@^I#itqto z+7z727x0a7EcUN8Fe2{@(|;hiv%QNC=PmVptB zVjlUBmYwf${?n!|;i?DWy+QSPD>0yjEVb4w@69Acr{;~j>fc4g|>cbQNo6o-i^poks?-5+d00000NkvXX Hu0mjfZCzFu diff --git a/data/images/last.png b/data/images/last.png deleted file mode 100644 index 1f7e9f21fefa65c4199300cbcee2ba37dacf4f6e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2178 zcmV-|2z~d7P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igY( z6do;bKGDqp00;s}L_t(&-tAdyY*fb;{?6RHYa1unG7ew}X&$Jd5ApyJ@oH&Fs1%VV z(BMjynjlguYLm8VYEVIysw!2ZR+LDzYN9q#C}{&IDWNn4LMV@>*gOg`AtX2y>b4kT zUIxF``+DIE|Bkh0LXgC&~UF{2r zEUbCfY#-`6yFdKnAQ~ya6N{cMe0A?HpOzIn?ntzn$BzCQsXq96iIdF-P%&6=S_bp3=exBPMLipZ0Btp*8JMYa=$Ee2Q^np0rWV9{u3IgU%Q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);Q39@kya-TM2LP&FqbuBfekd;d-sVP)#pr2EBd?JnUwMECfk_Zmg}Af) zi|B0c!Yf5*U8RfAaQ2k!*uFD<`HWt5 zax?$=qxhcI&-FD-NPp5t=aBUnfN@cj0w6)f9vzv0siPO-K;2$Gu>VNgxg-4bf9~TC z+%tWxpErSA;8f`U0Iccp0-SlqkU}z;9Uq;7$;F?=w!K@DCy)QV>GaOj;}=h$*{uP3)xp?pM{CGz6>=i;r+sb}ienT@@W=N#TJS)Ks^RNlQZ?<~Z<#6%DmCadTLHG?>g zb^y5YuVmGG8_e4wBXFK1FpwHFkkl2f%&M18S-CvhgZ+^R6Og>pb)NU;0ch)te#wIG77O^^*XyNyv~3=6~UrPr*nVY5%|NKjSD57OThUJOBUy07*qoM6N<$ Ef(l9YC;$Ke diff --git a/data/images/next.png b/data/images/next.png deleted file mode 100644 index e114357d00dea08c773d5d7aa23e2678ab0c982d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2038 zcmVPx#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igY( z6d@+RG9q~Z00(wSL_t(&-tAa@a8%V5|DF5ZvPmd}&xj1g!5SSMBv4zBBw}p^+KyOl z>riTEtahgD;6Oo4b;jE1e|AQs?bJH9Wm9LR|#%y_l5WI{O<1#s1Fei!tJ=A^-rMQo+2t z78QK$&hM5f&)YYxDqeb35dZ*zVEWCoW8b^?$+2+{d!{e;@4TuAFdH0gdK;g1%Ew}lTpa{NAi~flgZG>E!jJh_H23F4C8NhZUtZ-e1wdE60>aQ7z(|1O z7Y^V;`)SO-|7V3aT~{{0qRM}B`eGDb;b(whIOwp(wmKX;UxNqlURYQ$dFGcq-``X5 zV~p+VKK{ooC|}}B@A4>MJOQ(TVGV%|ClH{u5uEa({eO@tB)l-?n;Rc@^&7 z`D{>gxdc8o7Aqe2Q%^tgVu2!pKtLdXsMD45ylRkNh+TEBxqOr*A;M6~$IaK=jx)`t zWKH!8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Bu}2ZlX|~63ng;Dvr`v>1Wuhg z$z5H~XqIh#u&m{#uExg3gr;eUrlzLUKOJOppW3ro;dOAj|&zoc=+ay z%mfw;!MP%}Z5!{s|E{`s?}uZNSv4EGx}MuF%W_6hlsFL;<*Bsr3^+Al+ctPY;6w}| z1Y9mRT(S#?4u5Oyd}W93_xrbYKKl5MP$-lIkRYNIiYU3z6Y^civMmr3h-}y-pm^O- zlxgVe>%+EfTe7;T9cWwK{`8V1OX2{M0EW)jE=2*z&jHgiA&B7dcv0b-4pmjLZQGXY zPd^_!dDWE*AL{71=X(Gd07bJ)aR3|(5fS{;D5Zlg&3Y_W{TPh+Rm#6s-ofZr%LLW%Y9(dEovBzjprH4ieGWlz)}Y%=7l_d25xX zX_qr|12YGiSzOGRs89fBGwXDhDgQ3?_W;wF*^iP+DygKB{ww+o);pc#W4<5P00000 LNkvXXu0mjf8FnA( diff --git a/data/images/preferences.png b/data/images/preferences.png deleted file mode 100644 index 809ddca8222c6550b1d6e587499f0b7d85434345..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3762 zcmV;j4o&fiP)fMad%%xDB8tmwE!>1s{Q?5>mDRYwuc17XAw@WCtLk%W*Jd69I| z-AQ-f+xOmc_K&1vlSv?=?*6gI+_Q<}I3A{H!si=A{rNhzt*s@Z8|?n=Pi%kx=BWd_pMUKi4N5&6 zFMN!!v3A?GhleJr$K4FLX&Bpr!C<(*zn__=iEua!MX_VW@>SM#Yd1I~QTVStdv@M) zGuZq0?-zIN``zmnn|15LrAv`KEoA{@{E-nrNFIdXU%iY&&|IEHulOYJl7A`Dtrc9s4 zhqVZ(X~HxO7={7U&=K(Y(B9G-rcB+idGls-N&+e>Dr~#=JX^Q(x$>XhNCYA9GDaba zA}kgQL{S9K^RP-bLWr(huPw)Po2KUFj<~8KqK2VIR5YBw5M-c_ls)#7 z_P=UB889Wrq0Ee|+0Hn}-sdXHe=%7-#u(8fMviGxSS*$?7X$%>o7x;fDMdunpsC>) zR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0nic_g8=MY1EHH8A%$eSn>fdaJp{f9M0FlvWv`j~x#gqkHo1y5FA0-#9YmT}x z>apdq|Dq9zD&wN%P)~iA;K*vf>Ni&;Cp&~hrvgc`!5L?V#1qt?JE!`Zk8Kb2o@<`~ zIND)kT<6gP3mYxdnEH`X*Cq(YMA!xZlf^ z6h+5$!we7lFCILr`g-&UIvAgJ1J}+(8R|1*f=ntbeH^ c;s1O49~P#px89%}`Tzg`07*qoM6N<$f?2jQCIA2c diff --git a/data/images/previous.png b/data/images/previous.png deleted file mode 100644 index b65bb02ea11bdefe80554d47c4eff00de5b2c6d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2028 zcmV-P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igY( z6d@Px>>@(|00(SIL_t(&-tAdyY!ufO{?47*haZ%OKyC?-prp7_1g?|^*lwsDHz6^E zh5}MTMcY&=rB%~57^vDvZTe6js)(BYNm`|-A(4~NP)n4SA1wtng#^V(oQ4(w1`HTO z@EY4|dv|AN?m7K&XLrZT+89_jsPdJL&OCPJe&2cBb7z5xF)=2_#P~1={Vyh2vMD-G zi`NpGbI&ZU}ew9YIgxJV4`H z=83T19eX!>Lu(y%>CHM8yD^gEMi`pC z?73!Ni|0S*VaY9z7C(gQnlRlRviDZaUtGE7(_f36iyudC;zBl2O}ul~x(o)u@Wcg+ zXMnPX7NZU5;IWrI#uzha%mhBQF*4sJZ-4#W%V*qMwc2ivy@NrgH?J)e2nj#}z$Zb* z6T%E329y9S5MnR~$O;F-%7j+Y2-Gy$OJMQtRrOykzy0RLbol%~koJZ`U?HURp8bCcNLZ4<4J2n210G z5Xe~GCjdg01PenHLs$b!AZ)-37@{=5I!7{3uA4yZX8VVeN~do6LgTkfl?D8(Yrh{Y z1oEw~d`<8jLYaKSp>}2zzkZg`)-Ri-L`aT?#Gkm>BRJOGij+GD zR~&#eggkg~;OIdNxtGxAoX3U4aa?lFAjxqsxgbSG$QM6%G95PM?QEGDu69sau?Ve) zU&q-u_$Q;))KPQbpTBgUTl7snwQKLouhvyJmfba{kq(^NiCFS9ltoZB8EpYdnUGS- zTr;2pFB6y*SdnjO0!&2(i6B#bNdVE8VI-jNURqsYx26vLTJMW@O2gj|?Cv>n`l#11 ze;uZj&HyQsw4`9bX2Byz%A(7JvIGIj5DiMeJAo)sBSnjS1p*cT^d^Tw~d$If(gzO>^n+f#GOtFZ8+_dzKY2m=Eu7)H@h6p>IA z5j%=-D2lLMg0K}u*pBA39YrXVJ1&6Zsy=Kf-#bCEg6E%HXFoD^cJ%uz9#|a>mkHWp ze+DZTmUX!omfo}xX`M3r0yc>&ED$Xa0hmn*6*kwI0h=Ot_LZOF;8t&npTHT>SJO%a z`h(%;Z7+H|Dpw@Wwz$pD-QUnyT084edOOyFvWp|07wVk%XtKJ z-u0m7LY`1pATW}Z+<)k^^BM0Or`o%ofAQ6A$?3QapP1AD(S%HAtU_7vP9FHt zNa&GP;jw-j)uRB$C1Jx;idxexdpKq{PcmHTkpIM$U@B34nJ3&$$IW5+rrq zA9uOH1nC0e0C3v2@s3zWYIXC@m*QO=F&35#f$VRBzb`-}BYe%>=qM$P3rK!K>WlBo z*^g9Mf9&i#w%p}Z$+@mh8i?`J105JDP-*gy$NVj<7#}Vvuk{$Vde2*d$ulcMEy7a$ z!AY;;L<{=!N~4U$(jV5}R|J6WSdUQ6Mr+l?KY9~mVoZ$xzwuvSwRxaF{aVui0000< KMNUMnLSTaKp~%eu diff --git a/data/images/view_presentation.png b/data/images/view_presentation.png deleted file mode 100644 index e8cf7b41569ecf29cba14438819a07e382087db1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2197 zcmV;G2x|9Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igY# z0}LJ^5#p)<00R|e&6~wzGv2XXwzNPr?6${-rbLM)5$#XR0^V7i(&2Ixp^TV3?^Y z$S*L-WD3b-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=S&d`I zkD_VcpQn93{xHFB{8qz{8RK7dT^H&8ek@%QO?>?End6THfpweKRaj*0-}1Aq_OhkR z!HCe&b@hpb%NPCO+`rECPS-r_p%s@$%R)IhCYem3ySp1wD%f^F3zt@YCd=rA2Nt-H zN+mPt;cO{Zq0h1PF)c5|d)R_p568vAbYE|kt}>g(@$#?$JBWa=(zV{39E1+!Y$Z+Ld| zjLJY=UEM5yzA00T#9X{lFGP@v-R zxB_4%LV)V)>#ay6A`*#&6$k``=Xt`iEFq;7N-1Gkmhe2!GEmduFQ;qL*_{T5B@K5D^*1m@&p^t-U-Ayj;1ma$zJA!9QD1>f7D7U*}})<(x~c zwI_s-uIoz6vZUiUG8_(jJv}`#8jX7KcwCOU55(hfR#a4E`Tc&&7~?a>SVZI#LinVV zKE{|Wgs`>Nr5f_+;>C}zUcPK4wYOiz>C>lorient, sig); - edje_object_signal_emit(fb->edje, sig, "ephoto"); + edje_object_signal_emit(fb->orient_edje, sig, "ephoto"); } static void @@ -330,23 +347,22 @@ _ephoto_flow_browser_toolbar_eval(Ephoto_Flow_Browser *fb) { if (!fb->entry) { - edje_object_signal_emit(fb->edje, "slideshow,disable", "ephoto"); - edje_object_signal_emit(fb->edje, "prev,disable", "ephoto"); - edje_object_signal_emit(fb->edje, "next,disable", "ephoto"); + elm_toolbar_item_disabled_set(fb->action.go_first, EINA_TRUE); + elm_toolbar_item_disabled_set(fb->action.go_prev, EINA_TRUE); + elm_toolbar_item_disabled_set(fb->action.go_next, EINA_TRUE); + elm_toolbar_item_disabled_set(fb->action.go_last, EINA_TRUE); + elm_toolbar_item_disabled_set(fb->action.slideshow, EINA_TRUE); } else { - edje_object_signal_emit(fb->edje, "slideshow,enable", "ephoto"); + Eina_Bool is_first = fb->entry == _first_entry_find(fb); + Eina_Bool is_last = fb->entry == _last_entry_find(fb); - if (fb->entry == _first_entry_find(fb)) - edje_object_signal_emit(fb->edje, "prev,disable", "ephoto"); - else - edje_object_signal_emit(fb->edje, "prev,enable", "ephoto"); - - if (fb->entry == _last_entry_find(fb)) - edje_object_signal_emit(fb->edje, "next,disable", "ephoto"); - else - edje_object_signal_emit(fb->edje, "next,enable", "ephoto"); + elm_toolbar_item_disabled_set(fb->action.go_first, is_first); + elm_toolbar_item_disabled_set(fb->action.go_prev, is_first); + elm_toolbar_item_disabled_set(fb->action.go_next, is_last); + elm_toolbar_item_disabled_set(fb->action.go_last, is_last); + elm_toolbar_item_disabled_set(fb->action.slideshow, EINA_FALSE); } } @@ -396,11 +412,12 @@ _ephoto_flow_browser_recalc(Ephoto_Flow_Browser *fb) if (fb->path) { const char *bname = ecore_file_file_get(fb->path); - fb->viewer = _viewer_add(fb->layout, fb->path); - elm_layout_content_set(fb->layout, "ephoto.swallow.flow", fb->viewer); + fb->viewer = _viewer_add(fb->orient_layout, fb->path); + elm_layout_content_set + (fb->orient_layout, "elm.swallow.content", fb->viewer); evas_object_event_callback_add (fb->viewer, EVAS_CALLBACK_MOUSE_WHEEL, _mouse_wheel, fb); - edje_object_part_text_set(fb->edje, "ephoto.text.title", bname); + edje_object_part_text_set(fb->edje, "elm.text.title", bname); ephoto_title_set(fb->ephoto, bname); fb->orient = ephoto_file_orient_get(fb->path); _orient_apply(fb); @@ -419,31 +436,34 @@ _zoom_set(Ephoto_Flow_Browser *fb, double zoom) _viewer_zoom_set(fb->viewer, zoom); fb->zoom = zoom; - if (zoom <= ZOOM_MIN) - edje_object_signal_emit(fb->edje, "zoom_out,disable", "ephoto"); - else - edje_object_signal_emit(fb->edje, "zoom_out,enable", "ephoto"); - - if (zoom >= ZOOM_MAX) - edje_object_signal_emit(fb->edje, "zoom_in,disable", "ephoto"); - else - edje_object_signal_emit(fb->edje, "zoom_in,enable", "ephoto"); + elm_toolbar_item_disabled_set(fb->action.zoom_out, zoom <= ZOOM_MIN); + elm_toolbar_item_disabled_set(fb->action.zoom_in, zoom >= ZOOM_MAX); } static void -_zoom_in(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) +_zoom_in(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.zoom_in); _zoom_set(fb, fb->zoom + ZOOM_STEP); } static void -_zoom_out(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) +_zoom_out(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.zoom_out); _zoom_set(fb, fb->zoom - ZOOM_STEP); } +static void +_zoom_1(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) +{ + Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.zoom_1); + _zoom_set(fb, 1.0); +} + static void _next_entry(Ephoto_Flow_Browser *fb) { @@ -501,17 +521,76 @@ _last_entry(Ephoto_Flow_Browser *fb) } static void -_next_button(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) +_go_first(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.go_first); + _first_entry(fb); +} + +static void +_go_prev(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) +{ + Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.go_prev); + _prev_entry(fb); +} + +static void +_go_next(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) +{ + Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.go_next); _next_entry(fb); } static void -_prev_button(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) +_go_last(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Ephoto_Flow_Browser *fb = data; - _prev_entry(fb); + elm_toolbar_item_unselect(fb->action.go_last); + _last_entry(fb); +} + +static void +_go_rotate_counterclock(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) +{ + Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.rotate_counterclock); + _rotate_counterclock(fb); +} + +static void +_go_rotate_clock(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) +{ + Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.rotate_clock); + _rotate_clock(fb); +} + +static void +_go_flip_horiz(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) +{ + Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.flip_horiz); + _flip_horiz(fb); +} + +static void +_go_flip_vert(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) +{ + Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.flip_vert); + _flip_vert(fb); +} + +static void +_slideshow(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) +{ + Ephoto_Flow_Browser *fb = data; + elm_toolbar_item_unselect(fb->action.slideshow); + if (fb->entry) + evas_object_smart_callback_call(fb->layout, "slideshow", fb->entry); } static void @@ -577,6 +656,56 @@ _layout_del(void *data, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *eve free(fb); } +/* FIXME: this should go in elm_icon itself! */ +static Eina_Bool +_icon_load(Evas_Object *ic, const char *name, int size) +{ + char *path; + + if (elm_icon_standard_set(ic, name)) return EINA_TRUE; + + path = efreet_icon_path_find(getenv("E_ICON_THEME"), name, size); + if (!path) + { + const char **itr, *themes[] = { + "default", "highcolor", "gnome", "Human", "oxygen", NULL + }; + for (itr = themes; *itr; itr++) + { + path = efreet_icon_path_find(*itr, name, size); + if (path) break; + } + } + if (!path) return EINA_FALSE; + elm_icon_file_set(ic, path, NULL); + free(path); + return EINA_TRUE; +} + +static Elm_Toolbar_Item * +_toolbar_item_add(Ephoto_Flow_Browser *fb, const char *icon, const char *label, Evas_Smart_Cb cb) +{ + /* FIXME TODO: toolbar should get a string as icon, get it from theme + * for toolbar or menu, and fallback to freedesktop.org icon if not found + */ + Evas_Object *ic = elm_icon_add(fb->toolbar); + if (!_icon_load(ic, icon, elm_toolbar_icon_size_get(fb->toolbar))) + { + evas_object_del(ic); + ic = NULL; + } + return elm_toolbar_item_add(fb->toolbar, ic, label, cb, fb); +} + +static Elm_Toolbar_Item * +_toolbar_item_separator_add(Ephoto_Flow_Browser *fb) +{ + Elm_Toolbar_Item *it = elm_toolbar_item_add + (fb->toolbar, NULL, NULL, NULL, NULL); + elm_toolbar_item_separator_set(it, EINA_TRUE); + return it; +} + Evas_Object * ephoto_flow_browser_add(Ephoto *ephoto, Evas_Object *parent) { @@ -597,23 +726,74 @@ ephoto_flow_browser_add(Ephoto *ephoto, Evas_Object *parent) elm_object_focus_allow_set(layout, EINA_TRUE); evas_object_data_set(layout, "flow_browser", fb); - edje_object_signal_callback_add - (fb->edje, "zoom_out,clicked", "ephoto", _zoom_out, fb); - edje_object_signal_callback_add - (fb->edje, "zoom_in,clicked", "ephoto", _zoom_in, fb); - edje_object_signal_callback_add - (fb->edje, "prev,clicked", "ephoto", _prev_button, fb); - edje_object_signal_callback_add - (fb->edje, "next,clicked", "ephoto", _next_button, fb); - edje_object_signal_callback_add - (fb->edje, "back", "ephoto", _back, fb); + edje_object_signal_callback_add(fb->edje, "elm,action,back", "", _back, fb); - if (!elm_layout_file_set(layout, THEME_FILE, "ephoto/flow/layout")) + if (!elm_layout_theme_set + (layout, "layout", "application", "toolbar-content-back")) { - evas_object_del(layout); - return NULL; + ERR("could not load style 'toolbar-content-back' from theme"); + goto error; } + fb->toolbar = edje_object_part_external_object_get + (fb->edje, "elm.external.toolbar"); + if (!fb->toolbar) + { + ERR("no toolbar in layout!"); + goto error; + } + elm_toolbar_homogenous_set(fb->toolbar, EINA_FALSE); + + fb->action.slideshow = _toolbar_item_add + (fb, "media-playback-start", "Slideshow", _slideshow); + + fb->action.zoom_in = _toolbar_item_add + (fb, "zoom-in", "Zoom In", _zoom_in); + fb->action.zoom_out = _toolbar_item_add + (fb, "zoom-out", "Zoom Out", _zoom_out); + fb->action.zoom_1 = _toolbar_item_add + (fb, "zoom-original", "Zoom 1:1", _zoom_1); + + _toolbar_item_separator_add(fb); + + fb->action.go_first = _toolbar_item_add(fb, "go-first", "First", _go_first); + fb->action.go_prev = _toolbar_item_add + (fb, "go-previous", "Previous", _go_prev); + fb->action.go_next = _toolbar_item_add(fb, "go-next", "Next", _go_next); + fb->action.go_last = _toolbar_item_add(fb, "go-last", "Last", _go_last); + + _toolbar_item_separator_add(fb); + + fb->action.rotate_counterclock = _toolbar_item_add + (fb, "object-rotate-left", "Rotate Left", _go_rotate_counterclock); + fb->action.rotate_clock = _toolbar_item_add + (fb, "object-rotate-right", "Rotate Right", _go_rotate_clock); + fb->action.flip_horiz = _toolbar_item_add + (fb, "object-flip-horizontal", "Flip Horiz.", _go_flip_horiz); + fb->action.flip_vert = _toolbar_item_add + (fb, "object-flip-vertical", "Flip Vert.", _go_flip_vert); + + elm_toolbar_item_tooltip_text_set + (fb->action.rotate_counterclock, + "Rotate object to the left (counter-clockwise)"); + elm_toolbar_item_tooltip_text_set + (fb->action.rotate_clock, "Rotate object to the right (clockwise)"); + + elm_toolbar_item_tooltip_text_set + (fb->action.flip_horiz, "Flip object horizontally"); + elm_toolbar_item_tooltip_text_set + (fb->action.flip_vert, "Flip object vertically"); + + fb->orient_layout = elm_layout_add(layout); + if (!elm_layout_theme_set + (fb->orient_layout, "layout", "ephoto", "orient")) + { + ERR("could not load style 'ephoto/orient' from theme"); + goto error; + } + fb->orient_edje = elm_layout_edje_get(fb->orient_layout); + elm_layout_content_set(fb->layout, "elm.swallow.content", fb->orient_layout); + _ephoto_flow_browser_toolbar_eval(fb); return layout; diff --git a/src/bin/ephoto_main.c b/src/bin/ephoto_main.c index ab3a410..49595a5 100644 --- a/src/bin/ephoto_main.c +++ b/src/bin/ephoto_main.c @@ -16,7 +16,7 @@ _ephoto_thumb_browser_show(Ephoto *ephoto, Ephoto_Entry *entry) ephoto_slideshow_entry_set(ephoto->slideshow, NULL); elm_object_focus(ephoto->thumb_browser); evas_object_focus_set(ephoto->thumb_browser, EINA_TRUE); // TODO while elm_layout is broken WRT focus - edje_object_signal_emit(ephoto->edje, "thumb_browser,show", "ephoto"); + elm_pager_content_promote(ephoto->pager, ephoto->thumb_browser); _ephoto_state_set(ephoto, EPHOTO_STATE_THUMB); if ((entry) && (entry->item)) elm_gengrid_item_bring_in(entry->item); @@ -29,7 +29,7 @@ _ephoto_flow_browser_show(Ephoto *ephoto, Ephoto_Entry *entry) ephoto_flow_browser_entry_set(ephoto->flow_browser, entry); elm_object_focus(ephoto->flow_browser); evas_object_focus_set(ephoto->flow_browser, EINA_TRUE); // TODO while elm_layout is broken WRT focus - edje_object_signal_emit(ephoto->edje, "flow_browser,show", "ephoto"); + elm_pager_content_promote(ephoto->pager, ephoto->flow_browser); _ephoto_state_set(ephoto, EPHOTO_STATE_FLOW); } @@ -40,7 +40,7 @@ _ephoto_slideshow_show(Ephoto *ephoto, Ephoto_Entry *entry) ephoto_slideshow_entry_set(ephoto->slideshow, entry); elm_object_focus(ephoto->slideshow); evas_object_focus_set(ephoto->slideshow, EINA_TRUE); // TODO while elm_layout is broken WRT focus - edje_object_signal_emit(ephoto->edje, "slideshow,show", "ephoto"); + elm_pager_content_promote(ephoto->pager, ephoto->slideshow); _ephoto_state_set(ephoto, EPHOTO_STATE_SLIDESHOW); } @@ -119,8 +119,6 @@ ephoto_window_add(const char *path) { Ephoto *ephoto = calloc(1, sizeof(Ephoto)); Ethumb_Client *client = elm_thumb_ethumb_client_get(); - Evas_Coord mw, mh, iw, ih; - const char *s; EINA_SAFETY_ON_NULL_RETURN_VAL(ephoto, NULL); ephoto->win = elm_win_add(NULL, "ephoto", ELM_WIN_BASIC); @@ -157,75 +155,54 @@ ephoto_window_add(const char *path) elm_win_resize_object_add(ephoto->win, ephoto->bg); evas_object_show(ephoto->bg); - ephoto->layout = elm_layout_add(ephoto->win); - if (!elm_layout_file_set(ephoto->layout, THEME_FILE, "ephoto/main/layout")) - { - ERR("could not load group 'ephoto/main/layout' from file %s", - THEME_FILE); - evas_object_del(ephoto->win); - return NULL; - } - ephoto->edje = elm_layout_edje_get(ephoto->layout); + ephoto->pager = elm_pager_add(ephoto->win); + elm_object_style_set(ephoto->pager, "fade_invisible"); evas_object_size_hint_weight_set - (ephoto->layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + (ephoto->pager, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_fill_set - (ephoto->layout, EVAS_HINT_FILL, EVAS_HINT_FILL); - elm_win_resize_object_add(ephoto->win, ephoto->layout); - evas_object_show(ephoto->layout); + (ephoto->pager, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_win_resize_object_add(ephoto->win, ephoto->pager); + evas_object_show(ephoto->pager); - ephoto->thumb_browser = ephoto_thumb_browser_add(ephoto, ephoto->layout); + ephoto->thumb_browser = ephoto_thumb_browser_add(ephoto, ephoto->pager); if (!ephoto->thumb_browser) { ERR("could not add thumb browser"); evas_object_del(ephoto->win); return NULL; } - elm_layout_content_set - (ephoto->layout, "ephoto.swallow.thumb_browser", ephoto->thumb_browser); + elm_pager_content_push(ephoto->pager, ephoto->thumb_browser); evas_object_smart_callback_add (ephoto->thumb_browser, "view", _ephoto_thumb_browser_view, ephoto); evas_object_smart_callback_add (ephoto->thumb_browser, "slideshow", _ephoto_thumb_browser_slideshow, ephoto); - ephoto->flow_browser = ephoto_flow_browser_add(ephoto, ephoto->layout); + ephoto->flow_browser = ephoto_flow_browser_add(ephoto, ephoto->pager); if (!ephoto->flow_browser) { ERR("could not add flow browser"); evas_object_del(ephoto->win); return NULL; } - elm_layout_content_set - (ephoto->layout, "ephoto.swallow.flow_browser", ephoto->flow_browser); + elm_pager_content_push(ephoto->pager, ephoto->flow_browser); evas_object_smart_callback_add (ephoto->flow_browser, "back", _ephoto_flow_browser_back, ephoto); evas_object_smart_callback_add (ephoto->flow_browser, "slideshow", _ephoto_flow_browser_slideshow, ephoto); - ephoto->slideshow = ephoto_slideshow_add(ephoto, ephoto->layout); + ephoto->slideshow = ephoto_slideshow_add(ephoto, ephoto->pager); if (!ephoto->slideshow) { ERR("could not add flow browser"); evas_object_del(ephoto->win); return NULL; } - elm_layout_content_set - (ephoto->layout, "ephoto.swallow.slideshow", ephoto->slideshow); + elm_pager_content_push(ephoto->pager, ephoto->slideshow); evas_object_smart_callback_add (ephoto->slideshow, "back", _ephoto_slideshow_back, ephoto); - edje_object_size_min_get(ephoto->edje, &mw, &mh); - edje_object_size_min_restricted_calc(ephoto->edje, &mw, &mh, mw, mh); - if (mw < 1) mw = 320; - if (mh < 1) mh = 240; - - s = edje_object_data_get(ephoto->edje, "initial_size"); - if ((!s) || (sscanf(s, "%d %d", &iw, &ih) != 2)) iw = ih = 0; - if (iw < mw) iw = mw; - if (ih < mh) ih = mh; - evas_object_resize(ephoto->win, iw, ih); - if ((!path) || (!ecore_file_exists(path))) { ephoto_thumb_browser_directory_set @@ -248,10 +225,13 @@ ephoto_window_add(const char *path) elm_object_focus(ephoto->flow_browser); evas_object_focus_set(ephoto->flow_browser, EINA_TRUE); // TODO while elm_layout is broken WRT focus - edje_object_signal_emit(ephoto->edje, "flow_browser,show", "ephoto"); + elm_pager_content_promote(ephoto->pager, ephoto->flow_browser); ephoto->state = EPHOTO_STATE_FLOW; } + /* TODO restore size from last run as well? */ + evas_object_resize(ephoto->win, 900, 600); + return ephoto->win; } diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c index 022786c..8b19ccc 100644 --- a/src/bin/ephoto_thumb_browser.c +++ b/src/bin/ephoto_thumb_browser.c @@ -14,7 +14,14 @@ struct _Ephoto_Thumb_Browser Evas_Object *layout; Evas_Object *edje; Evas_Object *grid; + Evas_Object *toolbar; Eio_File *ls; + struct { + Elm_Toolbar_Item *zoom_in; + Elm_Toolbar_Item *zoom_out; + Elm_Toolbar_Item *view_flow; + Elm_Toolbar_Item *slideshow; + } action; struct { const char *path; void (*cb)(void *data, Ephoto_Entry *entry); @@ -310,6 +317,8 @@ _ephoto_thumb_selected(void *data, Evas_Object *o __UNUSED__, void *event_info) evas_object_smart_callback_call(tb->layout, "view", e); } +/* TODO: elm_fileselector_entry and use the activated/file,chosen here */ +/* static void _changed_dir(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) { @@ -324,6 +333,7 @@ _changed_dir(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSE ephoto_thumb_browser_directory_set(tb->layout, p.s); } +*/ static void _zoom_set(Ephoto_Thumb_Browser *tb, int zoom) @@ -334,31 +344,61 @@ _zoom_set(Ephoto_Thumb_Browser *tb, int zoom) ephoto_thumb_size_set(tb->ephoto, zoom); elm_gengrid_item_size_set(tb->grid, zoom, zoom); - if (zoom == ZOOM_MIN) - edje_object_signal_emit(tb->edje, "zoom_out,disable", "ephoto"); - else - edje_object_signal_emit(tb->edje, "zoom_out,enable", "ephoto"); - - if (zoom == ZOOM_MAX) - edje_object_signal_emit(tb->edje, "zoom_in,disable", "ephoto"); - else - edje_object_signal_emit(tb->edje, "zoom_in,enable", "ephoto"); + elm_toolbar_item_disabled_set(tb->action.zoom_out, zoom == ZOOM_MIN); + elm_toolbar_item_disabled_set(tb->action.zoom_in, zoom == ZOOM_MAX); } static void -_zoom_in(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) +_zoom_in(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Ephoto_Thumb_Browser *tb = data; + elm_toolbar_item_unselect(tb->action.zoom_in); _zoom_set(tb, tb->ephoto->config->thumb_size + ZOOM_STEP); } static void -_zoom_out(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) +_zoom_out(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Ephoto_Thumb_Browser *tb = data; + elm_toolbar_item_unselect(tb->action.zoom_out); _zoom_set(tb, tb->ephoto->config->thumb_size - ZOOM_STEP); } +static void +_view_flow(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) +{ + Ephoto_Thumb_Browser *tb = data; + Elm_Gengrid_Item *it = elm_gengrid_selected_item_get(tb->grid); + Ephoto_Entry *entry; + + elm_toolbar_item_unselect(tb->action.view_flow); + + if (it) entry = elm_gengrid_item_data_get(it); + else entry = _first_file_entry_find(tb); + + if (!entry) return; + if (entry->is_dir) + ephoto_thumb_browser_directory_set(tb->layout, entry->path); + else + evas_object_smart_callback_call(tb->layout, "view", entry); +} + +static void +_slideshow(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) +{ + Ephoto_Thumb_Browser *tb = data; + Elm_Gengrid_Item *it = elm_gengrid_selected_item_get(tb->grid); + Ephoto_Entry *entry; + + elm_toolbar_item_unselect(tb->action.slideshow); + + if (it) entry = elm_gengrid_item_data_get(it); + else entry = _first_file_entry_find(tb); + + if (!entry) return; + evas_object_smart_callback_call(tb->layout, "slideshow", entry); +} + static void _key_down(void *data, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info) { @@ -404,6 +444,47 @@ _layout_del(void *data, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *eve free(tb); } +/* FIXME: this should go in elm_icon itself! */ +static Eina_Bool +_icon_load(Evas_Object *ic, const char *name, int size) +{ + char *path; + + if (elm_icon_standard_set(ic, name)) return EINA_TRUE; + + path = efreet_icon_path_find(getenv("E_ICON_THEME"), name, size); + if (!path) + { + const char **itr, *themes[] = { + "default", "highcolor", "gnome", "Human", "oxygen", NULL + }; + for (itr = themes; *itr; itr++) + { + path = efreet_icon_path_find(*itr, name, size); + if (path) break; + } + } + if (!path) return EINA_FALSE; + elm_icon_file_set(ic, path, NULL); + free(path); + return EINA_TRUE; +} + +static Elm_Toolbar_Item * +_toolbar_item_add(Ephoto_Thumb_Browser *tb, const char *icon, const char *label, Evas_Smart_Cb cb) +{ + /* FIXME TODO: toolbar should get a string as icon, get it from theme + * for toolbar or menu, and fallback to freedesktop.org icon if not found + */ + Evas_Object *ic = elm_icon_add(tb->toolbar); + if (!_icon_load(ic, icon, elm_toolbar_icon_size_get(tb->toolbar))) + { + evas_object_del(ic); + ic = NULL; + } + return elm_toolbar_item_add(tb->toolbar, ic, label, cb, tb); +} + Evas_Object * ephoto_thumb_browser_add(Ephoto *ephoto, Evas_Object *parent) { @@ -421,20 +502,38 @@ ephoto_thumb_browser_add(Ephoto *ephoto, Evas_Object *parent) evas_object_event_callback_add (layout, EVAS_CALLBACK_KEY_DOWN, _key_down, tb); evas_object_data_set(layout, "thumb_browser", tb); - edje_object_signal_callback_add - (tb->edje, "location,changed", "ephoto", _changed_dir, tb); - edje_object_signal_callback_add - (tb->edje, "zoom_out,clicked", "ephoto", _zoom_out, tb); - edje_object_signal_callback_add - (tb->edje, "zoom_in,clicked", "ephoto", _zoom_in, tb); - if (!elm_layout_file_set(layout, THEME_FILE, "ephoto/browser/layout")) + if (!elm_layout_theme_set + (layout, "layout", "application", "toolbar-content")) { - ERR("could not load group 'ephoto/browser/layout' from file %s", - THEME_FILE); + ERR("could not load style 'toolbar-content' from theme"); goto error; } + tb->toolbar = edje_object_part_external_object_get + (tb->edje, "elm.external.toolbar"); + if (!tb->toolbar) + { + ERR("no toolbar in layout!"); + goto error; + } + elm_toolbar_homogenous_set(tb->toolbar, EINA_FALSE); + + tb->action.slideshow = _toolbar_item_add + (tb, "media-playback-start", "Slideshow", _slideshow); + tb->action.zoom_in = _toolbar_item_add + (tb, "zoom-in", "Zoom In", _zoom_in); + tb->action.zoom_out = _toolbar_item_add + (tb, "zoom-out", "Zoom Out", _zoom_out); + tb->action.view_flow = _toolbar_item_add + (tb, "image", "Larger", _view_flow); + + /* TODO: elm_fileselector_entry and use it with a toolbar-vbox + * + * TODO: elm_layout_box_*, similar to elm_layout_content_set(), it will + * register the sub-object and re-add it during theme changes. + */ + tb->grid = elm_gengrid_add(layout); EINA_SAFETY_ON_NULL_GOTO(tb->grid, error); elm_object_style_set(tb->grid, "ephoto"); @@ -451,7 +550,7 @@ ephoto_thumb_browser_add(Ephoto *ephoto, Evas_Object *parent) _zoom_set(tb, tb->ephoto->config->thumb_size); - elm_layout_content_set(tb->layout, "ephoto.swallow.thumb", tb->grid); + elm_layout_content_set(tb->layout, "elm.swallow.content", tb->grid); return layout;