mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-17 16:47:19 +02:00
[ui] Rename "Clear Images" actions into "Remove All Images"
Update the names of the commands that remove images in the "File" menu to match with those in the Image Gallery menu. "Clear Images" becomes "Remove All Images" and "Clear All Images" becomes "Remove Images From All CameraInit Nodes".
This commit is contained in:
parent
d2dc78dd5a
commit
66ffe017a4
5 changed files with 24 additions and 23 deletions
|
@ -356,13 +356,13 @@ class ListAttributeRemoveCommand(GraphCommand):
|
|||
listAttribute.insert(self.index, self.value)
|
||||
|
||||
|
||||
class ClearImagesCommand(GraphCommand):
|
||||
class RemoveImagesCommand(GraphCommand):
|
||||
def __init__(self, graph, cameraInitNodes, parent=None):
|
||||
super(ClearImagesCommand, self).__init__(graph, parent)
|
||||
super(RemoveImagesCommand, self).__init__(graph, parent)
|
||||
self.cameraInits = cameraInitNodes
|
||||
self.viewpoints = { cameraInit.name: cameraInit.attribute("viewpoints").getExportValue() for cameraInit in self.cameraInits }
|
||||
self.intrinsics = { cameraInit.name: cameraInit.attribute("intrinsics").getExportValue() for cameraInit in self.cameraInits }
|
||||
self.title = "Clear{}Images".format(" " if len(self.cameraInits) == 1 else " All ")
|
||||
self.title = "Remove{}Images".format(" " if len(self.cameraInits) == 1 else " All ")
|
||||
self.setText(self.title)
|
||||
|
||||
def redoImpl(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue