Commit Graph

250 Commits

Author SHA1 Message Date
Gustavo Sverzut Barbieri 50c67f7ad6 simplify, move thumb count to theme, min limit to contents.
If we used such a large border with small item sizes, the content size
would be zero and thus icons did turn invisible. Limit that to 16x16.

"thumbs" in group will say how many thumbnails are desired, instead of
hardcoding it to 3.

countless code simplifications.



SVN revision: 53207
2010-10-08 20:21:29 +00:00
Gustavo Sverzut Barbieri 5637a4879f oops, remaining shutdowns that should die.
SVN revision: 53201
2010-10-08 19:48:32 +00:00
Gustavo Sverzut Barbieri 2e88dacb27 whitespace cleanup, log domain to lowercase.
SVN revision: 53200
2010-10-08 19:04:34 +00:00
Gustavo Sverzut Barbieri 844d8b6529 simplify, just init efreet_mime once, etc.
make code simpler, just init efreet_mime at startup, just need ethumb
once as well.



SVN revision: 53199
2010-10-08 19:03:21 +00:00
Gustavo Sverzut Barbieri cc899e3325 couple of minor improvements to ephoto.
* fix a bit of coding style (damn, it's totally off with SVN coding style!)

 * save basename to avoid calculating it over and over again.

 * ignore hidden files and folders (those that start with ".")

 * rename "top" to "Up" as we just go one level.

 * add TODO that requires adding eio_file_ls_direct()... the current
   version is not that useful, we really could use dirent, basename
   and lengths while filtering.

 * add TODO to speed up matches of JPG, PNG, and like... these will
   account for most of the files we browse, thus they should be fast
   and not rely on efreet (which may not be that good to use from
   threads... if it is, then it's more expensive as we need to lock)



SVN revision: 53198
2010-10-08 18:51:19 +00:00
Nicolas Aguirre f83df173c9 Add missing file
SVN revision: 52999
2010-10-03 14:45:53 +00:00
Nicolas Aguirre 53a83a021f Apply Otavio Pontes patch about displaying directories and modify it to display thumbnails when photos are present into this directory.
Author: Otavio Pontes <otavio@profusion.mobi>
Date:   Mon Sep 27 15:26:55 2010 -0300

    Displaying directories in thumb browser
    
    It is possible also to open an directory to see images in it.




SVN revision: 52994
2010-10-03 09:50:00 +00:00
Viktor Kojouharov 1a73a71d36 add an option to sort the images before displaying them.
SVN revision: 52989
2010-10-03 00:13:02 +00:00
Nicolas Aguirre 1c512b83f8 Avoid photocam zoom effect on picture load.
SVN revision: 52956
2010-10-01 18:06:05 +00:00
Cedric BAIL 7a3e11d737 * ephoto: call exif only on jpeg file.
SVN revision: 52927
2010-09-30 16:23:54 +00:00
Nicolas Aguirre 153e9d89d6 commit c0d355a3438ba4e9c731d190fa292c0eb9acde23
Author: Otavio Pontes <otavio@profusion.mobi>
Date:   Mon Sep 27 11:32:34 2010 -0300

    Fixing some bugs in image exibition.
    
    Using photocan to show png files in flow browser and using elm_image
    instead of elm_bg to display thumbs in thumb_browser. elm_bg was
    creating a strange border in images with white(or transparent)
    background.



SVN revision: 52902
2010-09-29 17:57:43 +00:00
Otavio Pontes ad063ce60e From: Otavio Pontes <otavio@profusion.mobi>
Date: Thu, 23 Sep 2010 16:39:58 -0300
Subject: [PATCH 4/5] Adding new keyboard shortcuts to ephoto.
To: otavio@profusion.mobi

Also adds:
 - zoom in/out function to flow_browser and buttons in toolbar
for zoom and rotation.
 - Fullscreen mode to slideshow.



SVN revision: 52899
2010-09-29 17:34:35 +00:00
Nicolas Aguirre 4da0ca1b85 The second patch fixes on bug related to an invalid memory access that was
causing segmentation fault in my computer (valgrind was complaining
about it too).

patch from Otávio Pontes.



SVN revision: 52898
2010-09-29 17:09:42 +00:00
Nicolas Aguirre 7e44cd9256 First patch fixes one warning about integer comparison.
patch from Otávio Pontes



SVN revision: 52897
2010-09-29 17:06:32 +00:00
Viktor Kojouharov d9c7cfd80e add the external editor support (currently by pressing "e" in the flow browser)
SVN revision: 52820
2010-09-27 22:02:10 +00:00
Viktor Kojouharov 5d473ea800 fix a few segfaults that happened on a specific computer
SVN revision: 52483
2010-09-20 09:06:53 +00:00
titan e2fed73485 Fix toolbar items.
SVN revision: 52481
2010-09-19 22:32:56 +00:00
titan e5cee3de65 Don't swallow the toolbar twice.
SVN revision: 52479
2010-09-19 21:59:05 +00:00
titan 19243a1ae1 Swallow the toolbar in the correct place.
SVN revision: 52478
2010-09-19 21:54:58 +00:00
Viktor Kojouharov ca05627df0 Preferences dialog. Users can change the slideshow parameters, and tell ephoto to start from the last remembered dir, if it was started with no arguments
SVN revision: 52464
2010-09-19 15:30:36 +00:00
titan 574483bb47 Remove a lot of warnings.
SVN revision: 52424
2010-09-18 20:18:43 +00:00
Viktor Kojouharov 35c4b294bd optional libexif support.
initial rotation support with edje map (the swallow still needs to be refitted in the available space after the rotation)



SVN revision: 52238
2010-09-14 08:35:42 +00:00
Viktor Kojouharov 1dcf8aef39 always save the config on exit
SVN revision: 52236
2010-09-14 07:02:04 +00:00
Viktor Kojouharov cbdc82096b limit thumb scrolling to the horizontal axis, since it doesn't overflow vertically
SVN revision: 52202
2010-09-13 22:27:00 +00:00
Viktor Kojouharov cdb8b51c3f eet configuration. only stores the slider value for now. eina log domain macros
SVN revision: 52201
2010-09-13 22:24:59 +00:00
Nicolas Aguirre 368ed28cce remove debug messages and formatting
SVN revision: 52194
2010-09-13 17:36:16 +00:00
Nicolas Aguirre bd1ed51ead Add a callback when a new directory is selected : "directory,changed".
SVN revision: 52193
2010-09-13 17:02:32 +00:00
Nicolas Aguirre ea18ee503b Use evas_smart objects for flow and thumb browsers, we can now use them as regular evas smart objects with evas_object_show/del/hide ...
SVN revision: 52192
2010-09-13 16:40:33 +00:00
Nicolas Aguirre a13304ff1d Change ephoto to use an edje layout instead of elm boxes.
SVN revision: 52191
2010-09-13 16:29:39 +00:00
Cedric BAIL fc3497295d * ephoto: no need to destroy window at that point.
SVN revision: 52137
2010-09-10 12:30:59 +00:00
Cedric BAIL 11ee1079e1 * ephoto: some cleanup.
SVN revision: 51943
2010-09-07 13:12:08 +00:00
Cedric BAIL 24c98b891b * ephoto: fix use of unitialized data.
SVN revision: 51659
2010-08-26 13:42:38 +00:00
titan a8a45932f3 Move the toolbar to the bottom for consistency and fix segv when clicking View Large while no pictures are populated.
SVN revision: 51649
2010-08-26 00:40:31 +00:00
Lucas De Marchi 182fd84af4 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Lucas De Marchi c3a6049d53 Fix wrong usages of malloc, calloc and E_NEW
Patch by bad-alloc.cocci


SVN revision: 50828
2010-08-05 00:50:43 +00:00
titan 133c3b83e0 Whoops. Fix for real.
SVN revision: 50776
2010-08-03 17:57:10 +00:00
titan 98bb42c6a2 Make changes to match api changes in eio.
SVN revision: 50772
2010-08-03 17:14:54 +00:00
titan 82f69119b6 Add slideshow to ephoto.. It uses elm_slideshow, and this is likely temporary, because in the f uture I am going to do some more extensive slideshow stuff. I'm not happy with this, it seems pretty slow on transitions(I'll take a look at speeding things up), but it will do for now.
SVN revision: 50569
2010-07-28 02:06:03 +00:00
Cedric BAIL 7f75caca3a * eio: Add an error callback, some docs and a small README.
SVN revision: 50446
2010-07-23 11:00:44 +00:00
Cedric BAIL e2c35a285b * ephoto: use eio to simplify and make a small nice example.
SVN revision: 50432
2010-07-22 16:15:16 +00:00
Cedric BAIL a1af3e8605 * ephoto: simplify code and make it easy to add new keys.
SVN revision: 50430
2010-07-22 16:09:31 +00:00
titan a6e087843a Allow you to browse through the large images using arrow keys, left and right.
SVN revision: 50423
2010-07-21 23:40:49 +00:00
titan 56d4da9fd3 Fix ephoto's gengrid theme so photos show again.
SVN revision: 50261
2010-07-14 23:23:54 +00:00
titan f1a200c4c3 Add the ability to specify a directory or file to run ephoto with.
SVN revision: 50176
2010-07-10 21:52:14 +00:00
titan f4d5a08859 Decided I did not like the expandable file selector.
SVN revision: 50134
2010-07-08 22:26:45 +00:00
titan 6e63b962bd Better use of the stringshare_replace function. Once again gracias k-s.
SVN revision: 50130
2010-07-08 18:53:18 +00:00
titan 0459ed3022 eina_stringshare_replace as suggested by k-s.
SVN revision: 50129
2010-07-08 18:45:27 +00:00
titan 47bd2c282e Use structures in eina_hash. Per k-s's suggestion/request ;) Props to Mike Blumenkrantz for teaching the ways of eina like Yoda taught Luke the ways of the force.
SVN revision: 50121
2010-07-08 04:25:28 +00:00
titan 4b9816830d Use eina_stringshare where plausible.
SVN revision: 50119
2010-07-08 03:39:52 +00:00
titan 97b5b3ad0f Add change directory functionality... some of the eina stuff may be wrong, if it is please let me know. Still getting use to eina.
SVN revision: 50116
2010-07-08 02:37:45 +00:00
titan 9e69452b80 Allow ephoto's large view to show all image types, not just jpeg... bit of a hack I know.. better ideas, let me know.
SVN revision: 50057
2010-07-06 03:16:21 +00:00
titan fa09a70bf8 Add the ability to show the selected image if view large is pressed and an image is selected and add the ability to double click an image to view it large. Also formatting.
SVN revision: 50051
2010-07-05 22:58:16 +00:00
titan e73f692de2 Fix elementary warning that was getting thrown.
SVN revision: 50049
2010-07-05 21:29:14 +00:00
titan c334b2ab20 Add a flow browser. It can be accessed by clicking View Large from the toolbar. It is functional for viewing your images at high resolutions.
SVN revision: 50048
2010-07-05 21:07:53 +00:00
Mike Blumenkrantz c5efd33775 efreet_mime_{init,shutdown} are important apparently?
SVN revision: 50043
2010-07-05 06:19:15 +00:00
Mike Blumenkrantz 93959279ca not checking for null values?? BAD CEDRIC! NO COOKIE!
SVN revision: 50042
2010-07-05 05:56:46 +00:00
titan 12c68013d8 Remove ephoto_thumb.c and use elm_bg.
SVN revision: 50012
2010-07-03 17:00:58 +00:00
titan 83b038d947 eina_stringshare instead of strdup. Slider now works for thumb size!
SVN revision: 50008
2010-07-03 04:42:22 +00:00
titan 6926304983 Use elm_layout for the images. Use a hash to keep a match of files and their corresponding thumb_path.
SVN revision: 50005
2010-07-02 21:35:51 +00:00
Cedric BAIL 0f3b22a98a * eina: rename ecore_file_ls_iterator to eina_file_ls.
SVN revision: 50002
2010-07-02 17:23:05 +00:00
Cedric BAIL 7ca8bbb593 * ephoto: use cleaner ecore_file_ls_iterator API.
SVN revision: 49998
2010-07-02 15:27:09 +00:00
Cedric BAIL 32b4c39995 * ephoto: use ecore_long_run instead of idler to do async blocking IO.
SVN revision: 49995
2010-07-02 11:17:59 +00:00
titan 1218856b51 This is a rework of ephoto using mostly elementary. It is very basic and doesn't have much functionality at all, but that will come soon enough. Feel free to install it and run it in a directory of photos/images to get an idea of the direction and provide feedback/ideas.
SVN revision: 49973
2010-07-01 18:49:22 +00:00
titan f07fc8b156 Remove old ephoto
SVN revision: 49972
2010-07-01 18:38:05 +00:00
Sebastian Dransfeld 88b61eed2c remove swap files from svn
SVN revision: 47793
2010-04-06 18:36:15 +00:00
Cedric BAIL c3a1174a41 * ephoto: properly remove Ecore_Data.
SVN revision: 47494
2010-03-26 16:09:24 +00:00
titan 25827bc1c3 Whoops. Free the opts.
SVN revision: 43086
2009-10-14 21:18:31 +00:00
titan c50aa91d93 Add ecore_getopt to support options for ephoto. Thanks to PrinceAMD for the patch.
SVN revision: 43085
2009-10-14 21:17:34 +00:00
titan d5285b049e Fix slideshow to work properly.
SVN revision: 43068
2009-10-14 04:03:22 +00:00
titan 4e6e38a200 Add slideshow functionality, still needs some work.
SVN revision: 43064
2009-10-13 23:46:47 +00:00
titan 69c9bca326 Whoops! Fix typo!
SVN revision: 43029
2009-10-11 23:11:01 +00:00
titan bbdb4b78cf Remove debug printfs.
SVN revision: 43028
2009-10-11 23:09:21 +00:00
titan a8a0794777 Add fullscreen support.
SVN revision: 42985
2009-10-09 21:04:04 +00:00
titan 8bf716e895 Fix flow image bug.
SVN revision: 42973
2009-10-08 21:19:48 +00:00
titan a96b8a2813 Whoops, little typo, fix changing pages.
SVN revision: 42969
2009-10-08 21:08:52 +00:00
titan 9c7fb20968 Fix seg when window is resized too small.
SVN revision: 42968
2009-10-08 20:38:00 +00:00
titan ded2e589e6 Fix resizing.
SVN revision: 42967
2009-10-08 20:15:35 +00:00
titan b05ae06991 Fix maximize completely.
SVN revision: 42881
2009-10-05 00:38:45 +00:00
titan 4b8e6cd326 Get maximize working.
SVN revision: 42880
2009-10-04 23:31:31 +00:00
titan 14c1ecfdd6 More reverts.
SVN revision: 42848
2009-10-01 22:44:19 +00:00
titan d5a8240854 Bah just digging a deeper hole. going to revert and give myself some time to think about this.
SVN revision: 42847
2009-10-01 22:41:37 +00:00
titan 8e54bffad6 More calculation fixes. jeeze.
SVN revision: 42845
2009-10-01 22:08:22 +00:00
titan 377e2b5e9e Calculate padding.
SVN revision: 42844
2009-10-01 21:54:35 +00:00
titan 2f9546e05c Minor fixes.
SVN revision: 42843
2009-10-01 21:27:27 +00:00
titan aeaad2c5e7 More calculation fixes.
SVN revision: 42841
2009-10-01 18:34:45 +00:00
titan 1788c2bb88 Whoops, messed up some calculations.
SVN revision: 42840
2009-10-01 18:14:58 +00:00
titan d858890c57 Minor cleanups.
SVN revision: 42839
2009-10-01 18:04:55 +00:00
titan 9236d613b9 Fix a bug on resizing.
SVN revision: 42838
2009-10-01 17:45:35 +00:00
titan ca69fd3fe2 add a flow browser
SVN revision: 42827
2009-10-01 04:54:48 +00:00
titan 5d48a202c4 Fix thumbnailing!
SVN revision: 42812
2009-09-30 02:45:58 +00:00
titan ee201f4712 Get aspect working.
SVN revision: 42809
2009-09-30 02:16:53 +00:00
titan af1af349f7 Thumbnail discovery on an idler.
SVN revision: 42741
2009-09-27 16:51:59 +00:00
titan b6e4815e66 Evas/Edje Ephoto. Needs a lot of work. Run it in a directory where there are images to see the small amount of progress. Good things to come!
SVN revision: 42723
2009-09-26 18:11:38 +00:00
titan e972923902 Remove old ephoto.
SVN revision: 42722
2009-09-26 18:04:22 +00:00
titan 13dd86ebb3 Some autofoo changes.
SVN revision: 39128
2009-02-21 22:37:25 +00:00
titan 15f560a446 Small bug fix.
SVN revision: 39084
2009-02-18 22:06:40 +00:00
titan be2160abfc Remove .deps folder, thanks vtorri
SVN revision: 39083
2009-02-18 19:02:07 +00:00
titan cce80b4802 Free image_data that is lying around after effects have been applied.
SVN revision: 39082
2009-02-18 18:57:06 +00:00
titan 31d7877a11 Change the sepia formula a bit.
SVN revision: 39067
2009-02-18 00:29:44 +00:00
titan 55caff88a1 Changes, especially to the single view
SVN revision: 39065
2009-02-18 00:10:56 +00:00