From 114a749abb6fc4b64b3a8ada3e625a06da116dfd Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 24 Oct 2017 00:18:51 +0200 Subject: [PATCH] tune button interfaces --- libguh/interfaces/button.json | 5 ----- libguh/interfaces/interfaces.qrc | 4 ++++ libguh/interfaces/longpressbutton.json | 8 ++++++++ libguh/interfaces/longpressmultibutton.json | 14 ++++++++++++++ libguh/interfaces/simplebutton.json | 8 ++++++++ libguh/interfaces/simplemultibutton.json | 14 ++++++++++++++ 6 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 libguh/interfaces/longpressbutton.json create mode 100644 libguh/interfaces/longpressmultibutton.json create mode 100644 libguh/interfaces/simplebutton.json create mode 100644 libguh/interfaces/simplemultibutton.json diff --git a/libguh/interfaces/button.json b/libguh/interfaces/button.json index 33167c6f..2c63c085 100644 --- a/libguh/interfaces/button.json +++ b/libguh/interfaces/button.json @@ -1,7 +1,2 @@ { - "events": [ - { - "name": "pressed" - } - ] } diff --git a/libguh/interfaces/interfaces.qrc b/libguh/interfaces/interfaces.qrc index 76926b6e..67151ec4 100644 --- a/libguh/interfaces/interfaces.qrc +++ b/libguh/interfaces/interfaces.qrc @@ -15,6 +15,10 @@ mediaplayer.json battery.json button.json + simplebutton.json + longpressbutton.json + simplemultibutton.json + longpressmultibutton.json diff --git a/libguh/interfaces/longpressbutton.json b/libguh/interfaces/longpressbutton.json new file mode 100644 index 00000000..bc9c3440 --- /dev/null +++ b/libguh/interfaces/longpressbutton.json @@ -0,0 +1,8 @@ +{ + "extends": "simplebutton", + "events": [ + { + "name": "longPressed" + } + ] +} diff --git a/libguh/interfaces/longpressmultibutton.json b/libguh/interfaces/longpressmultibutton.json new file mode 100644 index 00000000..7baec3d0 --- /dev/null +++ b/libguh/interfaces/longpressmultibutton.json @@ -0,0 +1,14 @@ +{ + "extends": "longpressbutton", + "events": [ + { + "name": "longPressed", + "params": [ + { + "name": "buttonName", + "type": "QString" + } + ] + } + ] +} diff --git a/libguh/interfaces/simplebutton.json b/libguh/interfaces/simplebutton.json new file mode 100644 index 00000000..948a683f --- /dev/null +++ b/libguh/interfaces/simplebutton.json @@ -0,0 +1,8 @@ +{ + "extends": "button", + "events": [ + { + "name": "pressed" + } + ] +} diff --git a/libguh/interfaces/simplemultibutton.json b/libguh/interfaces/simplemultibutton.json new file mode 100644 index 00000000..525fe038 --- /dev/null +++ b/libguh/interfaces/simplemultibutton.json @@ -0,0 +1,14 @@ +{ + "extends": "button", + "events": [ + { + "name": "pressed", + "params": [ + { + "name": "buttonName", + "type": "QString" + } + ] + } + ] +}