summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-18 19:03:11 +0200
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-04-18 19:03:19 +0200
commit15fcaaec6900b783b00756fd4194d2f086047196 (patch)
tree1abb379d9d30bda2d772e70ae15db3df7c1079f9
parent543902f2ba13b69b052eb21a4a36324d96f5eeba (diff)
elm: Move legacy genlist types to elm_general.
Summary: Fixes T6771 Reviewers: bu5hm4n, felipealmeida Subscribers: q66, cedric Maniphest Tasks: T6771 Differential Revision: https://phab.enlightenment.org/D5938
-rw-r--r--src/lib/elementary/efl_ui_layout.eo2
-rw-r--r--src/lib/elementary/elm_general.eot100
-rw-r--r--src/lib/elementary/elm_gengrid.eo1
-rw-r--r--src/lib/elementary/elm_gengrid_item.eo25
-rw-r--r--src/lib/elementary/elm_genlist.eo2
-rw-r--r--src/lib/elementary/elm_genlist_item.eo38
-rw-r--r--src/lib/elementary/elm_list.eo36
-rw-r--r--src/lib/elementary/elm_view_list.eo2
8 files changed, 103 insertions, 103 deletions
diff --git a/src/lib/elementary/efl_ui_layout.eo b/src/lib/elementary/efl_ui_layout.eo
index ce8441eefd..cc6ed24233 100644
--- a/src/lib/elementary/efl_ui_layout.eo
+++ b/src/lib/elementary/efl_ui_layout.eo
@@ -1,3 +1,5 @@
1import efl_ui;
2
1class Efl.Ui.Layout (Efl.Ui.Widget, Efl.Part, Efl.Container, Efl.File, 3class Efl.Ui.Layout (Efl.Ui.Widget, Efl.Part, Efl.Container, Efl.File,
2 Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Ui.Factory, 4 Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Ui.Factory,
3 Efl.Layout.Calc, Efl.Layout.Signal, 5 Efl.Layout.Calc, Efl.Layout.Signal,
diff --git a/src/lib/elementary/elm_general.eot b/src/lib/elementary/elm_general.eot
index 55d310f6be..bcefa45410 100644
--- a/src/lib/elementary/elm_general.eot
+++ b/src/lib/elementary/elm_general.eot
@@ -274,3 +274,103 @@ enum Elm.Cnp_Mode
274 no_image, [[ copy & paste text without item(image) tag ]] 274 no_image, [[ copy & paste text without item(image) tag ]]
275 plaintext, [[ copy & paste text without markup tag ]] 275 plaintext, [[ copy & paste text without markup tag ]]
276} 276}
277
278/* Elm_Genlist-related types */
279type @extern Elm.Genlist.Item.Class: __undefined_type; [[External elm genlist item class]]
280
281enum Elm.Genlist.Item.Type
282{
283 [[Defines if the item is of any special type (has subitems or it's the
284 index of a group), or is just a simple item.
285 ]]
286 legacy: elm_genlist_item;
287 none = 0, [[Simple item.]]
288 tree = (1 << 0), [[This may be expanded and have child items.]]
289 group = (1 << 1), [[An index item of a group of items. this item can have child items.]]
290 max = (1 << 2) [[Sentinel value to indicate last enum field during iteration]]
291}
292
293enum Elm.Genlist.Item.Field_Type
294{
295 [[Defines the type of the item part
296 Used while updating item's parts
297 It can be used at updating multi fields.
298 ]]
299 legacy: elm_genlist_item_field;
300 all = 0, [[Type all]]
301 text = (1 << 0), [[Type text]]
302 content = (1 << 1), [[Type content]]
303 state = (1 << 2) [[Type state]]
304}
305
306enum Elm.Genlist.Item.Scrollto_Type
307{
308 [[Defines where to position the item in the genlist.]]
309 legacy: elm_genlist_item_scrollto;
310 none = 0, [[Nothing will happen, Don't use this value.]]
311 in = (1 << 0), [[To the nearest viewport.]]
312 top = (1 << 1), [[To the top of viewport.]]
313 middle = (1 << 2), [[To the middle of viewport.]]
314 bottom = (1 << 3) [[To the bottom of viewport.]]
315}
316
317/* Elm_Gengrid-related types */
318
319type @extern Elm.Gengrid.Item.Class: __undefined_type; [[External elm gengrid item class]]
320
321enum Elm.Gengrid.Item.Scrollto_Type
322{
323 [[Defines where to position the item in the genlist.]]
324 legacy: elm_gengrid_item_scrollto;
325 none = 0, [[No scrollto.]]
326 in = (1 << 0), [[To the nearest viewport.]]
327 top = (1 << 1), [[To the top of viewport.]]
328 middle = (1 << 2), [[To the middle of viewport.]]
329 bottom = (1 << 3) [[To the bottom of viewport.]]
330}
331
332enum Elm.Gengrid.Item.Field_Type
333{
334 [[Defines the type of the item part Used while updating item's parts.
335 It can be used at updating multi fields.]]
336 legacy: elm_gengrid_item_field;
337 all = 0, [[Type all]]
338 text = (1 << 0), [[Type text]]
339 content = (1 << 1), [[Type content]]
340 state = (1 << 2) [[Type state]]
341}
342
343/* Elm_List types */
344enum Elm.List.Mode
345{
346 [[Set list's resizing behavior, transverse axis scrolling and items
347 cropping. See each mode's description for more details.
348
349 Note: Default value is @Elm.List.Mode.scroll.
350
351 Values here don't work as bitmasks -- only one can be chosen at
352 a time.
353 ]]
354 legacy: elm_list;
355 compress = 0, [[The list won't set any of its size hints to inform how a
356 possible container should resize it. Then, if it's not
357 created as a "resize object", it might end with zeroed
358 dimensions. The list will respect the container's geometry
359 and, if any of its items won't fit into its transverse axis,
360 one won't be able to scroll it in that direction.]]
361 scroll, [[Default value. This is the same as #ELM_LIST_COMPRESS, with the
362 exception that if any of its items won't fit into its transverse
363 axis, one will be able to scroll it in that direction.]]
364 limit, [[Sets a minimum size hint on the list object, so that containers may
365 respect it (and resize itself to fit the child properly). More
366 specifically, a minimum size hint will be set for its transverse
367 axis, so that the largest item in that direction fits well. This
368 is naturally bound by the list object's maximum size hints, set
369 externally.]]
370 expand, [[Besides setting a minimum size on the transverse axis, just like
371 on @Elm.List.Mode.limit, the list will set a minimum size on the
372 longitudinal axis, trying to reserve space to all its children to
373 be visible at a time. . This is naturally bound by the list
374 object's maximum size hints, set externally.]]
375 last [[Indicates error if returned by elm_list_mode_get().]]
376}
diff --git a/src/lib/elementary/elm_gengrid.eo b/src/lib/elementary/elm_gengrid.eo
index 289929f653..ddfca93533 100644
--- a/src/lib/elementary/elm_gengrid.eo
+++ b/src/lib/elementary/elm_gengrid.eo
@@ -1,5 +1,4 @@
1import elm_general; 1import elm_general;
2import elm_gengrid_item;
3 2
4type @extern Ecore_Pos_Map: __undefined_type; [[External ecore position map]] 3type @extern Ecore_Pos_Map: __undefined_type; [[External ecore position map]]
5 4
diff --git a/src/lib/elementary/elm_gengrid_item.eo b/src/lib/elementary/elm_gengrid_item.eo
index 4f2b0370a8..100ee088f0 100644
--- a/src/lib/elementary/elm_gengrid_item.eo
+++ b/src/lib/elementary/elm_gengrid_item.eo
@@ -1,30 +1,5 @@
1import elm_general; 1import elm_general;
2 2
3type @extern Elm.Gengrid.Item.Class: __undefined_type; [[External elm gengrid item class]]
4
5enum Elm.Gengrid.Item.Scrollto_Type
6{
7 [[Defines where to position the item in the genlist.]]
8 legacy: elm_gengrid_item_scrollto;
9 none = 0, [[No scrollto.]]
10 in = (1 << 0), [[To the nearest viewport.]]
11 top = (1 << 1), [[To the top of viewport.]]
12 middle = (1 << 2), [[To the middle of viewport.]]
13 bottom = (1 << 3) [[To the bottom of viewport.]]
14}
15
16enum Elm.Gengrid.Item.Field_Type
17{
18 [[Defines the type of the item part Used while updating item's parts.
19 It can be used at updating multi fields.]]
20 legacy: elm_gengrid_item_field;
21 all = 0, [[Type all]]
22 text = (1 << 0), [[Type text]]
23 content = (1 << 1), [[Type content]]
24 state = (1 << 2) [[Type state]]
25}
26
27
28class Elm.Gengrid.Item(Elm.Widget.Item.Static_Focus, Efl.Ui.Focus.Object, Efl.Ui.Legacy) 3class Elm.Gengrid.Item(Elm.Widget.Item.Static_Focus, Efl.Ui.Focus.Object, Efl.Ui.Legacy)
29{ 4{
30 [[Elementary gengrid item class]] 5 [[Elementary gengrid item class]]
diff --git a/src/lib/elementary/elm_genlist.eo b/src/lib/elementary/elm_genlist.eo
index f3141b9568..ae01e70a7d 100644
--- a/src/lib/elementary/elm_genlist.eo
+++ b/src/lib/elementary/elm_genlist.eo
@@ -1,6 +1,4 @@
1import elm_general; 1import elm_general;
2import elm_list;
3import elm_genlist_item;
4 2
5class Elm.Genlist (Efl.Ui.Layout, Efl.Ui.Focus.Composition, Elm.Interface_Scrollable, Efl.Ui.Clickable, 3class Elm.Genlist (Efl.Ui.Layout, Efl.Ui.Focus.Composition, Elm.Interface_Scrollable, Efl.Ui.Clickable,
6 Efl.Access.Widget.Action, Efl.Access.Selection, 4 Efl.Access.Widget.Action, Efl.Access.Selection,
diff --git a/src/lib/elementary/elm_genlist_item.eo b/src/lib/elementary/elm_genlist_item.eo
index aba6d872bb..70fe8e18f3 100644
--- a/src/lib/elementary/elm_genlist_item.eo
+++ b/src/lib/elementary/elm_genlist_item.eo
@@ -1,43 +1,5 @@
1import elm_general; 1import elm_general;
2 2
3type @extern Elm.Genlist.Item.Class: __undefined_type; [[External elm genlist item class]]
4
5enum Elm.Genlist.Item.Type
6{
7 [[Defines if the item is of any special type (has subitems or it's the
8 index of a group), or is just a simple item.
9 ]]
10 legacy: elm_genlist_item;
11 none = 0, [[Simple item.]]
12 tree = (1 << 0), [[This may be expanded and have child items.]]
13 group = (1 << 1), [[An index item of a group of items. this item can have child items.]]
14 max = (1 << 2) [[Sentinel value to indicate last enum field during iteration]]
15}
16
17enum Elm.Genlist.Item.Field_Type
18{
19 [[Defines the type of the item part
20 Used while updating item's parts
21 It can be used at updating multi fields.
22 ]]
23 legacy: elm_genlist_item_field;
24 all = 0, [[Type all]]
25 text = (1 << 0), [[Type text]]
26 content = (1 << 1), [[Type content]]
27 state = (1 << 2) [[Type state]]
28}
29
30enum Elm.Genlist.Item.Scrollto_Type
31{
32 [[Defines where to position the item in the genlist.]]
33 legacy: elm_genlist_item_scrollto;
34 none = 0, [[Nothing will happen, Don't use this value.]]
35 in = (1 << 0), [[To the nearest viewport.]]
36 top = (1 << 1), [[To the top of viewport.]]
37 middle = (1 << 2), [[To the middle of viewport.]]
38 bottom = (1 << 3) [[To the bottom of viewport.]]
39}
40
41class Elm.Genlist.Item(Elm.Widget.Item.Static_Focus, Efl.Ui.Legacy) 3class Elm.Genlist.Item(Elm.Widget.Item.Static_Focus, Efl.Ui.Legacy)
42{ 4{
43 [[Elementary genlist item class]] 5 [[Elementary genlist item class]]
diff --git a/src/lib/elementary/elm_list.eo b/src/lib/elementary/elm_list.eo
index d34e0dabbb..27fb896c0f 100644
--- a/src/lib/elementary/elm_list.eo
+++ b/src/lib/elementary/elm_list.eo
@@ -1,41 +1,5 @@
1import elm_general; 1import elm_general;
2 2
3enum Elm.List.Mode
4{
5 [[Set list's resizing behavior, transverse axis scrolling and items
6 cropping. See each mode's description for more details.
7
8 Note: Default value is @Elm.List.Mode.scroll.
9
10 Values here don't work as bitmasks -- only one can be chosen at
11 a time.
12
13 See also @Elm.List.mode.set, @Elm.List.mode.get.
14 ]]
15 legacy: elm_list;
16 compress = 0, [[The list won't set any of its size hints to inform how a
17 possible container should resize it. Then, if it's not
18 created as a "resize object", it might end with zeroed
19 dimensions. The list will respect the container's geometry
20 and, if any of its items won't fit into its transverse axis,
21 one won't be able to scroll it in that direction.]]
22 scroll, [[Default value. This is the same as #ELM_LIST_COMPRESS, with the
23 exception that if any of its items won't fit into its transverse
24 axis, one will be able to scroll it in that direction.]]
25 limit, [[Sets a minimum size hint on the list object, so that containers may
26 respect it (and resize itself to fit the child properly). More
27 specifically, a minimum size hint will be set for its transverse
28 axis, so that the largest item in that direction fits well. This
29 is naturally bound by the list object's maximum size hints, set
30 externally.]]
31 expand, [[Besides setting a minimum size on the transverse axis, just like
32 on @Elm.List.Mode.limit, the list will set a minimum size on the
33 longitudinal axis, trying to reserve space to all its children to
34 be visible at a time. . This is naturally bound by the list
35 object's maximum size hints, set externally.]]
36 last [[Indicates error if returned by elm_list_mode_get().]]
37}
38
39class Elm.List (Efl.Ui.Layout, Elm.Interface_Scrollable, 3class Elm.List (Efl.Ui.Layout, Elm.Interface_Scrollable,
40 Efl.Access.Widget.Action, Efl.Access.Selection, Efl.Access, 4 Efl.Access.Widget.Action, Efl.Access.Selection, Efl.Access,
41 Efl.Ui.Clickable, Efl.Ui.Selectable, Efl.Ui.Legacy) 5 Efl.Ui.Clickable, Efl.Ui.Selectable, Efl.Ui.Legacy)
diff --git a/src/lib/elementary/elm_view_list.eo b/src/lib/elementary/elm_view_list.eo
index ccd77a6923..967be21594 100644
--- a/src/lib/elementary/elm_view_list.eo
+++ b/src/lib/elementary/elm_view_list.eo
@@ -1,4 +1,4 @@
1import elm_genlist_item; 1import elm_general;
2 2
3class Elm.View.List (Efl.Object) 3class Elm.View.List (Efl.Object)
4{ 4{