Added fixes for layouts+ComboBoxevents

This commit is contained in:
Peter Schojer
2008-05-27 12:58:28 +00:00
parent 0362659ac9
commit e07a2126e9
22 changed files with 258 additions and 27 deletions

View File

@@ -85,7 +85,21 @@ void ButtonCellRenderer::renderProperties(const ButtonCell* pButtonCell, const s
//ostr << "handler: function(){Ext.getCmp('" << pForm->id() << "').getForm().submit({url:'" << pForm->getURI().toString() << "',waitMsg:'Loading'});},";
ostr << "handler: function(){Ext.getCmp('" << pForm->id() << "').getForm().submit();},";
}
Utility::writeCellProperties(pButtonCell, ostr, writeId);
if (writeId)
Utility::writeRenderableProperties(pButtonCell, ostr);
if (!pButtonCell->isEnabled())
ostr << ",disabled:true";
View* pOwner = pButtonCell->getOwner();
if (pOwner)
{
if (!pOwner->getName().empty())
ostr << ",name:'" << pOwner->getName() << "'";
if (pOwner->getWidth() != 0)
ostr << ",minWidth:" << pOwner->getWidth();
if (!pOwner->isVisible())
ostr << ",hidden:true";
}
std::string toolTip(pButtonCell->getToolTip());
if (!toolTip.empty())
ostr << ",tooltip:'" << Utility::safe(toolTip) << "'";