Commit Graph

170 Commits

Author SHA1 Message Date
Ryuan Choi c5196bfcda fileselector: Add support to change the size of thumbnails in grid view.
Reviewers: seoz, raster

Reviewed By: raster

CC: raster

Differential Revision: https://phab.enlightenment.org/D276
2013-12-03 18:28:52 +09:00
Carsten Haitzler 9d4a9900cc option build deps that efl guarantees... now just are assumed and not ifdef'd 2013-11-12 22:56:05 +09:00
Tom Hacohen 2f1e1554e5 Changed Eo class names to be consistent.
All the class names are now of the format: Elm_Type_Subtype_Extra
2013-11-07 11:44:22 +00:00
Ryuan Choi cc6fb00c62 fileselector: Remove invalid or unnecessary comment 2013-11-06 19:28:19 +09:00
Ryuan Choi 75ae20a30d elc_fileselector: Update items of file_view to follow changes of selected path
This patch implmented for fileselector to monitor and update changes of selected
path. So, changes of selected path from other applications such as mkdir will be
applied to the file_view without refresh.

This feature is only available with EIO.
2013-10-21 14:06:04 +09:00
Daniel Juyung Seo 8ec25b69fb elm: Added missing undefs. 2013-10-19 02:20:34 +09:00
Ryuan Choi 9bd1c3ae5a elc_fileselector: Refactor not to keep two instances(genlist/gengrid) for file list.
Consolidates and rename files_list and files_grid to files_view.
2013-10-18 15:14:10 +09:00
Ryuan Choi d5c6eaa50e elc_fileselector: Added support to show/hide hidden files/directories.
Added elm_fileselector_hidden_visible_set/get to show or hide hidden resources.
2013-10-18 12:30:28 +09:00
Ryuan Choi 024ee1241e elc_fileselector: Moved some initialization of list_itc/grid_itc from smart_add to constructor.
Since a305c127, list_itc and grid_itc initialization was moved to constructor of file selector class.
But some parts of them are remained in _elm_fileselector_smart_add() by my mistake.
2013-10-18 08:11:10 +09:00
Ryuan Choi 2fb023ea21 Multiple selection support in fileselector
Summary: Multiple selection support in fileselector

Reviewers: seoz

Reviewed By: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D207
2013-10-17 11:05:45 +09:00
Daniel Juyung Seo 38fb57719c elc_fileselector.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro. 2013-10-05 17:12:11 +09:00
Ryuan Choi dd763025d8 fileselector: fileselector: Add "activated" smart callback
It can be used to execute a file activated by double-clicking or
pressing Enter key.
2013-10-02 12:36:08 +09:00
Ryuan Choi 9368d61549 elc_fileselector: Add fileselector_double_tap_navigation_enable configuration
elm_filechooser used single tap not only for selection of file but also for
navigation of directory.
So it did not provide a way to select directory without navigation.

With fileselector_double_tap_navigation_enable option, single tap will be used
only for selection and double tap will be used for navigation of file or
directory.
2013-10-01 01:46:39 +09:00
Ryuan Choi 6e07a4c457 elc_fileselector: support ui-mirroring for files_grid.
All fileselector widgets support ui-mirroring except files_grid.
2013-09-26 17:43:19 +09:00
Ryuan Choi ea5a6f7345 elc_fileselector: restore name_entry.
(file)name_entry was removed after r82105 but it is necessary.
name_entry can keep the selected file/folder name(s for multiple selection)
or new file/folder name for save.
Instead, path_entry will focus only navigation with anchor.

I renamed it to name_entry because it can keep both file name and folder name.

you can see more information at
http://sourceforge.net/mailarchive/message.php?msg_id=31441811
2013-09-26 07:10:32 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +09:00
Ryuan Choi 5a6f5b770b fileselector: Added "selected,invalid" signal for wrong path on the path_entry.
If user typed wrong path on the path entry,
"selected,invalid" will be emitted with "selected" for legacy.

In addition, send "selected" signal when folder is changed in only folder mode.
It's regression of 74f308df9.

See more information from
http://sourceforge.net/mailarchive/message.php?msg_id=31394571
2013-09-12 22:37:10 +09:00
Ryuan Choi 743042501b elc_fileselector: Do not send "selected" signal when anchor was clicked.
Because anchor on path_entry just changes current path,
we don't need to send "selected" signal
2013-09-11 20:40:55 +09:00
Ryuan Choi 119ebdcabe Fixed wrong indentation and missing break in 74f308df9 2013-09-11 17:07:10 +09:00
Ryuan Choi 87f58fb5c3 elc_fileselector : Select path which user typed on path_entry.
Summary:
In fileselector, user can write directory path or file path which they want.
If then, fileselector navigates path when directory path is given,
but just send a "selected" signal without real selection when file path or wrong path is given.

With this path,
- fileselector will navigate (if needed) and select file with signal when file path is given.
- no action when wrong path is given.
2013-09-10 19:11:43 +09:00
Daniel Juyung Seo 280987dd1d ctxpopup, fileselector, fileselector_button, fileselector_entry, actionslider: apply more signal macro. 2013-09-03 08:39:02 +09:00
ChunEon Park fe0f0a445e elementary/widgets - set parents before widget constructs their body.
This avoids unnecessary setups again when obj <-> sub has connected.
2013-08-27 00:29:45 +09:00
Daniel Juyung Seo d9637f96b7 elc_fileselector.c: fixed formatting. 2013-08-22 05:24:46 +09:00
Ryuan Choi 5cfb0d9b7c fileselector: Simple refactoring to fix possible leak.
This fixes "Resource leaks" which was spotted by coverity. CID 1054518
2013-08-06 20:08:16 +09:00
Yakov Goldberg 5ed1390c9f fileselector: unfocus if anchor clicked/entry activated
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-08-06 11:17:40 +03:00
Yakov Goldberg a355c3f3f5 fileselector: fix show filename in anchor for some cases
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-08-06 11:17:40 +03:00
Yakov Goldberg de24d2c5c0 fileselector: fix typo + behavior
- _anchors_do() receive fileselector object as first parameter,
    in _on_text_unfocused cb fileselector passed as 'data' and not as
    'obj';
 - when entry is unfocused, it can contain usual text or anchor-styled text,
   so the only secure way to pass path is to pass sd->path.
2013-08-06 11:17:40 +03:00
Yakov Goldberg b26418ae7d fileselector: added TODO note
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-08-06 11:17:40 +03:00
ChunEon Park 99921e7f7e Revert "elementary/fileselector - added new api. elm_fileselector_entry_entry_get()"
This reverts commit c699ec2158d6ee56fc8cf07c3ded2b2688267f28.

Since "selected" smart callback returns the current entry text,
This is not necessary.
2013-07-29 11:42:23 +09:00
ChunEon Park 71358bdeb4 elementary/fileselector - added new api. elm_fileselector_entry_entry_get() 2013-07-29 01:31:49 +09:00
Daniel Juyung Seo 2e3fb71933 elc_fileselector.c: check null for part name and set the label for another part as well. 2013-07-23 06:11:30 +09:00
ChunEon Park 95ca372382 elementary/fileselector - support elm_object_part_text_set() to set the ok, cancel button label. 2013-07-23 01:51:27 +09:00
Ryuan Choi f12b32955a Revert "Remove redundant check routine what elm_entry_utf8_to_markup() returns."
This commit is invalid.
It just use strdup and strdup may return NULL when memory is not enough.

This reverts commit f579f7fd4b5e863f01a001876e536f5becc40811.
2013-07-18 10:26:27 +09:00
Ryuan Choi 51e684553b Cleanup _on_item_selected
Just return for the exception and avoid unnecessary allocation.
2013-07-18 02:56:50 +09:00
Ryuan Choi d6b87a1859 Remove redundant check routine what elm_entry_utf8_to_markup() returns.
elm_entry_utf8_to_markup() always returns allocated string.
So, we don't need to check what it returns.
2013-07-18 02:01:43 +09:00
Ryuan Choi 0ccfc31ee1 fileselector: Fixed regression of rELM3d2ae6d25ddc
https://phab.enlightenment.org/T198

After rELM3d2ae6d25ddc, buttons are destroyed when ok_cancel_set(true) is
called twice.
Spotted by uartie.
2013-06-29 07:27:23 +09:00
Ryuan Choi 27f6087892 Prefer eina_stringshare_strlen for shared strings 2013-06-27 19:24:18 +09:00
Ryuan Choi 989c343d16 fileselector : Fix Segfault in elementary file_selector_example when closed
https://phab.enlightenment.org/T133

list_itc and grid_itc are static variables, but they were managed by file_selector instance.
For example, they are allocated two times and first allocated classes are dangling
when two file selector are created.

This patch moves their init/deinit logic to constructor/destructor of file selector class.
2013-06-27 15:38:46 +09:00
Ryuan Choi fec9eab52c fileselector: Fix possible leak of _buttons_ok_cancel_set
When called _buttons_ok_cancel_set(true) two times,
buttons are created without release.
2013-06-25 06:08:18 +09:00
Ryuan Choi 2cfa0ce7db file selector:Add support mime type filter 2013-06-24 15:42:51 +09:00
Daniel Juyung Seo c7cfcc43f2 elc_fileselector.c: check null path before fileselector populate.
If no path was selected we don't need to populate fileselector.
This fixes https://phab.enlightenment.org/T132.
Thanks uartie for the report.
2013-06-12 15:03:49 +09:00
Stefan Schmidt 06c869eece elc_fileselector: Small formatting fix.
Spotted by devilhorns. Somehow I feel watched here. ;)
2013-06-11 08:48:20 +01:00
Stefan Schmidt 33eca6e2c0 elc_fileselector: Fix memory leak in _selected_set.
Using ecore_file_dir_get() like this will leak the returned string as we
have no way to control its free'ing. Better use a separate variable for it.
2013-06-10 15:47:54 +01:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Daniel Juyung Seo 74b3eed5fd elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
   Elm devs should fix it beforehand.
   So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +00:00
Daniel Juyung Seo 78c042cdbe elm *.c: fixed formatting with EINA_LIST_FREE.
EINA_LIST_FREE (xxx) -> EINA_LIST_FREE(xxx)
2013-03-09 13:23:42 +09:00
Gustavo Lima Chaves 312d0217a0 An internal layout error, on a widget set, is a CRITICAL error. 2013-03-01 23:04:31 -03:00
Daniel Zaoui cdd1eea853 Replace supported_types
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 83803
2013-02-10 07:52:31 +00:00