Project

General

Profile

Feature #4898 » commit-67d3e2e.diff

Saif Rehman, 05/09/2016 07:11 PM

View differences:

src/Wt/WCompositeWidget
virtual void setSelectable(bool selectable);
virtual void doJavaScript(const std::string& js);
virtual void propagateSetEnabled(bool enabled);
virtual void propagateSetVisible(bool visible);
static WFormWidget *getFormWidget(WWidget *widget);
WFormWidget* formWidgetImpl() { return fwImpl_; };
src/Wt/WCompositeWidget.C
impl_->webWidget()->propagateSetEnabled(enabled);
}
void WCompositeWidget::propagateSetVisible(bool visible)
{
impl_->webWidget()->propagateSetVisible(visible);
}
}
src/Wt/WWebWidget
virtual std::string renderRemoveJs(bool recursive);
virtual void propagateSetEnabled(bool enabled);
virtual void propagateSetVisible(bool visible);
virtual bool isStubbed() const;
virtual void enableAjax();
src/Wt/WWebWidget.C
if (canOptimizeUpdates() && (animation.empty() && hidden == isHidden()))
return;
bool wasVisible = isVisible();
flags_.set(BIT_HIDDEN, hidden);
flags_.set(BIT_HIDDEN_CHANGED);
......
transientImpl_->animation_ = animation;
}
bool shouldBeVisible = !hidden;
if(shouldBeVisible && parent())
shouldBeVisible = parent()->isVisible();
if(shouldBeVisible != wasVisible)
propagateSetVisible(shouldBeVisible);
WApplication::instance()
->session()->renderer().updateFormObjects(this, true);
......
}
}
void WWebWidget::propagateSetVisible(bool visible)
{
if (children_)
for (unsigned i = 0; i < children_->size(); ++i) {
WWidget *c = (*children_)[i];
if (!c->isHidden())
c->webWidget()->propagateSetVisible(visible);
}
}
bool WWebWidget::isDisabled() const
{
return flags_.test(BIT_DISABLED);
src/Wt/WWidget
*/
virtual void propagateSetEnabled(bool enabled) = 0;
virtual void propagateSetVisible(bool visible) = 0;
void getDrop(const std::string sourceId, const std::string mimeType,
WMouseEvent event);
(2-2/3)