From d0aaeecb1ab1d3bd31f67722df6d33c51ef6ae51 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 8 Jan 2014 08:06:39 +0100 Subject: [PATCH] CComponentsForm: add members to get count of items Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/2191fded3862a997973a52112f77bd6508d67fd4 Author: Thilo Graf Date: 2014-01-08 (Wed, 08 Jan 2014) --- src/gui/components/cc_frm.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/components/cc_frm.h b/src/gui/components/cc_frm.h index 7e37a6698..bbd60e263 100644 --- a/src/gui/components/cc_frm.h +++ b/src/gui/components/cc_frm.h @@ -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;}; };