CComponents: move item type enum to cc_types.h

This commit is contained in:
2013-03-26 19:15:21 +01:00
parent d87290c2bc
commit d391bedd5f
3 changed files with 20 additions and 18 deletions

View File

@@ -103,23 +103,6 @@ class CComponentsItem : public CComponents
void initVarItem();
public:
enum
{
CC_ITEMTYPE_BASE,
CC_ITEMTYPE_PICTURE,
CC_ITEMTYPE_TEXT,
CC_ITEMTYPE_TEXT_INFOBOX,
CC_ITEMTYPE_SHAPE_SQUARE,
CC_ITEMTYPE_SHAPE_CIRCLE,
CC_ITEMTYPE_PIP,
CC_ITEMTYPE_FRM,
CC_ITEMTYPE_FRM_HEADER,
CC_ITEMTYPE_FRM_ICONFORM,
CC_ITEMTYPE_FRM_WINDOW,
CC_ITEMTYPE_LABEL,
CC_ITEMTYPES
};
CComponentsItem();
virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES) = 0;

View File

@@ -285,7 +285,7 @@ void CComponentsForm::hide(bool no_restore)
// because the handling of minitv items are different to other item types
// and need an explizit call of hide()
for(size_t i=0; i<v_cc_items.size(); i++) {
if (v_cc_items[i]->getItemType() == CComponentsItem::CC_ITEMTYPE_PIP){
if (v_cc_items[i]->getItemType() == CC_ITEMTYPE_PIP){
v_cc_items[i]->hide();
break;
}

View File

@@ -29,6 +29,25 @@
#include <driver/framebuffer.h>
#include <system/localize.h>
///cc item types
typedef enum
{
CC_ITEMTYPE_BASE,
CC_ITEMTYPE_PICTURE,
CC_ITEMTYPE_TEXT,
CC_ITEMTYPE_TEXT_INFOBOX,
CC_ITEMTYPE_SHAPE_SQUARE,
CC_ITEMTYPE_SHAPE_CIRCLE,
CC_ITEMTYPE_PIP,
CC_ITEMTYPE_FRM,
CC_ITEMTYPE_FRM_HEADER,
CC_ITEMTYPE_FRM_ICONFORM,
CC_ITEMTYPE_FRM_WINDOW,
CC_ITEMTYPE_LABEL,
CC_ITEMTYPES
}CC_ITEMTYPES_T;
//required typedefs
typedef struct comp_fbdata_t
{