summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2016-12-02 12:53:09 +0100
committerLukasz Stanislawski <l.stanislaws@samsung.com>2016-12-29 01:52:54 -0800
commit140892ba8df79e3be09fe04023500614b0e2f66d (patch)
treeedbb4355b7f975435667655bffc3997428103438
parentb1d8b5e57384f2b0416d074822bb672913ad13c5 (diff)
downloadshare-panel-tizen_3.0.tar.gz
share-panel-tizen_3.0.tar.bz2
share-panel-tizen_3.0.zip
Change-Id: Ie8fdd31a34abeed3980f8e19eb46032a0beae7c4 (cherry picked from commit 54f08bcca175bd4b68271c3009520321f17c4ef3)
-rw-r--r--inc/grid.h7
-rw-r--r--inc/page.h9
-rw-r--r--inc/scroller.h34
-rw-r--r--inc/ui_manager.h9
-rw-r--r--src/grid.c11
-rw-r--r--src/page.c15
-rw-r--r--src/scroller.c112
-rw-r--r--src/ui_manager.c12
8 files changed, 0 insertions, 209 deletions
diff --git a/inc/grid.h b/inc/grid.h
index a0b8b32..da84404 100644
--- a/inc/grid.h
+++ b/inc/grid.h
@@ -61,13 +61,6 @@ extern Elm_Object_Item *_grid_append_item(Evas_Object *grid, item_s *item_info);
extern void _grid_remove_item(Evas_Object *grid, item_s *item_info);
/**
- * @brief Returns number of items in application grid.
- *
- * @param grid The grid widget
- */
-extern int _grid_count_item(Evas_Object *grid);
-
-/**
* @brief Sends app control launch request related to the given item.
*
* @param item The info structure of the item related with app to be launched
diff --git a/inc/page.h b/inc/page.h
index 3cb5b03..0fad65b 100644
--- a/inc/page.h
+++ b/inc/page.h
@@ -45,15 +45,6 @@ extern Evas_Object *_page_create(Evas_Object *scroller, int page_width, int page
extern void _page_destroy(Evas_Object *page);
/**
- * @brief Resizes page.
- *
- * @param page The page to be resized
- * @param width Page's new width
- * @param height Page's new height
- */
-extern void _page_resize(Evas_Object *page, int width, int height);
-
-/**
* @}
*/
diff --git a/inc/scroller.h b/inc/scroller.h
index ded4292..67403dd 100644
--- a/inc/scroller.h
+++ b/inc/scroller.h
@@ -63,14 +63,6 @@ extern void _scroller_destroy(Evas_Object *scroller);
extern void _scroller_append_page(Evas_Object *scroller, Evas_Object *page);
/**
- * @brief Removes page form the scroller.
- *
- * @param scroller The scroller widget
- * @param page The page to be removed
- */
-extern void _scroller_remove_page(Evas_Object *scroller, Evas_Object *page);
-
-/**
* @brief Appends list items into the scroller.
*
* @param scroller The scroller widget
@@ -89,14 +81,6 @@ extern void _scroller_append_list(Evas_Object *scroller, Eina_List *list, int pa
extern void _scroller_remove_list(Evas_Object *scroller, Eina_List *list);
/**
- * @brief Brings in scroller's page.
- *
- * @param scroller The scroller widget
- * @param page The page to be bringed
- */
-extern void _scroller_bring_in_page(Evas_Object *scroller, Evas_Object *page);
-
-/**
* @brief Gets region of the scroller's index.
*
* @param scroller The scroller widget
@@ -115,24 +99,6 @@ extern int _scroller_get_region_index(Evas_Object *scroller);
extern unsigned int _scroller_count(Evas_Object *scroller);
/**
- * @brief Gets current scroller's scrolling status
- *
- * @param scroller The scroller widget
- *
- * @return scroller's scrolling status
- */
-extern int _scroller_is_scrolling(Evas_Object *scroller);
-
-/**
- * @brief Resizes share panel scroller.
- *
- * @param scroller The scroller widget
- * @param width The new width value to be set
- * @param height The new height value to be set
- */
-extern void _scroller_resize(Evas_Object *scroller, int width, int height);
-
-/**
* @brief Registers scroller event callbacks.
*
* @param scroller The scroller widget
diff --git a/inc/ui_manager.h b/inc/ui_manager.h
index 55e129b..ce93c49 100644
--- a/inc/ui_manager.h
+++ b/inc/ui_manager.h
@@ -43,15 +43,6 @@ extern Evas_Object *_ui_manager_create(share_panel_s *share_panel);
extern void _ui_manager_destroy(Evas_Object *ui_manager);
/**
- * @brief Resizes the share panel's UI.
- *
- * @param ui_manager The UI widget
- * @param width The new width size to be set
- * @param height The new height size to be set
- */
-extern void _ui_manager_resize(Evas_Object *ui_manager, int width, int height);
-
-/**
* @brief Shows share panel's UI.
*
* @param share_panel The share panel info structure
diff --git a/src/grid.c b/src/grid.c
index 18a7022..475d341 100644
--- a/src/grid.c
+++ b/src/grid.c
@@ -316,14 +316,3 @@ void _grid_remove_item(Evas_Object *grid, item_s *item_info)
elm_object_item_del(item);
item_info->grid_item = NULL;
}
-
-int _grid_count_item(Evas_Object *grid)
-{
- int count = 0;
-
- retv_if(!grid, 0);
-
- count = elm_gengrid_items_count(grid);
-
- return count;
-}
diff --git a/src/page.c b/src/page.c
index 4300d9d..83a1de4 100644
--- a/src/page.c
+++ b/src/page.c
@@ -75,18 +75,3 @@ void _page_destroy(Evas_Object *page)
evas_object_del(page);
}
-
-
-
-void _page_resize(Evas_Object *page, int width, int height)
-{
- Evas_Object *bg = NULL;
-
- ret_if(!page);
-
- bg = elm_object_part_content_get(page, "bg");
- ret_if(!bg);
-
- evas_object_size_hint_min_set(bg, width, height);
- evas_object_size_hint_max_set(bg, width, height);
-}
diff --git a/src/scroller.c b/src/scroller.c
index e26170c..ff1c1fd 100644
--- a/src/scroller.c
+++ b/src/scroller.c
@@ -36,13 +36,6 @@ struct _event_cb {
typedef struct _event_cb event_cb_s;
-int _scroller_is_scrolling(Evas_Object *scroller)
-{
- retv_if(!scroller, 0);
- return (int)evas_object_data_get(scroller, PRIVATE_SCROLLER_IS_SCROLLING);
-}
-
-
static void __anim_start_cb(void *data, Evas_Object *scroller, void *event_info)
{
_D("start the scroller(%p) animation", scroller);
@@ -187,50 +180,6 @@ void _scroller_append_page(Evas_Object *scroller, Evas_Object *page)
}
}
-
-void _scroller_remove_page(Evas_Object *scroller, Evas_Object *page)
-{
- Evas_Object *box = NULL;
- Evas_Object *tmp = NULL;
- Eina_List *list = NULL;
- Eina_List *event_cb_list = NULL;
- const Eina_List *l = NULL;
- const Eina_List *ln = NULL;
- event_cb_s *event_cb_info = NULL;
-
- int is_page_exist = 0;
-
- box = elm_object_content_get(scroller);
- ret_if(!box);
-
- list = elm_box_children_get(box);
- EINA_LIST_FREE(list, tmp) {
- continue_if(!tmp);
- if (page == tmp) {
- is_page_exist = 1;
- }
- }
-
- if (!is_page_exist) {
- _D("No page to remove");
- return;
- }
-
- elm_box_unpack(box, page);
-
- event_cb_list = evas_object_data_get(scroller, PRIVATE_DATA_KEY_EVENT_CALLBACK_LIST);
- ret_if(!event_cb_list);
-
- EINA_LIST_FOREACH_SAFE(event_cb_list, l, ln, event_cb_info) {
- if (SCROLLER_EVENT_TYPE_REMOVE_PAGE == event_cb_info->event_type) {
- if (event_cb_info->event_cb) {
- event_cb_info->event_cb(scroller, SCROLLER_EVENT_TYPE_REMOVE_PAGE, NULL, event_cb_info->user_data);
- }
- }
- }
-}
-
-
void _scroller_append_list(Evas_Object *scroller, Eina_List *list, int page_width, int page_height)
{
Evas_Object *page = NULL;
@@ -325,67 +274,6 @@ unsigned int _scroller_count(Evas_Object *scroller)
return count;
}
-
-void _scroller_bring_in_page(Evas_Object *scroller, Evas_Object *page)
-{
- Evas_Object *box = NULL;
- Evas_Object *tmp = NULL;
- Eina_List *list = NULL;
- int index = 0;
- int exist = 1;
-
- ret_if(!scroller);
- ret_if(!page);
-
- box = elm_object_content_get(scroller);
- ret_if(!box);
-
- list = elm_box_children_get(box);
- ret_if(!list);
-
- EINA_LIST_FREE(list, tmp) {
- continue_if(!tmp);
- if (page == tmp) {
- exist = 0;
- }
- index += exist;
- }
-
- if (exist) {
- index = 0;
- }
-
- elm_scroller_page_bring_in(scroller, index, 0);
-}
-
-
-void _scroller_resize(Evas_Object *scroller, int width, int height)
-{
- Evas_Object *box = NULL;
- Evas_Object *page = NULL;
- Eina_List *list = NULL;
-
- ret_if(!scroller);
-
- elm_scroller_page_size_set(scroller, width, height);
- evas_object_size_hint_min_set(scroller, width, height);
- evas_object_size_hint_max_set(scroller, width, height);
-
- box = elm_object_content_get(scroller);
- ret_if(!box);
-
- evas_object_size_hint_min_set(box, width, height);
- evas_object_size_hint_max_set(box, width, height);
-
- list = elm_box_children_get(box);
- ret_if(!list);
-
- EINA_LIST_FREE(list, page) {
- _page_resize(page, width, height);
- }
-}
-
-
int _scroller_register_event_cb(Evas_Object *scroller, int event_type, void (*event_cb)(Evas_Object *scroller, int event_type, void *event_info, void *user_data), void *user_data)
{
Eina_List *event_cb_list = NULL;
diff --git a/src/ui_manager.c b/src/ui_manager.c
index ff4a66b..8d6ea93 100644
--- a/src/ui_manager.c
+++ b/src/ui_manager.c
@@ -299,18 +299,6 @@ void _ui_manager_destroy(Evas_Object *ui_manager)
}
-void _ui_manager_resize(Evas_Object *ui_manager, int width, int height)
-{
- ret_if(!ui_manager);
-
- evas_object_size_hint_min_set(ui_manager, width, height);
- evas_object_size_hint_max_set(ui_manager, width, height);
- evas_object_resize(ui_manager, width, height);
- evas_object_move(ui_manager, 0, 0);
- edje_object_message_signal_process(elm_layout_edje_get(ui_manager));
-}
-
-
int _ui_manager_show(share_panel_h share_panel)
{
retv_if(!share_panel, SHARE_PANEL_ERROR_INVALID_PARAMETER);