| 250 | } |
| 251 | |
| 252 | void DisplayInsertMarker::UpdatePicture() |
| 253 | { |
| 254 | CStatic* ctrl = dynamic_cast<CStatic*>(GetCtrl(IDC_INSERT_MARKER_PICTURE)); |
| 255 | if (ctrl) |
| 256 | { |
| 257 | const ParamEntry& markers = Pars >> "CfgMarkers"; |
| 258 | if (_picture < 0 || _picture >= markers.GetEntryCount()) |
| 259 | { |
| 260 | return; |
| 261 | } |
| 262 | const ParamEntry& colors = Pars >> "CfgMarkerColors"; |
| 263 | if (_color < 0 || _color >= colors.GetEntryCount()) |
| 264 | { |
| 265 | return; |
| 266 | } |
| 267 | |
| 268 | const ParamEntry& markerCfg = markers.GetEntry(_picture); |
| 269 | RString picture = markerCfg >> "icon"; |
| 270 | const ParamEntry& colorCfg = colors.GetEntry(_color); |
| 271 | PackedColor color; |
| 272 | if (stricmp(colorCfg.GetName(), "default") == 0) |
| 273 | { |
| 274 | color = GetPackedColor(markerCfg >> "color"); |
| 275 | } |
| 276 | else |
| 277 | { |
| 278 | color = GetPackedColor(colorCfg >> "color"); |
| 279 | } |
| 280 | ctrl->SetText(picture); |
| 281 | ctrl->SetFtColor(color); |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | void DisplayInsertMarker::PrevPicture() |
| 286 | { |
nothing calls this directly
no test coverage detected