chrox
6a06cfaea5
refactor out flush settings when device goes into screensaver
2015-01-18 00:58:08 +08:00
chrox
a5b90588ae
add powerd for PocketBook device
2015-01-17 23:54:49 +08:00
chrox
96e9bb0701
partial refresh screen when koreader goes to forground
2015-01-17 23:17:46 +08:00
chrox
5c4651a3d9
auto launch koreader when opening PDF/DJVU/EPUB/FB2 files in pocketbook
2015-01-17 09:09:36 +08:00
chrox
7ac36a460c
handle keyboard events in pocketbook
2015-01-15 22:23:03 +08:00
chrox
6894c11640
fix typo
2015-01-13 00:18:59 +08:00
chrox
1cba495fe0
add PocketBook port of Koreader
2015-01-13 00:15:18 +08:00
Hans-Werner Hilse
d016858d75
only device event0 and event1 do exist, remove others.
2015-01-09 15:55:04 +00:00
Hans-Werner Hilse
c28d973941
fix: load input driver before configuring it
2015-01-09 15:46:33 +00:00
Hans-Werner Hilse
0b5545f125
rump implementation for PocketBook devices, to be extended.
2015-01-09 14:10:25 +00:00
Michael Hall
9a66805b5a
Handle Kobo Touch Key
2014-12-26 11:45:09 +00:00
Hans-Werner Hilse
f789913702
read global default value for margin size
...
The global configuration wasn't evaluated before
2014-12-19 14:03:56 +00:00
Hans-Werner Hilse
a4571c297e
read global default value for using embedded stylesheets
...
The global configuration wasn't evaluated before.
Fixes #1364 .
2014-12-19 13:58:03 +00:00
Qingping Hou
6ed8f30f35
fix: empty item_table crashes menu widget
2014-12-18 03:16:11 -05:00
chrox
b403a45228
fix OTA server broken on checking stable release
2014-12-06 20:14:10 +08:00
Hans-Werner Hilse
05503791b4
issue a full refresh when changing rotation
2014-12-05 21:25:32 +00:00
chrox
8555f24c45
make sure refresh_count is incremented by only once at most for each repaint
2014-12-04 15:46:47 +08:00
chrox
b3d79b053a
workaround to fix #1340
2014-12-04 10:09:09 +08:00
chrox
d9fa97df5a
fix #1336 by ignoring uncompatiable saved highlights
2014-12-04 09:13:56 +08:00
Hans-Werner Hilse
bb5254022d
fix: save properly last open menu in reader
...
20fd6f902e
missed the saving part when
renaming the configuration variable.
Fixes #1335 .
2014-12-03 16:14:30 +00:00
Hans-Werner Hilse
7c1c072b21
fix for rotated document to file manager transition: do a refresh
...
fixes part 2 of #1333
2014-12-03 15:59:48 +00:00
chrox
b0e2ce2a8b
update comment about reverting full refresh in onPanRelease
2014-12-03 18:37:00 +08:00
chrox
35545169a6
zoom mode is meaningless when reflowing, so disable zoom mode options in reflow mode
2014-12-03 16:33:21 +08:00
chrox
c43885b917
show debug info when JSON data cannot be decoded
2014-12-03 14:26:00 +08:00
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.
2014-12-03 14:06:46 +08:00
chrox
b767394fc2
fix #1150 by adding FOLLOW_LINK_TIMEOUT variable
2014-12-03 12:55:53 +08:00
chrox
ef6235e4ae
fix #1305
2014-12-03 11:33:54 +08:00
chrox
6c9b7facbe
fix crash when removing highlighted bookmarks in PDF
2014-12-03 11:12:15 +08:00
variousvirgil
9c69c1f14e
Fix #1299
2014-12-02 20:30:55 +08:00
Hans-Werner Hilse
3d73ff5ae7
only open frontlight device on Kobo devices that actually have light
2014-12-02 11:18:19 +01:00
chrox
eea6f97796
fix #1319
2014-12-02 10:35:55 +08:00
chrox
aa9566205b
fix filemanager cannot remember sorting order
2014-12-02 09:52:05 +08:00
Hans-Werner Hilse
ff0fbbdb4b
fix widget closing
2014-12-01 16:21:42 +00:00
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.
2014-12-01 16:03:41 +00:00
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.
2014-12-01 16:03:40 +00:00
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.
2014-12-01 14:42:38 +00:00
chrox
20fd6f902e
fix #1175
2014-12-01 15:32:12 +08:00
Huang Xin
ddae003925
Merge pull request #1310 from hwhw/master
...
fixes for scrolling, fix for double-refresh, misc stuff
2014-12-01 09:56:04 +08:00
Hans-Werner Hilse
e8642fbad7
use API for refresh when closing widgets in message popups
2014-11-30 22:35:08 +00:00
Hans-Werner Hilse
1091a8a3b9
add refresh control to UIManager:close()
2014-11-30 22:35:07 +00:00
Hans-Werner Hilse
e7f7417cd3
refresh only dialog part of the screen for multi-word selection window
2014-11-30 22:33:38 +00:00
Hans-Werner Hilse
143c56c48c
record ButtonDialog.dimen
2014-11-30 22:33:38 +00:00
Hans-Werner Hilse
8376e2f821
dictionary window triggers refresh itself, not via show()
2014-11-30 22:33:37 +00:00
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.
2014-11-30 22:33:36 +00:00
Frans de Jonge
47d7a48555
OPDS: refactored unit test and fixed a minor bug with undefined image_rel
2014-11-30 21:44:47 +01:00
Hans-Werner Hilse
3f9dc46315
fix dict window refresh
...
was still using old API
also, move this to another place.
2014-11-30 18:38:03 +00:00
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.
2014-11-30 18:38:03 +00:00
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.
2014-11-30 18:38:02 +00:00
Frans de Jonge
c25254a7ec
OPDS: embryonic unit test for OPDS browser
...
This initial seed specifically tests against what recently broke in Gutenberg and FeedBooks.
2014-11-30 19:06:27 +01:00
Hans-Werner Hilse
f02be20a65
refresh fixes for the menus
...
this will only refresh the areas that actually need to be refreshed.
2014-11-30 12:04:33 +00:00
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.
2014-11-30 11:50:51 +00:00
Hans-Werner Hilse
82c26b1f18
adapt widgets to new refresh/repaint API
2014-11-30 00:17:50 +00:00
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.
2014-11-30 00:15:17 +00:00
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
2014-11-30 00:15:17 +00:00
Frans de Jonge
7fd8f4d2f1
Add missing util.template definition to readerfrontlight.lua
...
Fixes #1302 .
2014-11-29 15:45:18 +01:00
Andrey Golovizin
296f63b22a
OPDS: ignore links with unknown rel values, treat empty rel as rel="subsection".
2014-11-29 11:15:41 +01:00
HW
cceac98180
Merge pull request #1298 from Frenzie/master
...
Language: prevent spaces from disappearing in localizations with util.template
2014-11-28 23:14:58 +01:00
Frans de Jonge
73a6f71a0b
Prevent spaces from being eaten by Transifex
...
Fixes #1276
2014-11-28 22:38:54 +01:00
Frans de Jonge
7a87b66fa1
OPDS catalog: auto-fill http:// if no protocol given and revert #1106
...
This fixes #1259 .
2014-11-28 21:58:19 +01:00
Huang Xin
1b07698952
Merge pull request #1296 from hwhw/imagewidget_alpha
...
Imagewidget alpha
2014-11-29 00:00:29 +08:00
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
2014-11-28 15:37:12 +00:00
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).
2014-11-28 15:37:11 +00:00
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.
2014-11-28 14:52:04 +00:00
Hans-Werner Hilse
f828f6e7e4
show dictionary title in info popup when setting default dictionary
2014-11-28 13:53:42 +00:00
Hans-Werner Hilse
1156bcd057
show a popup upon making a dictionary the default dictionary
2014-11-28 13:33:04 +00:00
Huang Xin
a72bc33022
Merge pull request #1293 from Frenzie/language
...
Reworked several strings
2014-11-28 21:21:51 +08:00
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.
2014-11-28 14:10:37 +01:00
Huang Xin
e835c1e502
Merge pull request #1280 from hwhw/master
...
fix a case when "ip r" command fails
2014-11-28 20:19:06 +08:00
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.
2014-11-28 12:48:15 +01:00
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 .
2014-11-28 10:58:54 +00:00
Frans de Jonge
cf93605d04
Change "Screen Mode" to "Orientation"
...
Screen mode isn't user-oriented. Orientation is.
"Page" in "Page Margin" is redundant
2014-11-28 11:32:45 +01:00
Hans-Werner Hilse
173de615db
Revert "smaller viewport for Kobo H2O (bezel overlaps bottom)"
...
This reverts commit fc36d6db37
.
2014-11-27 16:01:00 +00:00
Hans-Werner Hilse
fc36d6db37
smaller viewport for Kobo H2O (bezel overlaps bottom)
2014-11-27 15:46:03 +00:00
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.
2014-11-27 15:46:03 +00:00
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.
2014-11-27 15:46:02 +00:00
chrox
ca60ceacd0
make radius field respects popout flag
2014-11-27 22:01:57 +08:00
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.
2014-11-27 22:01:57 +08:00
chrox
ac6a34ee3d
fix crash on special offered Kindle
2014-11-27 22:01:57 +08:00
Hans-Werner Hilse
895b98d5be
add debugging output for device initialisation
2014-11-27 10:34:16 +00:00
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}"
2014-11-27 10:15:44 +00:00
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.
2014-11-27 10:14:24 +00:00
Frans de Jonge
141095b0c8
Alterations to the menu
...
References #1219 and #1258 .
2014-11-26 18:16:54 +01:00
Hans-Werner Hilse
48ea442e28
close file descriptor of dictionary lookup pipe
2014-11-26 09:02:18 +00:00
Hans-Werner Hilse
c6d342f305
fix usage of old refresh API
...
standby/screensaver/USB was affected.
2014-11-26 08:25:18 +00:00
chrox
e1af7f2ed3
prompt users to long press directory to set inbox
...
This should fix #1233 .
2014-11-25 18:19:33 +08:00
chrox
1accddb8cd
fix #1236 by opening the parent directory of last used document
2014-11-25 17:49:46 +08:00
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.
2014-11-25 17:49:46 +08:00
chrox
67693367b9
init width and height of filechooser widget during init
...
so that everytime a filechooser is inited right dimension
size is used.
2014-11-25 16:31:03 +08:00
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.
2014-11-25 11:02:33 +08:00
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.
2014-11-24 21:09:28 +00:00
Hans-Werner Hilse
2775ade5d6
fix device:init() bug on Android platform
2014-11-24 08:52:01 +00:00
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.
2014-11-23 12:15:19 +00:00
Hans-Werner Hilse
57a27f8f24
provide debug function to framebuffer ffi implementation
2014-11-23 12:13:34 +00:00
Hans-Werner Hilse
21ded080dd
fix refactor bug: invalidate update_regions_func
2014-11-23 12:13:33 +00:00
Hans-Werner Hilse
8696ca1fa1
fix old (pre-refactor) refresh call syntax
2014-11-23 12:13:33 +00:00
Hans-Werner Hilse
22697adf20
switch from scaleByDPI() to scaleBySize()
2014-11-23 12:13:32 +00:00
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.
2014-11-23 12:13:32 +00:00
HW
7b91935df0
Merge pull request #1230 from chrox/fix_1170
...
fix #1169 and #1170
2014-11-23 13:13:07 +01:00
chrox
d11dba0558
fix #1169 and #1170
2014-11-23 18:06:20 +08:00
chrox
3574865dcb
fix #1166 by auto alignment of option name
2014-11-23 16:52:08 +08:00
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.
2014-11-22 14:44:24 +00:00
HW
9b5ff4ca41
Merge pull request #1224 from chrox/cover_60
...
add unit tests for readerdictionary and readerhighlight
2014-11-22 15:30:57 +01:00
Huang Xin
823147f8df
Merge pull request #1225 from Frenzie/language
...
Refactored menu
2014-11-22 10:03:01 +08:00
Huang Xin
b6f37debeb
Merge pull request #1226 from Frenzie/filesearcher
...
Filesearcher: added notification for no results
2014-11-22 10:02:41 +08:00
Frans de Jonge
7c01a3f2a9
Fixed spaces stripped out by Transifex in readerui.lua by using util.template
2014-11-21 17:08:55 +01:00
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.
2014-11-21 15:57:10 +01:00
chrox
566586619a
add unit tests for readerdictionary and readerhighlight
2014-11-21 18:32:43 +08:00
Frans de Jonge
92f0092ad4
Filesearcher: added notification for no results
2014-11-20 22:42:51 +01:00
chrox
dbf8faa9b1
remove hardcoded footer height of reader menu
2014-11-20 18:02:50 +08:00
chrox
f52872b081
default autoscale for IconButton
2014-11-20 18:02:50 +08:00
chrox
8384eba810
consider also the screen size when scaling by DPI
2014-11-20 18:02:50 +08:00
chrox
e66801039b
refactoring: reuse IconButton for config menu bar
2014-11-20 18:02:50 +08:00
Frans de Jonge
ab442c2434
gettext: unescape \n
...
Fixes the problem that any msgid with \n in it wouldn't show up translated.
2014-11-19 21:46:45 +01:00
Hans-Werner Hilse
ab44d1f7e3
fix item number distinction (plural forms)
2014-11-19 13:25:32 +01:00
Frans de Jonge
8b9bbf918c
Fix typo in #1176
2014-11-19 12:53:03 +01:00
Frans de Jonge
d701d9b198
First util.template encapsulated strings
2014-11-19 12:23:37 +01:00
HW
c9d6c02d04
Merge pull request #1203 from chrox/fix_1202
...
find the finest toc ticks by sorting out the largest one
2014-11-18 10:54:47 +01:00
NiLuJe
e9573ebe58
Try to avoid more update_regions_func mismatches
...
scheduling tricks
2014-11-18 10:32:47 +01:00
NiLuJe
f6753085ef
Detect another KT2 model
2014-11-18 10:32:47 +01:00
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 ^^]
2014-11-18 10:31:32 +01:00
chrox
a65dcb4c0d
find the finest toc ticks by sorting out the largest one
2014-11-18 16:50:37 +08:00
chrox
897358e09a
add missing translation of 'Screensaver' options
2014-11-17 21:45:14 +08:00
chrox
ee3c5525f9
add an option to show an arrow to indicate page overlap
2014-11-17 21:45:14 +08:00
HW
c651816f4b
Merge pull request #1195 from chrox/fix_1121
...
fix #1121
2014-11-17 11:39:44 +01:00
chrox
3e7ca5706e
fix #1121
2014-11-17 18:21:47 +08:00
chrox
b80dd1f966
add fulltext search for PDF documents
2014-11-17 17:58:44 +08:00
Hans-Werner Hilse
5af4ccb0c4
add support for GIF and PNG to picdocument provider
...
needs update to latest base
2014-11-17 10:23:06 +01:00
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.
2014-11-17 10:04:36 +01:00
Huang Xin
e54d2fec30
Merge pull request #1186 from Frenzie/filesearcher
...
Initial file search implementation
2014-11-17 10:04:38 +08:00
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 .
2014-11-16 19:27:31 +01:00
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.
2014-11-16 19:15:24 +01:00
Hans-Werner Hilse
7e0b49edd1
fix dump() recursion detection
...
only detect recursions for table values.
2014-11-16 17:27:37 +01:00
Frans de Jonge
7a4b737ecd
Changed "delete" in history to "remove this item from history" for clarity
2014-11-16 15:54:47 +01:00
Frans de Jonge
518c46033e
Change "Search Books" to "Search books" for consistency with other search dialogs
2014-11-16 13:09:03 +01:00
Frans de Jonge
19029d1aab
Comment out wasteful DEBUG statements
2014-11-16 13:08:41 +01:00
Frans de Jonge
06239fb9ec
Initial file search implementation
...
See #1165 .
2014-11-16 12:57:56 +01:00
Andrey Golovizin
f785b29f34
Fix the viewport on Kobo Aura (phoenix).
2014-11-16 09:53:52 +01:00
Andrey Golovizin
50d9041c1d
Use checked_func instead of remembering the checked item.
2014-11-16 09:03:00 +01:00
Andrey Golovizin
a3e51b339d
Show current font face in menu.
2014-11-16 08:59:35 +01:00
Andrey Golovizin
c5122abb21
Show current hyphenation dictionary in menu.
2014-11-16 08:59:35 +01:00
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.
2014-11-15 22:01:04 +01:00
Andrey Golovizin
99eecde875
Use setStringProperty method to set hyphenation dictionary.
2014-11-15 12:22:47 +01:00
Huang Xin
7dbe940b71
Merge pull request #1174 from Frenzie/master
...
Various language-related fixes.
2014-11-15 07:43:18 +08:00
Frans de Jonge
90d3c23030
Enter *a* word to look up.
2014-11-14 23:04:27 +01:00
Frans de Jonge
fcb59bfd30
Improved SetDefaults dialog message.
2014-11-14 22:01:32 +01:00
Frans de Jonge
26baa5e007
Added timeout to successful delete message.
2014-11-14 21:57:06 +01:00
Frans de Jonge
324d67a7a8
Various language-related fixes.
2014-11-14 20:34:55 +01:00
Hans-Werner Hilse
5b48c165b3
factor out dump() function, handle reference loops
2014-11-14 16:33:52 +01:00
Tigran Aivazian
e5e50ed0f9
Fix 1169 by registering .txt.zip/.html.zip/.htm.zip formats
2014-11-14 12:25:02 +00:00
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.
2014-11-14 09:12:46 +01:00
Hans-Werner Hilse
c22dbbe3ae
factor out repaint to its own method
...
it's gotten complex enough to isolate it
2014-11-14 09:09:50 +01:00
Frans de Jonge
81cb358775
Change rm invocation from rm -r to rm -rf
...
Fixes #941 .
2014-11-13 22:40:02 +01:00
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.
2014-11-13 12:54:58 +01:00
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 .
2014-11-13 12:28:57 +01:00
Qingping Hou
b0b02182ff
Merge pull request #1160 from chrox/fix_1154
...
fix #1154
2014-11-13 03:41:14 -05:00
Qingping Hou
38cf53b426
Merge pull request #1159 from chrox/fix_1155
...
dismiss 'Opening file' dialog once reader view is ready
2014-11-13 03:37:34 -05:00
Qingping Hou
2cb23c9df6
Merge pull request #1153 from chrox/fix_1149
...
fix #1149 by adding 'Network setting' in filemanager
2014-11-13 03:27:33 -05:00
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".
2014-11-13 14:43:20 +08:00
chrox
d65e5cf813
dismiss 'Opening file' dialog once reader view is ready
2014-11-13 14:00:35 +08:00
chrox
edb124471d
screensaver options only apply to Kobo devices
2014-11-13 12:59:02 +08:00
chrox
cfa4f03c18
fix #1149 by adding 'Network setting' in filemanager
2014-11-13 12:54:42 +08:00
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.
2014-11-13 12:37:20 +08:00
Huang Xin
24d629d4e7
Merge pull request #1145 from NiLuJe/master
...
Some more refresh fixes...
2014-11-13 07:07:39 +08:00
NiLuJe
13cbed8ea5
Fix partial refreshes on older Kobo devices
...
Fix #1146 (regression).
2014-11-12 19:12:22 +01:00
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
2014-11-12 16:51:52 +01:00
NiLuJe
1ee09010c4
Make ScrollTextWidget updates regional
...
Because I like breaking stuff in fun & interesting ways :D
2014-11-12 15:55:30 +01:00
Hans-Werner Hilse
acf6641009
fix memory calculation for cache insert decision, simplify drawing/rendering
2014-11-12 15:53:08 +01:00
NiLuJe
eef26a0e94
Ask for a full refresh when clearing HL
...
Helps avoiding ghosting, especially on REAGL devices.
re #1119
2014-11-12 15:49:01 +01:00
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.
2014-11-12 15:21:20 +01:00
NiLuJe
3d5dd44a4c
Don't hijack "fast" UI refresh w/ the REAGL stuff
2014-11-12 15:03:59 +01:00
Huang Xin
4fc1ff4491
Merge pull request #1141 from Frenzie/master
...
Minor English improvements.
2014-11-12 20:43:22 +08:00
Frans de Jonge
e5029b54c1
Capitalization: change a few mentions of calibre to lowercase
...
The author likes it that way. See http://calibre-ebook.com/about
2014-11-12 13:10:48 +01:00
Frans de Jonge
ff4e2f3458
Minor English improvements.
2014-11-12 12:29:38 +01:00
Hans-Werner Hilse
50cdbf133f
fix refresh with rotation and viewport
2014-11-12 09:32:09 +01:00
chrox
efbd7f7b5d
schedule in menu option callback
...
so that new reginal update on menu entry don't
affect screen update from callback results
2014-11-12 15:40:37 +08:00
Hans-Werner Hilse
5a36e5427f
fixes for picdocument
...
picdocument didn't use the document API correctly
2014-11-11 22:32:57 +01:00
Hans-Werner Hilse
c5afa17399
make fake_events device a private feature of the Kindle device initialization
...
This is highly Kindle-specific, so we keep it there for now
2014-11-11 20:17:46 +01:00
Hans-Werner Hilse
6e40d5a9ad
Fix refresh in rotated (landscape) mode when using viewport
...
Rotation wasn't applied to the underlying framebuffer's blitbuffer,
so refresh coordinates were cut off the wrong way.
2014-11-11 17:43:58 +01:00
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 ;).
2014-11-11 17:08:41 +01:00
Hans-Werner Hilse
5e5b2bd18d
calculate proper refresh coordinates when using viewport
...
The viewport offset used by refresh() was not properly adapted when
the screen was rotated.
2014-11-11 15:53:26 +01:00
Hans-Werner Hilse
78b098e47d
make functions in MD5 implementation local
...
also get rid of mostly unused helper libraries and some stylistic
oddities in the MD5 code
2014-11-11 15:53:26 +01:00
Qingping Hou
c8edd020f1
Merge pull request #1127 from chrox/fix_1120
...
fix missing fake events for Kindle devices
2014-11-11 03:10:43 -05:00
Qingping Hou
123d0a1230
Merge pull request #1126 from chrox/wifi_toggler
...
add network settings in reader menu
2014-11-11 03:05:12 -05:00
Qingping Hou
e0f18ebf5a
Merge pull request #1125 from chrox/fix_1105
...
fix #1105
2014-11-11 03:02:54 -05:00
Qingping Hou
fac2e121d2
Merge pull request #1124 from chrox/remember_menutab
...
remember menu tab index when showing reader menu
2014-11-11 03:01:35 -05:00
chrox
b6432c0305
fix missing fake events for Kindle devices
...
This should fix #1120 .
2014-11-11 13:17:13 +08:00
chrox
590073e4a8
add network settings in reader menu
...
and remove the wifi toggler on the footer of each menu page,
so that network status is only checked (currently with the stdout of ip cmd)
when navigating to the "Network settings" submenu instead of checking
on each menu popup.
2014-11-11 12:12:39 +08:00
NiLuJe
d018a31b0a
Me speak english good. ya!
2014-11-11 03:58:57 +01:00
chrox
ea4a37fe29
fix #1105
2014-11-11 10:44:54 +08:00
NiLuJe
dbe816062b
Be consistent in how we refer to stuff
2014-11-11 03:39:47 +01:00
NiLuJe
c3274a9d5e
Unbreak FM by reverting 7a812f
...
:D
2014-11-11 03:24:56 +01:00
NiLuJe
b88e304845
Make TouchMenu updates regional
2014-11-11 03:17:15 +01:00
NiLuJe
88c26b4112
Make ConfigDialog updates regional
2014-11-11 03:10:03 +01:00
chrox
95ac27df5c
remember menu tab index when showing reader menu
2014-11-11 10:06:17 +08:00
NiLuJe
7a812ff86d
Make Button update regional
2014-11-11 03:03:25 +01:00
NiLuJe
39244aa0cb
Make ToggleSwitch updates regional
2014-11-11 02:52:47 +01:00
NiLuJe
041f11cba0
Tweak some comments
2014-11-11 02:42:07 +01:00
NiLuJe
a4a50b3d0d
Fix the REAGL logic.
...
Never use REAGL to handle UI elements. It makes for a much smoother
experience.
2014-11-11 02:28:41 +01:00
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.
2014-11-11 02:15:08 +01:00
NiLuJe
3ce10b697a
Moar comments!
2014-11-11 01:27:44 +01:00
NiLuJe
8cfbcca7c5
More comments on the H2O weirdness...
2014-11-11 01:25:44 +01:00
NiLuJe
a44c5e99d1
Use the proper constants for Kobo's waveform modes
2014-11-11 00:48:19 +01:00
NiLuJe
e2e99e5d99
make RedaerFooter updates regional
2014-11-10 21:08:34 +01:00
NiLuJe
8f3598bec3
Make IconButton updates regional
...
Beginning of the quest to make menu refreshes slightly smoother ;).
2014-11-10 20:27:35 +01:00
NiLuJe
a2f107075d
Shot in the dark at matching the H2O's behavior...
2014-11-10 20:04:34 +01:00
NiLuJe
6b21057c35
Do FULL updates when going in/out of ScreenSaver.
...
Sounds a good idea in general, and helps in particular on REAGL-aware
devices.
2014-11-10 16:51:31 +01:00
NiLuJe
a12015c0d1
Force the dictionary popup to do a partial update.
...
It was done the other way around on purpose, so I probably broke some
very specific use-case ;). Feel free to shout at me ^^.
2014-11-10 16:48:16 +01:00
HW
6ae62f15fe
Merge pull request #1117 from WS64/master
...
Center screen for Kobo Aura
2014-11-10 13:58:40 +01:00
WS64
67c4bb365d
Center screen for Kobo Aura
...
Why was it
viewport = Geom:new{x=6, y=12, w=752, h=1012},?
viewport = Geom:new{x=0, y=0, w=752, h=1012}, looks way better!
2014-11-10 13:48:46 +01:00
chrox
7b5358c481
fix filemanager not aware screen dimen when change from landscape to portrait
2014-11-10 20:46:45 +08:00
chrox
befa3aa63c
normalize version when checking packages in OTA manager
...
This fixes a bug that version 987 was treated newer than version 1010.
2014-11-10 20:21:28 +08:00
chrox
26467d557f
timestamp of screenshot filename is now of second precision
2014-11-10 20:20:09 +08:00
HW
f3b132d85f
Merge pull request #1113 from chrox/fix_1096
...
fix #1096
2014-11-10 09:58:07 +01:00
chrox
03ee6630cf
fix #1096
2014-11-10 16:36:21 +08:00
Qingping Hou
b32f42d6eb
Merge pull request #1111 from Frenzie/master
...
Remove KOBO_LIGHT_OFF_ON_SUSPEND option and move workaround to kobolight.lua
2014-11-09 17:49:17 -05:00
Hans-Werner Hilse
d91dccae80
fix night mode setting
...
implement bezel cleaning with proper background color
2014-11-09 18:03:33 +01:00
Hans-Werner Hilse
7c9d7e64b3
fix rotation: viewport, not framebuffer
...
Rotation was always referring to the framebuffer's blitbuffer,
which in the case of devices with a viewport was not identical.
2014-11-09 17:37:50 +01:00
Frans de Jonge
ca75b7a030
Add usage note to unschedule
2014-11-09 16:38:58 +01:00
Frans de Jonge
c4f1687c22
Remove KOBO_LIGHT_OFF_ON_SUSPEND option and move workaround to ffi/kobolight.ua
2014-11-09 16:37:15 +01:00
NiLuJe
5dd9e917b7
Kill a FIXME :)
2014-11-08 15:50:57 +01:00
NiLuJe
e9d5799ce4
Add the KT2 & KV to relevant device checks
2014-11-08 15:50:57 +01:00
NiLuJe
52e21416e6
Detect more KV variants
2014-11-08 15:50:57 +01:00
NiLuJe
3e9f2b06a3
Fix Wario battery/charger detection
...
Not sure how we didn't catch that one sooner... ;p
2014-11-08 15:50:57 +01:00
NiLuJe
d340159de8
Simplify the whole wait_for_marker commit.
...
Companion commit to the same stuff in base ;).
2014-11-08 15:50:57 +01:00
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.
2014-11-08 15:50:57 +01:00
NiLuJe
d488ca43fa
Some potentially fun stuff TODO :)
2014-11-08 15:50:56 +01:00
NiLuJe
ed6f027d68
Whee, the eink driver was updated for the KT2/KV!
2014-11-08 15:50:56 +01:00
NiLuJe
a9d1c860fd
Sigh.
2014-11-08 15:50:56 +01:00
NiLuJe
df965eb534
Dry-coded skeleton detection of the KT2 & KV
...
FIXME!
Needs actual confirmation from people with the HW!!
Once that's done, some device checks will probably need to be
udated in the codebase to take those new devices into account ;).
2014-11-08 15:50:56 +01:00
NiLuJe
76c3a3aa44
Minor comment tweaks
2014-11-08 15:50:56 +01:00
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).
2014-11-08 15:50:56 +01:00
NiLuJe
25adccbcd6
More notes for tomorrow
2014-11-08 15:50:56 +01:00
NiLuJe
374d993355
One more thing to look into/fix...
2014-11-08 15:50:56 +01:00
NiLuJe
13b02cbad9
Request regal waveform on phoenix & dahlia
...
Depends on the corresponding changes in koreader-base ;)
2014-11-08 15:50:56 +01:00
NiLuJe
1c22c38a5d
Review some of my waveform switcheroo logic...
2014-11-08 15:50:56 +01:00
Andrey Golovizin
8bce54a6a0
Ignore OPDS links with unknown rel values.
2014-11-08 09:19:29 +01:00
Andrey Golovizin
5888773c95
Try to fetch next page if loading a new catalog resulted in a single page
2014-11-07 22:10:12 +01:00
Andrey Golovizin
500ad9ba4c
Fetch enough items to fill at lest one new page
2014-11-07 22:10:06 +01:00
HW
9a7834113b
Merge pull request #1097 from Frenzie/master
...
Implement UIManager:unschedule(action). Fixes #1007 .
2014-11-06 17:53:35 +01:00
HW
a7938b1680
Merge pull request #1090 from chrox/fix_869
...
fix #869
2014-11-06 16:16:24 +01:00
Frans de Jonge
8cd80288a0
Implement UIManager:unschedule(action). Fixes #1007 .
2014-11-06 12:59:00 +01:00
Frans de Jonge
011c5b6544
Fix Kobo resume in new hardware abstraction.
2014-11-06 10:33:48 +01:00
Qingping Hou
4053e37387
Merge pull request #1091 from chrox/fix_1016
...
add user defined event map
2014-11-06 03:37:13 -05:00
Qingping Hou
f7e0800297
Merge pull request #1089 from chrox/fix_1039
...
add option to turn off e-ink optimization
2014-11-06 03:15:09 -05:00
Qingping Hou
d788d91fca
Merge pull request #1088 from chrox/fix_968
...
fix #968 by check the nullity of text range
2014-11-06 02:52:14 -05:00
Qingping Hou
a6b832f3e7
Merge pull request #1087 from chrox/fix_973
...
add option to disable highlighting as well as dictionary lookup
2014-11-06 02:51:36 -05:00
Qingping Hou
d052a8543f
Merge pull request #1086 from chrox/fix_1070
...
fix #1070 by associating conentwidth zoom mode to auto cropping
2014-11-06 02:45:44 -05:00
chrox
a5cff2c42b
add user defined event map
...
This should fix #1016 .
Usage for #1016 :
Create a file named "custom.event.map.lua" in the koreader directory
with the following content:
return {
[102] = "LPgFwd",
}
2014-11-06 15:02:06 +08:00
chrox
dd308f6be1
allow closing non-existent widget but throw a warning
2014-11-06 14:00:47 +08:00
chrox
461afa25a8
add 'Home' key event to close filemanager
2014-11-06 13:39:38 +08:00
chrox
0dd3a1f8a1
add option to turn off e-ink optimization
...
which currently just sets free the limitation of panning gestures
emitting rate. This should fix #1039 when unchecking the
"E-ink optimization" in the "Screen settings".
2014-11-06 13:16:35 +08:00
chrox
8f5691d586
fix #968 by check the nullity of text range
2014-11-06 11:18:04 +08:00
chrox
d5f6d743bd
add option to disable highlighting as well as dictionary lookup
...
This should also fix #973 .
2014-11-06 11:07:52 +08:00
chrox
405b8e0be2
fix #1070 by associating conentwidth zoom mode to auto cropping
2014-11-06 10:20:55 +08:00
chrox
9d5ff580a3
fix #1083
2014-11-06 08:58:02 +08:00
HW
f0fba63f67
Merge pull request #1082 from chrox/cover_50
...
screenshot to PNG files by default
2014-11-05 11:44:55 +01:00
chrox
ae1dd3b380
screenshot to PNG files by default
2014-11-05 16:58:09 +08:00
Huang Xin
62eef02c86
Merge pull request #1080 from houqp/fix
...
fix kobo aura hd input handling
2014-11-05 15:57:31 +08:00
Qingping Hou
8927f901da
fix(input): use elseif conditional logic in adjustTouchSwitchXY
2014-11-05 02:54:04 -05:00
Qingping Hou
6eca26f610
fix(screensaver): lastfile will be nil for fresh installation
2014-11-05 01:02:12 -05:00
chrox
bd0975896d
add fulltext search for EPUB documents
2014-11-05 12:28:28 +08:00
chrox
8ddca4bf49
close reader config panel when touching reader menu
2014-11-05 12:28:28 +08:00
chrox
a766ec51ae
only update neccessary screen regions when typing with virtual keyboard
2014-11-05 12:28:28 +08:00
chrox
3a1fe689e2
update multiple screen regions
...
This is useful when updating keyboard and inputbox.
2014-11-05 12:28:28 +08:00
Huang Xin
a300f1e981
Merge pull request #1076 from hwhw/hal
...
Hardware abstraction: refactoring
2014-11-05 08:36:16 +08:00
Andrey Golovizin
86c53f94e1
Make the suffix lowercase before comparing.
2014-11-04 19:56:11 +01:00
Andrey Golovizin
e66dbdda29
Add support for .fb2.zip files.
2014-11-04 19:11:29 +01:00
Andrey Golovizin
a08ac46e80
Move credocument before pdfdocument in the registry.
2014-11-04 18:57:09 +01:00
Andrey Golovizin
4eda3f5a17
Add support for files with multiple extensions (like .fb2.zip).
2014-11-04 18:56:19 +01:00
Hans-Werner Hilse
64601ffe3b
add wrapper for FFI input.open()
2014-11-04 09:56:04 +01:00
Hans-Werner Hilse
3eae0cdcb7
Bugfixes: test leftovers, wrong paths
2014-11-03 10:08:55 +01:00
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.
2014-11-02 21:19:04 +01:00
chrox
a32991d898
add new sorting methods for file list in filemanager
...
Now files can be sorted by filename or last accessed time
2014-10-30 22:41:52 +08:00
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.
2014-10-30 16:01:04 +08:00
chrox
dfcd67c5bf
move screenshot settings to submenu of Screenshot entry in readermenu
...
And also fix a touchmenu bug that prevent some menu entries
(always at the bottom of the menu) from showing submenus. The reason is
that the onTapSelect method of TouchMenuItem doesn't return true, so that
the tap gesture will propagate to the parent widget and be captured by
touchmenu itself. But at this time the dimen of touchmenu is changed to
the submenu of the tapped menuitem. If the submenu is short enough the
tap will be outside of touchmenu which will cause a TapCloseAllMenus
event and the submenu will never be shown.
2014-10-30 15:51:35 +08:00
chrox
f48c073357
persistent cache item now need an explicit persistent flag
2014-10-30 11:16:37 +08:00
chrox
8c9751744e
fix #1064 by adding timestamp of document in cache key
...
so that when document is modified the persistent cache will
be invalidated automatically because the cache key will not
be matched. There is no perfermance overhead here at all. We
even don't need to check the modification time of the cache item
on disk, because the name of the on disk cache is a md5sum of the
cacheitem key, now the filename of the cache files contains the
modification time information.
If the document is modified since one rendered page is cached to disk,
the cache key won't match the cache file. And the cache file will
be discarded without the need to open the cache file or to check
the modification time of the cache file itself.
2014-10-30 11:05:26 +08:00
chrox
72f9449de8
ignore more markup tags in dictionary window
2014-10-29 16:42:00 +08:00
HW
a3dec7d088
Merge pull request #1058 from chrox/reader_history
...
add history view in the info panel of reader menu
2014-10-28 11:16:40 +01:00
HW
776f61d9eb
Merge pull request #1057 from chrox/fix_1034
...
fix #1034 by refactoring path chooser to a download manager
2014-10-28 11:16:15 +01:00
chrox
bdebe90412
keep only one readerui instance running
2014-10-28 18:09:22 +08:00
chrox
4897d70b1f
add reader history in the info panel
2014-10-28 17:42:06 +08:00
chrox
68265336f4
fix #1034 by refactoring path chooser to a download manager
...
Now directories visible in the filemanager should also
be visible in the path chooser
2014-10-28 17:14:06 +08:00
chrox
6b2768f801
fix cannot set default dictionary
2014-10-28 15:58:04 +08:00
chrox
fea7b93b62
fix #1035 by CDATA tidy
2014-10-28 15:57:01 +08:00
chrox
c2726a8f62
save two blitbuffer memory allocations for crengine on each page turn
...
One for drawbuffer at CreDocument:drawCurrentView and another for
resizing of drawBuf at cre.drawCurrentPage.
2014-10-27 22:05:24 +08:00
Hans-Werner Hilse
0a74dc6072
add needed ffi module when saving annotations
2014-10-26 23:16:27 +01:00
Michael Hall
79cb75b153
Added option for proportional cover image screensaver
2014-10-26 14:47:48 +00:00
Huang Xin
2dcf65c912
Merge pull request #1049 from gontofe/wifi_toggle
...
Leave both readerconfig and readermenu open on wifi toggle
2014-10-26 19:27:44 +08:00
Michael Hall
dd80d61155
Leave both readerconfig and readermenu open on wifi toggle
2014-10-26 09:41:28 +00:00
Qingping Hou
b0682b0470
chore: code clean up
2014-10-26 03:05:17 -04:00
Qingping Hou
6aabc62f73
fix(reader): crash on closing reader menu
2014-10-25 06:01:37 -04:00
Qingping Hou
394c847e2b
fix(app): initilize menu properly in reader and filemanager
2014-10-25 05:46:02 -04:00
Qingping Hou
d1627337e0
fix(ui): fix dynamic menu height calculation
2014-10-25 04:03:37 -04:00
Hans-Werner Hilse
ba40cc56e9
fill background of intermediary blitbuffers
...
we need to explicitly fill those buffers, now that white is not "0"
anymore.
2014-10-24 13:48:42 +02:00
Hans-Werner Hilse
5982e24d57
unify color specification
...
colors were a mixture of 4bpp integers (0=white, 15=black) and
fractional blackness levels (0=white, 1.0=black) before. This is
now unified to use the color specification of the Blitbuffer API.
2014-10-24 13:48:42 +02:00
chrox
281df50da5
fix #1028
2014-10-23 13:49:35 +08:00
chrox
2ff12af50c
protected call of mupdf.renderImage
2014-10-23 13:49:35 +08:00
chrox
91400f8fef
expand/collapse for the left one third region should be more resonable
2014-10-21 22:40:43 +08:00
chrox
c994e30cff
fix #1024
...
if toc item has expand/collapse state and tap select on the left side
the state switch action is triggered, otherwise goto the
linked page.
2014-10-21 22:18:07 +08:00
HW
1cb3c85f34
Merge pull request #1021 from chrox/fix_1011
...
fix #1011
2014-10-21 12:42:16 +02:00
Huang Xin
3c1d2c69df
Merge pull request #1014 from hwhw/master
...
use new FFI based mupdf API
2014-10-21 18:13:21 +08:00
chrox
07ae0cba81
fix #1011
...
The #1011 bug is caused by the `contains` check of link box with
visible area. When the link is at the very right (left?) of
the page, enlarged link box often exceeds the page bound rendering
the mentioned `contains` check failed. This patch uses an `intersectWith`
test to check if the link is in current page.
2014-10-21 17:26:16 +08:00
chrox
2050c0aa66
fix renderImage invocation
2014-10-21 17:22:20 +08:00
HW
3a42557b19
Merge pull request #1020 from chrox/fix_1013
...
fix #1013
2014-10-20 17:51:35 +02:00
chrox
1462d382d9
fix #1013
2014-10-20 22:55:39 +08:00
Hans-Werner Hilse
e0868826ad
use new FFI based mupdf API
...
This will use the new API where the Lua/C interface was used before
and also drop usage of mupdfimg wrapper which is now implemented
within the mupdf interface
2014-10-20 16:49:10 +02:00
chrox
2ad63fc1a3
expand/collapse TOC only by tap on the icon
2014-10-20 22:19:31 +08:00
chrox
0a863f07c7
show 50 ticks on the mini progress bar at most
2014-10-20 22:17:53 +08:00
Qingping Hou
c1c3bcb3fe
fix: various fixes for kindle dxg
2014-10-20 02:17:57 -04:00
Frans de Jonge
3334903e8c
Actually flush stdio rather than all io.
2014-10-18 15:31:05 +02:00
Frans de Jonge
65d3cacd7c
Flush stdio to prevent buffering multiple debugging messages when redirecting output to file.
2014-10-18 15:18:01 +02:00
Frans de Jonge
f3d5d5b030
Kobo Aura H2O: fix offset for reverse landscape (rotation_mode 3)
2014-10-17 13:25:13 +02:00
Frans de Jonge
7117235414
Kobo Aura H2O: fix bezel.
2014-10-16 15:17:31 +02:00
Frans de Jonge
c50bdfd11c
Kobo Aura H2O detection: slight code refactoring.
2014-10-16 10:59:11 +02:00
HW
0f40042e57
Merge pull request #999 from Frenzie/master
...
Changes for Kobo Aura H2O.
2014-10-15 20:35:39 +02:00
Frans de Jonge
629c32f6ba
Changes for Kobo Aura H2O.
2014-10-15 18:28:13 +02:00
Paulo Matias
8bbdf03ccb
Merge pull request #998 from chrox/fix_970
...
fix #970
2014-10-15 11:40:57 -03:00
Paulo Matias
2843bf362d
Merge pull request #996 from chrox/djvu_render_mode
...
add djvu render mode options in readermenu
2014-10-15 11:29:44 -03:00
chrox
834c994ed8
fix #970
...
by rendering full page if bbox is larger than native page size when
zooming mode is fit to content*
2014-10-15 22:01:42 +08:00
chrox
c99288f3ad
fix #995 by reseting readertoc on init
2014-10-15 20:47:13 +08:00
chrox
d30709edb0
add djvu render mode options in readermenu
2014-10-15 20:31:24 +08:00
Paulo Matias
ef80cc6a4e
Merge pull request #994 from chrox/fix_987
...
fix #987
2014-10-15 08:08:00 -03:00
chrox
f3417c5488
fix #987
2014-10-15 18:17:16 +08:00
chrox
506bf96379
add menu entry to lookup input word in dictionary
...
This should close #971 .
2014-10-15 18:02:02 +08:00
chrox
96960cd554
don't dim icon button by default
2014-10-14 21:34:56 +08:00
chrox
7c9130744c
add collapsable TOC menu
2014-10-14 21:34:56 +08:00
chrox
46963df0bb
don't need to rebuild ota installed package if it's detected
2014-10-14 21:34:56 +08:00
WS64
f537125756
Bugfix
2014-10-13 15:40:48 +02:00
chrox
e714caed8d
refactoring restoreScreenMode from readerview to filemanager
...
This should fix #983 .
2014-10-12 17:26:36 +08:00
chrox
de38ea1199
count only leaf nodes of toc tree when level is zero
2014-10-11 21:10:07 +08:00
chrox
2b26e599d9
return to previous filemanager view instead of opening a new one
2014-10-10 18:14:33 +08:00
chrox
6dd3f99c35
reset ticks cache
2014-10-10 18:14:33 +08:00
chrox
b422eb90cc
refactoring readerrolling
...
and fix lossing progress when switching screen mode
2014-10-10 18:14:33 +08:00
chrox
e34ad5ffe5
refactoring module registration in readerui
...
now every module can be looked up in readerui so that
unit test of these modules is possible.
2014-10-09 17:41:27 +08:00
chrox
d01ae145b8
guess plugin name from plugin path
2014-10-09 12:38:33 +08:00
chrox
a4d5ec6534
plugin modules have 'name' field
2014-10-09 12:26:52 +08:00
chrox
896ad0e8f8
fix #976
2014-10-09 09:42:43 +08:00
chrox
cec8ee3c29
add isChapterBegin/End API for readertoc
...
and add missing test epub
2014-10-07 17:44:10 +08:00
chrox
b09bb87d4e
refactoring readertoc and readerfooter
...
so that they don't repeat themselves.
2014-10-07 17:10:48 +08:00
chrox
7142492e42
fix #959
2014-10-07 14:05:34 +08:00
Qingping Hou
a44cc3150d
fix: use correct entry for Ukrainian in language menu
2014-10-07 01:32:04 -04:00
Qingping Hou
16b393ff47
chore(device.lua): remove frontlight hack for kobo
2014-10-07 01:32:04 -04:00
chrox
6ee8f22d73
add clear api for DocSettings
...
to remove both history settings and sidecar settings
2014-10-07 13:06:52 +08:00
chrox
330e5a2789
don't open SDL if input device is dummy
2014-10-06 21:23:54 +08:00
Qingping Hou
05e47c8c9c
Merge pull request #955 from chrox/network_proxy
...
http proxy support by setting NETWORK_PROXY variable
2014-10-05 01:14:48 -07:00
Qingping Hou
55cb0271cb
Merge pull request #954 from chrox/fix_950
...
get rid of query filed of baseurl when building href
2014-10-05 01:08:02 -07:00
Qingping Hou
88b8f56146
Merge pull request #952 from chrox/fix_921
...
strip generic punctuation (U+2000 - U+206F) in lookup word
2014-10-05 01:05:12 -07:00
chrox
3147ffb08a
http proxy support by setting NETWORK_PROXY variable
...
This should implement feature request in #919 .
2014-10-05 16:04:52 +08:00
chrox
549f54ab07
get rid of query filed of baseurl when building href
...
otherwise there will be "?offset=90" query in downloading href
for calibre opds server which doesn't accept the url
This should fix #950 .
2014-10-05 15:47:36 +08:00
chrox
9467eab6e1
strip generic punctuation (U+2000 - U+206F) in lookup word
...
This should fix #921 .
2014-10-05 14:32:23 +08:00
chrox
7b78d70c74
fix fgcolor of inputbox is always 0.0
2014-10-05 14:00:38 +08:00
chrox
6152198e88
still needs button bgcolor
...
This bgcolor is for framecontainer background color.
2014-10-04 22:01:09 +08:00
Hans-Werner Hilse
7b1777e095
adapt widgets and text rendering to new font rendering
...
no background for text rendering anymore
2014-10-04 15:54:03 +02:00
Qingping Hou
7df2e0fb28
Merge pull request #944 from chrox/lazy_loading
...
refactoring: lazy loading of unused modules
2014-10-03 19:08:39 -07:00
evgsh
aae2c4de27
Added acquisition relation types , fixes issue #940
2014-10-03 17:22:37 +03:00
chrox
14e2bf3d69
refatoring: lazy loading of packages
2014-10-03 16:13:34 +08:00
Huang Xin
8fda638da6
Merge pull request #936 from WS64/master
...
fix the nil tags data bug
2014-10-01 00:53:14 +08:00
WS64
d790f8aafe
fix the nil tags data bug
2014-09-30 18:28:36 +02:00
chrox
9adf8ac327
also paint widget if any widget underneath is dirty
2014-09-29 14:23:38 +08:00
chrox
508cf94f98
fix run out of memory when receiving large files from Calibre
2014-09-29 14:22:33 +08:00
Hans-Werner Hilse
e47b43e8b5
add implementation of a container widget with alpha-blitting
...
This is a container that will honor a given alpha value (0..1)
when painting, so it will be translucent for values < 1.
2014-09-28 21:48:06 +02:00
Hans-Werner Hilse
adbcdddb56
undo wrong use of addblitFrom()
...
rendertext.lua did use addblitFrom() for rendering text - i.e. blitting
the letters to a BlitBuffer. However, it used intensity=1.0, which is
the same as doing a (faster, more efficient) blitFrom(). So use that
instead.
What was probably intented here is a different kind of blitting - using
the bitbuffer of the glyph as a mask.
2014-09-28 21:11:03 +02:00
Ebrehem
44ecf74ba3
Update readerfooter.lua
2014-09-27 12:56:47 +02:00
chrox
97e7a90865
encode lfs.dir iterated file path to UTF-8
2014-09-25 22:33:43 +08:00
chrox
a0cd4816a7
no mkfifo on Windows
2014-09-25 22:33:31 +08:00
chrox
7d22318641
don't require ssl.https since it cannot yet be built for win32
2014-09-25 22:33:06 +08:00
evgsh
aabee1f3bc
Update opdsbrowser.lua
2014-09-19 13:43:58 +03:00
Huang Xin
0d38a02eb6
Merge pull request #910 from WS64/master
...
minor code optimizing
2014-09-19 09:24:50 +08:00
WS64
d47af7e368
minor code optimizing optimizing
2014-09-18 19:04:00 +02:00
Huang Xin
534c68cf24
Merge pull request #908 from WS64/master
...
Minor code optimization
2014-09-18 17:17:16 +08:00
WS64
f7c640e550
Code optimization
2014-09-18 10:17:40 +02:00
chrox
7871af3489
add Calibre Companion plugin
...
This plugin implements a simple Calibre Companion protocol that
communicates with Calibre Wireless Server from which users can
send documents to Koreader devices directly with WIFI connection.
Note that Calibre Companion(CC) is a trade mark held by MultiPie Ltd.
The Android app Calibre Companion provided by MultiPie is closed-source.
This plugin only implements a subset function of CC according to the
open-source smart device driver from Calibre source tree.
More details can be found at calibre/devices/smart_device_app/driver.py.
2014-09-18 14:03:55 +08:00
WS64
4ee35bb972
Add "exclude screensaver" to menu
2014-09-17 12:25:13 +02:00
WS64
abaa772750
Add "exclude cover from screensaver" functionality
2014-09-17 12:24:33 +02:00
Huang Xin
786d300953
Merge pull request #899 from gontofe/WifiMenuToggle
...
Adding Touch Menu Wifi Status icon/Toggler for Kobo and Kindle.
2014-09-15 09:10:20 +08:00
Michael Hall
f6b1ed2b6d
Add tidy up option after failed update.
2014-09-14 16:07:19 +01:00
Michael Hall
96aa795618
Adding Touch Menu Wifi Status icon/Toggler for Kobo and Kindle. Change to
...
NetworkMgr:getWifiStatus() to ping default gateway instead of 8.8.8.8.
2014-09-14 15:05:28 +01:00
Qingping Hou
5e035c2517
fix(ui): hide button framecontainer background in hide() method
2014-09-13 23:43:39 -04:00
chrox
cf882a078a
fix page number of sub-menu is not updated
2014-09-13 14:00:57 +08:00
Qingping Hou
9c9edcf36f
Merge pull request #888 from chrox/fix_886
...
always suspend in portrait mode so that screensaver image won't be stretched
2014-09-10 00:56:25 -07:00
chrox
3bd2c0756a
always suspend in portrait mode so that screensaver image won't be stretched
...
This patch should fix #886 .
2014-09-10 15:52:18 +08:00
Qingping Hou
eb46aa7d66
Merge pull request #887 from chrox/fix_875
...
refactoring: hide the charlist implementation of InputText
2014-09-10 00:49:06 -07:00
chrox
5b940cecaf
refactoring: hide the charlist implementation of InputText
...
This patch also fix #875 .
2014-09-10 15:31:11 +08:00
chrox
2299ac118a
fix infinit loop when OPDSCatalog is created without onExit definded
2014-09-10 14:35:06 +08:00
WS64
de1d8d7cac
Switch back to portrait before leaving book
2014-09-10 13:49:11 +08:00
chrox
88d9cdf533
add shortcut to add local calibre OPDS catalog
2014-09-10 13:27:15 +08:00
chrox
b05ece345a
add set download directory option when downloading files from OPDSCatalog
...
Manually added opds servers are editable and deletable by long press on
the menu entries.
2014-09-10 13:27:15 +08:00
chrox
84abe620d2
refresh filemanager when closing opdscatalog
2014-09-10 13:27:15 +08:00
chrox
11a8a1dce6
show file size and directory items in filemanager
2014-09-10 13:27:15 +08:00
chrox
8294a629b8
treate quoted slash as plain text in attribute value
2014-09-10 13:27:14 +08:00
Qingping Hou
18d4c7550a
chore: cleanup FileManagerHistory:updateItemTable()
2014-09-08 02:33:26 -04:00
Qingping Hou
7c6790796a
fix: replace showReaderUI with ReaderUI:showReader
2014-09-07 18:43:32 -04:00
chrox
98da30f689
fix href with two slash
2014-09-07 17:21:58 +08:00
chrox
c91224f12c
add default directory for filemanager
2014-09-07 17:19:51 +08:00
chrox
69bb4a3df3
add return button in menu
2014-09-05 21:07:43 +08:00
chrox
c12cb0367b
title truncation in input dialog
2014-09-05 21:07:43 +08:00
chrox
69c162ac4f
refactoring to generic multiinputdialog
2014-09-05 21:07:43 +08:00
chrox
21dcf787da
add OPDS support
...
This PR implements a simple OPDS browser which can be launched
from filemanager menu.
2014-09-05 21:07:43 +08:00
chrox
2bec0017a0
refactor out global functions showHomePage and showReaderUI
2014-09-05 21:07:42 +08:00