Finished adding descriptions to commands.
This commit is contained in:
parent
02f67b028b
commit
cc129cefe1
@ -12,7 +12,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'clears the currently selected clipboard'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
environment['commandBuffer']['currClipboard'] = -1
|
environment['commandBuffer']['currClipboard'] = -1
|
||||||
del environment['commandBuffer']['clipboard'][:]
|
del environment['commandBuffer']['clipboard'][:]
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'speaks the contents of the currently selected clipboard'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
if len(environment['commandBuffer']['clipboard']) == 0:
|
if len(environment['commandBuffer']['clipboard']) == 0:
|
||||||
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
|
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'reads the contents of the current screen'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
if environment['screenData']['newContentText'].strip() == '':
|
if environment['screenData']['newContentText'].strip() == '':
|
||||||
environment['runtime']['outputManager'].presentText(environment, "screen is empty", soundIcon='EmptyLine', interrupt=True)
|
environment['runtime']['outputManager'].presentText(environment, "screen is empty", soundIcon='EmptyLine', interrupt=True)
|
||||||
|
@ -10,7 +10,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'reads from the cursor to the bottom of the screen'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
# Prefer review cursor over text cursor
|
# Prefer review cursor over text cursor
|
||||||
if (environment['screenData']['newCursorReview'] != None):
|
if (environment['screenData']['newCursorReview'] != None):
|
||||||
|
@ -10,7 +10,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'Reads from the top of the screen to the cursor position'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
# Prefer review cursor over text cursor
|
# Prefer review cursor over text cursor
|
||||||
if (environment['screenData']['newCursorReview'] != None):
|
if (environment['screenData']['newCursorReview'] != None):
|
||||||
|
@ -9,7 +9,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'displays the position of the review cursor'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
# Prefer review cursor over text cursor
|
# Prefer review cursor over text cursor
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'decrease sound volume'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
|
|
||||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')
|
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'exits review mode'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
if (environment['screenData']['oldCursorReview'] == None) and \
|
if (environment['screenData']['oldCursorReview'] == None) and \
|
||||||
(environment['screenData']['newCursorReview'] == None):
|
(environment['screenData']['newCursorReview'] == None):
|
||||||
|
@ -9,7 +9,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'adjusts the volume for in coming sounds'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
|
|
||||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')
|
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')
|
||||||
|
@ -9,7 +9,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'shows the indention level for the current line'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
# Prefer review cursor over text cursor
|
# Prefer review cursor over text cursor
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'displays the last received text'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=True)
|
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=True)
|
||||||
return environment
|
return environment
|
||||||
|
@ -12,7 +12,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'pastes the text from the currently selected clipboard'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
currClipboard = environment['commandBuffer']['currClipboard']
|
currClipboard = environment['commandBuffer']['currClipboard']
|
||||||
if currClipboard < 0:
|
if currClipboard < 0:
|
||||||
|
@ -9,7 +9,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'speaks the currently selected text that will be copied to the clipboard'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
if (environment['commandBuffer']['Marks']['1'] == None) or \
|
if (environment['commandBuffer']['Marks']['1'] == None) or \
|
||||||
(environment['commandBuffer']['Marks']['2'] == None):
|
(environment['commandBuffer']['Marks']['2'] == None):
|
||||||
|
@ -16,7 +16,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'checks the spelling of the current word'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
if not initialized:
|
if not initialized:
|
||||||
environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True)
|
environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True)
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'enables or disables automatic reading of new text as it appears'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
|
|
||||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'autoReadIncomming', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'autoReadIncomming')))
|
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'autoReadIncomming', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'autoReadIncomming')))
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'enables or disables automatic spell checking'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
environment = environment['runtime']['settingsManager'].setSetting(environment, 'general', 'autoSpellCheck', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'general', 'autoSpellCheck')))
|
environment = environment['runtime']['settingsManager'].setSetting(environment, 'general', 'autoSpellCheck', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'general', 'autoSpellCheck')))
|
||||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'general', 'autoSpellCheck'):
|
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'general', 'autoSpellCheck'):
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'enables and disables output in braille'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
|
|
||||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'):
|
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'):
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'toggles all output settings'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled') or \
|
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled') or \
|
||||||
environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled') or \
|
environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled') or \
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'enables or disables sound'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
|
|
||||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'):
|
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'):
|
||||||
|
@ -8,7 +8,7 @@ class command():
|
|||||||
def shutdown(self, environment):
|
def shutdown(self, environment):
|
||||||
return environment
|
return environment
|
||||||
def getDescription(self):
|
def getDescription(self):
|
||||||
return 'No Description found'
|
return 'enables or disables speech'
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
|
|
||||||
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'):
|
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'):
|
||||||
|
Loading…
Reference in New Issue
Block a user