Commit Graph

203 Commits

Author SHA1 Message Date
Stephen Houston 017fa038be Use just the entry, not entry + button. The button to open the file dialog is not needed because the grid handles browsing. The entry is necessary for entering exact paths still.
SVN revision: 60791
2011-06-29 04:04:57 +00:00
Stephen Houston 593f71695e Fix multiple up items.
SVN revision: 60780
2011-06-28 23:22:44 +00:00
Stephen Houston ceda343414 Simplify buttons
SVN revision: 60779
2011-06-28 23:17:32 +00:00
Stephen Houston 962910db6b Commit the version of Ephoto that has always been the most working and preferred. I will bugfix this version and release it. Any of thousands of rewrites I love to do will have to come for another version somewhere well done the road. Lets just take this and make it solid and release it. Shout out to cedric, bluebugs, captainigloo, k-s, otavio, and any others who contributed to this version.
SVN revision: 60775
2011-06-28 22:26:16 +00:00
Stephen Houston 4b8960b931 Ephoto: Add in the new changes k-s and I have been working on.
SVN revision: 59474
2011-05-17 20:02:53 +00:00
Daniel Juyung Seo aa06f2b4fd elmdentica, ephoto: Applied elm_box/table/toolbar API changes.
SVN revision: 59266
2011-05-08 07:33:25 +00:00
Stephen Houston 8de29d0358 Ephoto: Make changes to the flow brower, its a smoother flow now, and has a genlist that matches up with the flow browser. Interesting :)
SVN revision: 58077
2011-03-24 21:25:51 +00:00
titan 1547ddaa81 Ephoto: General cleanups.
SVN revision: 57775
2011-03-15 20:09:37 +00:00
titan ae03e70576 Okay. Ephoto back to normal. Move along.
SVN revision: 57560
2011-03-07 22:31:11 +00:00
titan 169813a679 Do not update if you are not willing to expect a different ephoto.. This is a very temporary test that won't work right for most.
SVN revision: 57559
2011-03-07 22:02:12 +00:00
titan 004acaf9f8 Ephoto/Images: Sort images so they are in alphabetical order. This seems to be a good solution as it doesn't seem to slow down Ephoto much at all.
SVN revision: 57520
2011-03-04 21:50:07 +00:00
titan 7a11918ac3 Fix a lot of things in ephoto.. reuse some older code but in a good way. Add in a single image browser. Use externals(ugh, but its faster for some reason?)
SVN revision: 57313
2011-02-24 22:26:47 +00:00
titan 362047fe24 Speed up the ephoto thumb browser by a lot... Thanks k-s for some old cold that helped :)
SVN revision: 57227
2011-02-22 01:55:08 +00:00
titan 220c58503d Add some focus calls for switching between thumb and flow browsers.
SVN revision: 57138
2011-02-17 20:23:03 +00:00
titan 48d7093b5e Add slideshow back into ephoto. Works pretty well for now.
SVN revision: 57039
2011-02-14 21:16:13 +00:00
titan 05531c003c Make the starting thumb size smaller.
SVN revision: 57038
2011-02-14 20:30:42 +00:00
titan 138abeab08 Use JPEG FORMAT for ethumb where appropriate.
SVN revision: 57030
2011-02-14 17:12:28 +00:00
titan 30cbc75689 Ephoto now uses the currently selected image in the thumb view as the center of the flow view when view flow is clicked. Also double clicking an image in the thumb view will take you to the flow view and use that image as the center of the flow view.
SVN revision: 57002
2011-02-14 03:04:20 +00:00
titan 1c4ea07b1e Fix some icon definitions
SVN revision: 56944
2011-02-11 00:42:26 +00:00
titan 4ef79b29a5 Fix the current directory when one hasn't been provided.
SVN revision: 56943
2011-02-11 00:09:33 +00:00
titan b9432f30d6 Add the ability to change directories. Also add some 3D mapping to the flow... Please tell me your thoughts? It works great with small images... but as current right now the flow is very slow with large images(even without the mapping)... Does anyone have a solution for this?
SVN revision: 56941
2011-02-10 23:41:02 +00:00
titan 504a0babcf Fix a bug that causes a segfault by not being to find a path for thumbing.
SVN revision: 56683
2011-02-03 19:41:55 +00:00
titan a3e0247f03 Stick to FDO format for now.
SVN revision: 56679
2011-02-03 19:06:57 +00:00
titan c478bfdeee Clean up a lot of ephoto.. Things that weren't necessary, things that are no longer necessary, etc... Add a true flow view that is a work in progress. Currently ephoto will only open images in the current working directory or in a directory supplied in an argument when started, but this will change when directory stuff is added back in. This gives ephoto more direction and provides a solid base to move forward from. Also, yes, I removed edje externals and I am not using them. There are multiple reasons for this that are all of my opinion and if you would like to discuss it, see me on irc or send out a mail on the list.
SVN revision: 56640
2011-02-01 21:44:38 +00:00
titan cb528acc67 This is what I feel like is a middle ground for how directory browsing is handled in ephoto. Please give me useful feedback. Yes I know the directories/font of the directory labels need work, but you get the general idea, and that will be fixed soon.
SVN revision: 55098
2010-11-30 21:52:49 +00:00
titan 51f36d538b Revert my changes while I work on a new way of doing things. This will make a certain few people happy for the time being until the new way is revealed... then things will get interesting.
SVN revision: 55077
2010-11-30 02:33:22 +00:00
titan 5a22538cae Remove the directories from the gengrid. This is possibly just temporary, but for now they are hideous and ugly and I'm not even sure I want them there in the first place, but especially not looking like that.
SVN revision: 54948
2010-11-24 19:22:34 +00:00
titan d2a93f9e9e Move the parent directory icon out of the gengrid. Next the directories will be moved out of the gengrid.
SVN revision: 54941
2010-11-24 18:15:09 +00:00
Rafael Fonseca 37e9d6c757 Use default theme for gengrid items.
Some of the gengrid items from ephoto were merged into elm default theme.



SVN revision: 54696
2010-11-18 18:10:21 +00:00
Viktor Kojouharov a9a783385d Move the entry list building to the main file, since it is used by both the thumb and flow views.
Inform the relevant parties when the list starts and stops getting populated, and when an entry is created, via ecore events.
Remove the pending path stuff from the thumb browser, as it is not for it.
Remove the ability to set the currently viewed file by path alone, always rely on an entry.
Correctly set the disable states on the navigation toolbar buttons when starting ephoto directly in flow mode


SVN revision: 54541
2010-11-14 01:51:16 +00:00
Cedric BAIL 6f67f63c79 * eio: fix API to match the rest of the EFL API.
SVN revision: 54504
2010-11-12 14:08:01 +00:00
Cedric BAIL 8c554a6ea8 * ephoto: use eio_file_stat_ls.
SVN revision: 54107
2010-11-02 17:08:49 +00:00
Carsten Haitzler d113da0a6c use new type member. dont depend on bsd extensions.
SVN revision: 54017
2010-10-30 05:57:08 +00:00
Cedric BAIL 063248da8f * eio: break Eio error callback API to match the rest of the API.
SVN revision: 53986
2010-10-29 12:36:43 +00:00
Bruno Dilly 11487fbdb5 Fix elm_toolbar usage on several projects
SVN revision: 53896
2010-10-26 10:34:07 +00:00
Tiago Rezende Campos Falcao 3e1a7b64eb Do nothing when used cancel button
SVN revision: 53654
2010-10-20 12:08:39 +00:00
Leandro Pereira efe017db8b [Ephoto] Update toolbar stuff to suit recent API changes
SVN revision: 53464
2010-10-15 17:54:28 +00:00
Gustavo Sverzut Barbieri 73a50e088b use elm goodies!
use elm_layout_box_append() + elm_fileselector_entry_add() to choose
directories!



SVN revision: 53386
2010-10-14 02:37:37 +00:00
Gustavo Sverzut Barbieri 8679562a81 and work nicely with empty directories
SVN revision: 53381
2010-10-13 22:32:41 +00:00
Gustavo Sverzut Barbieri 4802d3e2ef queue items to process from animators, save cpu and less flickering.
just add items from an animator so we give time to have a good queue
and do the insert in a batch. It will change the grid population less
often, and will trigger the grid recalc less often as well.



SVN revision: 53380
2010-10-13 22:28:23 +00:00
Gustavo Sverzut Barbieri b4f63379b5 do not show up when we're at /
SVN revision: 53338
2010-10-13 05:21:45 +00:00
Gustavo Sverzut Barbieri 8bd148fa72 eio_file_cancel() is async and will run on future main loop iteration.
damn beast hard to find, but i guess ephoto is now ready (/me hides...)



SVN revision: 53337
2010-10-13 05:06:18 +00:00
Gustavo Sverzut Barbieri feba790912 some less valgrind errors.
I guess I've spotted the main problem with eio usage, will commit in
another revision.



SVN revision: 53335
2010-10-13 03:24:22 +00:00
Gustavo Sverzut Barbieri 81d47b1344 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
2010-10-12 22:54:20 +00:00
Gustavo Sverzut Barbieri d74d0ff7c9 alt-up for thumb browser, make orient get visible outside.
I tried to apply the orient rotation using map on the elm_photo, but
it does not work :-( If you know how to fix it, take a look.



SVN revision: 53311
2010-10-12 17:26:23 +00:00
Gustavo Sverzut Barbieri 717c438a0e ephoto autotools overhaul.
* added Vincent recommended warnings (ie: -Wshadow) and also -Wextra;
 * uses ac_attribute.m4 to define __UNUSED__;
 * uses -Wl,--as-needed
 * uses -fvisibility=hidden by default, if supported
 * uses -ffunction-sections -fdata-sections + -Wl,--gc-sections
 * added gettext (not tested yet, but should work)
 * added quicklaunch support (not tested yet, but should work)
 * make it pass make distcheck

with the optimization flags, on my 32bits machine ephoto is amazingly
44Kb binary! Of course it loads super-fast even without quicklaunch,
amazing what we can do with 44kb binary + 188kb theme (mostly about
images I'm shipping in 128x128 + 256x256 + 512x512 and other images
that should be in elementary's theme).



SVN revision: 53293
2010-10-12 04:58:04 +00:00
Gustavo Sverzut Barbieri 770baf199e slideshow is back.
toolbars still missing, will return them back tomorrow.



SVN revision: 53281
2010-10-12 03:40:14 +00:00
Gustavo Sverzut Barbieri e5c722abb2 insert thumbnails sorted.
SVN revision: 53255
2010-10-11 02:54:49 +00:00
Gustavo Sverzut Barbieri b44a686b53 one more day of work on ephoto, still not complete.
flow browser (why that name?!) is back, with the my traditional
combination of 255,0 in rgb colored buttons in edje.

tomorrow will work on slideshow and make it work.

NOTE: ProFUSION team will work on a solution to have elm_toolbar +
elm_menu to be good and provide what we have in eve/enjoy in a more
generic way without thousand lines of macros in EDC. The goal is to
have configurable implementation that would provide some UI on desktop
and another on embedded, also showing buttons as we have space, and
hidding them with an automatic "more" entry if there is no space for
all items. That should improve eve, enjoy, ephoto and possibly others.



SVN revision: 53250
2010-10-11 01:10:27 +00:00
Gustavo Sverzut Barbieri 47da8cd526 zoom actions, still barebones.
I was about to move to efenniht theme, but it will be some work I'd
not be able to finish in time... given that we'll have enjoy, eve,
envision and ephoto using the same things, it is time to consider a
better replicable solution.




SVN revision: 53240
2010-10-10 18:57:48 +00:00
Gustavo Sverzut Barbieri 9652a108bf ouch, refactor part 2 -- less is more, so get nothing ;-)
okay, still yet another partial code, it's far from ready, don't even
checkout until you're ready to code.

preferences, flow_browser, slideshow are temporarily gone.

still no toolbar in main window, layout redone using EXTERNAL... when
it go back, it will be in the same form as eve/enjoy.



SVN revision: 53238
2010-10-10 01:13:53 +00:00
Gustavo Sverzut Barbieri e21422bf65 ephoto core simplification - part 1 (UNFINISHED!!!!)
I'm rewriting parts of ephoto to simplify it, one of the things is to
avoid lots of nesting of layouts to get a simple preview
image.

So far just the thumb directory is done to the point it shows the
contents of a directory, it will do nothing on selection and
clicks. There is no toolbar either, as this is going to be replaced
later on.

EFL bugs so far:
 * eio_file_cancel() is not playing nice with ecore_pipe, with errors like: "ecore_pipe.c:517 _ecore_pipe_read() An unhandled error (ret: -1 errno: 9)occurred while reading from the pipe the length"

 * evas/edje map is broken WRT clipping! if I have map { on: 1;
   rotation.z: 10;} and this part is clipped to some other part, the
   clipper will be ignored!

Sorry, but I couldn't finish it now, trying to do it later today and
tomorrow. I still need to add the elm_genlist_item_prepend(),
elm_genlist_item_insert_before() and elm_genlist_item_insert_after()
to get the sorted insert to work.



SVN revision: 53237
2010-10-09 19:13:35 +00:00
Gustavo Sverzut Barbieri 73d91bfa90 usual paradigm is vertical scroll, let's stick to it.
SVN revision: 53226
2010-10-09 01:45:32 +00:00
Gustavo Sverzut Barbieri e3a1481bb9 what about generating thumbnails that match the expected view size?
now generating thumbnails at 128, 256 and 512, the generation is
delayed to avoid unnecessary work for ethumbd.



SVN revision: 53217
2010-10-08 22:48:12 +00:00
Gustavo Sverzut Barbieri e434b9aaee refactor, improve sizing of icons.
use super-duper-nice edje features to choose image based on the
current object size and provide icons at 128, 256 and 512 so we're
always high quality.



SVN revision: 53212
2010-10-08 21:43:57 +00:00
Gustavo Sverzut Barbieri dc2f3c47c9 avoid directories starting with '.' and faster check for directory.
SVN revision: 53210
2010-10-08 20:31:04 +00:00
Gustavo Sverzut Barbieri ccaa92a949 better min/max values.
SVN revision: 53209
2010-10-08 20:25:18 +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 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 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 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
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 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 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 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
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 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