mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-27 01:06:38 +00:00
MiRCARTCanvasInterface.py: sync menu item state when selecting tool.
This commit is contained in:
parent
b6040ef482
commit
d8f8f47543
@ -263,36 +263,43 @@ class MiRCARTCanvasInterface():
|
|||||||
# {{{ canvasToolCircle(self, event): XXX
|
# {{{ canvasToolCircle(self, event): XXX
|
||||||
def canvasToolCircle(self, event):
|
def canvasToolCircle(self, event):
|
||||||
self.canvasTool = MiRCARTToolCircle(self.parentCanvas)
|
self.canvasTool = MiRCARTToolCircle(self.parentCanvas)
|
||||||
|
self.parentFrame.menuItemsById[self.parentFrame.CID_CIRCLE[0]].Check(True)
|
||||||
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ canvasToolFill(self, event): XXX
|
# {{{ canvasToolFill(self, event): XXX
|
||||||
def canvasToolFill(self, event):
|
def canvasToolFill(self, event):
|
||||||
self.canvasTool = MiRCARTToolFill(self.parentCanvas)
|
self.canvasTool = MiRCARTToolFill(self.parentCanvas)
|
||||||
|
self.parentFrame.menuItemsById[self.parentFrame.CID_FILL[0]].Check(True)
|
||||||
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ canvasToolLine(self, event): XXX
|
# {{{ canvasToolLine(self, event): XXX
|
||||||
def canvasToolLine(self, event):
|
def canvasToolLine(self, event):
|
||||||
self.canvasTool = MiRCARTToolLine(self.parentCanvas)
|
self.canvasTool = MiRCARTToolLine(self.parentCanvas)
|
||||||
|
self.parentFrame.menuItemsById[self.parentFrame.CID_LINE[0]].Check(True)
|
||||||
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ canvasToolSelectClone(self, event): XXX
|
# {{{ canvasToolSelectClone(self, event): XXX
|
||||||
def canvasToolSelectClone(self, event):
|
def canvasToolSelectClone(self, event):
|
||||||
self.canvasTool = MiRCARTToolSelectClone(self.parentCanvas)
|
self.canvasTool = MiRCARTToolSelectClone(self.parentCanvas)
|
||||||
|
self.parentFrame.menuItemsById[self.parentFrame.CID_CLONE_SELECT[0]].Check(True)
|
||||||
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ canvasToolSelectMove(self, event): XXX
|
# {{{ canvasToolSelectMove(self, event): XXX
|
||||||
def canvasToolSelectMove(self, event):
|
def canvasToolSelectMove(self, event):
|
||||||
self.canvasTool = MiRCARTToolSelectMove(self.parentCanvas)
|
self.canvasTool = MiRCARTToolSelectMove(self.parentCanvas)
|
||||||
|
self.parentFrame.menuItemsById[self.parentFrame.CID_MOVE_SELECT[0]].Check(True)
|
||||||
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ canvasToolRect(self, event): XXX
|
# {{{ canvasToolRect(self, event): XXX
|
||||||
def canvasToolRect(self, event):
|
def canvasToolRect(self, event):
|
||||||
self.canvasTool = MiRCARTToolRect(self.parentCanvas)
|
self.canvasTool = MiRCARTToolRect(self.parentCanvas)
|
||||||
|
self.parentFrame.menuItemsById[self.parentFrame.CID_RECT[0]].Check(True)
|
||||||
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ canvasToolText(self, event): XXX
|
# {{{ canvasToolText(self, event): XXX
|
||||||
def canvasToolText(self, event):
|
def canvasToolText(self, event):
|
||||||
self.canvasTool = MiRCARTToolText(self.parentCanvas)
|
self.canvasTool = MiRCARTToolText(self.parentCanvas)
|
||||||
|
self.parentFrame.menuItemsById[self.parentFrame.CID_TEXT[0]].Check(True)
|
||||||
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
self.parentFrame.onCanvasUpdate(toolName=self.canvasTool.name)
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ canvasUndo(self, event): XXX
|
# {{{ canvasUndo(self, event): XXX
|
||||||
|
Loading…
Reference in New Issue
Block a user