[bubble] add callerid part to entry-bubble style
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Thu, 22 Dec 2011 05:12:07 +0000 (14:12 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Thu, 22 Dec 2011 05:12:07 +0000 (14:12 +0900)
themes/inc/tizen-black-hd-inc.edc
themes/inc/tizen-black-inc.edc
themes/inc/tizen-hd-inc.edc
themes/inc/tizen-inc.edc
themes/widgets/entry.edc

index 9b5c0bf..8eeb2c5 100644 (file)
 #define ENTRY_BUBBLE_IX_PAD 22
 #define ENTRY_BUBBLE_Y_PAD 15
 #define ENTRY_BUBBLE_BOTTOM_PAD 22
+#define ENTRY_BUBBLE_CALLERID_PAD 16
+#define ENTRY_BUBBLE_CALLERID_WIDTH 60
+#define ENTRY_BUBBLE_CALLERID_HEIGHT 60
 #define ENTRY_BUBBLE_DATE_AREA_TEXT_SIZE_INC 26
 
 #define PANES_DEFAULT_FIXED_SEPERATOR_NORMAL_COLOR_INC 118 118 118 255
index a9cf466..ff6f63b 100644 (file)
 #define ENTRY_BUBBLE_IX_PAD 14
 #define ENTRY_BUBBLE_Y_PAD 10
 #define ENTRY_BUBBLE_BOTTOM_PAD 15
+#define ENTRY_BUBBLE_CALLERID_PAD 10
+#define ENTRY_BUBBLE_CALLERID_WIDTH 37
+#define ENTRY_BUBBLE_CALLERID_HEIGHT 37
 #define ENTRY_BUBBLE_DATE_AREA_TEXT_SIZE_INC 16
 
 #define PANES_DEFAULT_FIXED_SEPERATOR_NORMAL_COLOR_INC 118 118 118 255
index f5e9a2d..b457c03 100644 (file)
 #define ENTRY_BUBBLE_IX_PAD 22
 #define ENTRY_BUBBLE_Y_PAD 15
 #define ENTRY_BUBBLE_BOTTOM_PAD 22
+#define ENTRY_BUBBLE_CALLERID_PAD 16
+#define ENTRY_BUBBLE_CALLERID_WIDTH 60
+#define ENTRY_BUBBLE_CALLERID_HEIGHT 60
 #define ENTRY_BUBBLE_DATE_AREA_TEXT_SIZE_INC 26
 
 #define PANES_DEFAULT_FIXED_SEPERATOR_NORMAL_COLOR_INC 219 219 219 255
index 7d52e4b..207468d 100644 (file)
 #define ENTRY_BUBBLE_Y_PAD 10
 // Y_PAD + bottom shadow(5) = 15
 #define ENTRY_BUBBLE_BOTTOM_PAD 15
-#define ENTRY_BUBBLE_DATE_AREA_TEXT_SIZE_INC 16
+#define ENTRY_BUBBLE_CALLERID_PAD 10
+#define ENTRY_BUBBLE_CALLERID_WIDTH 37
+#define ENTRY_BUBBLE_CALLERID_HEIGHT 37
+#define ENTRY_BUBBLE_DATE_AREA_TEXT_SIZE_INC 10
 
 #define PANES_DEFAULT_FIXED_SEPERATOR_NORMAL_COLOR_INC 219 219 219 255
 
index 4da4dda..c5d0641 100644 (file)
@@ -2147,9 +2147,9 @@ group { name: "elm/entry/base-password/popup";
            source5: "elm/entry/anchor/default"; // anchor under
 //         source6: "X"; // anchor over
            description { state: "default" 0.0;
-              fixed: 1 0;
+               fixed: 1 0;
                align: 0.0 0.0;
-               rel1 { relative: 1.0 1.0; to: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
+               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
                rel2 { relative: 1.0 0.0; to_y: "elm.rect.bottom.pad"; }
               text {
                  style: "entry_textblock_style";
@@ -2236,6 +2236,19 @@ group { name: "elm/entry/base-password/popup";
            }
          }
          part {
+           name: "elm.rect.topleft.pad";
+           type: RECT;
+           scale: 1;
+           description {
+              state: "default" 0.0;
+              min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
+              max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
+              fixed: 1 1;
+              align: 0.0 0.0;
+              visible: 0;
+           }
+         }
+         part {
            name: "elm.rect.bottom.pad";
            type: RECT;
            scale: 1;
@@ -2298,6 +2311,40 @@ group { name: "elm/entry/base-password/popup";
               rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
            }
          }
+         part {
+            name: "elm.swallow.callerid";
+            type: SWALLOW;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               min: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
+               max: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
+               fixed: 1 1;
+               align: 0.0 0.0;
+               visible: 0;
+               rel1 { relative: 1.0 1.0; to: "elm.rect.topleft.pad"; to_y: "elm.rect.topleft.pad"; }
+               rel2 { relative: 1.0 0.0; to_y: "elm.rect.bottom.pad"; }
+            }
+            description { state: "callerid_on" 0.0;
+               inherit: "default" 0.0;
+               visible: 1;
+            }
+         }
+         part {
+            name: "elm.rect.callerid.pad";
+            type: RECT;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
+               max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
+               fixed: 1 1;
+               align: 0.0 0.0;
+               visible: 0;
+               rel1 { relative: 1.0 1.0; to: "elm.swallow.callerid"; to_y: "elm.rect.top.pad"; }
+               rel2 { relative: 1.0 0.0; to_y: "elm.rect.bottom.pad"; }
+            }
+         }
         part { name: "elm.text";
            type: TEXTBLOCK;
            mouse_events: 1;
@@ -2321,13 +2368,18 @@ group { name: "elm/entry/base-password/popup";
                  min: 0 1;
                   max: 1 0;
               }
-           }
-           description { state: "disabled" 0.0;
+            }
+            description { state: "callerid_on" 0.0;
                inherit: "default" 0.0;
-              text {
-                 style: "entry_textblock_disabled_style";
-              }
-           }
+               rel1 { relative: 1.0 1.0; to_x: "elm.rect.callerid.pad"; to_y: "elm.rect.subject.line"; }
+               rel2 { relative: 1.0 1.0; to_y: "elm.rect.subject.line"; }
+            }
+            description { state: "disabled" 0.0;
+               inherit: "default" 0.0;
+               text {
+                  style: "entry_textblock_disabled_style";
+               }
+            }
         }
          part {
            name: "elm.swallow.end";
@@ -2359,6 +2411,20 @@ group { name: "elm/entry/base-password/popup";
            action: STATE_SET "default" 0.0;
            target: "elm.text";
         }
+        program { name: "go_callerid_on";
+           signal: "elm,state,callerid,enabled";
+           source: "elm";
+           action: STATE_SET "callerid_on" 0.0;
+           target: "elm.swallow.callerid";
+           target: "elm.text";
+        }
+        program { name: "go_callerid_off";
+           signal: "elm,state,callerid,disabled";
+           source: "elm";
+           action: STATE_SET "default" 0.0;
+           target: "elm.swallow.callerid";
+           target: "elm.text";
+        }
       }
    }
 
@@ -2656,6 +2722,19 @@ group { name: "elm/entry/base-password/popup";
            }
         }
          part {
+           name: "elm.rect.topright.pad";
+           type: RECT;
+           scale: 1;
+           description {
+              state: "default" 0.0;
+              min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
+              max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
+              align: 1.0 0.0;
+              visible: 0;
+              rel1.relative: 1.0 0.0;
+           }
+         }
+         part {
            name: "elm.rect.top.pad";
            type: RECT;
            scale: 1;
@@ -2731,6 +2810,38 @@ group { name: "elm/entry/base-password/popup";
               rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
            }
          }
+         part {
+            name: "elm.swallow.callerid";
+            type: SWALLOW;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               min: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
+               max: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
+               align: 1.0 0.0;
+               visible: 0;
+               rel1 { relative: 0.0 1.0; to_x: "elm.rect.topright.pad"; to_y: "elm.rect.topright.pad"; }
+               rel2 { relative: 0.0 1.0; to_x: "elm.rect.topright.pad"; to_y: "elm.rect.bottom.pad"; }
+            }
+            description { state: "callerid_on" 0.0;
+               inherit: "default" 0.0;
+               visible: 1;
+            }
+         }
+         part {
+            name: "elm.rect.callerid.pad";
+            type: RECT;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
+               max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
+               align: 1.0 0.0;
+               visible: 0;
+               rel1 { relative: 0.0 1.0; to_x: "elm.swallow.callerid"; to_y: "elm.rect.topright.pad"; }
+               rel2 { relative: 0.0 1.0; to_x: "elm.swallow.callerid"; to_y: "elm.rect.bottom.pad"; }
+           }
+         }
         part { name: "elm.text";
            type: TEXTBLOCK;
            mouse_events: 1;
@@ -2755,6 +2866,11 @@ group { name: "elm/entry/base-password/popup";
                   max: 1 0;
               }
            }
+           description { state: "callerid_on" 0.0;
+               inherit: "default" 0.0;
+               rel1 { relative: 0.0 1.0; to_y: "elm.rect.subject.line";}
+               rel2 { relative: 0.0 1.0; to_x: "elm.rect.callerid.pad"; to_y: "elm.rect.subject.line"; }
+           }
            description { state: "disabled" 0.0;
                inherit: "default" 0.0;
               text {
@@ -2793,6 +2909,20 @@ group { name: "elm/entry/base-password/popup";
            action: STATE_SET "default" 0.0;
            target: "elm.text";
         }
+        program { name: "go_callerid_on";
+           signal: "elm,state,callerid,enabled";
+           source: "elm";
+           action: STATE_SET "callerid_on" 0.0;
+           target: "elm.swallow.callerid";
+           target: "elm.text";
+        }
+        program { name: "go_callerid_off";
+           signal: "elm,state,callerid,disabled";
+           source: "elm";
+           action: STATE_SET "default" 0.0;
+           target: "elm.swallow.callerid";
+           target: "elm.text";
+        }
       }
    }