Delete setContent() that has too much params. 84/80584/4
authorWoochan Lee <wc0917.lee@samsung.com>
Mon, 18 Jul 2016 07:05:30 +0000 (16:05 +0900)
committerWoochan Lee <wc0917.lee@samsung.com>
Thu, 21 Jul 2016 07:37:04 +0000 (16:37 +0900)
Change-Id: I03f0eb3502df55000e6f012b3932c9d8d9c8e53c

36 files changed:
src/examples/efl/c/page1.cpp
src/examples/efl/c/page10.cpp
src/examples/efl/c/page11.cpp
src/examples/efl/c/page12.cpp
src/examples/efl/c/page13.cpp
src/examples/efl/c/page14.cpp
src/examples/efl/c/page15.cpp
src/examples/efl/c/page16.cpp
src/examples/efl/c/page2.cpp
src/examples/efl/c/page3.cpp
src/examples/efl/c/page4.cpp
src/examples/efl/c/page5.cpp
src/examples/efl/c/page6.cpp
src/examples/efl/c/page7.cpp
src/examples/efl/c/page8.cpp
src/examples/efl/c/page9.cpp
src/examples/efl/cpp/page1.h
src/examples/efl/cpp/page10.h
src/examples/efl/cpp/page11.h
src/examples/efl/cpp/page12.h
src/examples/efl/cpp/page13.h
src/examples/efl/cpp/page14.h
src/examples/efl/cpp/page15.h
src/examples/efl/cpp/page16.h
src/examples/efl/cpp/page2.h
src/examples/efl/cpp/page3.h
src/examples/efl/cpp/page4.h
src/examples/efl/cpp/page5.h
src/examples/efl/cpp/page6.h
src/examples/efl/cpp/page7.h
src/examples/efl/cpp/page8.h
src/examples/efl/cpp/page9.h
src/include/efl/mobile/UiStandardView.h
src/include/efl/mobile/c/ui_standard_view.h
src/lib/efl/mobile/UiStandardView.cpp
src/lib/efl/mobile/c/ui_standard_view.cpp

index a1463d5bca80524e296c4346e1ca2b1ddb3d2d23..f61b9fcb02c224ffc6871c1c9d0101fb54864063 100644 (file)
@@ -48,9 +48,10 @@ view1_load_cb(ui_standard_view *view, void *data)
        content = create_content(base, "ViewMgr Demo<br>Basic View", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       if (!ui_standard_view_set_content(view, content, "Page1", NULL, NULL, NULL))
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page1"))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                return false;
        }
 
index 61221743ba4627444b95e618979c8cdaefc95200..683c45f7bc47c59139f353aa5ef264fea52b04c9 100644 (file)
@@ -57,7 +57,12 @@ view10_rotate_cb(ui_standard_view *view, int degree, void *data)
                ui_view_set_indicator(view, UI_VIEW_INDICATOR_OPTIMAL);
        }
 
-       ui_standard_view_set_content(view, content, "Page10", NULL, NULL, NULL);
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page10"))
+       {
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
+               return false;
+       }
 
        return true;
 }
index 345c9b361e47e8709347c3aa8db9aee8766f7cb1..eae474ab8af9f99a284c15f446cdb29e1961c3f9 100644 (file)
@@ -47,9 +47,10 @@ view11_load_cb(ui_standard_view *view, void *data)
        content = create_content(base, "ViewMgr Demo<br>Menu Popup", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       if (!ui_standard_view_set_content(view, content, "Page11", NULL, NULL, NULL))
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page11"))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                return false;
        }
 
index 75d3509307e7e758fab477e6228455b95bd1bd10..fb1503c462bc7273c518e1ac94625a9966d51ec5 100644 (file)
@@ -112,14 +112,18 @@ view12_load_cb(ui_standard_view *view, void *data)
        content = create_content(base, "ViewMgr Demo<br>Popup", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       ui_standard_view_set_content(view, content, "Page12", NULL, NULL, NULL);
-
        //Title Right button
        right_btn = elm_button_add(base);
        elm_object_text_set(right_btn, "popup");
        evas_object_smart_callback_add(right_btn, "clicked", view12_btn_clicked, view);
 
-       ui_standard_view_set_title_right_btn(view, right_btn);
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page12") ||
+           !ui_standard_view_set_title_right_btn(view, right_btn))
+       {
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
+               return false;
+       }
 
        return true;
 }
index c3074ac68c23624f9d20e59b04de153f7733f334..0ee5dbbb7994924afce573ba68c2b4bb9d307933 100644 (file)
@@ -47,7 +47,12 @@ view13_load_cb(ui_standard_view *view, void *data)
        content = create_content(base, "ViewMgr Demo<br>Fade Transition", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       ui_standard_view_set_content(view, content, "Page13", NULL, NULL, NULL);
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page13"))
+       {
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
+               return false;
+       }
 
        return true;
 }
index 4d28748b3151eec65738a94ea4975a1239064d68..957595b277c704b25db6b6d26b7b66d3bf64529d 100644 (file)
@@ -47,7 +47,12 @@ view14_load_cb(ui_standard_view *view, void *data)
        content = create_content(base, "ViewMgr Demo<br>None Transition", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       ui_standard_view_set_content(view, content, "Page14", NULL, NULL, NULL);
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page14"))
+       {
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
+               return false;
+       }
 
        return true;
 }
index 7fa17489d224833db641bd78788ca65d7b7fadf6..c67266827641e0fa882bffef11bc2e48557dd092 100644 (file)
@@ -41,14 +41,18 @@ view15_load_cb(ui_standard_view *view, void *data)
        content = create_scrolling_content(base);
        if (!content) return false;
 
-       ui_standard_view_set_content(view, content, "Page 15 Scroller In Viewmgr", NULL, NULL, NULL);
-
        //Title Right button
        Elm_Button *right_btn = elm_button_add(base);
        elm_object_text_set(right_btn, "Next");
        evas_object_smart_callback_add(right_btn, "clicked", view15_btn_clicked_cb, NULL);
 
-       ui_standard_view_set_title_right_btn(view, right_btn);
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page15 Scroller in Viewmgr") ||
+           !ui_standard_view_set_title_right_btn(view, right_btn))
+       {
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
+               return false;
+       }
 
        return true;
 }
index 2186d939f7d3247f0cda5e1eee8e6229d28a6542..0f3e466f69c99e6b76966052b8dbfd2a04f754b6 100644 (file)
@@ -75,7 +75,12 @@ view16_load_cb(ui_standard_view *view, void *data)
        content = create_title_handle_content(base, prev_btn_clicked_cb, next_btn_clicked_cb, title_show_btn_clicked_cb, title_hide_btn_clicked_cb, title_show_anim_btn_clicked_cb, title_hide_anim_btn_clicked_cb, view);
        if (!content) return false;
 
-       ui_standard_view_set_content(view, content, "Page16", NULL, NULL, NULL);
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page16"))
+       {
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
+               return false;
+       }
 
        return true;
 }
index ad85b4cb6fedfe660eadcb0b7733236ce73eb4ac..8d4cfc15de862ed952098c324e8e73a6114fe379 100644 (file)
@@ -59,9 +59,12 @@ view2_load_cb(ui_standard_view *view, void *data)
        const int rots[2] = { 0, 90 };
        ui_view_set_available_rotations(view, rots, 2);
 
-       if (!ui_standard_view_set_content(view, content, "Page2", NULL, left_title_btn, right_title_btn))
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page2") ||
+           !ui_standard_view_set_title_left_btn(view, left_title_btn) ||
+           !ui_standard_view_set_title_right_btn(view, right_title_btn))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                return false;
        }
 
index d62dd4e59a7d497f56b5ea6c8bd744b2148f62a5..26c6a2ee48bbe9ac21d8d277f5c314aaca2ceffb 100644 (file)
@@ -47,9 +47,11 @@ view3_load_cb(ui_standard_view *view, void *data)
        content = create_content(base, "ViewMgr Demo<br>Subtitle", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       if (!ui_standard_view_set_content(view, content, "Page3", "Subtitle", NULL, NULL))
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page3") ||
+           !ui_standard_view_set_sub_title(view, "Subtitle"))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                return false;
        }
 
index 660ffc91371637cf1f0b164a429ce5bfef43d402..257df8f06f75d2bca4d02e2f83385fee30255d67 100644 (file)
@@ -47,14 +47,14 @@ view4_load_cb(ui_standard_view *view, void *data)
        content = create_content(base, "ViewMgr Demo<br>Title Badge", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       if (!ui_standard_view_set_content(view, content, "Page4 We put a long title here intentionally", NULL, NULL, NULL))
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page4 We put a long title here intentionally") ||
+           !ui_standard_view_set_title_badge(view, "999+"))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                return false;
        }
 
-       ui_standard_view_set_title_badge(view, "999+");
-
        return true;
 }
 
index bac11a9553079169af818a25c8c9431b4b068091..f8d3101d2e5edfb480ca48df2a02972c06feba2b 100644 (file)
@@ -49,9 +49,10 @@ view5_load_cb(ui_view *view, void *data)
 
        if (!ui_view_set_content(view, content))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                return false;
        }
+
        ui_view_set_indicator(view, UI_VIEW_INDICATOR_HIDE);
 
        return true;
index a52763643b4ac6d34836821b2a08ce7722488b3e..7ce473e55bbc05af74c061fe22dbaff03a672b5b 100644 (file)
@@ -47,15 +47,17 @@ view6_load_cb(ui_standard_view *view, void *data)
        content = create_content(base, "ViewMgr Demo<br>Toolbar", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       if (!ui_standard_view_set_content(view, content, "Page6", NULL, NULL, NULL))
+       Elm_Toolbar *toolbar = create_toolbar(base, "toolbar_with_title");
+       if (!toolbar) return false;
+
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page6") ||
+           !ui_standard_view_set_toolbar(view, toolbar))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                return false;
        }
 
-       Elm_Toolbar *toolbar = create_toolbar(base, "toolbar_with_title");
-       if (toolbar) ui_standard_view_set_toolbar(view, toolbar);
-
        return true;
 }
 
index 7072d384e4bcb590a406a9aa4d65ad20a18ebc67..30195c11870bcbcb75d13ac1b27be64e3c32d84b 100644 (file)
@@ -47,15 +47,17 @@ view7_load_cb(ui_standard_view *view, void *data)
        content = create_content(base, "ViewMgr Demo<br>Navigationbar", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       if (!ui_standard_view_set_content(view, content, "Page7", NULL, NULL, NULL))
+       Elm_Toolbar *toolbar = create_toolbar(base, "navigationbar");
+       if (!toolbar) return false;
+
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page7") ||
+           !ui_standard_view_set_toolbar(view, toolbar))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                return false;
        }
 
-       Elm_Toolbar *toolbar = create_toolbar(base, "navigationbar");
-       if (toolbar) ui_standard_view_set_toolbar(view, toolbar);
-
        return true;
 }
 
index 4f0d351832e58b83982ba1b0ed053ab89a8752a1..6089ed47121857165b505cb98022238c9fdfa6f0 100644 (file)
@@ -61,9 +61,10 @@ create_page8()
                return;
        }
 
-       if (!ui_standard_view_set_content(view, content, "Page8", NULL, NULL, NULL))
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page8"))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                ui_view_destroy(view);
                return;
        }
index 4f865e0d33f1974cccdaec35a62ee09d3cad2da4..44ee94022d6c6af91fdc66320240dd1f583fe24d 100644 (file)
@@ -47,9 +47,10 @@ view9_portrait_cb(ui_standard_view *view, void *data)
        content = create_content(base, "ViewMgr Demo<br>Portrait/Landscape", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       if (!ui_standard_view_set_content(view, content, "Page9", NULL, NULL, NULL))
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page9"))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                return false;
        }
 
@@ -74,9 +75,10 @@ view9_landscape_cb(ui_standard_view *view, void *data)
        content = create_landscape_content(base, "ViewMgr Demo<br>Portrait/Landscape", prev_btn_clicked_cb, next_btn_clicked_cb);
        if (!content) return false;
 
-       if (!ui_standard_view_set_content(view, content, "Page9", NULL, NULL, NULL))
+       if (!ui_view_set_content(view, content) ||
+           !ui_standard_view_set_title(view, "Page9"))
        {
-               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view content");
+               dlog_print(DLOG_ERROR, LOG_TAG, "failed to set view property");
                return false;
        }
 
index 0619f5f31a1457efbc8603ffe6c8606749e910a7..e24e77590fd3fcd3c270574d12171ffa6670844c 100644 (file)
@@ -38,7 +38,10 @@ protected:
                                {
                                        UI_VIEWMGR->pushView(new page2());
                                });
-               this->setContent(content, "Page1");
+
+               //Set title text, content
+               this->setTitle("Page1");
+               this->setContent(content);
        }
 
 public:
index 99e4cbb842180d68869e665d2d36d852658619ee..08bd8350dcd8e60a54499668300158ffae9d2625 100644 (file)
@@ -46,7 +46,9 @@ protected:
                                                UI_VIEWMGR->pushView(new page11());
                                        });
 
-                       this->setContent(content, "Page 10");
+                       //Set title text, content, indicator property
+                       this->setTitle("Page10");
+                       this->setContent(content);
                        this->setIndicator(UI_VIEW_INDICATOR_DEFAULT);
                } else {
                        //Landscape
@@ -62,7 +64,9 @@ protected:
                                                UI_VIEWMGR->pushView(new page11());
                                        });
 
-                       this->setContent(content, "Page 10");
+                       //Set title text, content, indicator property
+                       this->setTitle("Page10");
+                       this->setContent(content);
                        this->setIndicator(UI_VIEW_INDICATOR_OPTIMAL);
                }
        }
index 9ec17bfe971b4817af8ac4d299ae7a460f10b351..535160f467b42a6144b950a9b8d66c0c0c1e680a 100644 (file)
@@ -46,7 +46,9 @@ protected:
                                        UI_VIEWMGR->pushView(new page12());
                                });
 
-               this->setContent(content, "Page11");
+               //Set title text, content
+               this->setTitle("Page11");
+               this->setContent(content);
        }
 
        void onMenu(UiMenu *menu)
index ae57895a1dd342289c5daa34c0abc04bc48104e8..af54b5eeb2734ca76dd41ab839ba747da67d5e90 100644 (file)
@@ -47,8 +47,6 @@ protected:
                                        UI_VIEWMGR->pushView(new page13());
                                });
 
-               this->setContent(content, "Page12");
-
                //Title Right button
                Elm_Button *rightBtn = elm_button_add(this->getBase());
                elm_object_text_set(rightBtn, "popup");
@@ -60,6 +58,9 @@ protected:
                                },
                                this);
 
+               //Set title text, right button, content
+               this->setTitle("Page12");
+               this->setContent(content);
                this->setTitleRightBtn(rightBtn);
        }
 
index a8ad7610914d90cdcb3e1df888b7efcfcedaf26f..58cc934d83c5b924c3126adab9275995806bef47 100644 (file)
@@ -40,7 +40,9 @@ protected:
                                        UI_VIEWMGR->pushView(new page14());
                                });
 
-               this->setContent(content, "Page13");
+               //Set title text, content
+               this->setTitle("Page13");
+               this->setContent(content);
        }
 
 public:
index e279f9ac8ea4b60b07e934a7f4149c128bd58588..5f73807a70a183b00480ae3077c5682dbca3d25f 100644 (file)
@@ -40,7 +40,9 @@ protected:
                                        UI_VIEWMGR->pushView(new page15());
                                });
 
-               this->setContent(content, "Page14");
+               //Set title text, right button, content
+               this->setTitle("Page14");
+               this->setContent(content);
        }
 
 public:
index 0eb8db9ba7c6d85fc87ab342e2fc353c971a1dfa..35d081d3988b834694218090f7bc29e64650c19b 100644 (file)
@@ -29,8 +29,6 @@ protected:
                //Create a main content.
                Evas_Object *content = createScrollingContent(this->getBase());
 
-               this->setContent(content, "Page15 Scroller In Viewmgr");
-
                //Title Right button
                Elm_Button *rightBtn = elm_button_add(this->getBase());
                elm_object_text_set(rightBtn, "Next");
@@ -41,6 +39,9 @@ protected:
                                },
                                this);
 
+               //Set title text, right button, content
+               this->setTitle("Page15 Scroller In Viewmgr");
+               this->setContent(content);
                this->setTitleRightBtn(rightBtn);
        }
 
index a89d2cb8c9885363202ccd4b9d325be48287502e..f4e7a20edd8a294634fb2fddee5bda7c4f556d7f 100644 (file)
@@ -62,7 +62,9 @@ protected:
                                        view->setTitleVisible(false, true);
                                }, this);
 
-               this->setContent(content, "Page16");
+               //Set title text, content
+               this->setTitle("Page16");
+               this->setContent(content);
        }
 
 public:
index e1c1c31bb7446152f9de7cae1daaa11e9a6f2158..bb9695cbc03875e5a656b4a826561d87cb1104c1 100644 (file)
@@ -50,8 +50,11 @@ protected:
                const int rots[2] = { 0, 90 };
                this->setAvailableRotations(rots, 2);
 
-               //Arguments: content, title, subtitle, title left button, title right button
-               this->setContent(content, "Page2", NULL, leftTitleBtn, rightTitleBtn);
+               //Set title text, left/right buttons, content
+               this->setTitle("Page2");
+               this->setTitleLeftBtn(leftTitleBtn);
+               this->setTitleRightBtn(rightTitleBtn);
+               this->setContent(content);
        }
 
 public:
index 766ceb9b50daecc4e1ac04503026674857e0f25c..05c0345448e47196133e2e68ee28cf6567edc75b 100644 (file)
@@ -38,8 +38,10 @@ protected:
                                        UI_VIEWMGR->pushView(new page4());
                                });
 
-               //Arguments: content, title, subtitle, title left button, title right button
-               this->setContent(content, "Page3", "Subtitle", NULL, NULL);
+               //Set title text, subtitle text, content
+               this->setTitle("Page3");
+               this->setSubtitle("subtitle");
+               this->setContent(content);
        }
 
 public:
index 174373a23ae54ddc65bd1285b890bb9f325084ca..bd5e894a2bd5e2fc325c630b22807b87529ca749 100644 (file)
@@ -39,9 +39,10 @@ protected:
                                        UI_VIEWMGR->pushView(new page5());
                                });
 
-               //Arguments: content, title
-               this->setContent(content, "Page4. We put a long title here intentionally");
+               //Set title text, badge text, content
+               this->setTitle("Page4. We put a long title here intentionally");
                this->setTitleBadge("999+");
+               this->setContent(content);
        }
 
 public:
index 95492e310ba182af134b6d637f8b9109842d3687..4cc5a55e3de168d6a1608bb6f98542402ccbd698 100644 (file)
@@ -38,6 +38,7 @@ protected:
                                        UI_VIEWMGR->pushView(new page6());
                                });
 
+               //Set content, indicator property
                this->setContent(content);
                this->setIndicator(UI_VIEW_INDICATOR_HIDE);
        }
index 1a273a617a189958ee8a1104d02d1d2ad51d8ace..befcdecf0bbc212f12bceea61313b54694bbd057 100644 (file)
@@ -37,9 +37,11 @@ protected:
                                        UI_VIEWMGR->pushView(new page7());
                                });
 
-               //Arguments: content, title
-               this->setContent(content, "Page6");
                Elm_Toolbar *toolbar = createToolbar(this->getBase(), "toolbar_with_title");
+
+               //Set title text, content, toolbar
+               this->setTitle("Page6");
+               this->setContent(content);
                this->setToolbar(toolbar);
        }
 
index 460d638487d36e5c0dc17c806bff52180ccfff4f..8a87f3f4ddf7a32a942718b7420b95e281e6a39e 100644 (file)
@@ -37,9 +37,11 @@ protected:
                                        UI_VIEWMGR->pushView(new page8());
                                });
 
-               //Arguments: content, title
-               this->setContent(content, "Page7");
                Elm_Toolbar *toolbar = createToolbar(this->getBase(), "navigationbar");
+
+               //Set title text, content, toolbar
+               this->setTitle("Page7");
+               this->setContent(content);
                this->setToolbar(toolbar);
        }
 public:
index 52c6580f49b0e56e19b67e5876e31cdc79218a75..3677cae3360b0b53f7c8e3efe96cfbfc78dd8e61 100644 (file)
@@ -35,7 +35,9 @@ public:
                                UI_VIEWMGR->pushView(new page9());
                        });
 
-               this->setContent(content, "Page 8");
+               //Set title text, content
+               this->setTitle("Page8");
+               this->setContent(content);
 
                //Don't delete view's content when this view popped.
                //This is a show case for saving this content for reuse later.
index 26eefd75f852d925899d9cf6bdb139d841168106..14a4396652278a559c8ea7fb94c7987577cd3b02 100644 (file)
@@ -48,7 +48,9 @@ protected:
                                        UI_VIEWMGR->pushView(new page10());
                        });
 
-               this->setContent(content, "Page 9");
+               //Set title text, content, indicator property
+               this->setTitle("Page9");
+               this->setContent(content);
                this->setIndicator(UI_VIEW_INDICATOR_DEFAULT);
        }
 
@@ -68,7 +70,9 @@ protected:
                                        UI_VIEWMGR->pushView(new page10());
                                });
 
-               this->setContent(content, "Page 9");
+               //Set title text, content, indicator property
+               this->setTitle("Page9");
+               this->setContent(content);
                this->setIndicator(UI_VIEW_INDICATOR_OPTIMAL);
        }
 
index 673e69cc0275e8fcb1da03b7cb4ccde7bf875c4d..98b2d8b6d986e84cd6bc3eeef15ac585c6f1546c 100644 (file)
@@ -54,20 +54,7 @@ public:
         *
         *  @return @c true if it succeeds, @c false otherwise.
         */
-       bool setContent(Evas_Object *content, const char *title = NULL);
-
-       /**
-        *  @brief Replace or set a content of the view.
-        *
-        *  @param content A new content. It allows @c NULL for canceling the previous content.
-        *  @param title  The label in the title area. The name of the title label part is "elm.text.title".
-        *  @param subtitle  The label in the subtitle area. The name of the subtitle label part is "elm.text.subtitle".
-        *  @param title_left_btn The button in the left part of title area.
-        *  @param title_right_btn The button in the right part of title area.
-        *
-        *  @return @c true if it succeeds, @c false otherwise.
-        */
-       bool setContent(Evas_Object *content, const char *title, const char *subtitle, Elm_Button *titleLeftBtn, Elm_Button *titleRightBtn);
+       bool setContent(Evas_Object *content);
 
        /**
         *  @brief Set a title badge text.
index 82b77a099ae101fd13ac21e35a42e36261431a5b..14e7f64b8545d75c0504ae400cd84414bbe2a985 100644 (file)
@@ -24,22 +24,6 @@ extern "C" {
  */
 EAPI ui_standard_view *ui_standard_view_create(const char *name);
 
-/**
- *  @brief Replace or set a content of the view.
- *
- *  @param view An ui_standard_view instance.
- *  @param content A new content. It allows @c NULL for canceling the previous content.
- *  @param title The label in the title area. The name of the title label part is "elm.text.title".
- *  @param subtitle The label in the subtitle area. The name of the subtitle label part is "elm.text.subtitle".
- *  @param title_left_btn The button in the left part of title area.
- *  @param title_right_btn The button in the right part of title area.
- *
- *  @return @c true if it succeeds, @c false otherwise.
- *
- *  @see ui_view_content_get()
- */
-EAPI bool ui_standard_view_set_content(ui_standard_view *view, Evas_Object *content, const char *title, const char *subtitle, Evas_Object *title_left_btn, Evas_Object *title_right_btn);
-
 /**
  *  @brief Set a title text.
  *
index ca608e6fd0dfaa6defcd14d31c7e50bd26324512..5aedd37491b6e54d4d4848280cee75be0d8601e7 100644 (file)
@@ -45,8 +45,7 @@ public:
        explicit UiStandardViewImpl(UiStandardView *view);
        ~UiStandardViewImpl();
 
-       bool setContent(Evas_Object *content, const char *title = NULL);
-       bool setContent(Evas_Object *content, const char *title, const char *subtitle, Elm_Button *titleLeftBtn, Elm_Button *titleRightBtn);
+       bool setContent(Evas_Object *content);
        bool setTitleBadge(const char *text);
        bool setSubtitle(const char *text);
        bool setTitleLeftBtn(Elm_Button *titleLeftBtn);
@@ -171,7 +170,7 @@ UiStandardViewImpl::~UiStandardViewImpl()
        _destroyLayout();
 }
 
-bool UiStandardViewImpl::setContent(Evas_Object *content, const char *title)
+bool UiStandardViewImpl::setContent(Evas_Object *content)
 {
        Elm_Layout *layout = this->getBase();
        LAYOUT_VALIDATE();
@@ -185,8 +184,6 @@ bool UiStandardViewImpl::setContent(Evas_Object *content, const char *title)
                elm_object_signal_emit(layout, "elm.state,elm.swallow.content,hide", "viewmgr");
        }
 
-       this->setTitle(title);
-
        return true;
 }
 
@@ -449,11 +446,11 @@ void UiStandardView::onUnload()
        evas_object_hide(layout);
 }
 
-bool UiStandardView::setContent(Evas_Object *content, const char *title)
+bool UiStandardView::setContent(Evas_Object *content)
 {
        UiView::setContent(content);
 
-       return this->_impl->setContent(content, title);
+       return this->_impl->setContent(content);
 }
 
 bool UiStandardView::setSubtitle(const char *text)
@@ -481,16 +478,6 @@ bool UiStandardView::setTitle(const char *text)
        return this->_impl->setTitle(text);
 }
 
-bool UiStandardView::setContent(Evas_Object *content, const char *title, const char *subtitle, Elm_Button *titleLeftBtn, Elm_Button *titleRightBtn)
-{
-       if (!this->setContent(content, title)) return false;
-       if (!this->setSubtitle(subtitle)) return false;
-       if (!this->setTitleLeftBtn(titleLeftBtn)) return false;
-       if (!this->setTitleRightBtn(titleRightBtn)) return false;
-
-       return true;
-}
-
 bool UiStandardView::setToolbar(Elm_Toolbar *toolbar)
 {
        return this->_impl->setToolbar(toolbar);
index 53d6ecf45e5e1b176fdd1a5042c65a00975b227e..aa6881dabd5ba437718f051beb7820028615ba53 100644 (file)
@@ -154,14 +154,6 @@ EAPI ui_standard_view* ui_standard_view_create(const char *name)
        return new ui_standard_view_capi(name);
 }
 
-EAPI bool ui_standard_view_set_content(ui_standard_view *view, Evas_Object *content, const char *title, const char *subtitle, Evas_Object *title_left_btn,
-        Evas_Object *title_right_btn)
-{
-       ui_standard_view_capi *capi_view;
-       if (!(capi_view = validate_view(view))) return false;
-       return capi_view->setContent(content, title, subtitle, title_left_btn, title_right_btn);
-}
-
 EAPI bool ui_standard_view_set_title(ui_standard_view *view, const char *text)
 {
        ui_standard_view_capi *capi_view;