Taskmanager / res / edje /

item.edc

  1. /*
  2. * Copyright (c) 2016 Samsung Electronics Co., Ltd
  3. *
  4. * Licensed under the Flora License, Version 1.1 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://floralicense.org/license/
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16.  
  17. #include "../../inc/defines.h"
  18.  
  19. collections {
  20. group {
  21. name: GENLIST_CUSTOM_ITEM_GROUP;
  22. parts {
  23. part {
  24. name: ITEM_PART_BASE;
  25. type: RECT;
  26. scale: 1;
  27. description {
  28. state: "default" 0.0;
  29. color: 0 0 0 0;
  30. }
  31. description {
  32. state: "hidden" 0.0;
  33. inherit: "default" 0.0;
  34. visible: 0;
  35. }
  36. dragable {
  37. x: 1 1 2;
  38. y: 0 0 0;
  39. }
  40. }
  41. part {
  42. name: ITEM_PART_LEFT_PADDING;
  43. type: SPACER;
  44. scale: 1;
  45. repeat_events: 1;
  46. description {
  47. state: "default" 0.0;
  48. min: 15 0;
  49. align: 0.0 0.0;
  50. rel1 { to: ITEM_PART_BASE; relative: 0.0 0.0; }
  51. rel2 { to: ITEM_PART_BASE; relative: 0.0 1.0; }
  52. }
  53. }
  54. part {
  55. name: ITEM_PART_RIGHT_PADDING;
  56. type: SPACER;
  57. scale: 1;
  58. repeat_events: 1;
  59. description {
  60. state: "default" 0.0;
  61. min: 15 0;
  62. align: 1.0 0.0;
  63. rel1 { to: ITEM_PART_BASE; relative: 1.0 0.0; }
  64. rel2 { to: ITEM_PART_BASE; relative: 1.0 1.0; }
  65. }
  66. }
  67. part {
  68. name: ITEM_PART_TOP_PADDING;
  69. type: SPACER;
  70. scale: 1;
  71. repeat_events: 1;
  72. description {
  73. state: "default" 0.0;
  74. min: 0 15;
  75. align: 0.0 0.0;
  76. rel1 { to: ITEM_PART_BASE; relative: 0.0 0.0; }
  77. rel2 { to: ITEM_PART_BASE; relative: 1.0 0.0; }
  78. }
  79. }
  80. part {
  81. name: ITEM_PART_BOTTOM_PADDING;
  82. type: SPACER;
  83. scale: 1;
  84. repeat_events: 1;
  85. description {
  86. state: "default" 0.0;
  87. min: 0 15;
  88. align: 0.0 1.0;
  89. rel1 { to: ITEM_PART_BASE; relative: 0.0 1.0; }
  90. rel2 { to: ITEM_PART_BASE; relative: 1.0 1.0; }
  91. }
  92. }
  93. part {
  94. name: ITEM_PART_CONTENT;
  95. type: SWALLOW;
  96. scale: 1;
  97. repeat_events: 1;
  98. description {
  99. state: "default" 0.0;
  100. min: 40 40;
  101. align: 0.5 0.0;
  102. rel1 { to_x: ITEM_PART_LEFT_PADDING; to_y: ITEM_PART_TOP_PADDING; relative: 1.0 1.0; }
  103. rel2 { to_x: ITEM_PART_BASE; to_y: ITEM_PART_BOTTOM_PADDING; relative: 0.25 0.0; }
  104. }
  105. description {
  106. state: "hidden" 0.0;
  107. inherit: "default" 0.0;
  108. visible: 0;
  109. }
  110. }
  111. part {
  112. name: ITEM_PART_TEXT;
  113. type: TEXT;
  114. scale: 1;
  115. repeat_events: 1;
  116. description {
  117. state: "default" 0.0;
  118. rel1 { to: ITEM_PART_CONTENT; relative: 1.0 0.0; }
  119. rel2 { to_x: ITEM_PART_RIGHT_PADDING; to_y: ITEM_PART_BOTTOM_PADDING; relative: 0.0 0.0; }
  120. text { font: "Tizen:style=regular"; size: 18; ellipsis: 0.0; align: 0.0 0.5; }
  121. color: 0 0 0 255;
  122. }
  123. description {
  124. state: "hidden" 0.0;
  125. inherit: "default" 0.0;
  126. visible: 0;
  127. }
  128. }
  129. }
  130. programs {
  131. program {
  132. name: ITEM_PROGRAM_RESET_POSITION;
  133. signal: ITEM_PROGRAM_RESET_POSITION_SIGNAL;
  134. source: ITEM_PROGRAM_RESET_POSITION_SOURCE;
  135. action: DRAG_VAL_SET 0.0 0.0;
  136. target: ITEM_PART_BASE;
  137. }
  138. program {
  139. name: ITEM_PROGRAM_HIDE;
  140. signal: ITEM_PROGRAM_HIDE_SIGNAL;
  141. source: ITEM_PROGRAM_HIDE_SOURCE;
  142. action: STATE_SET "hidden" 0.0;
  143. target: ITEM_PART_BASE;
  144. target: ITEM_PART_CONTENT;
  145. target: ITEM_PART_TEXT;
  146. }
  147. }
  148. }
  149. }