def createColumnUICommands(self): commands = [\ uicommand.ToggleAutoColumnResizing(viewer=self, settings=self.settings), None, uicommand.ViewColumn(menuText=_('&Description'), helpText=_('Show/hide description column'), setting='description', viewer=self), uicommand.ViewColumn(menuText=_('&Attachments'), helpText=_('Show/hide attachments column'), setting='attachments', viewer=self)] if self.settings.getboolean('feature', 'notes'): commands.append( uicommand.ViewColumn(menuText=_('&Notes'), helpText=_('Show/hide notes column'), setting='notes', viewer=self)) commands.append( uicommand.ViewColumn(menuText=_('&Creation date'), helpText=_('Show/hide creation date column'), setting='creationDateTime', viewer=self)) commands.append( uicommand.ViewColumn( menuText=_('&Modification date'), helpText=_('Show/hide last modification date column'), setting='modificationDateTime', viewer=self)) return commands
def createColumnUICommands(self): return [\ uicommand.ToggleAutoColumnResizing(viewer=self, settings=self.settings), None, uicommand.ViewColumn(menuText=_('&Description'), helpText=_('Show/hide description column'), setting='description', viewer=self), uicommand.ViewColumn(menuText=_('&Notes'), helpText=_('Show/hide notes column'), setting='notes', viewer=self)]
def getColumnUICommands(self): # Create new UI commands every time since the UI commands depend on the # aggregation mode columnUICommands = \ [uicommand.ToggleAutoColumnResizing(viewer=self, settings=self.settings), None, uicommand.ViewColumn(menuText=_('&Description'), helpText=_('Show/hide description column'), setting='description', viewer=self), uicommand.ViewColumn(menuText=_('&Categories'), helpText=_('Show/hide categories column'), setting='categories', viewer=self), uicommand.ViewColumn(menuText=_('&Time spent'), helpText=_('Show/hide time spent column'), setting='timeSpent', viewer=self), uicommand.ViewColumn(menuText=_('&Revenue'), helpText=_('Show/hide revenue column'), setting='revenue', viewer=self),] if self.aggregation != 'details': columnUICommands.insert( 5, uicommand.ViewColumn( menuText=_('&Total time spent'), helpText=_('Show/hide total time spent column'), setting='totalTimeSpent', viewer=self)) columnUICommands.insert( 7, uicommand.ViewColumn( menuText=_('&Total revenue'), helpText=_('Show/hide total revenue column'), setting='totalRevenue', viewer=self)) if self.aggregation == 'week': columnUICommands.append(\ uicommand.ViewColumns(menuText=_('Effort per weekday'), helpText=_('Show/hide time spent per weekday columns'), setting=['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'], viewer=self)) return columnUICommands
def createColumnUICommands(self): return [\ uicommand.ToggleAutoColumnResizing(viewer=self, settings=self.settings), None, uicommand.ViewColumn(menuText=_('&Description'), helpText=_('Show/hide description column'), setting='description', viewer=self), uicommand.ViewColumn(menuText=_('&Attachments'), helpText=_('Show/hide attachments column'), setting='attachments', viewer=self), uicommand.ViewColumn(menuText=_('&Categories'), helpText=_('Show/hide categories column'), setting='categories', viewer=self), uicommand.ViewColumn(menuText=_('&Creation date'), helpText=_('Show/hide creation date column'), setting='creationDateTime', viewer=self), uicommand.ViewColumn(menuText=_('&Modification date'), helpText=_('Show/hide last modification date column'), setting='modificationDateTime', viewer=self)]