virtual UCHAR getButtonPress(int how)=0;
virtual void clearBuffer()=0;
+ virtual bool mayHaveFewButtons() {return false;};
+
virtual void InitHWCListwithDefaults();
virtual char* HCWDesc(ULLONG hcw);
const char *CommandDesc(UCHAR number);
const char*HardcodedTranslateStr(UCHAR command);
char* HCWDesc(ULLONG hcw);
+ bool mayHaveFewButtons() {return true;};
+
int initCec();
void deinitCec();
// NEW REMOTE ONLY - navigate EPG, bring it onscreen if it's not there\r
case Remote::UP:\r
{\r
- doUpDown(false);\r
+ if (Remote::getInstance()->mayHaveFewButtons()) {\r
+ if (okTriggeredOSD) doUpDown(false);\r
+ else doChanUpDown(UP);\r
+ } else {\r
+ doUpDown(false);\r
+ }\r
return 2;\r
}\r
case Remote::DOWN:\r
{\r
- doUpDown(true);\r
+ if (Remote::getInstance()->mayHaveFewButtons()) {\r
+ if (okTriggeredOSD) doUpDown(true);\r
+ else doChanUpDown(DOWN);\r
+ } else {\r
+ doUpDown(true);\r
+ }\r
return 2;\r
}\r
case Remote::LEFT:\r
{
public:
WOptionBox();
- ~WOptionBox();
+ virtual ~WOptionBox();
// Int mode stuff
void setIntMode(int start, int numOptions);
{
public:
WProgressBar();
- ~WProgressBar();
+ virtual ~WProgressBar();
void setPercent(UINT percent);
void draw();
bool showseloption, darkseloption;\r
\r
UINT gap;\r
- DrawStyle &backgroundColour;\r
+ DrawStyle backgroundColour;\r
};\r
\r
#endif\r
private:
char* text;
- DrawStyle& foreColour;
+ DrawStyle foreColour;
int textX;
int textY;
bool paraMode;