~taskcoach-developers/taskcoach/trunk

« back to all changes in this revision

Viewing changes to taskcoachlib/gui/viewer/note.py

  • Committer: fraca7
  • Date: 2014-04-10 15:32:25 UTC
  • Revision ID: svn-v4:1bde7e76-c350-445e-a5b0-d0792d1e7eef:trunk/taskcoach:6477
Merge with release 1.3 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
                     mixin.SearchableViewerMixin, 
35
35
                     mixin.SortableViewerForNotesMixin,
36
36
                     mixin.AttachmentColumnMixin, 
 
37
                     base.CategorizableViewerMixin,
37
38
                     base.SortableViewerWithColumns, base.TreeViewer):
38
39
    SorterClass = note.NoteSorter
39
40
    defaultTitle = _('Notes')
159
160
                categoriesColumn, creationDateTimeColumn, 
160
161
                modificationDateTimeColumn]
161
162
 
162
 
    def getItemTooltipData(self, item, column=0):
163
 
        if self.settings.getboolean('view', 'descriptionpopups'):
164
 
            lines = [line.rstrip('\r') for line in item.description().split('\n')] 
165
 
            result = [(None, lines)] if lines and lines != [''] else [] 
166
 
            result.append(('paperclip_icon', sorted([unicode(attachment) for attachment in item.attachments()])))
167
 
            return result
168
 
        else:
169
 
            return []
 
163
    def getItemTooltipData(self, item):
 
164
        lines = [line.rstrip('\r') for line in item.description().split('\n')] 
 
165
        result = [(None, lines)] if lines and lines != [''] else [] 
 
166
        result.append(('paperclip_icon', sorted([unicode(attachment) for attachment in item.attachments()])))
 
167
        return result + super(BaseNoteViewer, self).getItemTooltipData(item)
170
168
                    
171
169
    def isShowingNotes(self):
172
170
        return True