Commit Graph

241 Commits (20f7d14495455e87e3e4e20fba3c13ce81351fdd)

Author SHA1 Message Date
Hans-Werner Hilse 21ded080dd fix refactor bug: invalidate update_regions_func 10 years ago
Hans-Werner Hilse 8696ca1fa1 fix old (pre-refactor) refresh call syntax 10 years ago
Hans-Werner Hilse 63af71188a refactor refresh
Lots of the device-related distinction wandered into
base/ffi/framebuffer_<driver>. This eases the refresh logic in
UI manager, which basically only decides what kind of refresh
to trigger. The device specific configuration in the framebuffer
driver decides how to realize that whish.

screen.lua is gone, in its place is now the framebuffer driver.
The device abstraction decides what framebuffer driver to load.
10 years ago
NiLuJe 9bd089812b Tweaks and fixes for refresh logic
Don't increase counter for regional updates
Also some workarounds for Kobos

Try to avoid update_regions_func poisoning

Reset it at the end of repaint() even if nothing was found dirty

Ensure regional updates are always PARTIAL, in
case we get a region attached to an automatically triggered refresh, not
marked force_partial [which, hey, shouldn't happen, but apparently does
sometimes ^^]
10 years ago
Hans-Werner Hilse 45cf927ee8 Fix double-check of task list
Since commit 12a76fee33, we had a potential
bug on the event mechanism:

It introduced (besides the checkTasks method itself) a second run of the
checkTasks() method. In the second run, however, scheduled events were
not taken into consideration in how long to wait for input events
afterwards.

So when the after the first run of checkTasks() there were new scheduled
tasks added to the task queue, they were not properly scheduled and
and depended on an already existing scheduled event or an input event
to trigger.

This might have led to unexpected order of execution (though the order
is not guaranteed by the task scheduling anyway!) or to events triggering
not at all until the next input event.
10 years ago
Hans-Werner Hilse c22dbbe3ae factor out repaint to its own method
it's gotten complex enough to isolate it
10 years ago
NiLuJe 13cbed8ea5 Fix partial refreshes on older Kobo devices
Fix #1146 (regression).
10 years ago
NiLuJe 3d5dd44a4c Don't hijack "fast" UI refresh w/ the REAGL stuff 10 years ago
NiLuJe 859031222e Simplify the H2O special-casing
re #1119

AUTO appears to be doing the right thing...
(even if that baffles me, given the state of the Kernel sources,
unless they flip some switches at compile time
[NTX_WFM_MODE_OPTIMIZED_REAGL / NO_AUTO_REAGL_MODE] ...)

Anyway, that's what nickel does, so follow its lead ;).
10 years ago
NiLuJe d018a31b0a Me speak english good. ya! 10 years ago
NiLuJe dbe816062b Be consistent in how we refer to stuff 10 years ago
NiLuJe 041f11cba0 Tweak some comments 10 years ago
NiLuJe a4a50b3d0d Fix the REAGL logic.
Never use REAGL to handle UI elements. It makes for a much smoother
experience.
10 years ago
NiLuJe 656a2c7cb6 Actually do what the comment says.
Don't hijack forced partial updates (i.e., from UI elements) on always
FULL REAGL devices. It doesn't implode if we don't, and it makes for a
snappier UI.
10 years ago
NiLuJe 3ce10b697a Moar comments! 10 years ago
NiLuJe 8cfbcca7c5 More comments on the H2O weirdness... 10 years ago
NiLuJe a44c5e99d1 Use the proper constants for Kobo's waveform modes 10 years ago
NiLuJe a2f107075d Shot in the dark at matching the H2O's behavior... 10 years ago
Frans de Jonge ca75b7a030 Add usage note to unschedule 10 years ago
NiLuJe d340159de8 Simplify the whole wait_for_marker commit.
Companion commit to the same stuff in base ;).
10 years ago
NiLuJe cd7e9c3257 First stab at revamping the wait for marker stuff
WIP, untested, can probably simplified some more.
Good news is, it should be smarter, and thus provide a smoother user
experience :).
Relies on the relevant changes in base.
10 years ago
NiLuJe d488ca43fa Some potentially fun stuff TODO :) 10 years ago
NiLuJe ed6f027d68 Whee, the eink driver was updated for the KT2/KV! 10 years ago
NiLuJe 76c3a3aa44 Minor comment tweaks 10 years ago
NiLuJe b3137736c8 Don't highjack regional updates on REAGL devices
We wouldn't want those to become full updates ;).
Also apply an optionally different waveform mode for such partial,
regional updates (right now, only Kindle devices make use of this finer
grained control).
10 years ago
NiLuJe 25adccbcd6 More notes for tomorrow 10 years ago
NiLuJe 374d993355 One more thing to look into/fix... 10 years ago
NiLuJe 13b02cbad9 Request regal waveform on phoenix & dahlia
Depends on the corresponding changes in koreader-base ;)
10 years ago
NiLuJe 1c22c38a5d Review some of my waveform switcheroo logic... 10 years ago
HW 9a7834113b Merge pull request #1097 from Frenzie/master
Implement UIManager:unschedule(action). Fixes #1007.
10 years ago
Frans de Jonge 8cd80288a0 Implement UIManager:unschedule(action). Fixes #1007. 10 years ago
chrox dd308f6be1 allow closing non-existent widget but throw a warning 10 years ago
chrox 3a1fe689e2 update multiple screen regions
This is useful when updating keyboard and inputbox.
10 years ago
Hans-Werner Hilse 3066c86e38 Refactoring hardware abstraction
This is a major overhaul of the hardware abstraction layer.
A few notes:

General platform distinction happens in
  frontend/device.lua
which will delegate everything else to
  frontend/device/<platform_name>/device.lua
which should extend
  frontend/device/generic/device.lua

Screen handling is implemented in
  frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.

The same goes for input handling.
10 years ago
chrox 84029e9694 add modal widget type that will stay on the top of window stack
ConfirmBox and InfoMessage are default to be modal.
Now returning to filamanager after highlighting a PDF page
the confirmbox asking users to save the document will not be hidden by
the filamanager window.
And it's tested on Kindle that #791 is already been solved probably by
out refacorting of MuPDF backend.
10 years ago
chrox 9adf8ac327 also paint widget if any widget underneath is dirty 10 years ago
chrox c74c258fc7 add filemanager icon in reader menu
now we can access the filemanager in all launcher configurations
10 years ago
chrox 40bddf0735 emulate Power button with F2 on emulator 10 years ago
Huang Xin e4ab31de31 Merge pull request #825 from WS64/master
Add last book screensaver for Kobo, also covers to book info screen
10 years ago
WS64 26413adab5 resolve github inconsistencies 10 years ago
WS64 45546945e4 Removed screensaver functions to new lua file 10 years ago
WS64 043dc13a24 Add "last book" screensaver for Kobo
Epub only.
If someone knows how to get an jpg/png from a pdf on linux (e.g. convert by imangemagick? But i am not a linux specialist and have no idea how to get that one into koreader) I can add something for linux too.
cbz/cbr should be possible too, but I have not looked into it yet.

Do I see it right that the Kindle screensavers are handled by Kindle itself?
But on Kindle you also profit, you can see picture thumbnails now in the search results (long tap on found book)
10 years ago
chrox 948d92a3b3 fix tap on word title will crash koreader 10 years ago
chrox c8bc9ee37c close screen framebuffer when exiting reader 10 years ago
WS64 ff4fa33608 Update uimanager.lua 10 years ago
WS64 768077aaa0 Screensaver functionality for Kobo 10 years ago
WS64 11996cb6bb Kobo: Turn light on/off according to start parameters
Kobo only.
I guess Kindle handles this himself anyway?
10 years ago
chrox 024091168f set refresh rate immediately after input custom rate 10 years ago
chrox 55554acf39 refactoring: buildin hold on menu entry to input 10 years ago
chrox 405411ac4c add menu entry for E-ink screen refresh rate 10 years ago
WS64 e88e2c3bd2 removed unnecessary variables 10 years ago
WS64 5c2b8dc66e move offset functions to screen.lua because of Kobo Aura issues 10 years ago
NiLuJe 3168ebd219 Move the waveform mode selection a bit...
Move it from the main UI loop to init, we're using static values anyways,
and a change of device at runtime is highly unlikely (:D).
10 years ago
NiLuJe 8435a79a3a Add a warning about the waveform mode constants...
Note that they're from the Kindle driver, the Kobo one might expect
slightly different values...
10 years ago
NiLuJe 9e6dd11b0e Keystrokes aren't that cheap. 10 years ago
NiLuJe 19295cc027 One more comment... 10 years ago
NiLuJe 806c2ffc00 Another hugely important commit! 10 years ago
NiLuJe 25a4fc01ea Clear up some comments... 10 years ago
NiLuJe 64566e0f3a Try to use reagl on the PW2...
That doesn't seem to work as nicely as the stock reader... :/
10 years ago
NiLuJe 603dd3bd05 Some Kidle refresh mode experiments...
Emulate (as best we can) the refresh behavior of the Kindle Touch reader
10 years ago
Qingping Hou 45f3294f8d fix(kobo suspend): ignore user input in suspend mode 10 years ago
Qingping Hou 4400468741 refactor(uimanager): use event_handlers to dispatch events 10 years ago
Qingping Hou f57014cfc3 fix(kobo): partially fix suspend support
Tested in Kobo Aura HD.

Suspend can still be interrrupted if user touches the screen after
slided the power button and before the suspend function is called (2s delay).

Reason for this is still unkown.
10 years ago
chrox 2773ca9386 fix zsync cannot run properly in Kindle due to firewall 10 years ago
chrox 26f5a4731e add peer-to-peer file sharing plugin ZSync 10 years ago
Markismus c390d6fca4 offset and resize Kobo Aura screen because of obscuration by black bezel 10 years ago
chrox 15baeb7867 save doc settings when receiving IntoSS or Suspend or SaveState events 10 years ago
chrox 31639cce39 check window stack before sending events
This should fix FC on Android with "Start with last opened file" checked
10 years ago
chrox ef84aff1db make ffi/util module local 10 years ago
chrox 92219a1f1e cleanup: expand tab to 4 spaces 10 years ago
Qingping Hou 21af7b6a9f update battery state on device resume 10 years ago
chrox 92b62c907a refactoring frontlight device to more generic power device 11 years ago
chrox 326765a2d8 fix default full refresh in Kindle since the new ffi framebuffer 11 years ago
Hans-Werner Hilse 526137deda add missing require of gettext 11 years ago
Hans-Werner Hilse fd586a56e9 missing require() of infomessage in UIManager
require() must be done locally in order to not create circular dependencies
11 years ago
HW 09cd5c4104 Make DEBUG a require()d local 11 years ago
HW ef111b99c6 Refactored to use strictly locals 11 years ago
chrox aac1509c21 check dimension restraint on regional refresh request 11 years ago
Giorgio Micotti a2ff9b9a9b Final fixes for kobo suspend 11 years ago
Giorgio Micotti ec3d23ef10 Split suspend-resume logic 11 years ago
Giorgio Micotti be1a637c3b DO NOT MERGE initial suspend support for Kobo 11 years ago
Paulo Matias 3f3fba2fdf Big refactoring: Device handles frontlight device, ReaderFrontLight now only GUI 11 years ago
chrox 225ae9f826 disable double tap detection in keyboard widget 11 years ago
chrox 4e4df37f7b fix fast refresh waveform 11 years ago
chrox 3f672b5894 fix typo error that invalidate forced partial refresh 11 years ago
chrox 07de799237 set fast refresh mode in setDirty method 11 years ago
chrox ee6c93a516 add regional screen refresh support
and waveform mode can be specified when calling screen refresh
11 years ago
Qingping Hou 561c7902ca move defaults.lua to root directory 11 years ago
Qingping Hou 18122fe067 add defaults.lua 11 years ago
Qingping Hou ff7f6e0740 require gettext module in uimanager.lua 11 years ago
Qingping Hou 10d980ed87 rearranged source tree 11 years ago