Commit Graph

1872 Commits (9bd2d428340004cfb6fcdc1bc900b02bd0c8ff1d)

Author SHA1 Message Date
Markismus a32c3b3879 Update networkmgr.lua
Corrected a typo.
9 years ago
Markismus 5dd2fe0fae Update networkmgr.lua
Change from the commands from `wifi.sh` to those from `wifi_enable_dhcp.sh` from Tshering's Start Menu. See  Issue #939. Should resolve hanging of Kobo Aura H2O.
9 years ago
chrox 3a0960d391 goto current toc entry automatically when open TOC window 9 years ago
chrox 5b76805911 disable follow link by default because it may cause trouble in reflowing mode 9 years ago
chrox 1894e71b07 don't expand toc node when it's parent node is collapsed 9 years ago
Cosmin Gorgovan 41045dab99 Fix charging detection for Kobo devices
I've tested this on a N905C. I assume this implementation never
worked (since charge_now is supposed to show state of charge), but
it would be useful to get a confirmation.
9 years ago
chrox 906c91f0ad add page-button support for Kindle Voyage 9 years ago
chrox 17f1498156 fix successively set landscape rotate the screen 9 years ago
chrox 5d79158602 fix cannot save document if exit directly after highlighting in PDF 9 years ago
chrox f22a53affd screen orientation won't change when going into filemanager
and filemanager remembers screen orientation at exit
This should fix #1338.
9 years ago
chrox ca6b3d7e33 fix #1373 by checking the pos0 and pos1 of selected text 9 years ago
chrox 02d61115dc fix some part of the screen not refreshed when togglering nightmode 9 years ago
chrox e25ca27db3 auto expand the parent TOC node of current page
and fix current item of item not updated when in the last node
This should fix #1396.
9 years ago
chrox 720ab191ab fix crash when opening TOC window in scroll mode of EPUB 9 years ago
chrox 10db20f289 don't add duplicated bookmark and can delete bookmark
This should fix #1397.
9 years ago
chrox 1e8f07629f don't pop-up TOC window 9 years ago
chrox c6f6699644 fix empty menu widget won't trigger screen refresh
This should fix #1398.
9 years ago
chrox 07586cea71 strip punctuations around word before searching
This should fix #1337.
9 years ago
chrox 3f691bab93 add stable OTA channel
This should fix #1353.
9 years ago
chrox db064fc009 add toggle wifi status on PocketBook 9 years ago
chrox d0b450efde refresh battery capacity when going out of suspend
This should fix #1383.
9 years ago
NiLuJe 06bf4a2199 Fix input on KT2 devices (re #1403) 9 years ago
chrox a40c172c47 fix mupdf rendering caused by FONTDIR env var
It turns out that one of our mupdf patch reads the FONTDIR env var
and uses it in a totally different way so we will use another env var
EXT_FONT_DIR to define external font directory for different platforms.
9 years ago
chrox 077517be0b add FONTDIR env variable
to support custom font directory for EPUB documents

Now Koreader could find fonts in the "fonts" directory in the USB root
directory of kindle, Kobo and PocketBook devices, thus no need to copy
fonts to "koreader/fonts" directory.
9 years ago
chrox 9d13d4189b fix no eink optimization on all devices 9 years ago
chrox 375070867b fix crash when checking ota on some devices 9 years ago
chrox c11a2bbf1e fix ota update for PocketBook 10 years ago
chrox 29c15518b0 fix wrong PgBack/PgFwd key binding 10 years ago
chrox 49e672d599 totally disable rotation gesture to change screen orientation 10 years ago
chrox 291f088d94 update koreader-base for multi-touch support on PocketBook 10 years ago
chrox d94d7d3aa7 fix PgFwd/PgBack cannot turn page in PDF scroll mode 10 years ago
chrox 6a06cfaea5 refactor out flush settings when device goes into screensaver 10 years ago
chrox a5b90588ae add powerd for PocketBook device 10 years ago
chrox 96e9bb0701 partial refresh screen when koreader goes to forground 10 years ago
chrox 5c4651a3d9 auto launch koreader when opening PDF/DJVU/EPUB/FB2 files in pocketbook 10 years ago
chrox 7ac36a460c handle keyboard events in pocketbook 10 years ago
chrox 6894c11640 fix typo 10 years ago
chrox 1cba495fe0 add PocketBook port of Koreader 10 years ago
Hans-Werner Hilse d016858d75 only device event0 and event1 do exist, remove others. 10 years ago
Hans-Werner Hilse c28d973941 fix: load input driver before configuring it 10 years ago
Hans-Werner Hilse 0b5545f125 rump implementation for PocketBook devices, to be extended. 10 years ago
Michael Hall 9a66805b5a Handle Kobo Touch Key 10 years ago
Hans-Werner Hilse f789913702 read global default value for margin size
The global configuration wasn't evaluated before
10 years ago
Hans-Werner Hilse a4571c297e read global default value for using embedded stylesheets
The global configuration wasn't evaluated before.
Fixes #1364.
10 years ago
Qingping Hou 6ed8f30f35 fix: empty item_table crashes menu widget 10 years ago
chrox b403a45228 fix OTA server broken on checking stable release 10 years ago
Hans-Werner Hilse 05503791b4 issue a full refresh when changing rotation 10 years ago
chrox 8555f24c45 make sure refresh_count is incremented by only once at most for each repaint 10 years ago
chrox b3d79b053a workaround to fix #1340 10 years ago
chrox d9fa97df5a fix #1336 by ignoring uncompatiable saved highlights 10 years ago
Hans-Werner Hilse bb5254022d fix: save properly last open menu in reader
20fd6f902e missed the saving part when
renaming the configuration variable.

Fixes #1335.
10 years ago
Hans-Werner Hilse 7c1c072b21 fix for rotated document to file manager transition: do a refresh
fixes part 2 of #1333
10 years ago
chrox b0e2ce2a8b update comment about reverting full refresh in onPanRelease 10 years ago
chrox 35545169a6 zoom mode is meaningless when reflowing, so disable zoom mode options in reflow mode 10 years ago
chrox c43885b917 show debug info when JSON data cannot be decoded 10 years ago
chrox 846836dceb fix #1275
Full refresh when highlighting text is quite annoying, I fixed it by
using 'ui' refresh type.
And this patch also fixed a bug that after cleaning temporary highlights
the screen is not refreshed.
10 years ago
chrox b767394fc2 fix #1150 by adding FOLLOW_LINK_TIMEOUT variable 10 years ago
chrox ef6235e4ae fix #1305 10 years ago
chrox 6c9b7facbe fix crash when removing highlighted bookmarks in PDF 10 years ago
variousvirgil 9c69c1f14e Fix #1299 10 years ago
Hans-Werner Hilse 3d73ff5ae7 only open frontlight device on Kobo devices that actually have light 10 years ago
chrox eea6f97796 fix #1319 10 years ago
chrox aa9566205b fix filemanager cannot remember sorting order 10 years ago
Hans-Werner Hilse ff0fbbdb4b fix widget closing 10 years ago
Hans-Werner Hilse 844c1babf7 UIManager:_refresh(): no more default refresh
If no refresh type is specified, don't do a refresh.
There should be now refresh types specified in all relevant places.
10 years ago
Hans-Werner Hilse 94ce08937a clean up refreshes
This is a larger clean-up of the refresh situation.
The general shift is that refreshes are now mainly triggered by
the (top-level) widgets when they get shown or closed via UIManager.

All refreshes for the widgets when they are in use were handled by
themselves before. This adds the case of showing/closing.

It is the desired result of not having UIManager:show()/:close()
do (full screen) refreshes on its own.
10 years ago
Hans-Werner Hilse 9c4088a3ac small change of UIManager:show(): No more automatic refresh
This eliminates the API difference between the extra parameters of
UIManager:show() and setDirty(). They work the same now.
Note that this also eliminates the automatic refresh that took place
before when using show() without refresh options. It always refreshed
the full screen, which led to too big refresh regions all over the
place. Thus, refresh has now explicitly to be asked for, hopefully
encouraging to implement it in the widget that gets shown (and is
aware about the screen region it covers).

Also add an event that is triggered when a widget is closed:
CloseWidget. So a widget can implement "onCloseWidget()" to trigger
actions upon closing - most commonly, this is a refresh for the area
previously taken by the widget. That way, the widget's user does not
have to take measures to ensure that the area is refreshed later.
10 years ago
chrox 20fd6f902e fix #1175 10 years ago
Huang Xin ddae003925 Merge pull request #1310 from hwhw/master
fixes for scrolling, fix for double-refresh, misc stuff
10 years ago
Hans-Werner Hilse e8642fbad7 use API for refresh when closing widgets in message popups 10 years ago
Hans-Werner Hilse 1091a8a3b9 add refresh control to UIManager:close() 10 years ago
Hans-Werner Hilse e7f7417cd3 refresh only dialog part of the screen for multi-word selection window 10 years ago
Hans-Werner Hilse 143c56c48c record ButtonDialog.dimen 10 years ago
Hans-Werner Hilse 8376e2f821 dictionary window triggers refresh itself, not via show() 10 years ago
Hans-Werner Hilse afb59667c0 allow for more control on refreshes when show()ing widgets
for now, we have show() automatically call setDirty() for the new
widget, as before. However, now show() takes two arguments for
refresh configuration that will get passed on to setDirty().

For compatibility, the default is here in show() to do a partial
refresh. So if you want no refresh triggered (via this show() call),
add a function that doesn't return anything.
10 years ago
Frans de Jonge 47d7a48555 OPDS: refactored unit test and fixed a minor bug with undefined image_rel 10 years ago
Hans-Werner Hilse 3f9dc46315 fix dict window refresh
was still using old API
also, move this to another place.
10 years ago
Hans-Werner Hilse c4a9903162 on finish of pan gesture when scrolling, do partial refresh
it was set to a full refresh. However, we want to behave as if in
non-scrolling mode and issue a partial refresh. That might get
updated to a full refresh if the full-refresh counter has reached
the limit - which is configurable.
10 years ago
Hans-Werner Hilse 745e3837e0 updating the screen in tap handler of readerfooter is not needed
Was a hack anyway, c.f.
https://github.com/koreader/koreader/pull/1306#discussion_r21057461

Seems to be not needed anymore. If some areas are now not refreshed
anymore, that ought to be fixed in another place.

This also gets rid of redundant screen flashes.
10 years ago
Frans de Jonge c25254a7ec OPDS: embryonic unit test for OPDS browser
This initial seed specifically tests against what recently broke in Gutenberg and FeedBooks.
10 years ago
Hans-Werner Hilse f02be20a65 refresh fixes for the menus
this will only refresh the areas that actually need to be refreshed.
10 years ago
Hans-Werner Hilse 6793a4fee1 reader config dialog: properly refresh config pane
This serves as a good example for the way refreshes are done:
setDirty("all", function() ... end)
* the "all" will have all widgets on screen repainted.
  In this case that is needed because the config pane has
  different sizes, covering different parts of underlying
  widgets. So they need to be repainted every time.
* the function will return the area to refresh and is evaluated
  after painting. In this example, we take the area that is covered
  by the config pane before switching it (if present at all), and
  hand it to the refresh area function as an upvalue.
  When the function is called later after painting, it will
  use that saved area and combine it with the area that is covered
  then by the widget. That way, parts that are covered no more are
  included in the refresh area, too.
10 years ago
Hans-Werner Hilse 82c26b1f18 adapt widgets to new refresh/repaint API 10 years ago
Hans-Werner Hilse 229c5ad61c change setDirty/refresh API
See documentation in the code.
In short: There is now one single method, setDirty(), that triggers
repaints and/or refreshes.
All variables in UIManager are gone - at least from an external
perspective. Everything is done through setDirty().
This also allows for easier debugging, since all requests come
in via function calls.
10 years ago
Hans-Werner Hilse 2f9386cd69 move refresh menu table out of UIManager
no need to clutter a core file of the whole UI concept with definitions
of UI elements
10 years ago
Frans de Jonge 7fd8f4d2f1 Add missing util.template definition to readerfrontlight.lua
Fixes #1302.
10 years ago
Andrey Golovizin 296f63b22a OPDS: ignore links with unknown rel values, treat empty rel as rel="subsection". 10 years ago
HW cceac98180 Merge pull request #1298 from Frenzie/master
Language: prevent spaces from disappearing in localizations with util.template
10 years ago
Frans de Jonge 73a6f71a0b Prevent spaces from being eaten by Transifex
Fixes #1276
10 years ago
Frans de Jonge 7a87b66fa1 OPDS catalog: auto-fill http:// if no protocol given and revert #1106
This fixes #1259.
10 years ago
Huang Xin 1b07698952 Merge pull request #1296 from hwhw/imagewidget_alpha
Imagewidget alpha
10 years ago
Hans-Werner Hilse b2e38ca80d honor alpha when painting the dog-ear bookmark icon
allows for different icons making use of that. For our current icon,
it actually doesn't.

Fixes #402
10 years ago
Hans-Werner Hilse 0c80537003 allow image widgets to do alpha-blitting
when the image (e.g. a PNG) does contain an alpha channel, that can
be honored by ImageWidget. It doesn't do so by default for compatibility
(arguably, we should change that in the future), it has to be enabled
by setting the "alpha" property to "true" (boolean, not string).
10 years ago
Hans-Werner Hilse a82bafc63c fix handling of invalid UTF8 sequences
external data (and in bad cases our own) can contain invalid byte
sequences in UTF8 strings. A prominent example are file names.
There was a 1-off bug in calculating the allowed length for multibyte
chars, and the iterator was a bit too greedy when stumbling upon
invalid sequences, returning a single "invalid" char for a sequence
up to the point where it became invalid in calculation. Now, we present
one invalid char for the first byte of that sequence and then check
for a valid char starting with the next byte.
10 years ago
Hans-Werner Hilse f828f6e7e4 show dictionary title in info popup when setting default dictionary 10 years ago
Hans-Werner Hilse 1156bcd057 show a popup upon making a dictionary the default dictionary 10 years ago
Huang Xin a72bc33022 Merge pull request #1293 from Frenzie/language
Reworked several strings
10 years ago
Frans de Jonge 693fa0837e Reworked several strings
This is the remaining gruntwork of #1276. I believe that only leaves networkmgr.lua and filemanagersearch.lua, which will require a little more thought.
10 years ago
Huang Xin e835c1e502 Merge pull request #1280 from hwhw/master
fix a case when "ip r" command fails
10 years ago
Frans de Jonge 66f04af8fb Various applications of util.template
This is the first bunch for #1276. I'd like to resolve #1281 before doing more.
10 years ago
Hans-Werner Hilse 48610006d5 fix a case when "ip r" command fails
our network manager script isn't the beauty of the code base.
However, this fixes a case where it would crash the reader when an
external command fails.

fixes #1279.
10 years ago
Frans de Jonge cf93605d04 Change "Screen Mode" to "Orientation"
Screen mode isn't user-oriented. Orientation is.

"Page" in "Page Margin" is redundant
10 years ago
Hans-Werner Hilse 173de615db Revert "smaller viewport for Kobo H2O (bezel overlaps bottom)"
This reverts commit fc36d6db37.
10 years ago
Hans-Werner Hilse fc36d6db37 smaller viewport for Kobo H2O (bezel overlaps bottom) 10 years ago
Hans-Werner Hilse dacb59f6b2 move debug function handover, set viewport for Kobo Mini
in order to have debugging facilities in framebuffer:init(), we hand
over the debug function as soon as we can.

Also, set a viewport for Kobo Mini. Hopefully, it fits most people -
I can only test on my unit.
10 years ago
Hans-Werner Hilse 4a497cfcfb fix initialization order on Kobos
notably, this will set up input offsets for viewport stuff after the
input rotation has been set up.
10 years ago
chrox ca60ceacd0 make radius field respects popout flag 10 years ago
chrox fe885be563 refactoring readerbookmark to show both bookmarks and highlights
in the bookmark menu
and use binary search of the sorted bookmarks table whenever is
possible.
10 years ago
chrox ac6a34ee3d fix crash on special offered Kindle 10 years ago
Hans-Werner Hilse 895b98d5be add debugging output for device initialisation 10 years ago
Hans-Werner Hilse 677871cbf7 allow emulator to specify a viewport
This allows for Viewport debugging. It is configured via an environment
variable, EMULATE_READER_VIEWPORT. It works with Lua table syntax, e.g.:
EMULATE_READER_VIEWPORT="{x=10,w=550,y=5,h=790}"
10 years ago
Hans-Werner Hilse bf7ea7af6d add device names as comments
we use mostly code names internally, but it is probably a good idea
to annotate the actual device names.
10 years ago
Frans de Jonge 141095b0c8 Alterations to the menu
References #1219 and #1258.
10 years ago
Hans-Werner Hilse 48ea442e28 close file descriptor of dictionary lookup pipe 10 years ago
Hans-Werner Hilse c6d342f305 fix usage of old refresh API
standby/screensaver/USB was affected.
10 years ago
chrox e1af7f2ed3 prompt users to long press directory to set inbox
This should fix #1233.
10 years ago
chrox 1accddb8cd fix #1236 by opening the parent directory of last used document 10 years ago
chrox 0a06041cd9 fix calculation of widget height of filechooser
the height of filechooser is provided when creating filechooser
widget since there may be no title as in filemanger which needs
a special title widget to contain filemanger menu.
10 years ago
chrox 67693367b9 init width and height of filechooser widget during init
so that everytime a filechooser is inited right dimension
size is used.
10 years ago
chrox 548e830fdc fix crash when highlighting text in EPUB documents
Since the new Screen:getSize modthod returns a regular table
instead of a Geom which is set to the dimen field of readerview,
there is no copy method in the dimen field. And we don't need to
copy dimen any more since the result won't be modified. Even the
screen page area somehow needs to be modified, the caller of this
function should make a copy of that variable by itself.
10 years ago
Hans-Werner Hilse 7da6dd28a5 handle Android app events in frontend/device code
Events have been passed to the frontend/device (or /input) code before.
Some of them have been handled in the FFI/input code, however. That
seems to be highly critical with regard to timing, though, so we just
let it enqueue the event for our code to process later. That way, a
mutex that locks the input event queue can be freed faster.
10 years ago
Hans-Werner Hilse 2775ade5d6 fix device:init() bug on Android platform 10 years ago
Hans-Werner Hilse 39d061fd3a pass device object to input FFI module
this is needed (for now) on Android, since the FFI module triggers
screen updates.
10 years ago
Hans-Werner Hilse 57a27f8f24 provide debug function to framebuffer ffi implementation 10 years ago
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 22697adf20 switch from scaleByDPI() to scaleBySize() 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
HW 7b91935df0 Merge pull request #1230 from chrox/fix_1170
fix #1169 and #1170
10 years ago
chrox d11dba0558 fix #1169 and #1170 10 years ago
chrox 3574865dcb fix #1166 by auto alignment of option name 10 years ago
Hans-Werner Hilse f9f97163e8 wait for background thread before free()ing koptcontext
This should prevent freeing resources that are actually in use in
a background thread.
10 years ago
HW 9b5ff4ca41 Merge pull request #1224 from chrox/cover_60
add unit tests for readerdictionary and readerhighlight
10 years ago
Huang Xin 823147f8df Merge pull request #1225 from Frenzie/language
Refactored menu
10 years ago
Huang Xin b6f37debeb Merge pull request #1226 from Frenzie/filesearcher
Filesearcher: added notification for no results
10 years ago
Frans de Jonge 7c01a3f2a9 Fixed spaces stripped out by Transifex in readerui.lua by using util.template 10 years ago
Frans de Jonge da00b4b8a9 Refactored menu
While looking into #1219 I accidentally ended up refactoring some stuff.

Tested in emulator and on H2O, but be wary because I might have overlooked something.
10 years ago
chrox 566586619a add unit tests for readerdictionary and readerhighlight 10 years ago
Frans de Jonge 92f0092ad4 Filesearcher: added notification for no results 10 years ago
chrox dbf8faa9b1 remove hardcoded footer height of reader menu 10 years ago
chrox f52872b081 default autoscale for IconButton 10 years ago
chrox 8384eba810 consider also the screen size when scaling by DPI 10 years ago
chrox e66801039b refactoring: reuse IconButton for config menu bar 10 years ago
Frans de Jonge ab442c2434 gettext: unescape \n
Fixes the problem that any msgid with \n in it wouldn't show up translated.
10 years ago
Hans-Werner Hilse ab44d1f7e3 fix item number distinction (plural forms) 10 years ago
Frans de Jonge 8b9bbf918c Fix typo in #1176 10 years ago
Frans de Jonge d701d9b198 First util.template encapsulated strings 10 years ago
HW c9d6c02d04 Merge pull request #1203 from chrox/fix_1202
find the finest toc ticks by sorting out the largest one
10 years ago
NiLuJe e9573ebe58 Try to avoid more update_regions_func mismatches
scheduling tricks
10 years ago
NiLuJe f6753085ef Detect another KT2 model 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
chrox a65dcb4c0d find the finest toc ticks by sorting out the largest one 10 years ago
chrox 897358e09a add missing translation of 'Screensaver' options 10 years ago
chrox ee3c5525f9 add an option to show an arrow to indicate page overlap 10 years ago
HW c651816f4b Merge pull request #1195 from chrox/fix_1121
fix #1121
10 years ago
chrox 3e7ca5706e fix #1121 10 years ago
chrox b80dd1f966 add fulltext search for PDF documents 10 years ago
Hans-Werner Hilse 5af4ccb0c4 add support for GIF and PNG to picdocument provider
needs update to latest base
10 years ago
Hans-Werner Hilse bcf0a9923c (really?) fix refresh viewport calculations
This adds more documentation about the viewport offset calculations
for refreshing rotated viewports.

The old behaviour also was (still) buggy, even after the latest round
of fixes. Now, the offsets when rotated are hopefully calculated correct.
10 years ago
Huang Xin e54d2fec30 Merge pull request #1186 from Frenzie/filesearcher
Initial file search implementation
10 years ago
Hans-Werner Hilse 3d03713cb1 implement case-insensitive sort, make default and configurable
This will convert any file name to lowercase before doing the comparison.
Note that this will only work for ASCII character range, a full Unicode
aware solution will be much more complicated. And in the end, file names
are byte arrays, not character strings ;-)

fixes #1183.
10 years ago
Hans-Werner Hilse e031599c0a fix strcoll() workaround
The strcoll() workaround we had in place for Kobo devices was (or has
become) ineffective. We had set self.strcoll to nil on Kobo devices -
but this was the instance variable. Setting it to nil effectively makes
the instance variable vanish, so when trying to access it later, it
was not there and got looked up via the metatable - which had the original
reference. Setting it to nil had no effect whatsoever.

We simplify that approach and set the replacement function where before we
had set this to nil.

This is a partial fix for issue #1183 (and explains a comment in issue #686
which says that the old fix did not work).

However, to really fix #1183 - if we want to do so - we would need a collate
function that normalizes uppercase/lowercase before compare.
10 years ago
Hans-Werner Hilse 7e0b49edd1 fix dump() recursion detection
only detect recursions for table values.
10 years ago
Frans de Jonge 7a4b737ecd Changed "delete" in history to "remove this item from history" for clarity 10 years ago
Frans de Jonge 518c46033e Change "Search Books" to "Search books" for consistency with other search dialogs 10 years ago
Frans de Jonge 19029d1aab Comment out wasteful DEBUG statements 10 years ago
Frans de Jonge 06239fb9ec Initial file search implementation
See #1165.
10 years ago
Andrey Golovizin f785b29f34 Fix the viewport on Kobo Aura (phoenix). 10 years ago
Andrey Golovizin 50d9041c1d Use checked_func instead of remembering the checked item. 10 years ago
Andrey Golovizin a3e51b339d Show current font face in menu. 10 years ago
Andrey Golovizin c5122abb21 Show current hyphenation dictionary in menu. 10 years ago
Hans-Werner Hilse e8d576f99f fix bug in viewport offset calculation for refreshes
The calculation did not correctly calculate the offset in rotated
modes when the rotation was 90 or 270 degrees. Under these circumstances,
getWidth() and getHeight() did return rotated values for the framebuffer,
while Device.viewport did return not rotated values.
10 years ago
Andrey Golovizin 99eecde875 Use setStringProperty method to set hyphenation dictionary. 10 years ago
Huang Xin 7dbe940b71 Merge pull request #1174 from Frenzie/master
Various language-related fixes.
10 years ago
Frans de Jonge 90d3c23030 Enter *a* word to look up. 10 years ago
Frans de Jonge fcb59bfd30 Improved SetDefaults dialog message. 10 years ago
Frans de Jonge 26baa5e007 Added timeout to successful delete message. 10 years ago
Frans de Jonge 324d67a7a8 Various language-related fixes. 10 years ago
Hans-Werner Hilse 5b48c165b3 factor out dump() function, handle reference loops 10 years ago
Tigran Aivazian e5e50ed0f9 Fix 1169 by registering .txt.zip/.html.zip/.htm.zip formats 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
Frans de Jonge 81cb358775 Change rm invocation from rm -r to rm -rf
Fixes #941.
10 years ago
Frans de Jonge 5faff6331f "File to remove" DEBUG message was empty
You can't get the full file path of a file that no longer exists, obviously.
10 years ago
Frans de Jonge 886a9d8f8f File manager improvements: added delete confirmation dialog and success/failure message
This makes deleting files from within KOReader less scary and also provides the initial framework for handling different exit codes for #941.
10 years ago
Qingping Hou b0b02182ff Merge pull request #1160 from chrox/fix_1154
fix #1154
10 years ago
Qingping Hou 38cf53b426 Merge pull request #1159 from chrox/fix_1155
dismiss 'Opening file' dialog once reader view is ready
10 years ago
Qingping Hou 2cb23c9df6 Merge pull request #1153 from chrox/fix_1149
fix #1149 by adding 'Network setting' in filemanager
10 years ago
chrox 111ad02143 fix #1154
And koreader release version is normalized to a 10 digits containing
a four digits year field followed by a two digits month field followed
by a four digits revision field like "2014041079".
10 years ago
chrox d65e5cf813 dismiss 'Opening file' dialog once reader view is ready 10 years ago
chrox edb124471d screensaver options only apply to Kobo devices 10 years ago
chrox cfa4f03c18 fix #1149 by adding 'Network setting' in filemanager 10 years ago
chrox 307bbe8675 fix #1142 by adding 'show page overlap' option for EPUB doc
And 'show page overlap' option is disabled in "page" mode for EPUBs,
and in fit to page/*height zoom mode for PDFs.
10 years ago
Huang Xin 24d629d4e7 Merge pull request #1145 from NiLuJe/master
Some more refresh fixes...
10 years ago
NiLuJe 13cbed8ea5 Fix partial refreshes on older Kobo devices
Fix #1146 (regression).
10 years ago
NiLuJe 1063ee74e5 Fix flipping mode refreshes
Don't do regional footer refreshes when we're in flipping mode.
There's probably a more elegant/correct way to handle this, but this
does the job ;).
Fix #1140
10 years ago
NiLuJe 1ee09010c4 Make ScrollTextWidget updates regional
Because I like breaking stuff in fun & interesting ways :D
10 years ago
Hans-Werner Hilse acf6641009 fix memory calculation for cache insert decision, simplify drawing/rendering 10 years ago
NiLuJe eef26a0e94 Ask for a full refresh when clearing HL
Helps avoiding ghosting, especially on REAGL devices.

re #1119
10 years ago
Hans-Werner Hilse 6b45a4ea06 fix cache implementation
the cache would behave badly when the same item was insert()ed twice:
it would add the size twice to memory consumption, but would never substract
it twice when purging the (actually single) object from cache. So the cache
would seem to fill up while in fact it wasn't.
10 years ago