fix toggle messages

This commit is contained in:
chrys 2016-07-26 00:15:26 +02:00
parent 5edfd7e4a8
commit 700a9e3987
5 changed files with 21 additions and 51 deletions

View File

@ -1,3 +1,4 @@
[sound] [sound]
enabled=False, enabled=False,
driver=sox driver=sox
@ -5,19 +6,23 @@ theme=default
[speech] [speech]
enabled=True enabled=True
driver=espeak #driver=espeak
rate=800 #language=en-us
#voice=en-us
driver=speechd
#rate=800
rate=50
volume=100
pitch=50 pitch=50
module=espeak module=espeak
voice=en-us voice=de
language=en-us language=de
volume=200
[braille] [braille]
enabled=False enabled=False
layout=en layout=en
[screen] ['screen]
driver=linux driver=linux
[keyboard] [keyboard]
@ -28,3 +33,4 @@ wordEcho=True
[general] [general]
debugLevel=0 debugLevel=0
punctuationLevel=1 punctuationLevel=1

View File

@ -1,36 +0,0 @@
[sound]
enabled=False,
driver=sox
theme=default
[speech]
enabled=True
#driver=espeak
#language=en-us
#voice=en-us
driver=speechd
#rate=800
rate=50
volume=100
pitch=50
module=espeak
voice=de
language=de
[braille]
enabled=False
layout=en
['screen]
driver=linux
[keyboard]
keyboardLayout=desktop
charEcho=False
wordEcho=True
[general]
debugLevel=0
punctuationLevel=1

View File

@ -7,9 +7,9 @@ class command():
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'): if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'):
environment['runtime']['outputManager'].presentText(environment, "braille disabled") environment['runtime']['outputManager'].presentText(environment, "braille disabled")
else:
environment['runtime']['outputManager'].presentText(environment, "braille enabled")
environment = environment['runtime']['settingsManager'].setSetting(environment, 'braille', 'enabled', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'))) environment = environment['runtime']['settingsManager'].setSetting(environment, 'braille', 'enabled', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled')))
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'):
environment['runtime']['outputManager'].presentText(environment, "braille enabled")
return environment return environment
def setCallback(self, callback): def setCallback(self, callback):
pass pass

View File

@ -7,9 +7,9 @@ class command():
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'): if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'):
environment['runtime']['outputManager'].presentText(environment, "sound disabled") environment['runtime']['outputManager'].presentText(environment, "sound disabled")
else:
environment['runtime']['outputManager'].presentText(environment, "sound enabled")
environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'enabled', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'))) environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'enabled', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled')))
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'):
environment['runtime']['outputManager'].presentText(environment, "sound enabled")
return environment return environment
def setCallback(self, callback): def setCallback(self, callback):
pass pass

View File

@ -7,9 +7,9 @@ class command():
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'): if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'):
environment['runtime']['outputManager'].presentText(environment, "speech disabled") environment['runtime']['outputManager'].presentText(environment, "speech disabled")
else:
environment['runtime']['outputManager'].presentText(environment, "speech enabled")
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'enabled', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'))) environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'enabled', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled')))
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'):
environment['runtime']['outputManager'].presentText(environment, "speech enabled")
return environment return environment
def setCallback(self, callback): def setCallback(self, callback):
pass pass