[Genlist] Add customization template file for genlist item
authorTae-Hwan Kim <the81.kim@samsung.com>
Mon, 11 Mar 2013 11:48:26 +0000 (20:48 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Mon, 25 Mar 2013 07:50:51 +0000 (16:50 +0900)
Change-Id: Ice232831d31f25f5a88cfe60ec84ebb0b762cff3

Conflicts:

themes/widgets/genlist/genlist.edc
themes/widgets/genlist/genlist_macro.edc

themes/widgets/genlist/genlist_custom.edc [new file with mode: 0644]
themes/widgets/genlist/genlist_macro.edc
themes/widgets/genlist/genlist_normal.edc

diff --git a/themes/widgets/genlist/genlist_custom.edc b/themes/widgets/genlist/genlist_custom.edc
new file mode 100644 (file)
index 0000000..b6e32ce
--- /dev/null
@@ -0,0 +1,32 @@
+#include "genlist_macro.edc"
+//#include "genlist_textblock_style.edc" // This is already included from genlist.edc file
+
+group { GENLIST_NAME("custom_test/default")
+
+      GENLIST_PROLOG_NORMAL
+      data.item: "texts" "elm.text";
+      data.item: "contents" "elm.icon";
+
+      parts {
+         GENLIST_PART_BASE
+         GENLIST_PART_BG_NORMAL
+         GENLIST_PART_BOTTOM_LINE
+         GENLIST_PART_PADDING_LEFT
+         GENLIST_PART_PADDING_RIGHT
+         GENLIST_PART_PADDING_TOP
+         GENLIST_PART_PADDING_BOTTOM
+
+         GENLIST_PART_ICON("elm.icon",
+            GENLIST_DESCRIPTION_LTB("elm.padding.left", "elm.padding.top", "elm.padding.bottom",
+               fixed: 1 0;
+               min: 50 50;
+            )
+         )
+         GENLIST_PART_LISTITEM_("elm.text", GENLIST_HEIGHT_1LINE,
+            "elm.icon", "elm.padding.right",
+            "elm.padding.top", "elm.padding.bottom",
+         )
+         GENLIST_PART_FLIP
+      }
+      GENLIST_PROGRAMS_NORMAL( target: "elm.text"; target: "elm.icon"; )
+   }
index 26d2b3c..d052bad 100755 (executable)
  * limitations under the License.
  */
 
-
+/* genlist multisense sample/tone listing */
+   sounds {
+      sample {
+         name: "button-pressed" RAW;
+         source: "button-pressed.wav";
+      }
+   }
 
 //****************************************************************************//
 // *******************************  Default size macro **********************//
          program { name: "play_button_press"; \
             action: PLAY_SAMPLE "button-pressed" 1.0; \
          }
-#endif
\ No newline at end of file
+#endif
index 0d90370..7729e34 100755 (executable)
  * vim:ts=3
 */
 
-/* genlist multisense sample/tone listing */
-   sounds {
-      sample {
-         name: "button-pressed" RAW;
-         source: "button-pressed.wav";
-      }
-   }
    group { GENLIST_NAME("default/default")
       alias: "elm/list/item/default";
       alias: "elm/list/item_odd/default";