comparison orpg/mapper/whiteboard.py @ 19:78407d627cba traipse_dev

Beginning of Code Clean-up. Some code untested, may break!
author sirebral
date Sat, 25 Jul 2009 17:24:40 -0500
parents 4385a7d0efd1
children 072ffc1d466f
comparison
equal deleted inserted replaced
18:67b900deb35c 19:78407d627cba
207 def highlight(self, highlight=True): 207 def highlight(self, highlight=True):
208 self.log.log("Enter WhiteboardLine->highlight(self, highlight)", ORPG_DEBUG) 208 self.log.log("Enter WhiteboardLine->highlight(self, highlight)", ORPG_DEBUG)
209 self.highlighted = highlight 209 self.highlighted = highlight
210 self.log.log("Enter WhiteboardLine->highlight(self, highlight)", ORPG_DEBUG) 210 self.log.log("Enter WhiteboardLine->highlight(self, highlight)", ORPG_DEBUG)
211 211
212 def set_line_props(self, line_string="", upperleftx=0, upperlefty=0, lowerrightx=0, lowerrighty=0, color="#000000", width=1): 212 def set_line_props(self, line_string="", upperleftx=0, upperlefty=0,
213 lowerrightx=0, lowerrighty=0, color="#000000", width=1):
213 self.log.log("Enter WhiteboardLine->set_line_props(self, line_string, upperleftx, upperlefty, lowerrightx, lowerrighty, color, width)", ORPG_DEBUG) 214 self.log.log("Enter WhiteboardLine->set_line_props(self, line_string, upperleftx, upperlefty, lowerrightx, lowerrighty, color, width)", ORPG_DEBUG)
214 self.line_string = line_string 215 self.line_string = line_string
215 self.upperleft.x = upperleftx 216 self.upperleft.x = upperleftx
216 self.upperleft.y = upperlefty 217 self.upperleft.y = upperlefty
217 self.lowerright.x = lowerrightx 218 self.lowerright.x = lowerrightx
653 self.log.log("Whiteboard error: Update of unknown text attempted.", ORPG_GENERAL) 654 self.log.log("Whiteboard error: Update of unknown text attempted.", ORPG_GENERAL)
654 self.log.log("Enter whiteboard_layer->layerTakeDOM(self, xml_dom)", ORPG_DEBUG) 655 self.log.log("Enter whiteboard_layer->layerTakeDOM(self, xml_dom)", ORPG_DEBUG)
655 #self.canvas.send_map_data() 656 #self.canvas.send_map_data()
656 657
657 def add_temp_line(self, line_string): 658 def add_temp_line(self, line_string):
658 line = WhiteboardLine(0, line_string, wx.Point(0,0), wx.Point(0,0), color=self.color, width=self.width, log=self.log) 659 line = WhiteboardLine(0, line_string, wx.Point(0,0), wx.Point(0,0),
660 color=self.color, width=self.width, log=self.log)
659 self.lines.append(line) 661 self.lines.append(line)
660 return line 662 return line
661 663
662 def del_temp_line(self, line): 664 def del_temp_line(self, line):
663 if line: 665 if line: