mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
CInfoViewer: use different modes with enums for virtual zap and number input mode
This should fix missing rounded corners in numbaur input mode too.
Thx defans for input !
Origin commit data
------------------
Branch: ni/coolstream
Commit: 98b73c0d09
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-12 (Tue, 12 Jan 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -57,6 +57,7 @@ class CInfoViewer
|
||||
|
||||
bool gotTime;
|
||||
bool recordModeActive;
|
||||
|
||||
#ifndef SKIP_CA_STATUS
|
||||
bool CA_Status;
|
||||
#endif
|
||||
@@ -110,6 +111,7 @@ class CInfoViewer
|
||||
bool casysChange;
|
||||
bool channellogoChange;
|
||||
uint32_t lcdUpdateTimer;
|
||||
int zap_mode;
|
||||
|
||||
void paintBackground(int col_Numbox);
|
||||
void paintHead();
|
||||
@@ -147,7 +149,7 @@ class CInfoViewer
|
||||
public:
|
||||
bool chanready;
|
||||
bool is_visible;
|
||||
bool virtual_zap_mode;
|
||||
|
||||
char aspectRatio;
|
||||
uint32_t sec_timer_id;
|
||||
|
||||
@@ -178,7 +180,27 @@ class CInfoViewer
|
||||
//void Set_CA_Status(int Status);
|
||||
|
||||
int handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data);
|
||||
void clearVirtualZapMode() {virtual_zap_mode = false;}
|
||||
|
||||
enum{
|
||||
IV_MODE_DEFAULT = 0,
|
||||
IV_MODE_VIRTUAL_ZAP = 1,
|
||||
IV_MODE_NUMBER_ZAP = 2
|
||||
};/*iv_switch_mode_t*/
|
||||
/**sets mode for infoviewer.
|
||||
* @param[in] mode
|
||||
* @li IV_MODE_DEFAULT
|
||||
* @li IV_MODE_VIRTUAL_ZAP means the virtual zap mode, user is typing keys for virtual channel switch
|
||||
* @li IV_MODE_NUMBER_ZAP means number mode, user is typing number keys into screen
|
||||
* @return
|
||||
* void
|
||||
* @see
|
||||
* resetSwitchMode()
|
||||
* getSwitchMode()
|
||||
*/
|
||||
void setSwitchMode(const int& mode) {zap_mode = mode;}
|
||||
int getSwitchMode() {return zap_mode;}
|
||||
void resetSwitchMode() {setSwitchMode(IV_MODE_DEFAULT);}
|
||||
|
||||
void changePB();
|
||||
void ResetPB();
|
||||
void showSNR();
|
||||
|
Reference in New Issue
Block a user