CComponentsForm: add members to get count of items

This commit is contained in:
2014-01-08 08:06:39 +01:00
parent 7403aa2d46
commit 2191fded38

View File

@@ -62,8 +62,14 @@ class CComponentsForm : public CComponentsItem
virtual int getCCItemId(CComponentsItem* cc_Item);
virtual CComponentsItem* getCCItem(const uint& cc_item_id);
virtual void paintCCItems();
///clean up and deallocate existant items from v_cc_items at once
virtual void clear();
///return true, if no items available
virtual bool empty(){return v_cc_items.empty();};
///return size (count) of available items
virtual size_t size(){return v_cc_items.size();};
virtual void setAppendOffset(const int &h_offset, const int& v_offset){append_h_offset = h_offset; append_v_offset = v_offset;};
};