Finished adding descriptions to commands.

This commit is contained in:
Storm Dragon 2016-09-16 19:54:35 -04:00
parent 02f67b028b
commit cc129cefe1
20 changed files with 20 additions and 20 deletions

View File

@ -12,7 +12,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'clears the currently selected clipboard'
def run(self, environment):
environment['commandBuffer']['currClipboard'] = -1
del environment['commandBuffer']['clipboard'][:]

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'speaks the contents of the currently selected clipboard'
def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'reads the contents of the current screen'
def run(self, environment):
if environment['screenData']['newContentText'].strip() == '':
environment['runtime']['outputManager'].presentText(environment, "screen is empty", soundIcon='EmptyLine', interrupt=True)

View File

@ -10,7 +10,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'reads from the cursor to the bottom of the screen'
def run(self, environment):
# Prefer review cursor over text cursor
if (environment['screenData']['newCursorReview'] != None):

View File

@ -10,7 +10,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'Reads from the top of the screen to the cursor position'
def run(self, environment):
# Prefer review cursor over text cursor
if (environment['screenData']['newCursorReview'] != None):

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'displays the position of the review cursor'
def run(self, environment):
# Prefer review cursor over text cursor

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'decrease sound volume'
def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'exits review mode'
def run(self, environment):
if (environment['screenData']['oldCursorReview'] == None) and \
(environment['screenData']['newCursorReview'] == None):

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'adjusts the volume for in coming sounds'
def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'shows the indention level for the current line'
def run(self, environment):
# Prefer review cursor over text cursor

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'displays the last received text'
def run(self, environment):
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=True)
return environment

View File

@ -12,7 +12,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'pastes the text from the currently selected clipboard'
def run(self, environment):
currClipboard = environment['commandBuffer']['currClipboard']
if currClipboard < 0:

View File

@ -9,7 +9,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'speaks the currently selected text that will be copied to the clipboard'
def run(self, environment):
if (environment['commandBuffer']['Marks']['1'] == None) or \
(environment['commandBuffer']['Marks']['2'] == None):

View File

@ -16,7 +16,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'checks the spelling of the current word'
def run(self, environment):
if not initialized:
environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True)

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'enables or disables automatic reading of new text as it appears'
def run(self, environment):
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'autoReadIncomming', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'autoReadIncomming')))

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'enables or disables automatic spell checking'
def run(self, environment):
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'):

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'enables and disables output in braille'
def run(self, environment):
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'):

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'toggles all output settings'
def run(self, environment):
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled') or \
environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled') or \

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'enables or disables sound'
def run(self, environment):
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'):

View File

@ -8,7 +8,7 @@ class command():
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
return 'enables or disables speech'
def run(self, environment):
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'):