mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
format timerlist.cpp with astyle
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1352 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -251,10 +251,10 @@ CTimerList::CTimerList()
|
|||||||
Timer = new CTimerdClient();
|
Timer = new CTimerdClient();
|
||||||
skipEventID=0;
|
skipEventID=0;
|
||||||
|
|
||||||
/* assuming all color icons must have same size */
|
/* assuming all color icons must have same size */
|
||||||
int icol_w, icol_h, ih2;
|
int icol_w, icol_h, ih2;
|
||||||
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_RED, &icol_w, &icol_h);
|
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_RED, &icol_w, &icol_h);
|
||||||
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_OKAY, &icol_w, &ih2);
|
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_OKAY, &icol_w, &ih2);
|
||||||
icol_h = std::max(icol_h, ih2);
|
icol_h = std::max(icol_h, ih2);
|
||||||
|
|
||||||
//buttonHeight = 7 + std::max(icol_h+2, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight());
|
//buttonHeight = 7 + std::max(icol_h+2, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight());
|
||||||
@@ -374,16 +374,16 @@ int CTimerList::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
else if(actionKey == "rec_dir1") {
|
else if(actionKey == "rec_dir1") {
|
||||||
parent->hide();
|
parent->hide();
|
||||||
const char *action_str = "RecDir1";
|
const char *action_str = "RecDir1";
|
||||||
if(chooserDir(timerlist[selected].recordingDir, true, action_str, sizeof(timerlist[selected].recordingDir)-1)){
|
if(chooserDir(timerlist[selected].recordingDir, true, action_str, sizeof(timerlist[selected].recordingDir)-1)) {
|
||||||
printf("[%s] new %s dir %s\n",__FILE__, action_str, timerlist[selected].recordingDir);
|
printf("[%s] new %s dir %s\n",__FILE__, action_str, timerlist[selected].recordingDir);
|
||||||
}
|
}
|
||||||
return menu_return::RETURN_REPAINT;
|
return menu_return::RETURN_REPAINT;
|
||||||
}
|
}
|
||||||
else if(actionKey == "rec_dir2") {
|
else if(actionKey == "rec_dir2") {
|
||||||
parent->hide();
|
parent->hide();
|
||||||
const char *action_str = "RecDir2";
|
const char *action_str = "RecDir2";
|
||||||
if(chooserDir(timerNew.recordingDir, true, action_str, sizeof(timerNew.recordingDir)-1)){
|
if(chooserDir(timerNew.recordingDir, true, action_str, sizeof(timerNew.recordingDir)-1)) {
|
||||||
printf("[%s] new %s dir %s\n",__FILE__, action_str, timerNew.recordingDir);
|
printf("[%s] new %s dir %s\n",__FILE__, action_str, timerNew.recordingDir);
|
||||||
}
|
}
|
||||||
return menu_return::RETURN_REPAINT;
|
return menu_return::RETURN_REPAINT;
|
||||||
}
|
}
|
||||||
@@ -495,7 +495,7 @@ int CTimerList::show()
|
|||||||
|
|
||||||
if ( msg <= CRCInput::RC_MaxRC )
|
if ( msg <= CRCInput::RC_MaxRC )
|
||||||
timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings
|
timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings
|
||||||
::TIMING_MENU]);
|
::TIMING_MENU]);
|
||||||
|
|
||||||
if((msg == NeutrinoMessages::EVT_TIMER) && (data == fadeTimer)) {
|
if((msg == NeutrinoMessages::EVT_TIMER) && (data == fadeTimer)) {
|
||||||
if (fadeOut) { // disappear
|
if (fadeOut) { // disappear
|
||||||
@@ -521,7 +521,7 @@ int CTimerList::show()
|
|||||||
}
|
}
|
||||||
else if ( ( msg == CRCInput::RC_timeout ) ||
|
else if ( ( msg == CRCInput::RC_timeout ) ||
|
||||||
( msg == CRCInput::RC_home) || (msg == CRCInput::RC_left) )
|
( msg == CRCInput::RC_home) || (msg == CRCInput::RC_left) )
|
||||||
{ //Exit after timeout or cancel key
|
{ //Exit after timeout or cancel key
|
||||||
if ( fadeIn ) {
|
if ( fadeIn ) {
|
||||||
g_RCInput->killTimer(fadeTimer);
|
g_RCInput->killTimer(fadeTimer);
|
||||||
fadeTimer = 0;
|
fadeTimer = 0;
|
||||||
@@ -806,7 +806,8 @@ void CTimerList::paintItem(int pos)
|
|||||||
zAddData = timer.pluginName;
|
zAddData = timer.pluginName;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: {}
|
default:
|
||||||
|
{}
|
||||||
}
|
}
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x+fw*13,ypos+2*fheight, real_width-(fw*13+5), zAddData, color, fheight, true); // UTF-8
|
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x+fw*13,ypos+2*fheight, real_width-(fw*13+5), zAddData, color, fheight, true); // UTF-8
|
||||||
// LCD Display
|
// LCD Display
|
||||||
|
Reference in New Issue
Block a user