Skip to content

Commit

Permalink
chore: adds icon for whitelist toolbar button
Browse files Browse the repository at this point in the history
  • Loading branch information
ElpadoCan committed Feb 28, 2025
1 parent c63e18a commit 892ea25
Show file tree
Hide file tree
Showing 7 changed files with 1,822 additions and 231 deletions.
17 changes: 11 additions & 6 deletions cellacdc/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,14 +1374,18 @@ def gui_createToolBars(self):
self.widgetsWithShortcut['Select objects to keep'] = self.keepIDsButton

self.whitelistIDsButton = QToolButton(self)
self.whitelistIDsButton.setIcon(QIcon(":keep_objects.svg"))
self.whitelistIDsButton.setIcon(QIcon(":whitelist.svg"))
self.whitelistIDsButton.setCheckable(True)
self.whitelistIDsButton.action = editToolBar.addWidget(self.whitelistIDsButton)
self.whitelistIDsButton.setShortcut('K')
self.whitelistIDsButton.action = editToolBar.addWidget(
self.whitelistIDsButton
)
self.whitelistIDsButton.setShortcut('Ctrl+K')
self.checkableButtons.append(self.whitelistIDsButton)
self.checkableQButtonsGroup.addButton(self.whitelistIDsButton)
# self.functionsNotTested3D.append(self.whitelistIDsButton)
self.widgetsWithShortcut['White list IDs and delete the rest'] = self.whitelistIDsButton
self.widgetsWithShortcut['Select objects to add to a tracking whitelist'] = (
self.whitelistIDsButton
)

self.binCellButton = QToolButton(self)
self.binCellButton.setIcon(QIcon(":bin.svg"))
Expand Down Expand Up @@ -13200,7 +13204,6 @@ def whitelistIDs_cb(self, checked):
self.whitelistIDsToolbar.setVisible(checked)
self.whitelistIDsUpdateText()


def whitelistIDsChanged(self, whitelistIDs):
posData = self.data[self.pos_i]
self.clearHighlightedText()
Expand Down Expand Up @@ -25432,7 +25435,9 @@ def clearAnnotItems(self):

# @exec_time
def setAllTextAnnotations(self, labelsToSkip=None, update_whitelist=True):
delROIsIDs = self.setLostNewOldPrevIDs(update_whitelist=update_whitelist)
delROIsIDs = self.setLostNewOldPrevIDs(
update_whitelist=update_whitelist
)
posData = self.data[self.pos_i]
self.textAnnot[0].setAnnotations(
posData=posData,
Expand Down
904 changes: 791 additions & 113 deletions cellacdc/qrc_resources_dark.py

Large diffs are not rendered by default.

912 changes: 800 additions & 112 deletions cellacdc/qrc_resources_light.py

Large diffs are not rendered by default.

111 changes: 111 additions & 0 deletions cellacdc/resources/icons/whitelist.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 892ea25

Please sign in to comment.