mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponents: move item type enum to cc_types.h
This commit is contained in:
@@ -103,23 +103,6 @@ class CComponentsItem : public CComponents
|
|||||||
void initVarItem();
|
void initVarItem();
|
||||||
|
|
||||||
public:
|
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();
|
CComponentsItem();
|
||||||
|
|
||||||
virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES) = 0;
|
virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES) = 0;
|
||||||
|
@@ -285,7 +285,7 @@ void CComponentsForm::hide(bool no_restore)
|
|||||||
// because the handling of minitv items are different to other item types
|
// because the handling of minitv items are different to other item types
|
||||||
// and need an explizit call of hide()
|
// and need an explizit call of hide()
|
||||||
for(size_t i=0; i<v_cc_items.size(); i++) {
|
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();
|
v_cc_items[i]->hide();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -29,6 +29,25 @@
|
|||||||
#include <driver/framebuffer.h>
|
#include <driver/framebuffer.h>
|
||||||
#include <system/localize.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
|
//required typedefs
|
||||||
typedef struct comp_fbdata_t
|
typedef struct comp_fbdata_t
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user