comparison clients/editor/plugins/layertool.py @ 242:561751c094b8

Switched default font in the editor to FreeSans. Fixed the layertool to not use _setBackgroundColor etc.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 25 Mar 2009 08:31:04 +0000
parents 2a80f7d9aede
children
comparison
equal deleted inserted replaced
241:99b36f59a5d5 242:561751c094b8
213 if not self.data: return 213 if not self.data: return
214 214
215 if self.previous_active_layer is not None: 215 if self.previous_active_layer is not None:
216 previous_layer_id = str(self.previous_active_layer) 216 previous_layer_id = str(self.previous_active_layer)
217 previous_active_widget = self.container.findChild(name="select_" + previous_layer_id) 217 previous_active_widget = self.container.findChild(name="select_" + previous_layer_id)
218 previous_active_widget._setBackgroundColor(_DEFAULT_BACKGROUND_COLOR) 218 previous_active_widget.background_color = _DEFAULT_BACKGROUND_COLOR
219 previous_active_widget._setForegroundColor(_DEFAULT_BACKGROUND_COLOR) 219 previous_active_widget.foreground_color = _DEFAULT_BACKGROUND_COLOR
220 previous_active_widget._setBaseColor(_DEFAULT_BACKGROUND_COLOR) 220 previous_active_widget.base_color = _DEFAULT_BACKGROUND_COLOR
221 previous_active_widget.text = previous_layer_id 221 previous_active_widget.text = previous_layer_id
222 222
223 layerid = widget.name[7:] 223 layerid = widget.name[7:]
224 224
225 widget._setBackgroundColor(_HIGHLIGHT_BACKGROUND_COLOR) 225 widget.background_color = _HIGHLIGHT_BACKGROUND_COLOR
226 widget._setForegroundColor(_HIGHLIGHT_BACKGROUND_COLOR) 226 widget.foreground_color = _HIGHLIGHT_BACKGROUND_COLOR
227 widget._setBaseColor(_HIGHLIGHT_BACKGROUND_COLOR) 227 widget.base_color = _HIGHLIGHT_BACKGROUND_COLOR
228 widget.text = widget.text + " *" 228 widget.text = widget.text + " *"
229 self.previous_active_layer = layerid 229 self.previous_active_layer = layerid
230 self.container.adaptLayout() 230 self.container.adaptLayout()
231 231
232 self._mapedit._editLayer(layerid) 232 self._mapedit._editLayer(layerid)