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