Bundles / res / edje /

data_sink.edc

  1. #include "../../inc/view_defines.h"
  2. #include "edc_defines.edc"
  3.  
  4. #define IMAGE_SINK_BACKGROUND "../res/images/sink/background2.png"
  5. #define IMAGE_TITLE_BG "../res/images/sink/image2.png"
  6. #define IMAGE_HEADER_ICON "../res/images/sink/icon.png"
  7. #define IMAGE_BUBBLES "../res/images/sink/bubbles.png"
  8.  
  9. #define STYLE_TITLE "style,title"
  10. #define STYLE_DATA "style,data"
  11.  
  12. styles {
  13. style {
  14. name: STYLE_TITLE;
  15. base: "font=BreezeSans:style=medium font_size=26 color=#000000 wrap=mixed align=left valign=top";
  16. }
  17. style {
  18. name: STYLE_DATA;
  19. base: "font=BreezeSans:style=light font_size=26 color=#000000 wrap=mixed align=left valign=top";
  20. }
  21. }
  22.  
  23. collections {
  24. images {
  25. image: IMAGE_SINK_BACKGROUND COMP;
  26. image: IMAGE_ARROW_DOWN COMP;
  27. image: IMAGE_ARROW_UP COMP;
  28. image: IMAGE_TITLE_BG COMP;
  29. image: IMAGE_HEADER_ICON COMP;
  30. image: IMAGE_BUBBLES COMP;
  31. }
  32.  
  33. group {
  34. name: GROUP_SINK;
  35. parts {
  36. part {
  37. name: PART_BACKGROUND;
  38. type: IMAGE;
  39. description {
  40. state: "default" 0.0;
  41. rel1.relative: 0.0 0.0;
  42. rel2.relative: 1.0 1.0;
  43. image.normal: IMAGE_SINK_BACKGROUND;
  44. }
  45. }
  46. part {
  47. name: PART_LIST;
  48. type: SWALLOW;
  49. description {
  50. state: "default" 0.0;
  51. rel1.relative: 0.0 0.1094;
  52. rel2.relative: 1.0 1.0;
  53. }
  54. }
  55. }
  56. }
  57. group {
  58. name: GROUP_TITLE;
  59. parts {
  60. part {
  61. name: PART_BACKGROUND;
  62. type: IMAGE;
  63. description {
  64. state: "default" 0.0;
  65. min: 0 80;
  66. rel1.relative: 0.0 0.0;
  67. rel2.relative: 1.0 1.0;
  68. image.normal: IMAGE_TITLE_BG;
  69. }
  70. }
  71. part {
  72. name: PART_ITEM;
  73. type: TEXTBLOCK;
  74. description {
  75. state: "default" 0.0;
  76. rel1.relative: 0.0417 0.0;
  77. rel2.relative: 1.0000 1.0;
  78. text.style: STYLE_TITLE;
  79. }
  80. }
  81. PART_IMAGE_BTN("", PART_ARROW, 0.9181, 0.3750, 0.9611, 0.5875, IMAGE_ARROW_DOWN, IMAGE_ARROW_UP, 0.9181, 0.9181, 0)
  82. }
  83. programs {
  84. PROGRAM_CHECK(SIGNAL_ARROW_STATE_CHANGE, "", PART_ARROW"_img", "", "")
  85. }
  86. }
  87. group {
  88. name: GROUP_ITEM;
  89. parts {
  90. part {
  91. name: PART_BACKGROUND;
  92. type: SPACER;
  93. description {
  94. state: "default" 0.0;
  95. min: 0 65;
  96. rel1.relative: 0.0 0.0;
  97. rel2.relative: 1.0 1.0;
  98. }
  99. }
  100. part {
  101. name: PART_ITEM_KEY_VAL;
  102. type: TEXTBLOCK;
  103. description {
  104. state: "default" 0.0;
  105. rel1.relative: 0.0417 0.0;
  106. rel2.relative: 0.5417 1.0;
  107. text.style: STYLE_DATA;
  108. }
  109. }
  110. part {
  111. name: PART_ITEM_TYPE;
  112. type: TEXTBLOCK;
  113. description {
  114. state: "default" 0.0;
  115. rel1.relative: 0.5417 0.0;
  116. rel2.relative: 1.0000 1.0;
  117. text.style: STYLE_DATA;
  118. }
  119. }
  120. part {
  121. name: PART_BUBBLES;
  122. type: IMAGE;
  123. description {
  124. state: STATE_DEFAULT 0.0;
  125. rel1.relative: 0.8208 0.0462;
  126. rel2.relative: 0.9875 0.9538;
  127. visible: 0;
  128. image.normal: IMAGE_BUBBLES;
  129. }
  130. description {
  131. state: STATE_VISIBLE 0.0;
  132. inherit: STATE_DEFAULT 0.0;
  133. visible: 1;
  134. }
  135. }
  136. }
  137. programs {
  138. program {
  139. signal: SIGNAL_BUBBLES_HIDE;
  140. source: "";
  141. action: STATE_SET STATE_VISIBLE 0.0;
  142. target: PART_BUBBLES;
  143. }
  144. }
  145. }
  146. group {
  147. name: GROUP_HEADER;
  148. parts {
  149. part {
  150. name: PART_BACKGROUND;
  151. type: SPACER;
  152. description {
  153. state: "default" 0.0;
  154. min: 720 80;
  155. rel1.relative: 0.0 0.0;
  156. rel2.relative: 1.0 1.0;
  157. }
  158. }
  159. part {
  160. name: PART_ITEM;
  161. type: TEXTBLOCK;
  162. description {
  163. state: "default" 0.0;
  164. rel1.relative: 0.1111 0.0;
  165. rel2.relative: 1.0000 1.0;
  166. text.style: STYLE_DATA;
  167. text.text: "Header data";
  168. }
  169. }
  170. part {
  171. name: PART_ICON;
  172. type: IMAGE;
  173. description {
  174. state: "default" 0.0;
  175. rel1.relative: 0.0417 0.3000;
  176. rel2.relative: 0.0917 0.7500;
  177. image.normal: IMAGE_HEADER_ICON;
  178. }
  179. }
  180. part {
  181. name: PART_BUBBLES;
  182. type: IMAGE;
  183. description {
  184. state: "default" 0.0;
  185. rel1.relative: 0.8208 0.0375;
  186. rel2.relative: 0.9875 0.7750;
  187. image.normal: IMAGE_BUBBLES;
  188. }
  189. }
  190. PART_IMAGE_BTN("", PART_ARROW, 0.4347, 0.4125, 0.4778, 0.6250, IMAGE_ARROW_DOWN, IMAGE_ARROW_UP, 0.4347, 0.4347, 0)
  191.  
  192. programs {
  193. PROGRAM_CHECK(SIGNAL_ARROW_STATE_CHANGE, "", PART_ARROW"_img", "", "")
  194. }
  195. }
  196. }
  197. group {
  198. name: GROUP_HEADER_DATA;
  199. parts {
  200. part {
  201. name: PART_BACKGROUND;
  202. type: RECT;
  203. description {
  204. state: "default" 0.0;
  205. min: 0 65;
  206. rel1.relative: 0.0417 0.0;
  207. rel2.relative: 1.0000 1.0;
  208. color: 240 243 245 255;
  209. }
  210. }
  211. part {
  212. name: PART_ITEM_KEY_VAL;
  213. type: TEXTBLOCK;
  214. description {
  215. state: "default" 0.0;
  216. rel1.relative: 0.1111 0.0;
  217. rel2.relative: 0.5417 1.0;
  218. text.style: STYLE_DATA;
  219. }
  220. }
  221. part {
  222. name: PART_ITEM_TYPE;
  223. type: TEXTBLOCK;
  224. description {
  225. state: "default" 0.0;
  226. rel1.relative: 0.5417 0.0;
  227. rel2.relative: 1.0000 1.0;
  228. text.style: STYLE_DATA;
  229. }
  230. }
  231. }
  232. }
  233. }