|
3 | 3 | from src.backend.PluginManager.ActionBase import ActionBase |
4 | 4 | from src.backend.PluginManager.PluginBase import PluginBase |
5 | 5 | from src.backend.PluginManager.ActionHolder import ActionHolder |
| 6 | +from src.backend.DeckManagement.InputIdentifier import Input |
| 7 | +from src.backend.PluginManager.ActionInputSupport import ActionInputSupport |
6 | 8 |
|
7 | 9 | # Import gtk modules |
8 | 10 | import gi |
@@ -190,18 +192,28 @@ def __init__(self): |
190 | 192 | self.post_request_holder = ActionHolder( |
191 | 193 | plugin_base=self, |
192 | 194 | action_base=PostRequest, |
193 | | - action_id="com_core447_Requests::PostRequest", |
| 195 | + action_id_suffix="PostRequest", |
194 | 196 | action_name="Post Request", |
195 | | - icon=Gtk.Picture.new_for_filename(os.path.join(self.PATH, "assets", "POST.png")) |
| 197 | + icon=Gtk.Picture.new_for_filename(os.path.join(self.PATH, "assets", "POST.png")), |
| 198 | + action_support={ |
| 199 | + Input.Key: ActionInputSupport.SUPPORTED, |
| 200 | + Input.Dial: ActionInputSupport.SUPPORTED, |
| 201 | + Input.Touchscreen: ActionInputSupport.UNTESTED |
| 202 | + } |
196 | 203 | ) |
197 | 204 | self.add_action_holder(self.post_request_holder) |
198 | 205 |
|
199 | 206 | self.get_request_holder = ActionHolder( |
200 | 207 | plugin_base=self, |
201 | 208 | action_base=GetRequest, |
202 | | - action_id="com_core447_Requests::GetRequest", |
| 209 | + action_id_suffix="GetRequest", |
203 | 210 | action_name="Get Request", |
204 | | - icon=Gtk.Picture.new_for_filename(os.path.join(self.PATH, "assets", "GET.png")) |
| 211 | + icon=Gtk.Picture.new_for_filename(os.path.join(self.PATH, "assets", "GET.png")), |
| 212 | + action_support={ |
| 213 | + Input.Key: ActionInputSupport.SUPPORTED, |
| 214 | + Input.Dial: ActionInputSupport.SUPPORTED, |
| 215 | + Input.Touchscreen: ActionInputSupport.UNTESTED |
| 216 | + } |
205 | 217 | ) |
206 | 218 | self.add_action_holder(self.get_request_holder) |
207 | 219 |
|
|
0 commit comments