summaryrefslogtreecommitdiff
path: root/edc/cam_toolbar_layout_inc.edc
diff options
context:
space:
mode:
Diffstat (limited to 'edc/cam_toolbar_layout_inc.edc')
-rwxr-xr-xedc/cam_toolbar_layout_inc.edc353
1 files changed, 353 insertions, 0 deletions
diff --git a/edc/cam_toolbar_layout_inc.edc b/edc/cam_toolbar_layout_inc.edc
new file mode 100755
index 0000000..ae6e1c8
--- /dev/null
+++ b/edc/cam_toolbar_layout_inc.edc
@@ -0,0 +1,353 @@
+/*
+ * Copyright 2012 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.
+ */
+
+
+#ifndef __H_EDC_CAM_TOOLBAR_LAYOUT_INC_EDC_H__
+#define __H_EDC_CAM_TOOLBAR_LAYOUT_INC_EDC_H__
+
+#define SETTING_TOOLBAR_W 1156
+#define SETTING_TOOLBAR_H 116
+
+#define TOOLBAR_ITEM_W 86
+#define TOOLBAR_ITEM_H 86
+
+#define TOOLBAR_0_X 38
+#define TOOLBAR_0_Y 594
+
+#define TOOLBAR_1_X 38
+#define TOOLBAR_1_Y 454
+
+#define TOOLBAR_2_X 38
+#define TOOLBAR_2_Y 317
+
+#define TOOLBAR_3_X 38
+#define TOOLBAR_3_Y 180
+
+#define TOOLBAR_4_X 38
+#define TOOLBAR_4_Y 40
+
+#define SHUTTER_X 1146
+#define SHUTTER_Y 194
+#define SHUTTER_W 108
+#define SHUTTER_H 214
+
+#define BACKBTN_X 1146
+#define BACKBTN_Y 18
+#define BACKBTN_W 108
+#define BACKBTN_H 108
+
+#define QUICKVIEW_X 1146
+#define QUICKVIEW_Y 604
+#define QUICKVIEW_W 108
+#define QUICKVIEW_H 108
+
+#define RECORDINGBTN_X 1146
+#define RECORDINGBTN_Y 418
+#define RECORDINGBTN_W 108
+#define RECORDINGBTN_H 108
+
+#define REC_STOP_BTN_X 1146
+#define REC_STOP_BTN_Y 594
+#define REC_STOP_BTN_W 108
+#define REC_STOP_BTN_H 108
+
+#define CAF_BUTTON_X 38
+#define CAF_BUTTON_Y 606
+#define CAF_BUTTON_W 87
+#define CAF_BUTTON_H 88
+
+#define CAMERA_BUTTON_X 38
+#define CAMERA_BUTTON_Y 65
+#define CAMERA_BUTTON_W 61
+#define CAMERA_BUTTON_H 61
+#define CAMCORDER_BUTTON_X 38
+#define CAMCORDER_BUTTON_Y 109
+#define CAMCORDER_BUTTON_W 61
+#define CAMCORDER_BUTTON_H 61
+#define CAMERA_ICON_X 38
+#define CAMERA_ICON_Y 10
+#define CAMERA_ICON_W 56
+#define CAMERA_ICON_H 48
+
+images {
+ /*item_button*/
+ image: BUTTON_BG_NORMAL_IMAGE COMP;
+ image: BUTTON_BG_PRESS_IMAGE COMP;
+
+ image: SNAPSHOT_PRESS_IMAGE COMP;
+ image: SNAPSHOT_NORMAL_IMAGE COMP;
+ image: LEFT_TOOLBAR_BG_IMAGE COMP;
+ image: RIGHT_TOOLBAR_BG_IMAGE COMP;
+
+ image: CAF_BUTTON_NORMAL_IMAGE COMP;
+ image: CAF_BUTTON_PRESS_IMAGE COMP;
+}
+
+#define TOOLBAR_BACKGROUND_IMAGE(part_name, x, y, w, h, img) \
+ part { \
+ name: part_name; \
+ type: IMAGE; \
+ scale: 1;\
+ description { \
+ state: "default" 0.0;\
+ rel1 { relative: (x)/MAIN_W (y)/MAIN_H; } \
+ rel2 { relative: (x+w)/MAIN_W (y+h)/MAIN_H; } \
+ image { normal: img; } \
+ }\
+ description{ \
+ state: "hide" 0.0; \
+ inherit:"default" 0.0; \
+ visible: 0; \
+ } \
+ }
+
+#define TOOLBAR_ITEM_BUTTON_WITH_BG(button_name, x, y, bg_w, bg_h) \
+ part { name: button_name; \
+ type: IMAGE; \
+ mouse_events: 1; \
+ scale: 1;\
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: (x)/(bg_w) (y)/(bg_h); offset: 0 0;} \
+ rel2 { relative: (x+TOOLBAR_ITEM_W)/(bg_w) (y+TOOLBAR_ITEM_H)/(bg_h); offset: 0 0;} \
+ visible: 0; \
+ } \
+ description { \
+ state: "normal" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ image { normal: BUTTON_BG_NORMAL_IMAGE; } \
+ } \
+ description { \
+ state: "press" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ image { normal: BUTTON_BG_PRESS_IMAGE; } \
+ } \
+ description { \
+ state: "dim" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ }
+
+#define TOOLBAR_ITEM_SWALLOW_ICON_WITH_BG(icon_name, x, y, w, h, bg_w, bg_h) \
+ part { name: icon_name; \
+ type: SWALLOW; \
+ mouse_events: 1; \
+ scale: 1;\
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: (x)/(bg_w) (y)/(bg_h); offset: 0 0;} \
+ rel2 { relative: (x+w)/(bg_w) (y+h)/(bg_h); offset: 0 0;} \
+ visible: 0; \
+ } \
+ description { \
+ state: "normal" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ description { \
+ state: "dim" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ } \
+ part { name: icon_name"_event"; \
+ type: RECT; \
+ mouse_events: 1; \
+ scale: 1;\
+ description { \
+ state: "default" 0.0; \
+ rel1.to: icon_name; \
+ rel2.to: icon_name; \
+ color: 0 0 0 0; \
+ visible: 1; \
+ } \
+ }
+
+#define TOOLBAR_ITEM_SWALLOW_BUTTON_WITH_BG(icon_name, x, y, w, h, bg_w, bg_h) \
+ part { name: icon_name; \
+ type: SWALLOW; \
+ mouse_events: 1; \
+ scale: 1;\
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: (x)/(bg_w) (y)/(bg_h); offset: 0 0;} \
+ rel2 { relative: (x+w)/(bg_w) (y+h)/(bg_h); offset: -1 -1;} \
+ } \
+ }
+
+#define TOOLBAR_LEFT_ITEM_PROGRAM(button_name, icon_name, press_signal, release_signal, click_signal) \
+ program { \
+ name: "mouse_down_"icon_name; \
+ signal: "mouse,down,1"; \
+ source: icon_name"_event"; \
+ script {\
+ new st[31];\
+ new Float:vl;\
+ get_state(PART:icon_name, st, 30, vl);\
+ if (strcmp(st, "normal") == 0) { \
+ emit( press_signal, "toolbar_signal" );\
+ } \
+ }\
+ } \
+ program { \
+ name: "mouse_up_"icon_name; \
+ signal: "mouse,up,1"; \
+ source: icon_name"_event"; \
+ script {\
+ new st[31];\
+ new Float:vl;\
+ get_state(PART:icon_name, st, 30, vl);\
+ if (strcmp(st, "normal") == 0) { \
+ emit( release_signal, "toolbar_signal" );\
+ } \
+ }\
+ }\
+ program { \
+ name: "mouse_clicked_"icon_name; \
+ signal: "mouse,clicked,1"; \
+ source: icon_name"_event"; \
+ script {\
+ new st[31];\
+ new Float:vl;\
+ get_state(PART:icon_name, st, 30, vl);\
+ if (strcmp(st, "normal") == 0) { \
+ emit( click_signal, "toolbar_signal" );\
+ } \
+ }\
+ }\
+ program { \
+ name: icon_name",invisible"; \
+ source: "prog"; \
+ signal: icon_name",invisible"; \
+ script: { \
+ set_state(PART:button_name, "default", 0.0); \
+ set_state(PART:icon_name, "default", 0.0); \
+ } \
+ } \
+ program { \
+ name: icon_name",normal"; \
+ source: "prog"; \
+ signal: icon_name",normal"; \
+ script: { \
+ set_state(PART:button_name, "default", 0.0); \
+ set_state(PART:icon_name, "normal", 0.0); \
+ } \
+ } \
+ program { \
+ name: icon_name",edit"; \
+ source: "prog"; \
+ signal: icon_name",edit"; \
+ script: { \
+ set_state(PART:button_name, "normal", 0.0); \
+ set_state(PART:icon_name, "normal", 0.0); \
+ } \
+ } \
+ program { \
+ name: icon_name",dim"; \
+ source: "prog"; \
+ signal: icon_name",dim"; \
+ script: { \
+ set_state(PART:button_name, "default", 0.0); \
+ set_state(PART:icon_name, "dim", 0.0); \
+ } \
+ }
+
+#define TOOLBAR_RIGHT_ITEM_PROGRAM(icon_name, press_signal_name, release_signal_name, click_signal_name) \
+ program { \
+ name: "mouse_down_"icon_name; \
+ signal: "mouse,down,1"; \
+ source: icon_name; \
+ script {\
+ new st[31];\
+ new Float:vl;\
+ get_state(PART:icon_name, st, 30, vl);\
+ if (strcmp(st, "dim") != 0) { \
+ emit( press_signal_name, "toolbar_signal" );\
+ } \
+ }\
+ } \
+ program { \
+ name: "mouse_up_"icon_name; \
+ signal: "mouse,up,1"; \
+ source: icon_name; \
+ script {\
+ new st[31];\
+ new Float:vl;\
+ get_state(PART:icon_name, st, 30, vl);\
+ if (strcmp(st, "dim") != 0) { \
+ emit( release_signal_name, "toolbar_signal" );\
+ } \
+ }\
+ }\
+ program { \
+ name: "mouse_clicked_"icon_name; \
+ signal: "mouse,clicked,1"; \
+ source: icon_name; \
+ script {\
+ new st[31];\
+ new Float:vl;\
+ get_state(PART:icon_name, st, 30, vl);\
+ if (strcmp(st, "dim") != 0) \
+ emit( click_signal_name, "toolbar_signal" );\
+ }\
+ }\
+ program { \
+ name: icon_name",invisible"; \
+ source: "prog"; \
+ signal: icon_name",invisible"; \
+ script: { \
+ set_state(PART:icon_name, "default", 0.0); \
+ } \
+ } \
+ program { \
+ name: icon_name",normal"; \
+ source: "prog"; \
+ signal: icon_name",normal"; \
+ script: { \
+ set_state(PART:icon_name, "normal", 0.0); \
+ } \
+ } \
+ program { \
+ name: icon_name",press"; \
+ source: "prog"; \
+ signal: icon_name",press"; \
+ script: { \
+ set_state(PART:icon_name, "press", 0.0); \
+ } \
+ } \
+ program { \
+ name: icon_name",dim"; \
+ source: "prog"; \
+ signal: icon_name",dim"; \
+ script: { \
+ set_state(PART:icon_name, "dim", 0.0); \
+ } \
+ }
+
+#define TOOLBAR_ITEM_BUTTON(name, x, y) \
+ TOOLBAR_ITEM_BUTTON_WITH_BG(name, x, y, MAIN_W, MAIN_H)
+
+#define TOOLBAR_ITEM_SWALLOW_ICON(name, x, y, w, h) \
+ TOOLBAR_ITEM_SWALLOW_ICON_WITH_BG(name, x, y, w, h, MAIN_W, MAIN_H)
+
+#define TOOLBAR_ITEM_SWALLOW_BUTTON(name, x, y, w, h) \
+ TOOLBAR_ITEM_SWALLOW_BUTTON_WITH_BG(name, x, y, w, h, MAIN_W, MAIN_H)
+
+#endif /*__H_EDC_CAM_TOOLBAR_LAYOUT_INC_EDC_H__*/
+//end files