added enable switch

This commit is contained in:
Peter Schojer
2008-09-11 12:15:11 +00:00
parent f0ffa66fc3
commit 8ff2f8f7e4
3 changed files with 31 additions and 7 deletions

View File

@@ -88,6 +88,9 @@ void PanelRenderer::renderHead(const Renderable* pRenderable, const RenderContex
ostr << ",header:true,maximizable:true,collapsible:true";
else
ostr << ",header:false";
if (!pPanel->enabled())
ostr << ",disabled:true";
// a panel has exactly one child
// if this child is a layout we are fine otherwise we have to generate the items array