예제 #1
0
파일: WWidget.C 프로젝트: bytemaster/wt-1
bool WWidget::isInLayout() const
{
    WWidget *p = parent();
    if (p != 0 &&
            (dynamic_cast<WCompositeWidget *>(p) != 0 ||
             !p->javaScriptMember(WT_RESIZE_JS).empty()))
        return p->isInLayout();

    WContainerWidget *c = dynamic_cast<WContainerWidget *>(p);

    return c != 0 && c->layout() != 0;
}
예제 #2
0
파일: WDialog.C 프로젝트: NeilNienaber/wt
WContainerWidget *WDialog::footer() const
{
  if (!footer_) {
    footer_ = new WContainerWidget();
    WApplication::instance()->theme()->apply(const_cast<WDialog *>(this),
					     footer_, DialogFooterRole);

    WContainerWidget *layoutContainer
      = impl_->resolve<WContainerWidget *>("layout");
    layoutContainer->layout()->addWidget(footer_);
  }

  return footer_;
}