| 231 | } |
| 232 | |
| 233 | void Editor::DropGraphics ( bool freeObjects ) |
| 234 | { |
| 235 | if ( freeObjects ) { |
| 236 | delete pixmapLine; |
| 237 | pixmapLine = 0; |
| 238 | delete pixmapSelMargin; |
| 239 | pixmapSelMargin = 0; |
| 240 | delete pixmapSelPattern; |
| 241 | pixmapSelPattern = 0; |
| 242 | delete pixmapSelPatternOffset1; |
| 243 | pixmapSelPatternOffset1 = 0; |
| 244 | delete pixmapIndentGuide; |
| 245 | pixmapIndentGuide = 0; |
| 246 | delete pixmapIndentGuideHighlight; |
| 247 | pixmapIndentGuideHighlight = 0; |
| 248 | } else { |
| 249 | if ( pixmapLine ) { |
| 250 | pixmapLine->Release(); |
| 251 | } |
| 252 | if ( pixmapSelMargin ) { |
| 253 | pixmapSelMargin->Release(); |
| 254 | } |
| 255 | if ( pixmapSelPattern ) { |
| 256 | pixmapSelPattern->Release(); |
| 257 | } |
| 258 | if ( pixmapSelPatternOffset1 ) { |
| 259 | pixmapSelPatternOffset1->Release(); |
| 260 | } |
| 261 | if ( pixmapIndentGuide ) { |
| 262 | pixmapIndentGuide->Release(); |
| 263 | } |
| 264 | if ( pixmapIndentGuideHighlight ) { |
| 265 | pixmapIndentGuideHighlight->Release(); |
| 266 | } |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | void Editor::AllocateGraphics() |
| 271 | { |