@@ -282,6 +282,59 @@ def makeSettings(self, settingsSizer):
282
282
283
283
sHelper .addItem (imageSizer )
284
284
285
+ chatFeedback = _ ("Chat feedback" )
286
+ chatFeedbackSizer = wx .StaticBoxSizer (wx .VERTICAL , self , label = chatFeedback )
287
+ chatFeedbackBox = chatFeedbackSizer .GetStaticBox ()
288
+ chatFeedbackGroup = gui .guiHelper .BoxSizerHelper (self , sizer = chatFeedbackSizer )
289
+
290
+ self .chatFeedback = {
291
+ "sndTaskInProgress" : chatFeedbackGroup .addItem (
292
+ wx .CheckBox (
293
+ chatFeedbackBox ,
294
+ # Translators: This is a setting to play a sound when a task is in progress.
295
+ label = _ ("Play sound when a task is in progress" )
296
+ )
297
+ ),
298
+ "sndResponseSent" : chatFeedbackGroup .addItem (
299
+ wx .CheckBox (
300
+ chatFeedbackBox ,
301
+ # Translators: This is a setting to play a sound when a response is sent.
302
+ label = _ ("Play sound when a response is sent" )
303
+ )
304
+ ),
305
+ "sndResponsePending" : chatFeedbackGroup .addItem (
306
+ wx .CheckBox (
307
+ chatFeedbackBox ,
308
+ # Translators: This is a setting to play a sound when a response is pending.
309
+ label = _ ("Play sound when a response is pending" )
310
+ )
311
+ ),
312
+ "sndResponseReceived" : chatFeedbackGroup .addItem (
313
+ wx .CheckBox (
314
+ chatFeedbackBox ,
315
+ # Translators: This is a setting to play a sound when a response is received.
316
+ label = _ ("Play sound when a response is received" )
317
+ )
318
+ ),
319
+ "brailleAutoFocusHistory" : chatFeedbackGroup .addItem (
320
+ wx .CheckBox (
321
+ chatFeedbackBox ,
322
+ # Translators: This is a setting to attach braille to the history if the focus is in the prompt field.
323
+ label = _ ("Attach braille to the history if the focus is in the prompt field" )
324
+ )
325
+ ),
326
+ "speechResponseReceived" : chatFeedbackGroup .addItem (
327
+ wx .CheckBox (
328
+ chatFeedbackBox ,
329
+ label = _ ("Speak response when the focus is in the prompt field" )
330
+ )
331
+ )
332
+ }
333
+ for key , item in self .chatFeedback .items ():
334
+ item .SetValue (conf ["chatFeedback" ][key ])
335
+
336
+ sHelper .addItem (chatFeedbackSizer )
337
+
285
338
# Translators: This is the name of a group of settings
286
339
whisperGroupLabel = _ ("Recording" )
287
340
whisperSizer = wx .StaticBoxSizer (wx .VERTICAL , self , label = whisperGroupLabel )
@@ -379,6 +432,10 @@ def onSave(self):
379
432
380
433
381
434
435
+ for key , item in self .chatFeedback .items ():
436
+ conf ["chatFeedback" ][key ] = item .GetValue ()
437
+
438
+
382
439
class GlobalPlugin (globalPluginHandler .GlobalPlugin ):
383
440
384
441
scriptCategory = "Open AI"
0 commit comments