(self, index)
| 1742 | QtWidgets.QMessageBox.Icon.Warning) |
| 1743 | |
| 1744 | def _cb_tab_changed(self, index): |
| 1745 | self.comboAction.setVisible(index == self.TAB_MAIN) |
| 1746 | |
| 1747 | if index != self.TAB_NETSTAT and self.LAST_TAB == self.TAB_NETSTAT: |
| 1748 | self._unmonitor_node_netstat(self.LAST_NETSTAT_NODE) |
| 1749 | self.comboNetstatNodes.setCurrentIndex(0) |
| 1750 | |
| 1751 | if self.LAST_TAB == self.TAB_NODES and self.LAST_SELECTED_ITEM != "": |
| 1752 | self._unmonitor_deselected_node(self.LAST_SELECTED_ITEM) |
| 1753 | |
| 1754 | self.TABLES[index]['cmdCleanStats'].setVisible(True) |
| 1755 | if index == self.TAB_MAIN: |
| 1756 | self._set_events_query() |
| 1757 | elif index == self.TAB_NETSTAT: |
| 1758 | self._monitor_node_netstat() |
| 1759 | else: |
| 1760 | if index == self.TAB_RULES: |
| 1761 | # display the clean buton only if not in detail view |
| 1762 | self.TABLES[index]['cmdCleanStats'].setVisible( self.IN_DETAIL_VIEW[index] ) |
| 1763 | self._add_rulesTree_nodes() |
| 1764 | |
| 1765 | elif index == self.TAB_PROCS: |
| 1766 | # make the button visible depending if we're in the detail view |
| 1767 | nrows = self._get_active_table().model().rowCount() |
| 1768 | self.cmdProcDetails.setVisible(self.IN_DETAIL_VIEW[index] and nrows > 0) |
| 1769 | elif index == self.TAB_NODES: |
| 1770 | self.TABLES[index]['cmdCleanStats'].setVisible( self.IN_DETAIL_VIEW[index] ) |
| 1771 | |
| 1772 | self.LAST_TAB = index |
| 1773 | self._refresh_active_table() |
| 1774 | |
| 1775 | def _cb_table_context_menu(self, pos): |
| 1776 | cur_idx = self.tabWidget.currentIndex() |
nothing calls this directly
no test coverage detected