TizenRefApp-8522 [Call UI] Refactor edc files structure 49/130449/2
authorIgor Olshevskyi <i.olshevskyi@samsung.com>
Thu, 18 May 2017 10:48:52 +0000 (13:48 +0300)
committerIgor Olshevskyi <i.olshevskyi@samsung.com>
Mon, 22 May 2017 09:51:45 +0000 (12:51 +0300)
Change-Id: Ia9d28fb8beedc03de389cc2a019a246ad7bba21a

edc/accept_reject.edc [new file with mode: 0644]
edc/indicator.edc
edc/layouts.edc [deleted file]
edc/main_ly.edc [new file with mode: 0644]
res/edje/theme.edc

diff --git a/edc/accept_reject.edc b/edc/accept_reject.edc
new file mode 100644 (file)
index 0000000..b590692
--- /dev/null
@@ -0,0 +1,124 @@
+/*
+ * Copyright 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#define CU_BTN_PADDING_LR 13
+#define CU_BTN_WH         54
+#define CU_BTN_FULL_WH    480
+
+#define CU_BTN_HIDE_ANIM_TIME  0.2
+
+group { "elm/layout/callui/accept_reject";
+       parts {
+               spacer { "spacer.left";
+                       scale;
+                       desc { "default";
+                               fixed: 1 0;
+                               align: 1.0 0.5;
+                               rel2.relative: 0.0 1.0;
+                       }
+                       desc { "hidden";
+                               inherit: "default";
+                               min: (CU_BTN_PADDING_LR+CU_BTN_WH) 0;
+                       }
+               }
+               spacer { "spacer.right";
+                       scale;
+                       desc { "default";
+                               fixed: 1 0;
+                               align: 0.0 0.5;
+                               rel1.relative: 1.0 0.0;
+                       }
+                       desc { "hidden";
+                               inherit: "default";
+                               min: (CU_BTN_PADDING_LR+CU_BTN_WH) 0;
+                       }
+               }
+               spacer { "spacer.reject.left";
+                       scale;
+                       desc { "default";
+                               fixed: 1 0;
+                               min: (CU_BTN_PADDING_LR+CU_BTN_WH/2) 0;
+                               align: 0.0 0.5;
+                               rel1 { relative: 0.0 0.0; to_x: "spacer.left"; }
+                               rel2 { relative: 0.0 1.0; to_x: "spacer.left"; }
+                       }
+               }
+               swallow { "swl.button_accept";
+                       scale;
+                       desc { "default";
+                               fixed: 1 1;
+                               min: CU_BTN_FULL_WH CU_BTN_FULL_WH;
+                               rel1 { relative: 1.0 0.5; to_x: "spacer.reject.left"; }
+                               rel2 { relative: 1.0 0.5; to_x: "spacer.reject.left"; }
+                       }
+               }
+               spacer { "spacer.accept.right";
+                       scale;
+                       desc { "default";
+                               fixed: 1 0;
+                               min: (CU_BTN_PADDING_LR+CU_BTN_WH/2) 0;
+                               align: 1.0 0.5;
+                               rel1 { relative: 1.0 0.0; to_x: "spacer.right"; }
+                               rel2 { relative: 1.0 1.0; to_x: "spacer.right"; }
+                       }
+               }
+               swallow { "swl.button_reject";
+                       scale;
+                       desc { "default";
+                               fixed: 1 1;
+                               min: CU_BTN_FULL_WH CU_BTN_FULL_WH;
+                               rel1 { relative: 0.0 0.5; to_x: "spacer.accept.right"; }
+                               rel2 { relative: 0.0 0.5; to_x: "spacer.accept.right"; }
+                       }
+               }
+       }
+       programs {
+               program {
+                       signal: "accept,show";
+                       source: "*";
+                       action: STATE_SET "default";
+                       target: "spacer.left";
+                       transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
+               }
+               program {
+                       signal: "accept,hide";
+                       source: "*";
+                       action: STATE_SET "hidden";
+                       target: "spacer.left";
+                       transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
+               }
+               program {
+                       signal: "reject,show";
+                       source: "*";
+                       action: STATE_SET "default";
+                       target: "spacer.right";
+                       transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
+               }
+               program {
+                       signal: "reject,hide";
+                       source: "*";
+                       action: STATE_SET "hidden";
+                       target: "spacer.right";
+                       transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
+               }
+               program {
+                       signal: "reset";
+                       source: "*";
+                       action: STATE_SET "default";
+                       targets: "spacer.right" "spacer.left";
+               }
+       }
+}
\ No newline at end of file
index 140b162062262b3ae7e181c2622f6034319b345d..9fa4127c741a41aed0711ecee6068d2e85b2b804 100644 (file)
 #define CU_RSSI_IMAGE_DIR  CU_INDI_ICONS_DIR"/4level"
 #define CU_BATT_IMAGE_DIR  CU_INDI_ICONS_DIR"/Battery"
 
+#define CU_BATT_ICON_H 32
+#define CU_BATT_ICON_W 22
+
+#define CU_INDI_ICON_H 26
+#define CU_INDI_ICON_W 24
+
+#define CU_SWL_CONN_COORD_X 104
+#define CU_SWL_CONN_COORD_Y 31
+
+#define CU_SWL_RSSI_COORD_X 135
+#define CU_SWL_RSSI_COORD_Y 20
+
+#define CU_SWL_BATT_COORD_X 169
+#define CU_SWL_BATT_COORD_Y 14
+
+#define CU_SWL_SIM_COORD_X 201
+#define CU_SWL_SIM_COORD_Y 20
+
+#define CU_SWL_HD_CALL_COORD_X 232
+#define CU_SWL_HD_CALL_COORD_Y 31
+
+#define CU_SWL_CONN_REL1 CU_REL_W(CU_SWL_CONN_COORD_X) CU_REL_H(CU_SWL_CONN_COORD_Y)
+#define CU_SWL_CONN_REL2 CU_REL_W((CU_SWL_CONN_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_CONN_COORD_Y+CU_INDI_ICON_H))
+
+#define CU_SWL_RSSI_REL1 CU_REL_W(CU_SWL_RSSI_COORD_X) CU_REL_H(CU_SWL_RSSI_COORD_Y)
+#define CU_SWL_RSSI_REL2 CU_REL_W((CU_SWL_RSSI_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_RSSI_COORD_Y+CU_INDI_ICON_H))
+
+#define CU_SWL_BATTERY_REL1 CU_REL_W(CU_SWL_BATT_COORD_X) CU_REL_H(CU_SWL_BATT_COORD_Y)
+#define CU_SWL_BATTERY_REL2 CU_REL_W((CU_SWL_BATT_COORD_X+CU_BATT_ICON_W)) CU_REL_H((CU_SWL_BATT_COORD_Y+CU_BATT_ICON_H))
+
+#define CU_SWL_SIM_REL1 CU_REL_W(CU_SWL_SIM_COORD_X) CU_REL_H(CU_SWL_SIM_COORD_Y)
+#define CU_SWL_SIM_REL2 CU_REL_W((CU_SWL_SIM_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_SIM_COORD_Y+CU_INDI_ICON_H))
+
+#define CU_SWL_HD_CALL_REL1 CU_REL_W(CU_SWL_HD_CALL_COORD_X) CU_REL_H(CU_SWL_HD_CALL_COORD_Y)
+#define CU_SWL_HD_CALL_REL2 CU_REL_W((CU_SWL_HD_CALL_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_HD_CALL_COORD_Y+CU_INDI_ICON_H))
+
+// Indicator main layout
+
+group { "elm/layout/callui/indicator";
+       parts {
+               spacer { "bg";
+                       scale;
+                       desc { "default";
+                       }
+               }
+               swallow { "swl.connection";
+                       scale;
+                       desc { "default";
+                               rel1 { relative: CU_SWL_CONN_REL1; to: "bg"; }
+                               rel2 { relative: CU_SWL_CONN_REL2; to: "bg"; }
+                       }
+               }
+               swallow { "swl.rssi";
+                       scale;
+                       desc { "default";
+                               rel1 { relative: CU_SWL_RSSI_REL1; to: "bg"; }
+                               rel2 { relative: CU_SWL_RSSI_REL2; to: "bg"; }
+                       }
+               }
+               swallow { "swl.battery";
+                       scale;
+                       desc { "default";
+                               rel1 { relative: CU_SWL_BATTERY_REL1; to: "bg"; }
+                               rel2 { relative: CU_SWL_BATTERY_REL2; to: "bg"; }
+                       }
+               }
+               swallow { "swl.sim";
+                       scale;
+                       desc { "default";
+                               rel1 { relative: CU_SWL_SIM_REL1; to: "bg"; }
+                               rel2 { relative: CU_SWL_SIM_REL2; to: "bg"; }
+                       }
+               }
+               swallow { "swl.hd_voice";
+                       scale;
+                       desc { "default";
+                               rel1 { relative: CU_SWL_HD_CALL_REL1; to: "bg"; }
+                               rel2 { relative: CU_SWL_HD_CALL_REL2; to: "bg"; }
+                       }
+               }
+       }
+}
+
 // Connection
 
 #define CU_DESC_CONN_IMAGE(_value) \
diff --git a/edc/layouts.edc b/edc/layouts.edc
deleted file mode 100644 (file)
index 99443fc..0000000
+++ /dev/null
@@ -1,230 +0,0 @@
-/*
- * Copyright 2017 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#define CU_BTN_PADDING_LR 13
-#define CU_BTN_WH         54
-#define CU_BTN_FULL_WH    480
-
-#define CU_BTN_HIDE_ANIM_TIME  0.2
-
-#define CU_SWL_CONN_COORD_X 104
-#define CU_SWL_CONN_COORD_Y 31
-
-#define CU_SWL_RSSI_COORD_X 135
-#define CU_SWL_RSSI_COORD_Y 20
-
-#define CU_SWL_BATT_COORD_X 169
-#define CU_SWL_BATT_COORD_Y 14
-
-#define CU_SWL_SIM_COORD_X 201
-#define CU_SWL_SIM_COORD_Y 20
-
-#define CU_SWL_HD_CALL_COORD_X 232
-#define CU_SWL_HD_CALL_COORD_Y 31
-
-#define CU_SWL_CONN_REL1 CU_REL_W(CU_SWL_CONN_COORD_X) CU_REL_H(CU_SWL_CONN_COORD_Y)
-#define CU_SWL_CONN_REL2 CU_REL_W((CU_SWL_CONN_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_CONN_COORD_Y+CU_INDI_ICON_H))
-
-#define CU_SWL_RSSI_REL1 CU_REL_W(CU_SWL_RSSI_COORD_X) CU_REL_H(CU_SWL_RSSI_COORD_Y)
-#define CU_SWL_RSSI_REL2 CU_REL_W((CU_SWL_RSSI_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_RSSI_COORD_Y+CU_INDI_ICON_H))
-
-#define CU_SWL_BATTERY_REL1 CU_REL_W(CU_SWL_BATT_COORD_X) CU_REL_H(CU_SWL_BATT_COORD_Y)
-#define CU_SWL_BATTERY_REL2 CU_REL_W((CU_SWL_BATT_COORD_X+CU_BATT_ICON_W)) CU_REL_H((CU_SWL_BATT_COORD_Y+CU_BATT_ICON_H))
-
-#define CU_SWL_SIM_REL1 CU_REL_W(CU_SWL_SIM_COORD_X) CU_REL_H(CU_SWL_SIM_COORD_Y)
-#define CU_SWL_SIM_REL2 CU_REL_W((CU_SWL_SIM_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_SIM_COORD_Y+CU_INDI_ICON_H))
-
-#define CU_SWL_HD_CALL_REL1 CU_REL_W(CU_SWL_HD_CALL_COORD_X) CU_REL_H(CU_SWL_HD_CALL_COORD_Y)
-#define CU_SWL_HD_CALL_REL2 CU_REL_W((CU_SWL_HD_CALL_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_HD_CALL_COORD_Y+CU_INDI_ICON_H))
-
-
-group { "elm/layout/callui/main";
-       parts {
-               swallow { "swl.call_info";
-                       scale;
-                       desc { "default";
-                       }
-               }
-               swallow { "swl.indicator";
-                       scale;
-                       desc { "default";
-                       }
-               }
-               swallow { "swl.rm"
-                       scale;
-                       desc { "default";
-                       }
-               }
-               swallow { "swl.accept_reject";
-                       scale;
-                       desc { "default";
-                       }
-               }
-               swallow { "swl.overlay";
-                       scale;
-                       desc { "default";
-                       }
-               }
-       }
-}
-
-group { "elm/layout/callui/accept_reject";
-       parts {
-               spacer { "spacer.left";
-                       scale;
-                       desc { "default";
-                               fixed: 1 0;
-                               align: 1.0 0.5;
-                               rel2.relative: 0.0 1.0;
-                       }
-                       desc { "hidden";
-                               inherit: "default";
-                               min: (CU_BTN_PADDING_LR+CU_BTN_WH) 0;
-                       }
-               }
-               spacer { "spacer.right";
-                       scale;
-                       desc { "default";
-                               fixed: 1 0;
-                               align: 0.0 0.5;
-                               rel1.relative: 1.0 0.0;
-                       }
-                       desc { "hidden";
-                               inherit: "default";
-                               min: (CU_BTN_PADDING_LR+CU_BTN_WH) 0;
-                       }
-               }
-               spacer { "spacer.reject.left";
-                       scale;
-                       desc { "default";
-                               fixed: 1 0;
-                               min: (CU_BTN_PADDING_LR+CU_BTN_WH/2) 0;
-                               align: 0.0 0.5;
-                               rel1 { relative: 0.0 0.0; to_x: "spacer.left"; }
-                               rel2 { relative: 0.0 1.0; to_x: "spacer.left"; }
-                       }
-               }
-               swallow { "swl.button_accept";
-                       scale;
-                       desc { "default";
-                               fixed: 1 1;
-                               min: CU_BTN_FULL_WH CU_BTN_FULL_WH;
-                               rel1 { relative: 1.0 0.5; to_x: "spacer.reject.left"; }
-                               rel2 { relative: 1.0 0.5; to_x: "spacer.reject.left"; }
-                       }
-               }
-               spacer { "spacer.accept.right";
-                       scale;
-                       desc { "default";
-                               fixed: 1 0;
-                               min: (CU_BTN_PADDING_LR+CU_BTN_WH/2) 0;
-                               align: 1.0 0.5;
-                               rel1 { relative: 1.0 0.0; to_x: "spacer.right"; }
-                               rel2 { relative: 1.0 1.0; to_x: "spacer.right"; }
-                       }
-               }
-               swallow { "swl.button_reject";
-                       scale;
-                       desc { "default";
-                               fixed: 1 1;
-                               min: CU_BTN_FULL_WH CU_BTN_FULL_WH;
-                               rel1 { relative: 0.0 0.5; to_x: "spacer.accept.right"; }
-                               rel2 { relative: 0.0 0.5; to_x: "spacer.accept.right"; }
-                       }
-               }
-       }
-       programs {
-               program {
-                       signal: "accept,show";
-                       source: "*";
-                       action: STATE_SET "default";
-                       target: "spacer.left";
-                       transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
-               }
-               program {
-                       signal: "accept,hide";
-                       source: "*";
-                       action: STATE_SET "hidden";
-                       target: "spacer.left";
-                       transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
-               }
-               program {
-                       signal: "reject,show";
-                       source: "*";
-                       action: STATE_SET "default";
-                       target: "spacer.right";
-                       transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
-               }
-               program {
-                       signal: "reject,hide";
-                       source: "*";
-                       action: STATE_SET "hidden";
-                       target: "spacer.right";
-                       transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
-               }
-               program {
-                       signal: "reset";
-                       source: "*";
-                       action: STATE_SET "default";
-                       targets: "spacer.right" "spacer.left";
-               }
-       }
-}
-
-group { "elm/layout/callui/indicator";
-       parts {
-               spacer { "bg";
-                       scale;
-                       desc { "default";
-                       }
-               }
-               swallow { "swl.connection";
-                       scale;
-                       desc { "default";
-                               rel1 { relative: CU_SWL_CONN_REL1; to: "bg"; }
-                               rel2 { relative: CU_SWL_CONN_REL2; to: "bg"; }
-                       }
-               }
-               swallow { "swl.rssi";
-                       scale;
-                       desc { "default";
-                               rel1 { relative: CU_SWL_RSSI_REL1; to: "bg"; }
-                               rel2 { relative: CU_SWL_RSSI_REL2; to: "bg"; }
-                       }
-               }
-               swallow { "swl.battery";
-                       scale;
-                       desc { "default";
-                               rel1 { relative: CU_SWL_BATTERY_REL1; to: "bg"; }
-                               rel2 { relative: CU_SWL_BATTERY_REL2; to: "bg"; }
-                       }
-               }
-               swallow { "swl.sim";
-                       scale;
-                       desc { "default";
-                               rel1 { relative: CU_SWL_SIM_REL1; to: "bg"; }
-                               rel2 { relative: CU_SWL_SIM_REL2; to: "bg"; }
-                       }
-               }
-               swallow { "swl.hd_voice";
-                       scale;
-                       desc { "default";
-                               rel1 { relative: CU_SWL_HD_CALL_REL1; to: "bg"; }
-                               rel2 { relative: CU_SWL_HD_CALL_REL2; to: "bg"; }
-                       }
-               }
-       }
-}
diff --git a/edc/main_ly.edc b/edc/main_ly.edc
new file mode 100644 (file)
index 0000000..d39eeae
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+group { "elm/layout/callui/main";
+       parts {
+               swallow { "swl.call_info";
+                       scale;
+                       desc { "default";
+                       }
+               }
+               swallow { "swl.indicator";
+                       scale;
+                       desc { "default";
+                       }
+               }
+               swallow { "swl.rm"
+                       scale;
+                       desc { "default";
+                       }
+               }
+               swallow { "swl.accept_reject";
+                       scale;
+                       desc { "default";
+                       }
+               }
+               swallow { "swl.overlay";
+                       scale;
+                       desc { "default";
+                       }
+               }
+       }
+}
+
index 33a454389a376b3183238aebc33996cc762d8586..75b394d1448fa7c8330d744e941ddea2d55527bf 100644 (file)
 #define CU_REL_W(val) (val/CU_WIN_W)
 #define CU_REL_H(val) (val/CU_WIN_H)
 
-#define CU_BATT_ICON_H 32
-#define CU_BATT_ICON_W 22
-
-#define CU_INDI_ICON_H 26
-#define CU_INDI_ICON_W 24
-
 collections {
        base_scale: 1.3;
 
@@ -40,9 +34,10 @@ collections {
        }
 
        #include "../../edc/color_classes.edc"
-       #include "../../edc/layouts.edc"
        #include "../../edc/buttons.edc"
 
+       #include "../../edc/main_ly.edc"
+       #include "../../edc/accept_reject.edc"
        #include "../../edc/indicator.edc"
        #include "../../edc/call_info.edc"
        #include "../../edc/reject_msg.edc"