2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

180 Commits

Author SHA1 Message Date
Hans-Werner Hilse
d91dccae80 fix night mode setting
implement bezel cleaning with proper background color
2014-11-09 18:03:33 +01:00
chrox
dec9a99fba load Device module after DEBUG is turned on
otherwise some DEBUGs are not printed.
2014-11-06 15:07:53 +08: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
a197f31da7 check if last opened file exists before opening it
This should fix #916.
2014-10-05 14:52:37 +08:00
chrox
14e2bf3d69 refatoring: lazy loading of packages 2014-10-03 16:13:34 +08:00
chrox
c4a1e4d10d update PATH variable on startup for Windows 2014-09-25 22:33:58 +08:00
chrox
69919435ac restore frontlight setting only for Kobo devices 2014-09-05 21:07:42 +08:00
chrox
2bec0017a0 refactor out global functions showHomePage and showReaderUI 2014-09-05 21:07:42 +08:00
chrox
c74c258fc7 add filemanager icon in reader menu
now we can access the filemanager in all launcher configurations
2014-09-05 21:07:42 +08:00
chrox
c8bc9ee37c close screen framebuffer when exiting reader 2014-08-19 12:11:48 +08:00
chrox
b7c7287bab remove more global variables 2014-08-14 19:52:30 +08:00
chrox
e1af17938c remove global variable Image 2014-08-14 19:51:40 +08:00
WS64
2d72bb7e3f Update reader.lua 2014-08-11 14:03:22 +02:00
WS64
5a2b9103e9 Update reader.lua 2014-08-11 13:49:18 +02:00
NiLuJe
6e10b877ad We don't need those at startup, delay until needed. 2014-07-05 15:04:14 +02:00
NiLuJe
f1cc984cbf Close lipc handles on exit.
No idea if bad things happen if we don't, but at least this sounds more
correct. (re #696)
2014-07-04 20:10:38 +02:00
NiLuJe
834ff9a1fb Don't fake the swipe to unlock if not needed.
Re: #695
2014-07-04 05:16:28 +02:00
chrox
26f5a4731e add peer-to-peer file sharing plugin ZSync 2014-06-23 22:35:41 +08:00
Markismus
aaa84808e8 add persistent option for defaults.lua 2014-06-18 19:18:27 +02:00
chrox
b92860c22a add night mode option that inverts screen color 2014-06-08 14:06:16 +08:00
chrox
e23e48ffa5 fix license version in reader usage 2014-06-05 19:23:54 +08:00
chrox
d2eaeeaeed add option to load last opened file automatically 2014-06-05 19:06:35 +08:00
chrox
857bd6fcc8 strings not shown on GUI will not be translated
This may encourage users in transifex to join Koreader project.
2014-06-05 14:59:06 +08:00
chrox
8e278c0d62 remove global util module 2014-06-04 18:19:43 +08:00
Qingping Hou
f6a9c694dc refactor: update reader to use new launcher 2014-06-01 12:46:55 -04:00
Huang Xin
4156b2edd0 Merge pull request #559 from Markismus/master
Return to Home screen for Kobo devices Mini, Touch and Aura
2014-05-08 16:30:35 +08:00
Markismus
a153286f44 Kobo Frontlight Tweaks
Now the frontlight remains unchanged from Nickel to koreader and vice
versa.
Also ffi/kobolight.lua has been changed to allow for usage of the toggle
button in the filemanager.
2014-05-02 16:06:18 +02:00
chrox
659e5f6bdd use buildin LuaJIT profiler 2014-05-01 11:58:05 +08:00
chrox
34fd9f3efa add koreader plugin mechanism
This should implement #505.
2014-04-23 22:30:36 +08:00
Qingping Hou
f07c0c4fba require FileManager on demand in reader.lua 2014-04-02 17:05:28 -04:00
Qingping Hou
4b357c1466 move reader code into frontend/apps/reader
it makes more sense to completely separate the UI framework and
application code

also move frontend/ui/configurable.lua to frontend/configurable.lua
2014-04-02 17:02:01 -04:00
chrox
92219a1f1e cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
Qingping Hou
5dc9d5d565 rename language_po setting entry to language 2014-01-19 12:59:27 -05:00
Paulo Matias
a7af79d3c8 Language chooser fixes
- Change order of module loading so that every string is localized
- Fix changing the language to English
2014-01-18 20:04:14 -02:00
Qingping Hou
ae1cf90006 add language setting menu item 2014-01-18 12:23:55 -05:00
Paulo Matias
1b1e65edfe Avoid crash if trying to open a non-existent file
which currently might occur by clicking in the history entry of a file which was removed
2014-01-17 16:41:44 -02:00
chrox
92b62c907a refactoring frontlight device to more generic power device 2014-01-04 21:38:07 +08:00
chrox
62e12ddfba import document module on-demand 2013-12-31 13:12:56 +08:00
chrox
1fb4dfab95 add visual indication on document loading
This should implement #265.
2013-12-28 18:21:39 +08:00
chrox
c205503828 remove global variable DEBUG 2013-10-25 20:09:21 +08:00
chrox
f49f64bc15 add missing gettext and Menu module 2013-10-23 22:51:07 +08:00
HW
ef111b99c6 Refactored to use strictly locals 2013-10-18 22:38:07 +02: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
Paulo Matias
8f53571e06 No need for lulip to be global 2013-08-19 11:07:19 -03:00
Paulo Matias
2492ca247a Use ffi/lulip.lua from koreader-base; change package.path 2013-08-19 10:58:42 -03: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
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
f65ae9a2b5 check frontlight before setting intensity 2013-08-14 06:34:12 -04:00
Qingping Hou
caf7ebb9ae bug fix & rewrite filemanager 2013-08-14 05:29:05 -04:00
Paulo Matias
e45442c1f6 Refactor Kobo frontlight_intensity restoration: move to reader.lua 2013-08-13 13:56:46 -03:00