mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
menu: add condition to enable/disable items in record mode (version 2)
Origin commit data
------------------
Commit: 5246233088
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-08-03 (Fri, 03 Aug 2018)
Origin message was:
------------------
- menu: add condition to enable/disable items in record mode (version 2)
This commit is contained in:
@@ -75,10 +75,13 @@ struct menu_return
|
||||
enum
|
||||
{
|
||||
DCOND_MODE_NONE = 1,
|
||||
|
||||
// Neutrino modes
|
||||
DCOND_MODE_TV = 2,
|
||||
DCOND_MODE_RADIO = 4,
|
||||
DCOND_MODE_TS = 8
|
||||
DCOND_MODE_TS = 8,
|
||||
// record modes
|
||||
DCOND_MODE_REC = 16,
|
||||
DCOND_MODE_TSHIFT = 32
|
||||
}/*menu_item_disable_cond_t*/;
|
||||
|
||||
class CChangeObserver
|
||||
@@ -116,7 +119,8 @@ class CMenuItem : public CComponentsSignals
|
||||
int x, y, dx, offx, name_start_x;
|
||||
bool used;
|
||||
fb_pixel_t item_color, item_bgcolor;
|
||||
bool initModeCondition(const int& stb_mode);
|
||||
bool initNeutrinoModeCondition(const int& stb_mode);
|
||||
bool initRecordModeCondition(const int& rec_mode);
|
||||
void initItemColors(const bool select_mode);
|
||||
lua_State *luaState;
|
||||
std::string luaAction;
|
||||
|
Reference in New Issue
Block a user