|
|
@ -38,6 +38,11 @@ |
|
|
|
LED_PROPERTY(NAME, LED_DEF_VAL) \ |
|
|
|
BUTTON_PROPERTY(NAME, CAP_NAME, DEFAULT_VALUE) |
|
|
|
|
|
|
|
/**************************************************************************************************/ |
|
|
|
#define BUTTON_SLOT_LED_PROPERTY(NAME, CAP_NAME, DEFAULT_VALUE, LED_DEF_VAL, SLOT_NUMBER) \ |
|
|
|
LED_PROPERTY(NAME, LED_DEF_VAL) \ |
|
|
|
BUTTON_SLOT_PROPERTY(NAME, CAP_NAME, DEFAULT_VALUE, SLOT_NUMBER) |
|
|
|
|
|
|
|
/**************************************************************************************************/ |
|
|
|
#define BUTTON_PROPERTY(NAME, CAP_NAME, DEFAULT_VALUE) \ |
|
|
|
MVVM_PROPERTY_CUSTOM(bool, NAME, DEFAULT_VALUE) \ |
|
|
@ -50,6 +55,18 @@ |
|
|
|
} \ |
|
|
|
} \ |
|
|
|
|
|
|
|
/**************************************************************************************************/ |
|
|
|
#define BUTTON_SLOT_PROPERTY(NAME, CAP_NAME, DEFAULT_VALUE, SLOT_NUMBER) \ |
|
|
|
MVVM_PROPERTY_CUSTOM(bool, NAME, DEFAULT_VALUE) \ |
|
|
|
void NAME ## Handle() { \ |
|
|
|
if(_ ## NAME){ \ |
|
|
|
panel->press ## CAP_NAME(isProbeSelectionEnable ## SLOT_NUMBER()); \ |
|
|
|
} \ |
|
|
|
else { \ |
|
|
|
panel->release ## CAP_NAME(); \ |
|
|
|
} \ |
|
|
|
} \ |
|
|
|
|
|
|
|
/**************************************************************************************************/ |
|
|
|
#define LED_PROPERTY(NAME, LED_DEF_VAL) \ |
|
|
|
MVVM_PROPERTY(int, NAME ## Led, LED_DEF_VAL) \ |
|
|
|