rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=a58fbd94db86fa6e2ddd2145301d076879203b34

commit a58fbd94db86fa6e2ddd2145301d076879203b34
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Tue Jan 19 17:09:22 2016 +0200

    property_macro: use common macro for add 'one spinner' item
    
    Change-Id: I9f9005198ea1e03f2916852b8e06e65e6a7abe55
---
 src/bin/ui/property_macros.h | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/src/bin/ui/property_macros.h b/src/bin/ui/property_macros.h
index 12bd8b5..6149761 100644
--- a/src/bin/ui/property_macros.h
+++ b/src/bin/ui/property_macros.h
@@ -956,6 +956,33 @@ _on_group_##SUB1##_##VALUE##_change(void *data, \
 /*                         PROGRAM 1 SPINNER CONTROL                         */
 /*****************************************************************************/
 /**
+ * Macro defines a functions that create an item with label and 1 spinners.
+ *
+ * @param TEXT The label text
+ * @param SUB The prefix of main parameter of state attribute
+ * @param VALUE The value of state attribute
+ * @param MEMBER The spinner member from Group_Prop_Data structure
+ * @param MIN The min value of spinner
+ * @param MAX The max value of spinner
+ * @param STEP The step to increment or decrement the spinner value
+ * @param FMT The format string of the displayed label
+ * @param L_START The text of label before first swallow
+ * @param L_END The text of label after first swallow
+ * @param TOOLTIP The first spinner tooltip
+ * @param MULTIPLIER The multiplier to convert the value to percent. If it not
+ *        needed set 1
+ *
+ * @ingroup Property_Macro
+ */
+#define PROGRAM_ATTR_1SPINNER_ADD(TEXT, SUB, VALUE, MEMBER, MIN, MAX, STEP, 
FMT, \
+                                  L_START, L_END, TOOLTIP, MULTIPLIER) \
+COMMON_1SPINNER_ADD(PROGRAM, TEXT, SUB, VALUE, MEMBER, MIN, MAX, STEP, FMT, \
+                    L_START, L_END, TOOLTIP, MULTIPLIER) \
+
+#define PROGRAM_ATTR_1SPINNER_UPDATE(SUB, VALUE, MEMBER, TYPE, MULTIPLIER) \
+   COMMON_1SPINNER_UPDATE(SUB, VALUE, MEMBER, TYPE,  MULTIPLIER, PROGRAM_ARGS)
+
+/**
  * Macro defines a callback for STATE_ATTR_1(2)SPINNER_ADD.
  *
  * @param SUB The prefix of main parameter of state attribute;

-- 


Reply via email to