You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/ui/widget
NiLuJe 86c35ad066
A host of low power states related tweaks (#9036)
* Disable all non power management related input during suspend. (This prevents wonky touch events from being tripped when closing a sleep cover on an already-in-suspend device, among other things).
* Kobo: Use our WakeupMgr instance, not the class.
* WakupMgr: split `removeTask` in two: 
* `removeTask`, which *only* takes a queue index as input, and only removes a single task. Greatly simplifies the function (i.e., it's just a `table.remove`).
* `removeTasks`, which takes an epoch or a cb ref, and removes *every* task that matches.
* Both of these will also *always* re-schedule the next task (if any) on exit, since we can have multiple WakeupMgr tasks queued, but we can only have a single RTC wake alarm set ;).
* `wakeupAction` now takes a `proximity` argument, which it passes on to its `validateWakeupAlarmByProximity` call, allowing call sites to avoir having to duplicate that call themselves when they want to use a custom proximity window.
* `wakeupAction` now re-schedules the next task (if any) on exit.
* Simplify `Kobo:checkUnexpectedWakeup`, by removing the duplicate `WakerupMgr:validateWakeupAlarmByProximity` call, now that we can pass a proximity window to `WakeuoMgr:wakeupAction`.
* The various network activity timeouts are now halved when autostandby is enabled.
* Autostandby: get rid of the dummy deadline_guard task, as it's no longer necessary since #9009.
* UIManager: The previous change allows us to simplify `getNextTaskTimes` into a simpler `getNextTaskTime` variant, getting rid of a table & a loop.
* ReaderFooter & ReaderHeader: Make sure we only perform a single refresh when exiting standby.
* Kobo: Rewrite sysfs writes to use ANSI C via FFI instead of stdio via Lua, as it obscured some common error cases (e.g., EBUSY on /sys/power/state).
* Kobo: Simplify `suspend`, now that we have sane error handling in sysfs writes.
* Kobo.powerd: Change `isCharging` & `isAuxCharging` behavior to match the behavior of the NTX ioctl (i.e., Charging == Plugged-in). This has the added benefit of making the AutoSuspend checks behave sensibly in the "fully-charged but still plugged in" scenario (because being plugged in is enough to break PM on `!canPowerSaveWhileCharging` devices).
* AutoSuspend: Disable our `AllowStandby` handler when auto standby is disabled, so as to not interfere with other modules using `UIManager:allowStandby` (fix #9038).
* PowerD: Allow platforms to implement `isCharged`, indicating that the battery is full while still plugged in to a power source (battery icon becomes a power plug icon).
* Kobo.powerd: Implement `isCharged`, and kill charging LEDs once battery is full.
* Kindle.powerd: Implement `isCharged` on post-Wario devices. (`isCharging` is still true in that state, as it ought to).
2 years ago
..
container Initial Kindle PW5 support (#8856) 2 years ago
bboxwidget.lua Non-touch: highlight movement improvement and enable page crop (#8947) 2 years ago
bookmapwidget.lua Bidi: keep invert() generic, handle settings in ReaderView (#8876) 2 years ago
bookstatuswidget.lua Initial Kindle PW5 support (#8856) 2 years ago
button.lua Initial Kindle PW5 support (#8856) 2 years ago
buttondialog.lua Allow Backspace to work as back button 2 years ago
buttondialogtitle.lua Cloud storage: enhance download dialog, fix Dropbox uploading (#8809) 2 years ago
buttonprogresswidget.lua ButtonProgressWidget: Make hold_callback optional (#8940) 2 years ago
buttontable.lua [feat] Non-touch improvements (#8859) 2 years ago
checkbutton.lua [feat] Non-touch improvements (#8859) 2 years ago
checkmark.lua _mirroredUI do not set at require time 2 years ago
closebutton.lua [RTL UI] update widgets and apps for UI mirroring 5 years ago
configdialog.lua Initial Kindle PW5 support (#8856) 2 years ago
confirmbox.lua [feat] Non-touch improvements (#8859) 2 years ago
datetimewidget.lua [feat] Non-touch improvements (#8859) 2 years ago
dictquicklookup.lua Initial Kindle PW5 support (#8856) 2 years ago
doublespinwidget.lua SpinWidgets: keep movable position/alpha after Apply 2 years ago
eventlistener.lua Revamp flash_ui handling, once more, with feeling ;) (#7262) 3 years ago
filechooser.lua [chore] Remove leftover: cface (#8659) 2 years ago
fixedtextwidget.lua TextWidget: small refactoring, better handle max_width (#5503) 5 years ago
focusmanager.lua Non-touch: highlight support (#8877) 2 years ago
footnotewidget.lua Allow Backspace to work as back button 2 years ago
frontlightwidget.lua FrontLightWidget: Unbreak warmth on full-granularity devices (#8935) 2 years ago
horizontalgroup.lua _mirroredUI do not set at require time 2 years ago
horizontalscrollbar.lua _mirroredUI do not set at require time 2 years ago
horizontalspan.lua cleanup: expand tab to 4 spaces 10 years ago
htmlboxwidget.lua Fix hold duration in text/html box widgets 2 years ago
iconbutton.lua Non-Touch: improve bottom menu usability (#8712) 2 years ago
iconwidget.lua Page Overlap: Fix rectangle computation and arrow mode (#7269) 3 years ago
imageviewer.lua ImageViewer: allow browsing images list with keys (#8927) 2 years ago
imagewidget.lua Screensaver: allow limiting stretch of covers and images (#8570) 2 years ago
infomessage.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 3 years ago
inputdialog.lua [feat] Non-touch improvements (#8859) 2 years ago
inputtext.lua Make sure InputText has a consistent API, regardless of hasDPad 2 years ago
keyboardlayoutdialog.lua [feat] Non-touch improvements (#8859) 2 years ago
keyvaluepage.lua [feat] Non-touch improvements (#8859) 2 years ago
linewidget.lua [chore] Convert a couple more todos (#5267) 5 years ago
linkbox.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 3 years ago
listview.lua Fix typo in ListView doc (#8444) 3 years ago
logindialog.lua InputDialog: insert TitleBar (#8695) 2 years ago
menu.lua Menu widget: fix no items (#8838) 2 years ago
multiconfirmbox.lua [feat] Non-touch improvements (#8859) 2 years ago
multiinputdialog.lua [feat] Non-touch improvements (#8859) 2 years ago
naturallightwidget.lua Initial Kindle PW5 support (#8856) 2 years ago
networksetting.lua [feat] Non-touch improvements (#8859) 2 years ago
notification.lua Many widgets: similar size in portrait and landscape (#8238) 3 years ago
numberpickerwidget.lua [feat] Non-touch improvements (#8859) 2 years ago
openwithdialog.lua Non-touch: highlight support (#8877) 2 years ago
overlapgroup.lua _mirroredUI do not set at require time 2 years ago
pagebrowserwidget.lua Bidi: keep invert() generic, handle settings in ReaderView (#8876) 2 years ago
pathchooser.lua Pathchooser: add folder shortcuts 2 years ago
physicalkeyboard.lua Various blitting related cleanups (#4789) 5 years ago
progresswidget.lua _mirroredUI do not set at require time 2 years ago
qrmessage.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 3 years ago
qrwidget.lua Qrcode support (#6844) 4 years ago
radiobutton.lua ReaderHighlight: allow updating a highlight drawing style (#8323) 3 years ago
radiobuttontable.lua [feat] Non-touch improvements (#8859) 2 years ago
radiobuttonwidget.lua Non-touch: highlight support (#8877) 2 years ago
radiomark.lua RadioMark: down shift (#8771) 2 years ago
rectspan.lua cleanup: expand tab to 4 spaces 10 years ago
screensaverwidget.lua ScreenSaver: Minor refactor to avoid code duplication and weird rotation shenanigans (#8943) 2 years ago
screenshoter.lua ImageViewer: update to TitleBar widget 2 years ago
scrollhtmlwidget.lua Button: Better handling of translucent MovableContainer (#7223) 3 years ago
scrolltextwidget.lua Revamp flash_ui handling, once more, with feeling ;) (#7262) 3 years ago
skimtowidget.lua [feat] Non-touch improvements (#8859) 2 years ago
sortwidget.lua Non-touch: highlight support (#8877) 2 years ago
spinwidget.lua SpinWidgets: keep movable position/alpha after Apply 2 years ago
textboxwidget.lua Initial Kindle PW5 support (#8856) 2 years ago
textviewer.lua textviewer: add close_callback 2 years ago
textwidget.lua Initial Kindle PW5 support (#8856) 2 years ago
titlebar.lua Initial Kindle PW5 support (#8856) 2 years ago
toggleswitch.lua Non-Touch: improve bottom menu usability (#8712) 2 years ago
touchmenu.lua A host of low power states related tweaks (#9036) 2 years ago
trapwidget.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 3 years ago
verticalgroup.lua _mirroredUI do not set at require time 2 years ago
verticalscrollbar.lua Text/HTML widgets: allow scrolling with the scrollbar 4 years ago
verticalspan.lua cleanup: expand tab to 4 spaces 10 years ago
virtualkeyboard.lua Keyboard: add Bengali Probhat layout (#8887) 2 years ago
widget.lua doc: fix document build 8 years ago