CComponentsForm: add new member isAdded()

This commit is contained in:
2013-06-12 22:40:12 +02:00
parent 2af1c5d8b2
commit f968abe6c5
2 changed files with 11 additions and 0 deletions

View File

@@ -162,6 +162,15 @@ int CComponentsForm::getCCItemId(CComponentsItem* cc_Item)
return -1;
}
bool CComponentsForm::isAdded(CComponentsItem* cc_item)
{
bool ret = false;
if (getCCItemId(cc_item) != -1)
ret = true;
return ret;
}
CComponentsItem* CComponentsForm::getCCItem(const uint& cc_item_id)
{
if (v_cc_items[cc_item_id])