summaryrefslogtreecommitdiff
path: root/src/browser-common-view.cpp
diff options
context:
space:
mode:
authorSangpyo Kim <sangpyo7.kim@samsung.com>2012-09-05 00:26:05 +0900
committerSangpyo Kim <sangpyo7.kim@samsung.com>2012-09-05 16:18:48 +0900
commit4a4f0ae1cb0252d029d19ad73021aa7e68db757b (patch)
treefafcc2a4478ea66863554f7f31ac38a6aec67df8 /src/browser-common-view.cpp
parentcf62534add74555531fbdc5da84f9a5bc29e76a2 (diff)
downloadorg.tizen.browser-4a4f0ae1cb0252d029d19ad73021aa7e68db757b.tar.gz
org.tizen.browser-4a4f0ae1cb0252d029d19ad73021aa7e68db757b.tar.bz2
org.tizen.browser-4a4f0ae1cb0252d029d19ad73021aa7e68db757b.zip
[Title] Set divided selection info layout due to rotating issue.
[Issue#] N_SE-8169 [Problem] Selection info popup is not fit to landscape mode screen [Cause] elm_notify doesn't support the auto rotate [Solution] using divided layout and dedicate one of them for selection info popup [Team] Browser UI [Developer] sangpyo7.kim [Request] N/A Change-Id: I5bb47d26c50de758b48db93b36490410717301f5 Conflicts: src/browser-common-view.cpp
Diffstat (limited to 'src/browser-common-view.cpp')
-rwxr-xr-xsrc/browser-common-view.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/browser-common-view.cpp b/src/browser-common-view.cpp
index 3fe7b69..197a163 100755
--- a/src/browser-common-view.cpp
+++ b/src/browser-common-view.cpp
@@ -31,6 +31,7 @@ Browser_Common_View::Browser_Common_View(void)
:
m_selection_info(NULL)
,m_selection_info_layout(NULL)
+ ,m_selinfo_layout(NULL)
,m_popup(NULL)
,m_ug(NULL)
,m_share_popup(NULL)
@@ -177,6 +178,47 @@ void Browser_Common_View::show_notify_popup(const char *msg, int timeout, Eina_B
evas_object_show(m_selection_info);
}
+void Browser_Common_View::show_notify_popup_layout(const char *msg, int timeout, Evas_Object *parent)
+{
+ if (m_selinfo_layout) {
+ evas_object_del(m_selinfo_layout);
+ m_selinfo_layout = NULL;
+ }
+
+ m_selinfo_layout = elm_layout_add(parent);
+ if (!m_selinfo_layout) {
+ BROWSER_LOGD("elm_layout_add failed");
+ return;
+ }
+ elm_object_part_content_set(parent,
+ "selinfo.swallow.contents",
+ m_selinfo_layout);
+ evas_object_size_hint_weight_set(m_selinfo_layout,
+ EVAS_HINT_EXPAND,
+ EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(m_selinfo_layout,
+ EVAS_HINT_FILL,
+ EVAS_HINT_FILL);
+
+ elm_object_content_set(m_selection_info, m_selection_info_layout);
+
+ /* Set the layout theme */
+ elm_layout_theme_set(m_selinfo_layout, "standard", "selectioninfo", "default");
+ /* Set the text */
+ elm_object_part_text_set(m_selinfo_layout, "elm.text", msg);
+ elm_object_signal_emit(parent, "show,selection,info", "elm");
+}
+
+void Browser_Common_View::hide_notify_popup_layout(Evas_Object *parent)
+{
+ if (m_selinfo_layout) {
+ evas_object_del(m_selinfo_layout);
+ m_selinfo_layout = NULL;
+ }
+
+ elm_object_signal_emit(parent, "hide,selection,info", "elm");
+}
+
Eina_Bool Browser_Common_View::find_word_with_text(const char *text_to_find)
{
BROWSER_LOGD("[%s], text_to_find[%s]", __func__, text_to_find);