| 239 | } |
| 240 | |
| 241 | void Area::removeToolView(View* view) |
| 242 | { |
| 243 | Q_D(Area); |
| 244 | |
| 245 | if (!d->toolViews.contains(view)) |
| 246 | return; |
| 247 | |
| 248 | emit aboutToRemoveToolView(view, d->toolViewPositions[view]); |
| 249 | QString id = view->document()->documentSpecifier(); |
| 250 | qCDebug(SUBLIME) << this << "removed tool view" << id; |
| 251 | d->desiredToolViews.remove(id); |
| 252 | d->toolViews.removeAll(view); |
| 253 | d->toolViewPositions.remove(view); |
| 254 | } |
| 255 | |
| 256 | void Area::setToolViewPosition(View* toolView, Position newPosition) |
| 257 | { |