From 614dc64841512572437fa45322da3780f5666329 Mon Sep 17 00:00:00 2001 From: Thiep Ha Date: Thu, 14 May 2015 10:58:45 +0900 Subject: [tizen_2.4] cnpui_magnifier: implement GUI_0.2 Change-Id: Iedd8c454188c6c70c5603562d5fc0c12b82cc625 --- mobile/widgets/entry.edc | 184 ++++++----------------------------------------- 1 file changed, 20 insertions(+), 164 deletions(-) (limited to 'mobile/widgets/entry.edc') diff --git a/mobile/widgets/entry.edc b/mobile/widgets/entry.edc index a7b36862..57402b5e 100644 --- a/mobile/widgets/entry.edc +++ b/mobile/widgets/entry.edc @@ -4581,10 +4581,8 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; data.item: "height" ENTRY_SELECTION_BLOCK_HANDLE_MIN_HEIGHT_INC; data.item: "gap" ENTRY_SELECTION_BLOCK_HANDLE_MIN_WIDTH_INC; images { - image: "copy&paste_handler_circle_bottom.png" COMP; - image: "copy&paste_handler_line_bottom.png" COMP; - image: "copy&paste_handler_circle_top.png" COMP; - image: "copy&paste_handler_line_top.png" COMP; + image: "copy&paste_handler_left_bottom.png" COMP; + image: "copy&paste_handler_left_top.png" COMP; } parts { part { name: "handle"; @@ -4593,53 +4591,13 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; description { state: "default" 0.0; visible: 0; fixed: 1 1; - align: 0.5 0; + align: 1 0; + rel2.offset: 4 0; min: ENTRY_SELECTION_BLOCK_HANDLE_MIN_WIDTH_INC ENTRY_SELECTION_BLOCK_HANDLE_MIN_HEIGHT_INC; max: ENTRY_SELECTION_BLOCK_HANDLE_MIN_WIDTH_INC ENTRY_SELECTION_BLOCK_HANDLE_MIN_HEIGHT_INC; color: 38 107 191 191; image { - normal: "copy&paste_handler_circle_bottom.png"; - border: 0 0 0 0; - } - } - description { state: "show" 0.0; - inherit: "default" 0.0; - visible: 1; - } - description { state: "top" 0.0; - inherit: "default" 0.0; - visible: 1; - align: 0.5 1; - image { - normal: "copy&paste_handler_circle_top.png"; - } - } - description { state: "bottom_reversed" 0.0; - inherit: "default" 0.0; - visible: 1; - align: 0.5 0; - } - description { state: "top_reversed" 0.0; - inherit: "default" 0.0; - visible: 1; - align: 0.5 1; - image { - normal: "copy&paste_handler_circle_top.png"; - } - } - } - part { name: "handler_line"; - mouse_events: 1; - scale: 1; - description { state: "default" 0.0; - visible: 0; - fixed: 1 1; - align: 0.5 0; - min: ENTRY_SELECTION_BLOCK_HANDLE_MIN_WIDTH_INC ENTRY_SELECTION_BLOCK_HANDLE_MIN_HEIGHT_INC; - max: ENTRY_SELECTION_BLOCK_HANDLE_MIN_WIDTH_INC ENTRY_SELECTION_BLOCK_HANDLE_MIN_HEIGHT_INC; - color: 0 81 181 255; - image { - normal: "copy&paste_handler_line_bottom.png"; + normal: "copy&paste_handler_left_bottom.png"; border: 0 0 0 0; } } @@ -4652,7 +4610,7 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; visible: 1; align: 0.5 1; image { - normal: "copy&paste_handler_line_top.png"; + normal: "copy&paste_handler_left_top.png"; } } description { state: "bottom_reversed" 0.0; @@ -4665,7 +4623,7 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; visible: 1; align: 0.5 1; image { - normal: "copy&paste_handler_line_top.png"; + normal: "copy&paste_handler_left_top.png"; } } } @@ -4689,7 +4647,6 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; script { set_int(handler_focused, 0); set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); } } program { name: "bottom_reversed"; @@ -4701,12 +4658,10 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; if (disabled == 0) { set_state(PART:"handle", "bottom_reversed", 0.0); - set_state(PART:"handler_line", "bottom_reversed", 0.0); } else { set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); } } } @@ -4719,12 +4674,10 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; if (disabled == 0) { set_state(PART:"handle", "top_reversed", 0.0); - set_state(PART:"handler_line", "top_reversed", 0.0); } else { set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); } } } @@ -4739,12 +4692,10 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; if ((focused == 1) && (disabled == 0)) { set_state(PART:"handle", "top", 0.0); - set_state(PART:"handler_line", "top", 0.0); } else { set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); } } } @@ -4759,12 +4710,10 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; if ((focused == 1) && (disabled == 0)) { set_state(PART:"handle", "show", 0.0); - set_state(PART:"handler_line", "show", 0.0); } else { set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); } } } @@ -4789,10 +4738,8 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; data.item: "height" ENTRY_SELECTION_BLOCK_HANDLE_MIN_HEIGHT_INC; data.item: "gap" ENTRY_SELECTION_BLOCK_HANDLE_MIN_WEIGHT_INC; images { - image: "copy&paste_handler_circle_bottom.png" COMP; - image: "copy&paste_handler_line_bottom.png" COMP; - image: "copy&paste_handler_circle_top.png" COMP; - image: "copy&paste_handler_line_top.png" COMP; + image: "copy&paste_handler_right_bottom.png" COMP; + image: "copy&paste_handler_right_top.png" COMP; } parts { @@ -4802,12 +4749,13 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; description { state: "default" 0.0; visible: 0; fixed: 1 1; - align: 0.5 0; + align: 0 0; + rel1.offset: -5 0; min: ENTRY_SELECTION_BLOCK_HANDLE_MIN_WIDTH_INC ENTRY_SELECTION_BLOCK_HANDLE_MIN_HEIGHT_INC; max: ENTRY_SELECTION_BLOCK_HANDLE_MIN_WIDTH_INC ENTRY_SELECTION_BLOCK_HANDLE_MIN_HEIGHT_INC; color: 38 107 191 191; image { - normal: "copy&paste_handler_circle_bottom.png"; + normal: "copy&paste_handler_right_bottom.png"; border: 0 0 0 0; } } @@ -4820,7 +4768,7 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; visible: 1; align: 0.5 1; image { - normal: "copy&paste_handler_circle_top.png"; + normal: "copy&paste_handler_right_top.png"; } } description { state: "bottom_reversed" 0.0; @@ -4833,48 +4781,7 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; visible: 1; align: 0.5 1; image { - normal: "copy&paste_handler_circle_top.png"; - } - } - } - part { name: "handler_line"; - mouse_events: 1; - scale: 1; - description { state: "default" 0.0; - visible: 0; - fixed: 1 1; - align: 0.5 0; - min: ENTRY_SELECTION_BLOCK_HANDLE_MIN_WIDTH_INC ENTRY_SELECTION_BLOCK_HANDLE_MIN_HEIGHT_INC; - max: ENTRY_SELECTION_BLOCK_HANDLE_MIN_WIDTH_INC ENTRY_SELECTION_BLOCK_HANDLE_MIN_HEIGHT_INC; - color: 0 81 181 255; - image { - normal: "copy&paste_handler_line_bottom.png"; - border: 0 0 0 0; - } - } - description { state: "show" 0.0; - inherit: "default" 0.0; - visible: 1; - } - description { state: "top" 0.0; - inherit: "default" 0.0; - visible: 1; - align: 0.5 1; - image { - normal: "copy&paste_handler_line_top.png"; - } - } - description { state: "bottom_reversed" 0.0; - inherit: "default" 0.0; - visible: 1; - align: 0.5 0; - } - description { state: "top_reversed" 0.0; - inherit: "default" 0.0; - visible: 1; - align: 0.5 1; - image { - normal: "copy&paste_handler_line_top.png"; + normal: "copy&paste_handler_right_top.png"; } } } @@ -4898,7 +4805,6 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; script { set_int(handler_focused, 0); set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); } } program { name: "top"; @@ -4912,12 +4818,10 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; if ((focused == 1) && (disabled == 0)) { set_state(PART:"handle", "top", 0.0); - set_state(PART:"handler_line", "top", 0.0); } else { set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); } } } @@ -4932,12 +4836,10 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; if ((focused == 1) && (disabled == 0)) { set_state(PART:"handle", "show", 0.0); - set_state(PART:"handler_line", "show", 0.0); } else { set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); } } } @@ -4950,12 +4852,10 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; if (disabled == 0) { set_state(PART:"handle", "bottom_reversed", 0.0); - set_state(PART:"handler_line", "bottom_reversed", 0.0); } else { set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); } } } @@ -4968,12 +4868,10 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; if (disabled == 0) { set_state(PART:"handle", "top_reversed", 0.0); - set_state(PART:"handler_line", "top_reversed", 0.0); } else { set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); } } } @@ -4999,19 +4897,10 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; set { name: "copy&paste_handler_center_circle"; image { - image: SMALL"images/Copy_Paste/copy&paste_handler_center_circle.png" COMP; - } - image { - image: MEDIUM"images/Copy_Paste/copy&paste_handler_center_circle.png" COMP; - } - } - set { - name: "copy&paste_handler_center_line"; - image { - image: SMALL"images/Copy_Paste/copy&paste_handler_center_line.png" COMP; + image: SMALL"images/Copy_Paste/copy&paste_handler_center.png" COMP; } image { - image: MEDIUM"images/Copy_Paste/copy&paste_handler_center_line.png" COMP; + image: MEDIUM"images/Copy_Paste/copy&paste_handler_center.png" COMP; } } } @@ -5058,33 +4947,6 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; align: 0.5 1.0; } } - part { name: "handler_line"; - scale: 1; - mouse_events: 1; - description { state: "default" 0.0; - min: ENTRY_CURSOR_HANDLE_MIN_WIDTH_INC ENTRY_CURSOR_HANDLE_MIN_HEIGHT_INC; - max: ENTRY_CURSOR_HANDLE_MIN_WIDTH_INC ENTRY_CURSOR_HANDLE_MIN_HEIGHT_INC; - align: 0 0; - visible: 0; - align: 0.5 0; - color: 0 81 181 255; - image { - normal: "copy&paste_handler_center_line"; - border: 0 0 0 0; - } - image.middle: SOLID; - fill.smooth: 0; - } - description { state: "show" 0.0; - inherit: "default" 0.0; - visible: 1; - } - description { state: "top" 0.0; - inherit: "default" 0.0; - visible: 1; - align: 0.5 1.0; - } - } } script { public on_top; @@ -5098,12 +4960,10 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; if (on_top_val) { set_state(PART:"handle", "top", 0.0); - set_state(PART:"handler_line", "top", 0.0); } else { set_state(PART:"handle", "show", 0.0); - set_state(PART:"handler_line", "show", 0.0); } set_state(PART:"sens", "show", 0.0); } @@ -5113,7 +4973,6 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; source: "edje"; script { set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); set_state(PART:"sens", "default", 0.0); } } @@ -5123,7 +4982,6 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; script { set_int(on_top, 0); set_state(PART:"handle", "show", 0.0); - set_state(PART:"handler_line", "show", 0.0); set_state(PART:"sens", "show", 0.0); } } @@ -5132,7 +4990,6 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; source: "edje"; script { set_state(PART:"handle", "default", 0.0); - set_state(PART:"handler_line", "default", 0.0); set_state(PART:"sens", "default", 0.0); } } @@ -5142,7 +4999,6 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; script { set_int(on_top, 1); set_state(PART:"handle", "top", 0.0); - set_state(PART:"handler_line", "top", 0.0); set_state(PART:"sens", "show", 0.0); } } @@ -5262,8 +5118,8 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; data.item: "scale" MAGNIFIER_SCALE; data.item: "arrow" MAGNIFIER_ARROW_HEIGHT_INC; images { - image: "copy&paste_Magnifier.#.png" COMP; - image: "copy&paste_Magnifier_mask.#.png" COMP; + image: "copy&paste_magnifier_line.#.png" COMP; + image: "copy&paste_magnifier_mask.#.png" COMP; } parts { part { name: "bg_mask"; @@ -5271,7 +5127,7 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; description { state: "default" 0.0; rel1.to: "bg"; rel2.to: "bg"; - image.normal: "copy&paste_Magnifier_mask.#.png"; + image.normal: "copy&paste_magnifier_mask.#.png"; color: 245 245 245 255; } description { state: "custom_cc" 0.0; @@ -5286,7 +5142,7 @@ group { name: "elm/entry/base-noedit-charwrap/vcenter_align"; fixed: 1 1; min: MAGNIFIER_WIDTH_FIXED_INC MAGNIFIER_HEIGHT_MIN; max: MAGNIFIER_WIDTH_FIXED_INC MAGNIFIER_HEIGHT_MAX; - image.normal: "copy&paste_Magnifier.#.png"; + image.normal: "copy&paste_magnifier_line.#.png"; align: 0.0 0.0; } } -- cgit v1.2.3