summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-03-27 08:35:56 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-03-27 08:35:56 +0000
commit60af8342c53e406abe8769778dbab851341ba9da (patch)
tree9f0113333ada5d4d4ea227c2377c12a806f441f6
parente2b55715f2eaa1f9a990ace17a7032d221343a3c (diff)
elementary/pager - farewell pager. you was the best widget ever I know.
SVN revision: 69662
-rw-r--r--legacy/elementary/src/lib/Makefile.am1
-rw-r--r--legacy/elementary/src/lib/elm_deprecated.h97
-rw-r--r--legacy/elementary/src/lib/elm_pager.c86
3 files changed, 0 insertions, 184 deletions
diff --git a/legacy/elementary/src/lib/Makefile.am b/legacy/elementary/src/lib/Makefile.am
index b1559657ad..844f4811f4 100644
--- a/legacy/elementary/src/lib/Makefile.am
+++ b/legacy/elementary/src/lib/Makefile.am
@@ -187,7 +187,6 @@ elm_map.c \
187elm_menu.c \ 187elm_menu.c \
188elm_module.c \ 188elm_module.c \
189elm_notify.c \ 189elm_notify.c \
190elm_pager.c \
191elm_panel.c \ 190elm_panel.c \
192elm_panes.c \ 191elm_panes.c \
193elm_photo.c \ 192elm_photo.c \
diff --git a/legacy/elementary/src/lib/elm_deprecated.h b/legacy/elementary/src/lib/elm_deprecated.h
index baacadd9de..ba5206bc14 100644
--- a/legacy/elementary/src/lib/elm_deprecated.h
+++ b/legacy/elementary/src/lib/elm_deprecated.h
@@ -401,103 +401,6 @@ EINA_DEPRECATED EAPI Elm_Map_Marker_Class *elm_map_marker_class_new(Evas_Object
401 */ 401 */
402EINA_DEPRECATED EAPI void elm_map_route_remove(Elm_Map_Route *route); 402EINA_DEPRECATED EAPI void elm_map_route_remove(Elm_Map_Route *route);
403 403
404/*
405 * Add a new pager to the parent
406 *
407 * @param parent The parent object
408 * @return The new object or NULL if it cannot be created
409 *
410 * @deprecated Use naviframe instead
411 */
412EINA_DEPRECATED EAPI Evas_Object *elm_pager_add(Evas_Object *parent);
413
414/**
415 * @brief Push an object to the top of the pager stack (and show it).
416 *
417 * @param obj The pager object
418 * @param content The object to push
419 *
420 * The object pushed becomes a child of the pager, it will be controlled and
421 * deleted when the pager is deleted.
422 *
423 * @note If the content is already in the stack use
424 * elm_pager_content_promote().
425 * @warning Using this function on @p content already in the stack results in
426 * undefined behavior.
427 * @deprecated Use naviframe instead
428 */
429EINA_DEPRECATED EAPI void elm_pager_content_push(Evas_Object *obj, Evas_Object *content);
430
431/**
432 * @brief Pop the object that is on top of the stack
433 *
434 * @param obj The pager object
435 *
436 * This pops the object that is on the top(visible) of the pager, makes it
437 * disappear, then deletes the object. The object that was underneath it on
438 * the stack will become visible.
439 * @deprecated Use naviframe instead
440 */
441EINA_DEPRECATED EAPI void elm_pager_content_pop(Evas_Object *obj);
442
443/**
444 * @brief Moves an object already in the pager stack to the top of the stack.
445 *
446 * @param obj The pager object
447 * @param content The object to promote
448 *
449 * This will take the @p content and move it to the top of the stack as
450 * if it had been pushed there.
451 *
452 * @note If the content isn't already in the stack use
453 * elm_pager_content_push().
454 * @warning Using this function on @p content not already in the stack
455 * results in undefined behavior.
456 * @deprecated Use naviframe instead
457 */
458EINA_DEPRECATED EAPI void elm_pager_content_promote(Evas_Object *obj, Evas_Object *content);
459
460/**
461 * @brief Return the object at the bottom of the pager stack
462 *
463 * @param obj The pager object
464 * @return The bottom object or NULL if none
465 * @deprecated Use naviframe instead
466 */
467EINA_DEPRECATED EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj);
468
469/**
470 * @brief Return the object at the top of the pager stack
471 *
472 * @param obj The pager object
473 * @return The top object or NULL if none
474 * @deprecated Use naviframe instead
475 */
476EINA_DEPRECATED EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj);
477
478/**
479 * @brief Set the default item style.
480 *
481 * Default item style will be used with items who's style is NULL
482 *
483 * @param obj The pager object
484 * @param style The style
485 * @deprecated Use naviframe instead
486 */
487EINA_DEPRECATED EAPI void elm_pager_item_style_default_set(Evas_Object *obj, const char *style);
488
489/**
490 * @brief Get the default item style
491 *
492 * @param obj The pager object
493 * @return the default item style
494 *
495 * @see elm_pager_item_style_default_set()
496 * @deprecated Use naviframe instead
497 */
498EINA_DEPRECATED EAPI const char *elm_pager_item_style_default_get(const Evas_Object *obj);
499
500
501/** 404/**
502 * @deprecated Use elm_object_item_data_get instead. 405 * @deprecated Use elm_object_item_data_get instead.
503 */ 406 */
diff --git a/legacy/elementary/src/lib/elm_pager.c b/legacy/elementary/src/lib/elm_pager.c
deleted file mode 100644
index cfdb671ef1..0000000000
--- a/legacy/elementary/src/lib/elm_pager.c
+++ /dev/null
@@ -1,86 +0,0 @@
1#include <Elementary.h>
2#include "elm_priv.h"
3
4/* FIXME:
5 * 1. Possibly remove those callbacks and just use the naviframe ones.
6 * 2. I can create a different object, but it can wait until inheritance
7 * is implemented, too annoying atm. */
8static void
9_push_finished(void *data __UNUSED__, Evas_Object *obj, void *event_info)
10{
11 evas_object_smart_callback_call(obj, "show,finished", event_info);
12}
13
14static void
15_pop_finished(void *data __UNUSED__, Evas_Object *obj, void *event_info)
16{
17 evas_object_smart_callback_call(obj, "hide,finished", event_info);
18}
19
20EINA_DEPRECATED EAPI Evas_Object *
21elm_pager_add(Evas_Object *parent)
22{
23 Evas_Object *nf = elm_naviframe_add(parent);
24 evas_object_smart_callback_add(nf, "push,finished", _push_finished, NULL);
25 evas_object_smart_callback_add(nf, "pop,finished", _pop_finished, NULL);
26 return nf;
27}
28
29EINA_DEPRECATED EAPI void
30elm_pager_content_push(Evas_Object *obj, Evas_Object *content)
31{
32 Elm_Object_Item *it;
33 it = elm_naviframe_item_push(obj, NULL, NULL, NULL, content, NULL);
34 elm_naviframe_item_title_visible_set(it, EINA_FALSE);
35}
36
37EINA_DEPRECATED EAPI void
38elm_pager_content_pop(Evas_Object *obj)
39{
40 elm_naviframe_item_pop(obj);
41}
42
43EINA_DEPRECATED EAPI void
44elm_pager_content_promote(Evas_Object *obj, Evas_Object *content)
45{
46 Eina_List *items = elm_naviframe_items_get(obj);
47 Eina_List *itr;
48 Elm_Object_Item *it;
49 EINA_LIST_FOREACH(items, itr, it)
50 {
51 if (elm_object_item_content_get(it) == content)
52 {
53 elm_naviframe_item_promote(it);
54 break;
55 }
56 }
57 eina_list_free(items);
58}
59
60EINA_DEPRECATED EAPI Evas_Object *
61elm_pager_content_bottom_get(const Evas_Object *obj)
62{
63 Elm_Object_Item *it;
64 it = elm_naviframe_bottom_item_get(obj);
65 return elm_object_item_content_get(it);
66}
67
68EINA_DEPRECATED EAPI Evas_Object *
69elm_pager_content_top_get(const Evas_Object *obj)
70{
71 Elm_Object_Item *it;
72 it = elm_naviframe_top_item_get(obj);
73 return elm_object_item_content_get(it);
74}
75
76EINA_DEPRECATED EAPI void
77elm_pager_item_style_default_set(Evas_Object *obj, const char *style)
78{
79 elm_object_style_set(obj, style);
80}
81
82EINA_DEPRECATED EAPI const char *
83elm_pager_item_style_default_get(const Evas_Object *obj)
84{
85 return elm_object_style_get(obj);
86}