Exemplo n.º 1
0
 def getItemTooltipData(self, index, column=0):
     if self.settings.getboolean('view', 'descriptionpopups'):
         note = self.getItemWithIndex(index)
         if note.description():
             result = [(None, map(lambda x: x.rstrip('\r'), note.description().split('\n')))]
         else:
             result = []
         result.append(('attachment', [unicode(attachment) for attachment in note.attachments()]))
         return result
     else:
         return []
Exemplo n.º 2
0
 def noteNode(self, note): # pylint: disable-msg=W0621
     node = self.baseCompositeNode(note, 'note', self.noteNode)
     for attachment in note.attachments():
         node.appendChild(self.attachmentNode(attachment))
     return node
Exemplo n.º 3
0
 def noteNode(self, note):
     node = self.baseCompositeNode(note, 'note', self.noteNode)
     for attachment in note.attachments():
         node.appendChild(self.attachmentNode(attachment))
     return node
Exemplo n.º 4
0
 def attachmentImageIndex(self, note, which):
     if note.attachments():
         return self.imageIndex['attachment'] 
     else:
         return -1
Exemplo n.º 5
0
 def noteNode(self, parentNode, note):  # pylint: disable=W0621
     node = self.baseCompositeNode(parentNode, note, 'note', self.noteNode)
     for attachment in sortedById(note.attachments()):
         self.attachmentNode(node, attachment)
     return node
Exemplo n.º 6
0
 def noteNode(self, parentNode, note):  # pylint: disable=W0621
     node = self.baseCompositeNode(parentNode, note, 'note', self.noteNode)
     for attachment in sortedById(note.attachments()):
         self.attachmentNode(node, attachment)
     return node