From 1a3371c5bf20c402e8e961e4cec3c242a1505e4c Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Sat, 29 Sep 2012 19:03:29 +0100 Subject: [PATCH] Two fixes from NuPogodi 1. ATM, the footers in selectmenu.lua & helppage.lua are left-adjusted, these also contain the prompt for users how to call help (selectmenu.lua) and how to go back (helppage.lua). By minor correction to function DrawFooter() in filechooser.lua, one may readily make the rest footers to look in a similar way. 2. When writing the code of inputbox.lua, I (NuPogodi) left the wrong command to delete the 1st entry in the math function list (called in calculator mode by pressing Alt-M). --- filechooser.lua | 5 +++-- fileinfo.lua | 2 ++ inputbox.lua | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/filechooser.lua b/filechooser.lua index c43467374..fadec7e33 100644 --- a/filechooser.lua +++ b/filechooser.lua @@ -90,8 +90,9 @@ end function DrawFooter(text,font_face,h) local y = G_height - 7 - local x = (G_width / 2) - 50 - renderUtf8Text(fb.bb, x, y, font_face, text, true) + -- NuPogodi, 29.09.12: just dirty fix to have the same footer everywhere + local x = FileChooser.margin_H --(G_width / 2) - 50 + renderUtf8Text(fb.bb, x, y, font_face, text.." - Press H for help", true) end function DrawFileItem(name,x,y,image) diff --git a/fileinfo.lua b/fileinfo.lua index 723d3e18e..47fa59ed0 100644 --- a/fileinfo.lua +++ b/fileinfo.lua @@ -200,6 +200,8 @@ function FileInfo:show(path, name) dy = dy + renderUtf8Multiline(fb.bb, xrcol, y, cface, self.result[c].name, true, G_width - self.margin_H - xrcol, 1.65).y - y end + -- NuPogodi, 29.09.12: restored footer > to see 'Press H for help' + DrawFooter("Page 1 of 1",fface,self.foot_H) fb:refresh(0) self.pagedirty = false end diff --git a/inputbox.lua b/inputbox.lua index 84198cce0..091c9937c 100644 --- a/inputbox.lua +++ b/inputbox.lua @@ -493,7 +493,7 @@ function InputBox:defineCalcFunctions() -- for the calculator documentation self.calcfunctions:del(KEY_OUTOF_SCREEN_SAVER, nil, "Slider") self.calcfunctions:del(KEY_CHARGING, nil, "plugin/out usb") self.calcfunctions:del(KEY_NOT_CHARGING, nil, "plugin/out usb") - self.calcfunctions:del(KEY_SPACE, MOD_ALT, "Space") + self.calcfunctions:del(KEY_P, MOD_SHIFT, "P") local s = " " -- space for function groups local a = 100 -- arithmetic functions