create wav sound theme, make more use of soundicons
This commit is contained in:
@ -31,13 +31,9 @@ class command():
|
||||
self.env['commandBuffer']['clipboard'] = [marked] + self.env['commandBuffer']['clipboard'][:self.env['runtime']['settingsManager'].getSettingAsInt('general', 'numberOfClipboards') -1]
|
||||
self.env['commandBuffer']['currClipboard'] = 0
|
||||
# reset marks
|
||||
self.env['commandBuffer']['Marks']['1'] = None
|
||||
self.env['commandBuffer']['Marks']['2'] = None
|
||||
self.env['runtime']['cursorManager'].clearMarks()
|
||||
|
||||
if marked.isspace():
|
||||
self.env['runtime']['outputManager'].presentText("blank", soundIcon='EmptyLine', interrupt=True)
|
||||
else:
|
||||
self.env['runtime']['outputManager'].presentText(marked, interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(marked, soundIcon='CopyToClipboard', interrupt=True)
|
||||
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -24,6 +24,7 @@ class command():
|
||||
if currClipboard < 0:
|
||||
self.env['runtime']['outputManager'].presentText('clipboard empty', interrupt=True)
|
||||
return
|
||||
self.env['runtime']['outputManager'].presentText('paste clipboard', soundIcon='PasedClipboardOnScreen', interrupt=True)
|
||||
with open("/dev/tty" + self.env['screenData']['newTTY'], 'w') as fd:
|
||||
for c in self.env['commandBuffer']['clipboard'][currClipboard]:
|
||||
fcntl.ioctl(fd, termios.TIOCSTI, c)
|
||||
|
@ -21,8 +21,10 @@ class command():
|
||||
self.env['runtime']['outputManager'].presentText('no review cursor', interrupt=True)
|
||||
return
|
||||
|
||||
self.env['runtime']['cursorManager'].setMark()
|
||||
self.env['runtime']['outputManager'].presentText('set mark', interrupt=True)
|
||||
|
||||
currMark = self.env['runtime']['cursorManager'].setMark()
|
||||
if currMark == 1:
|
||||
self.env['runtime']['outputManager'].presentText('set mark',soundIcon='PlaceStartMark', interrupt=True)
|
||||
elif currMark == 2:
|
||||
self.env['runtime']['outputManager'].presentText('set mark',soundIcon='PlaceEndMark', interrupt=True)
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -27,8 +27,11 @@ class cursorManager():
|
||||
def setMark(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['commandBuffer']['Marks']['1'] = self.env['screenData']['newCursorReview'].copy()
|
||||
return 1
|
||||
else:
|
||||
self.env['commandBuffer']['Marks']['2'] = self.env['screenData']['newCursorReview'].copy()
|
||||
return 2
|
||||
return 0
|
||||
def getReviewOrTextCursor(self):
|
||||
if self.env['screenData']['newCursorReview']:
|
||||
return self.env['screenData']['newCursorReview'].copy()
|
||||
|
Reference in New Issue
Block a user