summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorJi-Youn Park <jy0703.park@samsung.com>2016-03-19 10:00:19 +0830
committerJi-Youn Park <jy0703.park@samsung.com>2016-03-19 10:40:25 +0830
commit07fa35da20d7954ac64a5638a3cfb7dab453fc34 (patch)
tree03fdd97afbd6f94d262d45a1be15e2be91dc222c /legacy
parent1adb1962de0d9ca64cf34c3ae56245ae654b54d1 (diff)
Evas.Draggable_Interface: move editable_set/get to lecacy API
Elm_XXX_editable_set/get is related with drag and drop. Elm_entry, Elm_image, Elm_photo, Elm_thumb has editable API. If user call elm_entry_editable_set(obj, EINA_TRUE), elm entry's content(text) can be changed into dragging text. elm_image(photo,thumb also) is same. its content(image) also can be changed into dragging image. so changed for these widget to use drag_target property in evas_draggable_interface
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/lib/elm_entry.c17
-rw-r--r--legacy/elementary/src/lib/elm_entry.eo27
-rw-r--r--legacy/elementary/src/lib/elm_entry_legacy.h29
-rw-r--r--legacy/elementary/src/lib/elm_image.c17
-rw-r--r--legacy/elementary/src/lib/elm_image.eo17
-rw-r--r--legacy/elementary/src/lib/elm_image_legacy.h23
-rw-r--r--legacy/elementary/src/lib/elm_photo.c17
-rw-r--r--legacy/elementary/src/lib/elm_photo.eo18
-rw-r--r--legacy/elementary/src/lib/elm_photo_legacy.h21
-rw-r--r--legacy/elementary/src/lib/elm_thumb.c23
-rw-r--r--legacy/elementary/src/lib/elm_thumb.eo25
-rw-r--r--legacy/elementary/src/lib/elm_thumb_legacy.h23
12 files changed, 172 insertions, 85 deletions
diff --git a/legacy/elementary/src/lib/elm_entry.c b/legacy/elementary/src/lib/elm_entry.c
index 42279fa09d..81676b2fa7 100644
--- a/legacy/elementary/src/lib/elm_entry.c
+++ b/legacy/elementary/src/lib/elm_entry.c
@@ -4107,7 +4107,7 @@ _elm_entry_line_wrap_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
4107} 4107}
4108 4108
4109EOLIAN static void 4109EOLIAN static void
4110_elm_entry_editable_set(Eo *obj, Elm_Entry_Data *sd, Eina_Bool editable) 4110_elm_entry_evas_draggable_interface_drag_target_set(Eo *obj, Elm_Entry_Data *sd, Eina_Bool editable)
4111{ 4111{
4112 if (sd->editable == editable) return; 4112 if (sd->editable == editable) return;
4113 sd->editable = editable; 4113 sd->editable = editable;
@@ -4130,7 +4130,7 @@ _elm_entry_editable_set(Eo *obj, Elm_Entry_Data *sd, Eina_Bool editable)
4130} 4130}
4131 4131
4132EOLIAN static Eina_Bool 4132EOLIAN static Eina_Bool
4133_elm_entry_editable_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd) 4133_elm_entry_evas_draggable_interface_drag_target_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
4134{ 4134{
4135 return sd->editable; 4135 return sd->editable;
4136} 4136}
@@ -5855,4 +5855,17 @@ _elm_entry_elm_interface_atspi_accessible_name_get(Eo *obj, Elm_Entry_Data *sd)
5855 return ret ? strdup(ret) : NULL; 5855 return ret ? strdup(ret) : NULL;
5856} 5856}
5857 5857
5858/* Legacy deprecated functions */
5859EAPI void
5860elm_entry_editable_set(Evas_Object *obj, Eina_Bool edit)
5861{
5862 evas_draggable_interface_drag_target_set(obj, edit);
5863}
5864
5865EAPI Eina_Bool
5866elm_entry_editable_get(const Evas_Object *obj)
5867{
5868 return evas_draggable_interface_drag_target_get(obj);
5869}
5870
5858#include "elm_entry.eo.c" 5871#include "elm_entry.eo.c"
diff --git a/legacy/elementary/src/lib/elm_entry.eo b/legacy/elementary/src/lib/elm_entry.eo
index 166c6c75b9..71825e23c2 100644
--- a/legacy/elementary/src/lib/elm_entry.eo
+++ b/legacy/elementary/src/lib/elm_entry.eo
@@ -112,7 +112,8 @@ enum Elm.Cnp_Mode
112 112
113class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface, 113class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface,
114 Elm.Interface_Atspi_Text, Elm.Interface_Atspi_Editable_Text, Efl.File, 114 Elm.Interface_Atspi_Text, Elm.Interface_Atspi_Editable_Text, Efl.File,
115 Evas.Selectable_Interface, Evas.Scrollable_Interface) 115 Evas.Selectable_Interface, Evas.Scrollable_Interface,
116 Evas.Draggable_Interface)
116{ 117{
117 eo_prefix: elm_obj_entry; 118 eo_prefix: elm_obj_entry;
118 methods { 119 methods {
@@ -261,28 +262,6 @@ class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface,
261 autocapital_type: Elm.Autocapital.Type; [[The type of autocapitalization.]] 262 autocapital_type: Elm.Autocapital.Type; [[The type of autocapitalization.]]
262 } 263 }
263 } 264 }
264 @property editable {
265 set {
266 [[Sets if the entry is to be editable or not.
267
268 By default, entries are editable and when focused, any text input by the
269 user will be inserted at the current cursor position. But calling this
270 function with $editable as $false will prevent the user from
271 inputting text into the entry.
272
273 The only way to change the text of a non-editable entry is to use
274 \@ref elm_object_text_set, \@ref elm_entry_entry_insert and other related
275 functions.
276 ]]
277 }
278 get {
279 [[Get whether the entry is editable or not.]]
280 }
281 values {
282 editable: bool; [[If $true, user input will be inserted in the entry,
283 if not, the entry is read-only and no user input is allowed.]]
284 }
285 }
286 @property anchor_hover_style { 265 @property anchor_hover_style {
287 set { 266 set {
288 [[Set the style that the hover should use 267 [[Set the style that the hover should use
@@ -925,6 +904,8 @@ class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface,
925 Evas.Object_Smart.del; 904 Evas.Object_Smart.del;
926 Evas.Object_Smart.show; 905 Evas.Object_Smart.show;
927 Evas.Object_Smart.hide; 906 Evas.Object_Smart.hide;
907 Evas.Draggable_Interface.drag_target.set;
908 Evas.Draggable_Interface.drag_target.get;
928 Elm.Widget.activate; 909 Elm.Widget.activate;
929 Elm.Widget.focus_direction_manager_is; 910 Elm.Widget.focus_direction_manager_is;
930 Elm.Widget.theme_apply; 911 Elm.Widget.theme_apply;
diff --git a/legacy/elementary/src/lib/elm_entry_legacy.h b/legacy/elementary/src/lib/elm_entry_legacy.h
index 2a305440e5..040fef50c4 100644
--- a/legacy/elementary/src/lib/elm_entry_legacy.h
+++ b/legacy/elementary/src/lib/elm_entry_legacy.h
@@ -71,3 +71,32 @@ EAPI Eina_Bool elm_entry_file_set(Evas_Object *obj, const char *file, E
71 * @param[out] format The file format 71 * @param[out] format The file format
72 */ 72 */
73EAPI void elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format); 73EAPI void elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format);
74
75/**
76 * @brief Sets if the entry is to be editable or not.
77 *
78 * By default, entries are editable and when focused, any text input by the
79 * user will be inserted at the current cursor position. But calling this
80 * function with @c editable as @c false will prevent the user from inputting
81 * text into the entry.
82 *
83 * The only way to change the text of a non-editable entry is to use @ref
84 * elm_object_text_set, @ref elm_entry_entry_insert and other related
85 * functions.
86 *
87 * @param[in] editable If @c true, user input will be inserted in the entry, if
88 * not, the entry is read-only and no user input is allowed.
89 *
90 * @ingroup Elm_Entry
91 */
92EAPI void elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable);
93
94/**
95 * @brief Get whether the entry is editable or not.
96 *
97 * @return If @c true, user input will be inserted in the entry, if not, the
98 * entry is read-only and no user input is allowed.
99 *
100 * @ingroup Elm_Entry
101 */
102EAPI Eina_Bool elm_entry_editable_get(const Evas_Object *obj);
diff --git a/legacy/elementary/src/lib/elm_image.c b/legacy/elementary/src/lib/elm_image.c
index 538c5b9e4b..9edeea955b 100644
--- a/legacy/elementary/src/lib/elm_image.c
+++ b/legacy/elementary/src/lib/elm_image.c
@@ -1399,7 +1399,7 @@ _elm_image_orient_get(Eo *obj EINA_UNUSED, Elm_Image_Data *sd)
1399 * Turns on editing through drag and drop and copy and paste. 1399 * Turns on editing through drag and drop and copy and paste.
1400 */ 1400 */
1401EOLIAN static void 1401EOLIAN static void
1402_elm_image_editable_set(Eo *obj, Elm_Image_Data *sd, Eina_Bool edit) 1402_elm_image_evas_draggable_interface_drag_target_set(Eo *obj, Elm_Image_Data *sd, Eina_Bool edit)
1403{ 1403{
1404 if (sd->edje) 1404 if (sd->edje)
1405 { 1405 {
@@ -1430,7 +1430,7 @@ _elm_image_editable_set(Eo *obj, Elm_Image_Data *sd, Eina_Bool edit)
1430} 1430}
1431 1431
1432EOLIAN static Eina_Bool 1432EOLIAN static Eina_Bool
1433_elm_image_editable_get(Eo *obj EINA_UNUSED, Elm_Image_Data *sd) 1433_elm_image_evas_draggable_interface_drag_target_get(Eo *obj EINA_UNUSED, Elm_Image_Data *sd)
1434{ 1434{
1435 return sd->edit; 1435 return sd->edit;
1436} 1436}
@@ -1645,4 +1645,17 @@ elm_image_smooth_get(const Evas_Object *obj)
1645 1645
1646// A11Y - END 1646// A11Y - END
1647 1647
1648/* Legacy deprecated functions */
1649EAPI void
1650elm_image_editable_set(Evas_Object *obj, Eina_Bool edit)
1651{
1652 evas_draggable_interface_drag_target_set(obj, edit);
1653}
1654
1655EAPI Eina_Bool
1656elm_image_editable_get(const Evas_Object *obj)
1657{
1658 return evas_draggable_interface_drag_target_get(obj);
1659}
1660
1648#include "elm_image.eo.c" 1661#include "elm_image.eo.c"
diff --git a/legacy/elementary/src/lib/elm_image.eo b/legacy/elementary/src/lib/elm_image.eo
index ea2d9666ca..f3c8cbb4fb 100644
--- a/legacy/elementary/src/lib/elm_image.eo
+++ b/legacy/elementary/src/lib/elm_image.eo
@@ -42,25 +42,12 @@ struct Elm.Image.Error
42} 42}
43 43
44class Elm.Image (Elm.Widget, Efl.File, Efl.Image_Load, Evas.Clickable_Interface, 44class Elm.Image (Elm.Widget, Efl.File, Efl.Image_Load, Evas.Clickable_Interface,
45 Edje.Object, Efl.Image, 45 Edje.Object, Efl.Image, Evas.Draggable_Interface,
46 Elm.Interface_Atspi_Image, Elm.Interface_Atspi_Widget_Action, 46 Elm.Interface_Atspi_Image, Elm.Interface_Atspi_Widget_Action,
47 Efl.Player) 47 Efl.Player)
48{ 48{
49 eo_prefix: elm_obj_image; 49 eo_prefix: elm_obj_image;
50 methods { 50 methods {
51 @property editable {
52 [[Contrtol if thhe image is 'editable'.
53
54 This means the image is a valid drag target for drag and drop, and can be
55 cut or pasted too.]]
56 set {
57 }
58 get {
59 }
60 values {
61 set: bool; [[Turn on or off editability. Default is $false.]]
62 }
63 }
64 @property resize_down { 51 @property resize_down {
65 [[Control whether the object's image can be resized to a size smaller than the original one. 52 [[Control whether the object's image can be resized to a size smaller than the original one.
66 53
@@ -321,6 +308,8 @@ class Elm.Image (Elm.Widget, Efl.File, Efl.Image_Load, Evas.Clickable_Interface,
321 Evas.Object_Smart.del; 308 Evas.Object_Smart.del;
322 Evas.Object_Smart.member_add; 309 Evas.Object_Smart.member_add;
323 Evas.Object_Smart.resize; 310 Evas.Object_Smart.resize;
311 Evas.Draggable_Interface.drag_target.set;
312 Evas.Draggable_Interface.drag_target.get;
324 Elm.Widget.theme_apply; 313 Elm.Widget.theme_apply;
325 Elm.Widget.event; 314 Elm.Widget.event;
326 Elm.Interface_Atspi_Image.extents.get; 315 Elm.Interface_Atspi_Image.extents.get;
diff --git a/legacy/elementary/src/lib/elm_image_legacy.h b/legacy/elementary/src/lib/elm_image_legacy.h
index 244ab2284c..01df5fe3ab 100644
--- a/legacy/elementary/src/lib/elm_image_legacy.h
+++ b/legacy/elementary/src/lib/elm_image_legacy.h
@@ -249,4 +249,27 @@ EAPI Eina_Bool elm_image_animated_get(const Evas_Object *obj);
249 */ 249 */
250EAPI Eina_Bool elm_image_animated_available_get(const Evas_Object *obj); 250EAPI Eina_Bool elm_image_animated_available_get(const Evas_Object *obj);
251 251
252/**
253 * @brief Contrtol if the image is 'editable'.
254 *
255 * This means the image is a valid drag target for drag and drop, and can be
256 * cut or pasted too.
257 *
258 * @param[in] set Turn on or off editability. Default is @c false.
259 *
260 * @ingroup Elm_Image
261 */
262EAPI void elm_image_editable_set(Evas_Object *obj, Eina_Bool set);
263
264/**
265 * @brief Contrtol if the image is 'editable'.
266 *
267 * This means the image is a valid drag target for drag and drop, and can be
268 * cut or pasted too.
269 *
270 * @return Turn on or off editability. Default is @c false.
271 *
272 * @ingroup Elm_Image
273 */
274EAPI Eina_Bool elm_image_editable_get(const Evas_Object *obj);
252#include "elm_image.eo.legacy.h" 275#include "elm_image.eo.legacy.h"
diff --git a/legacy/elementary/src/lib/elm_photo.c b/legacy/elementary/src/lib/elm_photo.c
index ada159057b..c8ffc74a93 100644
--- a/legacy/elementary/src/lib/elm_photo.c
+++ b/legacy/elementary/src/lib/elm_photo.c
@@ -360,13 +360,13 @@ _elm_photo_fill_inside_get(Eo *obj EINA_UNUSED, Elm_Photo_Data *sd)
360} 360}
361 361
362EOLIAN static void 362EOLIAN static void
363_elm_photo_editable_set(Eo *obj EINA_UNUSED, Elm_Photo_Data *sd, Eina_Bool set) 363_elm_photo_evas_draggable_interface_drag_target_set(Eo *obj EINA_UNUSED, Elm_Photo_Data *sd, Eina_Bool set)
364{ 364{
365 elm_image_editable_set(sd->icon, set); 365 elm_image_editable_set(sd->icon, set);
366} 366}
367 367
368EOLIAN static Eina_Bool 368EOLIAN static Eina_Bool
369_elm_photo_editable_get(Eo *obj EINA_UNUSED, Elm_Photo_Data *sd) 369_elm_photo_evas_draggable_interface_drag_target_get(Eo *obj EINA_UNUSED, Elm_Photo_Data *sd)
370{ 370{
371 return elm_image_editable_get(sd->icon); 371 return elm_image_editable_get(sd->icon);
372} 372}
@@ -404,4 +404,17 @@ elm_photo_file_set(Eo *obj, const char *file)
404 return efl_file_set((Eo *) obj, file, NULL); 404 return efl_file_set((Eo *) obj, file, NULL);
405} 405}
406 406
407/* Legacy deprecated functions */
408EAPI void
409elm_photo_editable_set(Evas_Object *obj, Eina_Bool edit)
410{
411 evas_draggable_interface_drag_target_set(obj, edit);
412}
413
414EAPI Eina_Bool
415elm_photo_editable_get(const Evas_Object *obj)
416{
417 return evas_draggable_interface_drag_target_get(obj);
418}
419
407#include "elm_photo.eo.c" 420#include "elm_photo.eo.c"
diff --git a/legacy/elementary/src/lib/elm_photo.eo b/legacy/elementary/src/lib/elm_photo.eo
index 6a6c2f890b..68c1faeeac 100644
--- a/legacy/elementary/src/lib/elm_photo.eo
+++ b/legacy/elementary/src/lib/elm_photo.eo
@@ -2,22 +2,6 @@ class Elm.Photo (Elm.Widget, Efl.File, Evas.Clickable_Interface, Evas.Draggable_
2{ 2{
3 eo_prefix: elm_obj_photo; 3 eo_prefix: elm_obj_photo;
4 methods { 4 methods {
5 @property editable {
6 set {
7 [[Set editability of the photo.
8
9 An editable photo can be dragged to or from, and can be cut or
10 pasted too. Note that pasting an image or dropping an item on
11 the image will delete the existing content.
12 ]]
13 }
14 get {
15 [[Get editability of the photo.]]
16 }
17 values {
18 set: bool; [[To set of clear editability.]]
19 }
20 }
21 @property fill_inside { 5 @property fill_inside {
22 set { 6 set {
23 [[Set if the photo should be completely visible or not.]] 7 [[Set if the photo should be completely visible or not.]]
@@ -77,6 +61,8 @@ class Elm.Photo (Elm.Widget, Efl.File, Evas.Clickable_Interface, Evas.Draggable_
77 Efl.File.file.set; 61 Efl.File.file.set;
78 Evas.Object_Smart.add; 62 Evas.Object_Smart.add;
79 Evas.Object_Smart.del; 63 Evas.Object_Smart.del;
64 Evas.Draggable_Interface.drag_target.set;
65 Evas.Draggable_Interface.drag_target.get;
80 Elm.Widget.theme_apply; 66 Elm.Widget.theme_apply;
81 } 67 }
82 68
diff --git a/legacy/elementary/src/lib/elm_photo_legacy.h b/legacy/elementary/src/lib/elm_photo_legacy.h
index 0dca425df9..116c0be2d5 100644
--- a/legacy/elementary/src/lib/elm_photo_legacy.h
+++ b/legacy/elementary/src/lib/elm_photo_legacy.h
@@ -23,4 +23,25 @@ EAPI Evas_Object *elm_photo_add(Evas_Object *parent);
23 */ 23 */
24EAPI Eina_Bool elm_photo_file_set(Eo *obj, const char *file); 24EAPI Eina_Bool elm_photo_file_set(Eo *obj, const char *file);
25 25
26/**
27 * Set editability of the photo.
28 *
29 * An editable photo can be dragged to or from, and can be cut or pasted too.
30 * Note that pasting an image or dropping an item on the image will delete the
31 * existing content.
32 *
33 * @param[in] set To set of clear editability.
34 *
35 * @ingroup Elm_Photo
36 */
37EAPI void elm_photo_editable_set(Evas_Object *obj, Eina_Bool set);
38
39/**
40 * Get editability of the photo.
41 *
42 * @return To set of clear editability.
43 *
44 * @ingroup Elm_Photo
45 */
46EAPI Eina_Bool elm_photo_editable_get(const Evas_Object *obj);
26#include "elm_photo.eo.legacy.h" 47#include "elm_photo.eo.legacy.h"
diff --git a/legacy/elementary/src/lib/elm_thumb.c b/legacy/elementary/src/lib/elm_thumb.c
index 6b33e43b69..65558b419f 100644
--- a/legacy/elementary/src/lib/elm_thumb.c
+++ b/legacy/elementary/src/lib/elm_thumb.c
@@ -814,11 +814,11 @@ elm_thumb_ethumb_client_connected_get(void)
814 return _elm_ethumb_connected; 814 return _elm_ethumb_connected;
815} 815}
816 816
817EOLIAN static Eina_Bool 817EOLIAN static void
818_elm_thumb_editable_set(Eo *obj, Elm_Thumb_Data *sd, Eina_Bool edit) 818_elm_thumb_evas_draggable_interface_drag_target_set(Eo *obj, Elm_Thumb_Data *sd, Eina_Bool edit)
819{ 819{
820 edit = !!edit; 820 edit = !!edit;
821 if (sd->edit == edit) return EINA_TRUE; 821 if (sd->edit == edit) return;
822 822
823 sd->edit = edit; 823 sd->edit = edit;
824 if (sd->edit) 824 if (sd->edit)
@@ -834,11 +834,11 @@ _elm_thumb_editable_set(Eo *obj, Elm_Thumb_Data *sd, Eina_Bool edit)
834 NULL, NULL, 834 NULL, NULL,
835 _elm_thumb_dnd_cb, obj); 835 _elm_thumb_dnd_cb, obj);
836 836
837 return EINA_TRUE; 837 return;
838} 838}
839 839
840EOLIAN static Eina_Bool 840EOLIAN static Eina_Bool
841_elm_thumb_editable_get(Eo *obj EINA_UNUSED, Elm_Thumb_Data *sd) 841_elm_thumb_evas_draggable_interface_drag_target_get(Eo *obj EINA_UNUSED, Elm_Thumb_Data *sd)
842{ 842{
843 return sd->edit; 843 return sd->edit;
844} 844}
@@ -861,5 +861,18 @@ elm_thumb_file_get(const Eo *obj, const char **file, const char **key)
861 efl_file_get((Eo *) obj, file, key); 861 efl_file_get((Eo *) obj, file, key);
862} 862}
863 863
864/* Legacy deprecated functions */
865EAPI Eina_Bool
866elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit)
867{
868 evas_draggable_interface_drag_target_set(obj, edit);
869 return EINA_TRUE;
870}
871
872EAPI Eina_Bool
873elm_thumb_editable_get(const Evas_Object *obj)
874{
875 return evas_draggable_interface_drag_target_get(obj);
876}
864 877
865#include "elm_thumb.eo.c" 878#include "elm_thumb.eo.c"
diff --git a/legacy/elementary/src/lib/elm_thumb.eo b/legacy/elementary/src/lib/elm_thumb.eo
index 6dd3d498c3..9c1479bfbc 100644
--- a/legacy/elementary/src/lib/elm_thumb.eo
+++ b/legacy/elementary/src/lib/elm_thumb.eo
@@ -8,7 +8,8 @@ enum Elm.Thumb.Animation_Setting
8 last 8 last
9} 9}
10 10
11class Elm.Thumb (Elm.Layout, Efl.File, Evas.Clickable_Interface) 11class Elm.Thumb (Elm.Layout, Efl.File, Evas.Clickable_Interface,
12 Evas.Draggable_Interface)
12{ 13{
13 eo_prefix: elm_obj_thumb; 14 eo_prefix: elm_obj_thumb;
14 methods { 15 methods {
@@ -98,26 +99,6 @@ class Elm.Thumb (Elm.Layout, Efl.File, Evas.Clickable_Interface)
98 orient: Ethumb_Thumb_Orientation; [[The orientation setting.]] 99 orient: Ethumb_Thumb_Orientation; [[The orientation setting.]]
99 } 100 }
100 } 101 }
101 @property editable {
102 set {
103 [[Make the thumbnail 'editable'.
104
105 This means the thumbnail is a valid drag target for drag and
106 drop, and can be cut or pasted too.
107 ]]
108 return: bool;
109 }
110 get {
111 [[Get whether the thumbnail is editable.
112
113 This means the thumbnail is a valid drag target for drag and
114 drop, and can be cut or pasted too.
115 ]]
116 }
117 values {
118 edit: bool; [[The editable state, default is $false.]]
119 }
120 }
121 @property aspect { 102 @property aspect {
122 set { 103 set {
123 [[Set the aspect for the thumb object. 104 [[Set the aspect for the thumb object.
@@ -226,6 +207,8 @@ class Elm.Thumb (Elm.Layout, Efl.File, Evas.Clickable_Interface)
226 Evas.Object_Smart.add; 207 Evas.Object_Smart.add;
227 Evas.Object_Smart.del; 208 Evas.Object_Smart.del;
228 Evas.Object_Smart.show; 209 Evas.Object_Smart.show;
210 Evas.Draggable_Interface.drag_target.set;
211 Evas.Draggable_Interface.drag_target.get;
229 } 212 }
230 events { 213 events {
231 generate,error; 214 generate,error;
diff --git a/legacy/elementary/src/lib/elm_thumb_legacy.h b/legacy/elementary/src/lib/elm_thumb_legacy.h
index e2ff8a1438..28b849e419 100644
--- a/legacy/elementary/src/lib/elm_thumb_legacy.h
+++ b/legacy/elementary/src/lib/elm_thumb_legacy.h
@@ -44,4 +44,27 @@ EAPI void elm_thumb_file_set(Eo *obj, const char *file, const char *key);
44 */ 44 */
45EAPI void elm_thumb_file_get(const Eo *obj, const char **file, const char **key); 45EAPI void elm_thumb_file_get(const Eo *obj, const char **file, const char **key);
46 46
47/**
48 * @brief Make the thumbnail 'editable'.
49 *
50 * This means the thumbnail is a valid drag target for drag and drop, and can
51 * be cut or pasted too.
52 *
53 * @param[in] edit The editable state, default is @c false.
54 *
55 * @ingroup Elm_Thumb
56 */
57EAPI Eina_Bool elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit);
58
59/**
60 * @brief Get whether the thumbnail is editable.
61 *
62 * This means the thumbnail is a valid drag target for drag and drop, and can
63 * be cut or pasted too.
64 *
65 * @return The editable state, default is @c false.
66 *
67 * @ingroup Elm_Thumb
68 */
69EAPI Eina_Bool elm_thumb_editable_get(const Evas_Object *obj);
47#include "elm_thumb.eo.legacy.h" 70#include "elm_thumb.eo.legacy.h"