def __init__(self, notifier, parent): TreeWidget.__init__(self, parent) self.notifier = notifier self.setHeaderLabels([N_("Filename"), N_("Additions"), N_("Deletions")]) notifier.add_observer(COMMITS_SELECTED, self.commits_selected) self.connect(self, SIGNAL("itemSelectionChanged()"), self.selection_changed)
def __init__(self, notifier, parent): TreeWidget.__init__(self, parent) self.notifier = notifier self.setHeaderLabels([N_('Filename'), N_('Additions'), N_('Deletions')]) notifier.add_observer(COMMITS_SELECTED, self.commits_selected) self.connect(self, SIGNAL('itemSelectionChanged()'), self.selection_changed)
def __init__(self, notifier, parent): TreeWidget.__init__(self, parent) ViewerMixin.__init__(self) self.setSelectionMode(self.ContiguousSelection) self.setHeaderLabels([N_("Summary"), N_("Author"), N_("Date, Time")]) self.sha1map = {} self.notifier = notifier self.selecting = False self.commits = [] self.action_up = qtutils.add_action(self, N_("Go Up"), self.go_up, Qt.Key_K) self.action_down = qtutils.add_action(self, N_("Go Down"), self.go_down, Qt.Key_J) notifier.add_observer(COMMITS_SELECTED, self.commits_selected) self.connect(self, SIGNAL("itemSelectionChanged()"), self.selection_changed)
def __init__(self, notifier, parent): TreeWidget.__init__(self, parent) self.notifier = notifier self.setHeaderLabels([N_('Filename'), N_('Additions'), N_('Deletions')]) notifier.add_observer(COMMITS_SELECTED, self.commits_selected) self.show_history_action = ( qtutils.add_action(self, N_('Show History'), self.show_file_history, hotkeys.HISTORY)) self.launch_difftool_action = ( qtutils.add_action(self, N_('Launch Diff Tool'), self.show_file_diff, hotkeys.DIFF)) self.launch_editor_action = ( qtutils.add_action(self, N_('Launch Diff Tool'), self.edit_paths, hotkeys.EDIT)) self.connect(self, SIGNAL('itemSelectionChanged()'), self.selection_changed)
def __init__(self, notifier, parent): TreeWidget.__init__(self, parent) ViewerMixin.__init__(self) self.setSelectionMode(self.ContiguousSelection) self.setHeaderLabels([N_('Summary'), N_('Author'), N_('Date, Time')]) self.sha1map = {} self.notifier = notifier self.selecting = False self.commits = [] self.action_up = qtutils.add_action(self, N_('Go Up'), self.go_up, Qt.Key_K) self.action_down = qtutils.add_action(self, N_('Go Down'), self.go_down, Qt.Key_J) notifier.add_observer(COMMITS_SELECTED, self.commits_selected) self.connect(self, SIGNAL('itemSelectionChanged()'), self.selection_changed)