Giorgio Micotti
a2ff9b9a9b
Final fixes for kobo suspend
2013-09-30 21:48:46 +02:00
Giorgio Micotti
afd4a2d920
Merge branch 'master' of https://github.com/koreader/koreader
2013-09-30 12:30:27 +02:00
chrox
ffd31613a5
estimate cache size of koptcontext
...
This should fix #285 .
2013-09-26 14:51:33 +08:00
chrox
9f0154f7bf
fix wrong indentation
2013-09-14 19:46:45 +08:00
chrox
0b7554b1d8
add DSHOWOVERLAP in defaults.lua
...
Turn off "show overlap" by default since scroll mode can replace it
in most cases where "show overlap" is used. And the dimmed area often
make new users confused. It's better to leave this feature to more
advanced users.
2013-09-14 19:35:37 +08:00
chrox
f12869d587
split text string with even finer granularity
2013-09-14 18:40:00 +08:00
chrox
979d4c5d48
add DHINTCOUNT in defaults.lua
...
It controls how many number of pages will be hinted in background
after one page has been drawn. Default DHINTCOUNT is 2.
2013-09-14 15:27:56 +08:00
chrox
f2cf10a015
refactoring koptcontext creation function
2013-09-14 12:56:10 +08:00
Giorgio Micotti
cea40ec902
Fixes for light.
2013-09-09 21:30:29 +02:00
Giorgio Micotti
ec3d23ef10
Split suspend-resume logic
2013-09-09 12:30:27 +02:00
Giorgio Micotti
be1a637c3b
DO NOT MERGE initial suspend support for Kobo
2013-09-09 09:04:09 +02:00
HW
25faf7e1a4
fixed bugs in implementation of utf8Chars()
2013-09-03 16:54:06 +02:00
HW
61c232e0e9
add a UTF8 character iterator
...
this speeds up font rendering since LuaJIT doesn't have to use
the interpreter for string.gsub(), which was used before
2013-09-03 16:24:49 +02:00
Giorgio Micotti
45cc6492ab
Solve bug #210 .
2013-09-02 21:16:56 +02:00
{Qingping, Dave} Hou
6586d55ad3
Merge pull request #254 from chrox/menu_layout
...
fix widget out-of-bound in bookmark and toc menus
2013-09-01 08:09:06 -07:00
chrox
094a98b819
split string with delimiters captured
2013-09-01 22:13:20 +08:00
chrox
1c728d6945
fix widget out-of-bound in bookmark and toc menus
...
The original menu layout needs manual dimension calculations
such as white padding for displaying page information in
footer as the title, all item contents and footer are stacked
in one VerticalGroup. Out-of-bound error(koreader/koreader-base#43 )
will occur in some corner cases if we missed something in
the calculation. The patch sent in this PR invented a new
layout for menu widget in which no manual calculation is needed
for displaying the footer. And the footer will be placed well
inside the menu frame.
+--------------+
| +----------+ |
| |+--------+| |
| || Header || |
| |+--------+| |
| |+--------+| |
| || Item || |
| || Item || |
| |+--------+| |
| |(Vertical | |
| | Group) | |
| +----------+ |
| Footer |
|(OverlapGroup)|
+--------------+
2013-09-01 16:36:45 +08:00
Qingping Hou
4c40fece74
add hidden file toggle
2013-08-25 00:00:06 -04:00
Paulo Matias
92e12d6466
Use ReaderFrontLight:addToMainMenu in FM
...
Check if frontlight is present using the same method as ReaderFrontLight:init,
just for consistency.
2013-08-23 08:39:35 -03:00
Paulo Matias
3d04925109
Remove FileChooser:compressPath, use util.realpath
2013-08-23 08:39:09 -03:00
{Qingping, Dave} Hou
87655ffdec
Merge pull request #237 from thotypous/fix-crash-root
...
Fix crash when trying to go to / on FM
2013-08-22 08:36:31 -07:00
Paulo Matias
e668379f6d
Fix crash when trying to go to / on FM
...
Deals with more cases in FileChooser:compressPath, including `/mnt/..`.
2013-08-22 11:42:21 -03:00
Paulo Matias
d7b747d6dd
Change util.isEmulated to boolean and fix frontlight
...
Device:hasFrontlight always returned a true-like value because util.isEmulated was an integer.
Fixed this, also, used a polymorphic object design to reduce FrontLight code, and
adapted BaseFrontLight for the emulator.
2013-08-22 10:10:29 -03:00
Qingping Hou
c951eacc35
fix: reset current page on item_table switch for menu widget
2013-08-22 12:01:00 +08:00
Qingping Hou
cad8ddec92
disable path compress on relative path
2013-08-22 11:39:35 +08:00
Paulo Matias
54636e9407
Add InputText:setText and avoid non-intuitive UI behavior after light toggle
2013-08-21 08:54:46 -03:00
Paulo Matias
2492ca247a
Use ffi/lulip.lua from koreader-base; change package.path
2013-08-19 10:58:42 -03:00
Paulo Matias
9ce281873c
Remove ffi.cdef to avoid conflict with ffi/util.lua from koreader-base
2013-08-18 15:47:46 -03:00
chrox
6f89fec891
fix calling setFontSize in pdfreader
2013-08-17 16:11:46 +08:00
chrox
44c31afe62
fix bug #179
...
It seems that the setPageMargins method will mess up XPointer of current view.
This bugfix simply disables page margin restoring in readercopt.lua so that
reading position is restorable.
2013-08-17 15:34:42 +08:00
chrox
75eb0e6f23
bugfix: fix screen ghosting after swiping north/south in scroll mode
...
As swiping north/south will generate several pan gestures which will
set refresh mode to WAVEFORM_MODE_A2, we should explicitly do a full
refresh in order to switch refresh waveform from WAVEFORM_MODE_A2
to WAVEFORM_MODE_GC16 as in OnPanRelease.
2013-08-17 11:01:57 +08:00
Paulo Matias
04ebaf0964
Use lfs.currentdir()
to get default root_dir
as an absolute path
2013-08-15 19:50:33 -03:00
Paulo Matias
48d6020930
Initialize FileChooser with root_path, otherwise the command line argument (directory) is ignored
2013-08-15 18:53:22 -03:00
Qingping Hou
656f02c7f6
fix out-of-bound bug in filemanager
2013-08-15 08:28:18 +08:00
Qingping Hou
94e89e8e38
add missing import for group widget in readerview
2013-08-14 12:13:48 -04:00
Huang Xin
2e8b5cb39c
Merge pull request #215 from houqp/houqp-master
...
check frontlight before setting intensity
2013-08-14 03:54:43 -07:00
Qingping Hou
ce4d628028
only insert frontlight menu item if frontlight is detected
2013-08-14 06:52:39 -04:00
Huang Xin
4e83288040
Merge pull request #214 from houqp/filemanager
...
bug fix in class system & rewrite filemanager
2013-08-14 03:39:36 -07:00
Qingping Hou
caf7ebb9ae
bug fix & rewrite filemanager
2013-08-14 05:29:05 -04:00
Qingping Hou
aef2c4123e
fix Menu widget initialization on inheritance bug in filechooser
2013-08-14 05:19:01 -04:00
Qingping Hou
c66429c903
add is_popout and no_title to menu widget
2013-08-14 05:18:09 -04:00
Qingping Hou
b49a338121
add extend method to widget
2013-08-14 05:17:25 -04:00
Paulo Matias
e45442c1f6
Refactor Kobo frontlight_intensity restoration: move to reader.lua
2013-08-13 13:56:46 -03:00
Paulo Matias
f68edd97ba
Merge branch 'master' into frontlight3
2013-08-13 13:33:26 -03:00
Paulo Matias
44258d4ba6
Force initialization of FrontLight in Input:init() to avoid glitches in Kobo
2013-08-12 16:41:39 -03:00
Huang Xin
7c680a181d
Merge pull request #211 from houqp/houqp-master
...
move emu_event to /tmp for vagrant box
2013-08-12 06:57:07 -07:00
Paulo Matias
81facc2ce9
Refactor min/max handling in BaseFrontLight; use getFrontlight() in ReaderFrontLight for consistency
2013-08-12 09:37:41 -03:00
Paulo Matias
3f3fba2fdf
Big refactoring: Device handles frontlight device, ReaderFrontLight now only GUI
2013-08-12 02:13:28 -03:00
Paulo Matias
232d8cd74a
Fix multiple ReaderFrontLight instances, i18n issues, and refactor event handling to follow codebase patterns
2013-08-12 02:13:28 -03:00
Qingping Hou
82e4863827
move emu_event to /tmp
...
because virtualbox cannot create fifo file in shared folders
2013-08-11 20:04:04 -04:00