Add Page level redraw signal

This commit is contained in:
WandererFan
2017-08-03 11:24:13 -04:00
committed by wmayer
parent ddbbae9956
commit 2524053887
4 changed files with 38 additions and 10 deletions

View File

@@ -128,7 +128,6 @@ void DrawPage::onChanged(const App::Property* prop)
}
} else if(prop == &Scale) {
// touch all views in the Page as they may be dependent on this scale
// but the views know how to get their own Scale correctly.
const std::vector<App::DocumentObject*> &vals = Views.getValues();
for(std::vector<App::DocumentObject *>::const_iterator it = vals.begin(); it < vals.end(); ++it) {
TechDraw::DrawView *view = dynamic_cast<TechDraw::DrawView *>(*it);
@@ -281,6 +280,11 @@ int DrawPage::removeView(App::DocumentObject *docObj)
return Views.getSize();
}
void DrawPage::requestPaint(void)
{
signalGuiPaint(this);
}
void DrawPage::onDocumentRestored()
{
std::vector<App::DocumentObject*> featViews = Views.getValues();