void RMainWindow::notifyListeners(bool withNull) { RDocument* document = NULL; RDocumentInterface* di = NULL; RGraphicsView* view = NULL; if (!withNull) { document = getDocument(); di = getDocumentInterface(); if (di!=NULL) { view = di->getLastKnownViewWithFocus(); } } notifyFocusListeners(di); notifyViewFocusListeners(view); notifyCoordinateListeners(di); notifySnapListeners(di); notifyTransactionListeners(document); notifyPropertyListeners(document); notifySelectionListeners(di); notifyLayerListeners(di); notifyPenListeners(di); notifyBlockListeners(di); notifyViewListeners(di); }
RGraphicsViewQt* RMdiChildQt::getLastKnownViewWithFocus() { RDocumentInterface* di = getDocumentInterface(); if (di==NULL) { return NULL; } return dynamic_cast<RGraphicsViewQt*>(di->getLastKnownViewWithFocus()); }