equal
deleted
inserted
replaced
1246 |
1246 |
1247 def EditPowerRailContent(self, powerrail): |
1247 def EditPowerRailContent(self, powerrail): |
1248 if self.GetDrawingMode() == FREEDRAWING_MODE: |
1248 if self.GetDrawingMode() == FREEDRAWING_MODE: |
1249 Viewer.EditPowerRailContent(self, powerrail) |
1249 Viewer.EditPowerRailContent(self, powerrail) |
1250 |
1250 |
|
1251 #------------------------------------------------------------------------------- |
|
1252 # Model update functions |
|
1253 #------------------------------------------------------------------------------- |
|
1254 |
|
1255 def RefreshBlockModel(self, block): |
|
1256 blockid = block.GetId() |
|
1257 infos = {} |
|
1258 infos["type"] = block.GetType() |
|
1259 infos["name"] = block.GetName() |
|
1260 infos["x"], infos["y"] = block.GetPosition() |
|
1261 infos["width"], infos["height"] = block.GetSize() |
|
1262 infos["connectors"] = block.GetConnectors() |
|
1263 self.Controler.SetEditedElementBlockInfos(self.TagName, blockid, infos) |