summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mobile/HD-inc.edc7
-rw-r--r--mobile/HD/images/default/toast_popup.pngbin0 -> 2139 bytes
-rw-r--r--mobile/HD/images/default/tooltip-base.pngbin0 -> 1907 bytes
-rw-r--r--mobile/HD/images/default/tooltip-corner-bottom-left-tip.pngbin0 -> 904 bytes
-rw-r--r--mobile/HD/images/default/tooltip-corner-bottom-right-tip.pngbin0 -> 947 bytes
-rw-r--r--mobile/HD/images/default/tooltip-corner-top-left-tip.pngbin0 -> 946 bytes
-rw-r--r--mobile/HD/images/default/tooltip-corner-top-right-tip.pngbin0 -> 955 bytes
-rw-r--r--mobile/HD/images/default/tooltip-edge-bottom-tip.pngbin0 -> 867 bytes
-rw-r--r--mobile/HD/images/default/tooltip-edge-left-tip.pngbin0 -> 907 bytes
-rw-r--r--mobile/HD/images/default/tooltip-edge-right-tip.pngbin0 -> 896 bytes
-rw-r--r--mobile/HD/images/default/tooltip-edge-top-tip.pngbin0 -> 865 bytes
-rw-r--r--mobile/efl-theme-tizen-mobile.edc1
-rw-r--r--mobile/elm-sharp-theme-mobile.edc32
-rw-r--r--mobile/widgets/entry.edc2
-rw-r--r--mobile/widgets/panel.edc153
-rw-r--r--mobile/widgets/tooltip.edc531
-rw-r--r--mobile/widgets/win.edc94
17 files changed, 787 insertions, 33 deletions
diff --git a/mobile/HD-inc.edc b/mobile/HD-inc.edc
index 3cc58cf1..41239a14 100644
--- a/mobile/HD-inc.edc
+++ b/mobile/HD-inc.edc
@@ -969,6 +969,13 @@
#define PANES_STYLE_DEFAULT_FIXED_SIZE_INC 52
#define PANES_DEFAULT_FIXED_SEPERATOR_NORMAL_COLOR_INC 118 118 118 255
+// ****************************************************** //
+// InWin
+// ****************************************************** //
+#define INWIN_BG_BORDER_INC 30 30 30 30
+#define INWIN_PADDING_CONTENT_SIZE_INC 50
+
+
#define STYLE_TAGS \
tag: "br" "\n";\
tag: "ps" "ps";\
diff --git a/mobile/HD/images/default/toast_popup.png b/mobile/HD/images/default/toast_popup.png
new file mode 100644
index 00000000..8e5bc8e8
--- /dev/null
+++ b/mobile/HD/images/default/toast_popup.png
Binary files differ
diff --git a/mobile/HD/images/default/tooltip-base.png b/mobile/HD/images/default/tooltip-base.png
new file mode 100644
index 00000000..1dc44f38
--- /dev/null
+++ b/mobile/HD/images/default/tooltip-base.png
Binary files differ
diff --git a/mobile/HD/images/default/tooltip-corner-bottom-left-tip.png b/mobile/HD/images/default/tooltip-corner-bottom-left-tip.png
new file mode 100644
index 00000000..aa134380
--- /dev/null
+++ b/mobile/HD/images/default/tooltip-corner-bottom-left-tip.png
Binary files differ
diff --git a/mobile/HD/images/default/tooltip-corner-bottom-right-tip.png b/mobile/HD/images/default/tooltip-corner-bottom-right-tip.png
new file mode 100644
index 00000000..c4b1185c
--- /dev/null
+++ b/mobile/HD/images/default/tooltip-corner-bottom-right-tip.png
Binary files differ
diff --git a/mobile/HD/images/default/tooltip-corner-top-left-tip.png b/mobile/HD/images/default/tooltip-corner-top-left-tip.png
new file mode 100644
index 00000000..34f2922d
--- /dev/null
+++ b/mobile/HD/images/default/tooltip-corner-top-left-tip.png
Binary files differ
diff --git a/mobile/HD/images/default/tooltip-corner-top-right-tip.png b/mobile/HD/images/default/tooltip-corner-top-right-tip.png
new file mode 100644
index 00000000..5110f180
--- /dev/null
+++ b/mobile/HD/images/default/tooltip-corner-top-right-tip.png
Binary files differ
diff --git a/mobile/HD/images/default/tooltip-edge-bottom-tip.png b/mobile/HD/images/default/tooltip-edge-bottom-tip.png
new file mode 100644
index 00000000..19d5c8b9
--- /dev/null
+++ b/mobile/HD/images/default/tooltip-edge-bottom-tip.png
Binary files differ
diff --git a/mobile/HD/images/default/tooltip-edge-left-tip.png b/mobile/HD/images/default/tooltip-edge-left-tip.png
new file mode 100644
index 00000000..ebca377f
--- /dev/null
+++ b/mobile/HD/images/default/tooltip-edge-left-tip.png
Binary files differ
diff --git a/mobile/HD/images/default/tooltip-edge-right-tip.png b/mobile/HD/images/default/tooltip-edge-right-tip.png
new file mode 100644
index 00000000..c4631e40
--- /dev/null
+++ b/mobile/HD/images/default/tooltip-edge-right-tip.png
Binary files differ
diff --git a/mobile/HD/images/default/tooltip-edge-top-tip.png b/mobile/HD/images/default/tooltip-edge-top-tip.png
new file mode 100644
index 00000000..e04a0842
--- /dev/null
+++ b/mobile/HD/images/default/tooltip-edge-top-tip.png
Binary files differ
diff --git a/mobile/efl-theme-tizen-mobile.edc b/mobile/efl-theme-tizen-mobile.edc
index 2f663e6c..8905f381 100644
--- a/mobile/efl-theme-tizen-mobile.edc
+++ b/mobile/efl-theme-tizen-mobile.edc
@@ -123,6 +123,7 @@ collections {
#include "widgets/photocam.edc"
#include "widgets/panes.edc"
#include "widgets/map.edc"
+#include "widgets/tooltip.edc"
color_classes {
color_class {
diff --git a/mobile/elm-sharp-theme-mobile.edc b/mobile/elm-sharp-theme-mobile.edc
index 1a1d7e0d..28a9d194 100644
--- a/mobile/elm-sharp-theme-mobile.edc
+++ b/mobile/elm-sharp-theme-mobile.edc
@@ -84,38 +84,6 @@ collections {
#include "color_classes.edc"
-#include "widgets/bg.edc"
-#include "widgets/button.edc"
-#include "widgets/calendar.edc"
-#include "widgets/conform.edc"
-#include "widgets/ctxpopup.edc"
-#include "widgets/flipselector.edc"
-#include "widgets/focus_highlight.edc"
-#include "widgets/genlist.edc"
-#include "widgets/label.edc"
-#include "widgets/layout.edc"
-#include "widgets/naviframe.edc"
-#include "widgets/scroller.edc"
-#include "widgets/panel.edc"
-#include "widgets/toolbar.edc"
-#include "widgets/gengrid.edc"
-#include "widgets/entry.edc"
-#include "widgets/slider.edc"
-#include "widgets/spinner.edc"
-#include "widgets/datetime.edc"
-#include "widgets/colorselector.edc"
-#include "widgets/progressbar.edc"
-#include "widgets/check.edc"
-#include "widgets/radio.edc"
-#include "widgets/index.edc"
-#include "widgets/popup.edc"
-#include "widgets/multibuttonentry.edc"
-#include "widgets/win.edc"
-#include "widgets/hover.edc"
-#include "widgets/list.edc"
-#include "widgets/floatingbutton.edc"
-#include "widgets/border.edc"
-
#include "widgets_csharp/layout.edc"
color_classes {
diff --git a/mobile/widgets/entry.edc b/mobile/widgets/entry.edc
index a58aa1d7..37311bcf 100644
--- a/mobile/widgets/entry.edc
+++ b/mobile/widgets/entry.edc
@@ -96,7 +96,7 @@ group { "elm/entry/emoticon/worried/default"; images.image:
#define ENTRY_PREEDIT_TAGS \
tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC; \
tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \
tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
diff --git a/mobile/widgets/panel.edc b/mobile/widgets/panel.edc
index c6baec2c..31d0712f 100644
--- a/mobile/widgets/panel.edc
+++ b/mobile/widgets/panel.edc
@@ -499,3 +499,156 @@ group { "elm/panel/bottom/default";
}
}
}
+
+group { "elm/panel/left/default";
+ images.image: "core_icon_picker_arrow_left.png" COMP;
+ images.image: "core_icon_picker_arrow_right.png" COMP;
+ data.item: "focus_highlight" "off";
+ parts {
+ spacer { "all";
+ desc { "default";
+ }
+ }
+ rect { "base";
+ desc { "default";
+ rel1.to_x: "all";
+ rel2.to_x: "elm.swallow.event";
+ rel2.relative: 0.0 1.0;
+ color: 255 255 255 255;
+ }
+ }
+ swallow { "elm.swallow.content";
+ desc { "default";
+ rel1.offset: 4 4;
+ rel1.to: "base";
+ rel2.offset: -5 -5;
+ rel2.to: "base";
+ }
+ }
+ swallow { "elm.swallow.event";
+ desc { "default";
+ fixed: 1 1;
+ min: 50 50;
+ max: 50 99999;
+ align: 0.0 0.5;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ color: 0 0 0 0;
+ }
+ desc { "hidden";
+ inherit: "default";
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ }
+ }
+ rect { "btn";
+ desc { "default";
+ rel.to: "elm.swallow.event";
+ color: 64 64 64 255;
+ }
+ }
+ image { "icn";
+ mouse;
+ scale;
+ desc { "default";
+ fixed: 1 1;
+ min: 50 50;
+ max: 50 50;
+ rel.to: "btn";
+ image.normal: "core_icon_picker_arrow_left.png";
+ }
+ desc { "hidden";
+ inherit: "default";
+ image.normal: "core_icon_picker_arrow_right.png";
+ }
+ }
+ }
+ programs {
+ program { "clicked";
+ signal: "mouse,clicked,1";
+ source: "btn";
+ action: SIGNAL_EMIT "elm,action,panel,toggle" "elm";
+ }
+ program { "show";
+ signal: "elm,action,show";
+ source: "elm";
+ action: STATE_SET "default";
+ transition: DECELERATE 0.3;
+ target: "elm.swallow.event";
+ target: "base";
+ target: "icn";
+ }
+ program { "hide";
+ signal: "elm,action,hide";
+ source: "elm";
+ action: STATE_SET "hidden";
+ transition: ACCELERATE 0.3;
+ target: "elm.swallow.event";
+ target: "icn";
+ }
+ program { "hide1";
+ signal: "elm,action,hide";
+ source: "elm";
+ script {
+ custom_state(PART:"base", "default", 0.0);
+ set_state_val(PART:"base", STATE_REL1, -1.0, 0.0);
+ set_state_val(PART:"base", STATE_REL2, 0.0, 1.0);
+ }
+ after: "hide2";
+ }
+ program { "hide2";
+ action: STATE_SET "custom";
+ transition: ACCELERATE 0.3;
+ target: "base";
+ }
+ }
+}
+
+group { "elm/panel/right/default";
+ inherit: "elm/panel/left/default";
+ parts {
+ rect { "base";
+ desc { "default";
+ rel1.to_x: "elm.swallow.event";
+ rel1.relative: 1.0 0.0;
+ rel2.to_x: "all";
+ rel2.relative: 1.0 1.0;
+ }
+ }
+ swallow { "elm.swallow.event";
+ desc { "default";
+ align: 1.0 0.5;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ }
+ desc { "hidden";
+ inherit: "default";
+ align: 1.0 0.5;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ }
+ }
+ image { "icn";
+ nomouse;
+ scale;
+ desc { "default";
+ image.normal: "core_icon_picker_arrow_right.png";
+ }
+ desc { "hidden";
+ inherit: "default";
+ image.normal: "core_icon_picker_arrow_left.png";
+ }
+ }
+ }
+ programs {
+ program { "hide1";
+ signal: "elm,action,hide"; source: "elm";
+ script {
+ custom_state(PART:"base", "default", 0.0);
+ set_state_val(PART:"base", STATE_REL1, 1.0, 0.0);
+ set_state_val(PART:"base", STATE_REL2, 2.0, 1.0);
+ }
+ after: "hide2";
+ }
+ }
+}
diff --git a/mobile/widgets/tooltip.edc b/mobile/widgets/tooltip.edc
new file mode 100644
index 00000000..0ee06cca
--- /dev/null
+++ b/mobile/widgets/tooltip.edc
@@ -0,0 +1,531 @@
+#define TOOLTIP_BG_BORDER_INC 40 40 40 40
+#define TOOLTIP_ARROW_MIN_WIDTH_INC 62
+#define TOOLTIP_ARROW_MIN_HEIGHT_INC 62
+#define TOOLTIP_BG_PADDING_TOP_LEFT_WIDTH 40
+#define TOOLTIP_BG_PADDING_TOP_LEFT_HEIGHT 50
+#define TOOLTIP_BG_PADDING_BOTTOM_RIGHT_WIDTH 40
+#define TOOLTIP_BG_PADDING_BOTTOM_RIGHT_HEIGHT 50
+
+group { name: "elm/label/base/tooltip";
+ styles {
+ style { name: "tooltip_style";
+ base: "font=SLP:sytle=Bold font_size=30 color=#fff wrap=word";
+ tag: "br" "\n";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "b" "+ font_weight=Bold";
+ tag: "tab" "\t";
+ }
+ }
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ text {
+ style: "tooltip_style";
+ min: 1 1;
+ }
+ }
+ }
+ }
+}
+
+group { name: "elm/tooltip/base/default";
+ data {
+ item: "pad_x" "23";
+ item: "pad_y" "35";
+ item: "hide_timeout" "0.35";
+ }
+ images {
+ image: "tooltip-base.png" COMP;
+ image: "tooltip-corner-top-left-tip.png" COMP;
+ image: "tooltip-corner-top-right-tip.png" COMP;
+ image: "tooltip-corner-bottom-left-tip.png" COMP;
+ image: "tooltip-corner-bottom-right-tip.png" COMP;
+ image: "tooltip-edge-left-tip.png" COMP;
+ image: "tooltip-edge-right-tip.png" COMP;
+ image: "tooltip-edge-bottom-tip.png" COMP;
+ image: "tooltip-edge-top-tip.png" COMP;
+ }
+ script {
+ hide_corners() {
+ set_state(PART:"corner-top-left", "default", 0.0);
+ set_state(PART:"corner-top-right", "default", 0.0);
+ set_state(PART:"corner-bottom-left", "default", 0.0);
+ set_state(PART:"corner-bottom-right", "default", 0.0);
+ }
+ hide_edges() {
+ set_state(PART:"clipper-edge-left", "default", 0.0);
+ set_state(PART:"clipper-edge-right", "default", 0.0);
+ set_state(PART:"clipper-edge-top", "default", 0.0);
+ set_state(PART:"clipper-edge-bottom", "default", 0.0);
+ }
+
+ show_corner_top_left() {
+ set_state(PART:"corner-top-left", "visible", 0.0);
+
+ set_state(PART:"corner-top-right", "default", 0.0);
+ set_state(PART:"corner-bottom-left", "default", 0.0);
+ set_state(PART:"corner-bottom-right", "default", 0.0);
+ hide_edges();
+ }
+ show_corner_top_right() {
+ set_state(PART:"corner-top-right", "visible", 0.0);
+
+ set_state(PART:"corner-top-left", "default", 0.0);
+ set_state(PART:"corner-bottom-left", "default", 0.0);
+ set_state(PART:"corner-bottom-right", "default", 0.0);
+ hide_edges();
+ }
+
+ show_corner_bottom_left() {
+ set_state(PART:"corner-bottom-left", "visible", 0.0);
+
+ set_state(PART:"corner-bottom-right", "default", 0.0);
+ set_state(PART:"corner-top-left", "default", 0.0);
+ set_state(PART:"corner-top-right", "default", 0.0);
+ hide_edges();
+ }
+ show_corner_bottom_right() {
+ set_state(PART:"corner-bottom-right", "visible", 0.0);
+
+ set_state(PART:"corner-bottom-left", "default", 0.0);
+ set_state(PART:"corner-top-left", "default", 0.0);
+ set_state(PART:"corner-top-right", "default", 0.0);
+ hide_edges();
+ }
+
+ show_edge_left(Float:val) {
+ set_state(PART:"clipper-edge-left", "visible", 0.0);
+ set_drag(PART:"edge-drag-left", 0.0, val);
+
+ set_state(PART:"clipper-edge-right", "default", 0.0);
+ set_state(PART:"clipper-edge-top", "default", 0.0);
+ set_state(PART:"clipper-edge-bottom", "default", 0.0);
+ hide_corners();
+ }
+ show_edge_right(Float:val) {
+ set_state(PART:"clipper-edge-right", "visible", 0.0);
+ set_drag(PART:"edge-drag-right", 0.0, val);
+
+ set_state(PART:"clipper-edge-left", "default", 0.0);
+ set_state(PART:"clipper-edge-top", "default", 0.0);
+ set_state(PART:"clipper-edge-bottom", "default", 0.0);
+ hide_corners();
+ }
+
+ show_edge_top(Float:val) {
+ set_state(PART:"clipper-edge-top", "visible", 0.0);
+ set_drag(PART:"edge-drag-top", val, 0.0);
+
+ set_state(PART:"clipper-edge-bottom", "default", 0.0);
+ set_state(PART:"clipper-edge-left", "default", 0.0);
+ set_state(PART:"clipper-edge-right", "default", 0.0);
+ hide_corners();
+ }
+ show_edge_bottom(Float:val) {
+ set_state(PART:"clipper-edge-bottom", "visible", 0.0);
+ set_drag(PART:"edge-drag-bottom", val, 0.0);
+
+ set_state(PART:"clipper-edge-top", "default", 0.0);
+ set_state(PART:"clipper-edge-left", "default", 0.0);
+ set_state(PART:"clipper-edge-right", "default", 0.0);
+ hide_corners();
+ }
+
+ public message(Msg_Type:type, id, ...) {
+ if ((type == MSG_FLOAT_SET) && (id == 1)) {
+ new Float:x, Float:y;
+
+ x = getfarg(2);
+ y = getfarg(3);
+
+ if (x < 0.0)
+ {
+ if (y < 0.0) show_corner_top_left();
+ else if (y > 1.0) show_corner_bottom_left();
+ else show_edge_left(y);
+ }
+ else if (x > 1.0)
+ {
+ if (y < 0.0) show_corner_top_right();
+ else if (y > 1.0) show_corner_bottom_right();
+ else show_edge_right(y);
+ }
+ else
+ {
+ if (y < 0.0) show_edge_top(x);
+ else if (y > 1.0) show_edge_bottom(x);
+ else
+ {
+ hide_corners();
+ hide_edges();
+ }
+ }
+ }
+ }
+ }
+ parts {
+ part { name: "clipper";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 255 255 255 0;
+ rel1.to: "elm.padding.clipper.lt";
+ rel2.to: "elm.padding.clipper.rb";
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "elm.padding.clipper.lt";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 1 1;
+ min: TOOLTIP_BG_PADDING_TOP_LEFT_WIDTH TOOLTIP_BG_PADDING_TOP_LEFT_HEIGHT;
+ max: TOOLTIP_BG_PADDING_TOP_LEFT_WIDTH TOOLTIP_BG_PADDING_TOP_LEFT_HEIGHT;
+ rel1 {
+ to: "elm.swallow.content";
+ relative: 0 0;
+ }
+ rel2 {
+ to: "elm.swallow.content";
+ relative: 0 0;
+ }
+ }
+ }
+ part { name: "elm.padding.clipper.rb";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 0 0;
+ min: TOOLTIP_BG_PADDING_TOP_LEFT_WIDTH TOOLTIP_BG_PADDING_TOP_LEFT_HEIGHT;
+ max: TOOLTIP_BG_PADDING_TOP_LEFT_WIDTH TOOLTIP_BG_PADDING_TOP_LEFT_HEIGHT;
+ rel1 {
+ to: "elm.swallow.content";
+ relative: 1 1;
+ }
+ rel2 {
+ to: "elm.swallow.content";
+ relative: 1 1;
+ }
+ }
+ }
+ part { name: "pop";
+ mouse_events: 0;
+ clip_to: "clipper";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to: "elm.padding.clipper.lt";
+ }
+ rel2 {
+ to: "elm.padding.clipper.rb";
+ }
+ image {
+ normal: "tooltip-base.png";
+ border: TOOLTIP_BG_BORDER_INC;
+ border_scale: 1;
+ }
+ image.middle: SOLID;
+ }
+ }
+ #define TT_CORNER(name_, rx, ry, ax, ay) \
+ part { name: "corner-"name_; \
+ scale: 1; \
+ mouse_events: 0; \
+ clip_to: "clipper"; \
+ description { state: "default" 0.0; \
+ color: 255 255 255 0; \
+ visible: 0; \
+ min: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ max: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ align: ax ay; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: rx ry; \
+ to: "pop"; \
+ } \
+ rel2 { \
+ relative: rx ry; \
+ to: "pop"; \
+ } \
+ image.normal: "tooltip-corner-"name_"-tip.png"; \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ visible: 1; \
+ } \
+ }
+ TT_CORNER("top-left", 0, 0, 0, 0);
+ TT_CORNER("top-right", 1, 0, 1, 0);
+ TT_CORNER("bottom-left", 0, 1, 0, 1);
+ TT_CORNER("bottom-right", 1, 1, 1, 1);
+ #undef TT_CORNER
+
+ #define TT_EDGE_VERT(name_, rx, ax) \
+ part { name: "clipper-edge-"name_; \
+ type: RECT; \
+ scale: 1; \
+ clip_to: "clipper"; \
+ description { state: "default" 0.0; \
+ color: 255 255 255 0; \
+ visible: 0; \
+ min: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ align: ax 0.5; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: rx 0.0; \
+ to: "pop"; \
+ } \
+ rel2 { \
+ relative: rx 1.0; \
+ to: "pop"; \
+ } \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ visible: 1; \
+ } \
+ } \
+ part { name: "edge-area-"name_; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ min: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ align: ax 0.5; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: rx 0.0; \
+ to: "pop"; \
+ } \
+ rel2 { \
+ relative: rx 1.0; \
+ to: "pop"; \
+ } \
+ } \
+ } \
+ part { name: "edge-drag-"name_; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ dragable { \
+ x: 0 0 0; \
+ y: 1 1 0; \
+ confine: "edge-area-"name_; \
+ } \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ min: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ rel1.to: "edge-area-"name_; \
+ rel2.to: "edge-area-"name_; \
+ } \
+ } \
+ part { name: "edge-img-"name_; \
+ scale: 1; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ description { state: "default" 0.0; \
+ min: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ max: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ align: ax 0.5; \
+ fixed: 1 1; \
+ rel1.to: "edge-drag-"name_; \
+ rel2.to: "edge-drag-"name_; \
+ image.normal: "tooltip-edge-"name_"-tip.png"; \
+ } \
+ }
+ TT_EDGE_VERT("left", 0, 0);
+ TT_EDGE_VERT("right", 1, 1);
+ #undef TT_EDGE_VERT
+
+ #define TT_EDGE_HORIZ(name_, ry, ay) \
+ part { name: "clipper-edge-"name_; \
+ type: RECT; \
+ scale: 1; \
+ clip_to: "clipper"; \
+ description { state: "default" 0.0; \
+ color: 255 255 255 0; \
+ visible: 0; \
+ min: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ align: 0.5 ay; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: 0.0 ry; \
+ to: "pop"; \
+ } \
+ rel2 { \
+ relative: 1.0 ry; \
+ to: "pop"; \
+ } \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ visible: 1; \
+ } \
+ } \
+ part { name: "edge-area-"name_; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ min: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ align: 0.5 ay; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: 0.0 ry; \
+ to: "pop"; \
+ } \
+ rel2 { \
+ relative: 1.0 ry; \
+ to: "pop"; \
+ } \
+ } \
+ } \
+ part { name: "edge-drag-"name_; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ dragable { \
+ x: 1 1 0; \
+ y: 0 0 0; \
+ confine: "edge-area-"name_; \
+ } \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ min: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ rel1.to: "edge-area-"name_; \
+ rel2.to: "edge-area-"name_; \
+ } \
+ } \
+ part { name: "edge-img-"name_; \
+ scale: 1; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ description { state: "default" 0.0; \
+ min: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ max: TOOLTIP_ARROW_MIN_WIDTH_INC TOOLTIP_ARROW_MIN_HEIGHT_INC; \
+ align: 0.5 ay; \
+ fixed: 1 1; \
+ rel1.to: "edge-drag-"name_; \
+ rel2.to: "edge-drag-"name_; \
+ image.normal: "tooltip-edge-"name_"-tip.png"; \
+ } \
+ }
+ TT_EDGE_HORIZ("top", 0, 0);
+ TT_EDGE_HORIZ("bottom", 1, 1);
+ #undef TT_EDGE_HORIZ
+
+ part { name: "clipper_content";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 255 255 255 0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clipper_content";
+ description { state: "default" 0.0; }
+ }
+ programs {
+ program {
+ name: "show0";
+ signal: "elm,action,show";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "hide0";
+ target: "hide1";
+ target: "hide2";
+ target: "hide3";
+ after: "show1";
+ after: "show2";
+ }
+ program {
+ name: "show1";
+ action: STATE_SET "visible" 0.0;
+ transition: LINEAR 0.15;
+ target: "clipper";
+ }
+ program {
+ name: "show2";
+ in: 0.1 0.0;
+ action: STATE_SET "visible" 0.0;
+ transition: LINEAR 0.15;
+ target: "clipper_content";
+ }
+
+ program {
+ name: "hide0";
+ signal: "elm,action,hide";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "show0";
+ target: "show1";
+ target: "show2";
+ after: "hide1";
+ after: "hide2";
+ after: "hide3";
+ }
+ program {
+ name: "hide1";
+ script {
+ hide_corners();
+ hide_edges();
+ }
+ }
+ program {
+ name: "hide2";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.1;
+ target: "clipper_content";
+ }
+ program {
+ name: "hide3";
+ in: 0.1 0.0;
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.1;
+ target: "clipper";
+ }
+ }
+ }
+}
+group { name: "elm/tooltip/base/transparent";
+ data {
+ item: "pad_x" "10";
+ item: "pad_y" "10";
+ item: "transparent" "enabled";
+ }
+ parts {
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0; }
+ }
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
diff --git a/mobile/widgets/win.edc b/mobile/widgets/win.edc
index ccd9abe3..35579e25 100644
--- a/mobile/widgets/win.edc
+++ b/mobile/widgets/win.edc
@@ -99,3 +99,97 @@ group { name: "elm/win/base/default";
//
}
}
+
+group { name: "elm/win/inwin/default";
+ images {
+ image: "toast_popup.png" COMP;
+ }
+ parts {
+ part { name: "base";
+ type: RECT;
+ scale: 1;
+ mouse_events: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 64;
+ }
+ }
+ part { name: "pop";
+ scale: 1;
+ mouse_events: 1;
+ description { state: "default" 0.0;
+ image {
+ normal: "toast_popup.png";
+ border: INWIN_BG_BORDER_INC;
+ border_scale: 1;
+ }
+ }
+ }
+ part { name: "elm.content.padding.left";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: INWIN_PADDING_CONTENT_SIZE_INC INWIN_PADDING_CONTENT_SIZE_INC;
+ fixed: 1 1;
+ align: 0 0;
+ rel1 {
+ to: "pop";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "pop";
+ relative: 0.0 0.0;
+ }
+ }
+ }
+ part { name: "elm.content.padding.right";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: INWIN_PADDING_CONTENT_SIZE_INC INWIN_PADDING_CONTENT_SIZE_INC;
+ fixed: 1 1;
+ align: 1 1;
+ rel1 {
+ to: "pop";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to: "pop";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to: "elm.content.padding.left";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to: "elm.content.padding.right";
+ relative: 0.0 0.0;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "show";
+ signal: "elm,action,show";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "base";
+ }
+ program { name: "hide";
+ signal: "elm,action,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ }
+}
+