mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
Merge branch 'master' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/tuxbox
Origin commit data
------------------
Branch: ni/coolstream
Commit: b57a2b31cd
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-25 (Fri, 25 Nov 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -502,6 +502,22 @@ void CKeyboardInput::keyBackspacePressed(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CKeyboardInput::keyDigiPressed(const neutrino_msg_t key)
|
||||||
|
{
|
||||||
|
int old_col = scol;
|
||||||
|
int old_srow = srow;
|
||||||
|
int digi = CRCInput::getNumericValue(key);
|
||||||
|
digi = (digi == 0) ? 10 : digi;
|
||||||
|
srow = 0;
|
||||||
|
scol = digi;
|
||||||
|
if (focus == FOCUS_KEY)
|
||||||
|
paintKey(old_srow, old_col);
|
||||||
|
|
||||||
|
focus = FOCUS_KEY;
|
||||||
|
paintKey(srow, scol);
|
||||||
|
NormalKeyPressed();
|
||||||
|
}
|
||||||
|
|
||||||
void CKeyboardInput::insertChar()
|
void CKeyboardInput::insertChar()
|
||||||
{
|
{
|
||||||
int item = inputSize -1;
|
int item = inputSize -1;
|
||||||
@@ -614,6 +630,10 @@ int CKeyboardInput::exec(CMenuTarget* parent, const std::string &)
|
|||||||
{
|
{
|
||||||
switchLayout();
|
switchLayout();
|
||||||
}
|
}
|
||||||
|
else if (CRCInput::isNumeric(msg))
|
||||||
|
{
|
||||||
|
keyDigiPressed(msg);
|
||||||
|
}
|
||||||
else if ((msg == CRCInput::RC_home) || (msg == CRCInput::RC_timeout))
|
else if ((msg == CRCInput::RC_home) || (msg == CRCInput::RC_timeout))
|
||||||
{
|
{
|
||||||
if ((inputString->getValue() != oldval) &&
|
if ((inputString->getValue() != oldval) &&
|
||||||
|
@@ -104,6 +104,8 @@ class CKeyboardInput : public CMenuTarget
|
|||||||
bool force_saveScreen;
|
bool force_saveScreen;
|
||||||
fb_pixel_t *pixBuf;
|
fb_pixel_t *pixBuf;
|
||||||
|
|
||||||
|
void keyDigiPressed(const neutrino_msg_t key);
|
||||||
|
|
||||||
virtual void init();
|
virtual void init();
|
||||||
|
|
||||||
virtual void paint();
|
virtual void paint();
|
||||||
|
@@ -1413,16 +1413,18 @@ void CMenuWidget::saveScreen()
|
|||||||
delete[] background;
|
delete[] background;
|
||||||
saveScreen_height = full_height+fbutton_height;
|
saveScreen_height = full_height+fbutton_height;
|
||||||
saveScreen_width = full_width;
|
saveScreen_width = full_width;
|
||||||
|
saveScreen_y = y;
|
||||||
|
saveScreen_x = x;
|
||||||
background = new fb_pixel_t [saveScreen_height * saveScreen_width];
|
background = new fb_pixel_t [saveScreen_height * saveScreen_width];
|
||||||
if(background)
|
if(background)
|
||||||
frameBuffer->SaveScreen(x /*-ConnectLineBox_Width*/, y, full_width, saveScreen_height, background);
|
frameBuffer->SaveScreen(saveScreen_x /*-ConnectLineBox_Width*/, saveScreen_y, saveScreen_width, saveScreen_height, background);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMenuWidget::restoreScreen()
|
void CMenuWidget::restoreScreen()
|
||||||
{
|
{
|
||||||
if(background) {
|
if(background) {
|
||||||
if(savescreen)
|
if(savescreen)
|
||||||
frameBuffer->RestoreScreen(x /*-ConnectLineBox_Width*/, y, saveScreen_width, saveScreen_height, background);
|
frameBuffer->RestoreScreen(saveScreen_x /*-ConnectLineBox_Width*/, saveScreen_y, saveScreen_width, saveScreen_height, background);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1434,6 +1436,8 @@ void CMenuWidget::enableSaveScreen(bool enable)
|
|||||||
background = NULL;
|
background = NULL;
|
||||||
saveScreen_width = 0;
|
saveScreen_width = 0;
|
||||||
saveScreen_height = 0;
|
saveScreen_height = 0;
|
||||||
|
saveScreen_y = 0;
|
||||||
|
saveScreen_x = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -496,6 +496,8 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
|
|||||||
CComponentsHeader *header;
|
CComponentsHeader *header;
|
||||||
unsigned int saveScreen_width ;
|
unsigned int saveScreen_width ;
|
||||||
unsigned int saveScreen_height;
|
unsigned int saveScreen_height;
|
||||||
|
unsigned int saveScreen_y;
|
||||||
|
unsigned int saveScreen_x;
|
||||||
protected:
|
protected:
|
||||||
std::string nameString;
|
std::string nameString;
|
||||||
neutrino_locale_t name;
|
neutrino_locale_t name;
|
||||||
|
Reference in New Issue
Block a user