Huang Xin
b4574a7359
fix crash on kindle
10 years ago
chrox
efe8e65dd9
refactoring search path
10 years ago
Hans-Werner Hilse
d91dccae80
fix night mode setting
...
implement bezel cleaning with proper background color
10 years ago
chrox
dec9a99fba
load Device module after DEBUG is turned on
...
otherwise some DEBUGs are not printed.
10 years ago
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.
10 years ago
chrox
a197f31da7
check if last opened file exists before opening it
...
This should fix #916 .
10 years ago
chrox
14e2bf3d69
refatoring: lazy loading of packages
10 years ago
chrox
c4a1e4d10d
update PATH variable on startup for Windows
10 years ago
chrox
69919435ac
restore frontlight setting only for Kobo devices
10 years ago
chrox
2bec0017a0
refactor out global functions showHomePage and showReaderUI
10 years ago
chrox
c74c258fc7
add filemanager icon in reader menu
...
now we can access the filemanager in all launcher configurations
10 years ago
chrox
c8bc9ee37c
close screen framebuffer when exiting reader
10 years ago
chrox
b7c7287bab
remove more global variables
10 years ago
chrox
e1af17938c
remove global variable Image
10 years ago
WS64
2d72bb7e3f
Update reader.lua
10 years ago
WS64
5a2b9103e9
Update reader.lua
10 years ago
NiLuJe
6e10b877ad
We don't need those at startup, delay until needed.
10 years ago
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 )
10 years ago
NiLuJe
834ff9a1fb
Don't fake the swipe to unlock if not needed.
...
Re: #695
10 years ago
chrox
26f5a4731e
add peer-to-peer file sharing plugin ZSync
10 years ago
Markismus
aaa84808e8
add persistent option for defaults.lua
10 years ago
chrox
b92860c22a
add night mode option that inverts screen color
10 years ago
chrox
e23e48ffa5
fix license version in reader usage
10 years ago
chrox
d2eaeeaeed
add option to load last opened file automatically
10 years ago
chrox
857bd6fcc8
strings not shown on GUI will not be translated
...
This may encourage users in transifex to join Koreader project.
10 years ago
chrox
8e278c0d62
remove global util module
10 years ago
Qingping Hou
f6a9c694dc
refactor: update reader to use new launcher
10 years ago
Huang Xin
4156b2edd0
Merge pull request #559 from Markismus/master
...
Return to Home screen for Kobo devices Mini, Touch and Aura
11 years ago
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.
11 years ago
chrox
659e5f6bdd
use buildin LuaJIT profiler
11 years ago
chrox
34fd9f3efa
add koreader plugin mechanism
...
This should implement #505 .
11 years ago
Qingping Hou
f07c0c4fba
require FileManager on demand in reader.lua
11 years ago
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
11 years ago
chrox
92219a1f1e
cleanup: expand tab to 4 spaces
11 years ago
Qingping Hou
5dc9d5d565
rename language_po setting entry to language
11 years ago
Paulo Matias
a7af79d3c8
Language chooser fixes
...
- Change order of module loading so that every string is localized
- Fix changing the language to English
11 years ago
Qingping Hou
ae1cf90006
add language setting menu item
11 years ago
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
11 years ago
chrox
92b62c907a
refactoring frontlight device to more generic power device
11 years ago
chrox
62e12ddfba
import document module on-demand
11 years ago
chrox
1fb4dfab95
add visual indication on document loading
...
This should implement #265 .
11 years ago
chrox
c205503828
remove global variable DEBUG
11 years ago
chrox
f49f64bc15
add missing gettext and Menu module
11 years ago
HW
ef111b99c6
Refactored to use strictly locals
11 years ago
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.
11 years ago
Paulo Matias
8f53571e06
No need for lulip to be global
11 years ago
Paulo Matias
2492ca247a
Use ffi/lulip.lua from koreader-base; change package.path
11 years ago
Huang Xin
2e8b5cb39c
Merge pull request #215 from houqp/houqp-master
...
check frontlight before setting intensity
11 years ago
Huang Xin
4e83288040
Merge pull request #214 from houqp/filemanager
...
bug fix in class system & rewrite filemanager
11 years ago
Qingping Hou
f65ae9a2b5
check frontlight before setting intensity
11 years ago
Qingping Hou
caf7ebb9ae
bug fix & rewrite filemanager
11 years ago
Paulo Matias
e45442c1f6
Refactor Kobo frontlight_intensity restoration: move to reader.lua
11 years ago
Paulo Matias
aaa646aa56
Only assign DEBUG to a no-op function if Dbg.is_on==false
11 years ago
Paulo Matias
cc9f9cce4d
Added LuaJIT profiling support (lulip), better cmdline option handling.
11 years ago
Qingping Hou
561c7902ca
move defaults.lua to root directory
11 years ago
chrox
313525e961
add cpath in reader.lua
12 years ago
Qingping Hou
fb16790958
add gettext to inputevent.lua
12 years ago
Huang Xin
e42c8f7956
Merge pull request #36 from houqp/houqp-master
...
add gettext support
12 years ago
Qingping Hou
15a409245a
use gettext in reader.lua
12 years ago
th0mass
e1684cae77
file manager close button is activated
...
since home menu doesn't work properly we need a solid close button on file manager to exit from the app on Touch.
https://github.com/koreader/koreader/issues/15
12 years ago
HW
0c4264b065
updated project URLs
12 years ago
HW
fb317810fa
Some adaptions needed after refactoring
12 years ago
chrox
f85fd7a9b2
bugfix: terminate the program when exiting reader
12 years ago
chrox
819467df0b
bugfix: hack swipe to unlock after going out of screensaver
...
by feeding a fake tap at the bottom of the screen
12 years ago
Qingping Hou
595392e841
remove debug information
12 years ago
Qingping Hou
d3e362a551
use show_parent in reader.lua
12 years ago
Qingping Hou
b2f0fe1c5d
when kpdf.sh start with no argument, it will actuall pass in ""
12 years ago
Qingping Hou
8dd9e1ec5e
forgot to add exitReader at the end
12 years ago
Qingping Hou
1f9adcbb91
add exitReader so we can save G_reader_settings properly
12 years ago
Qingping Hou
10d980ed87
rearranged source tree
12 years ago
Qingping Hou
9fa6ec2a0c
listen home key press in filechooser
12 years ago
Qingping Hou
f22b2301fa
add last documents menu entry
12 years ago
Qingping Hou
186712d401
add ev log in debug mode
12 years ago
chrox
905b315c81
hide certain directories in FileManager
...
The exclude pattern should be editable by users in the future.
12 years ago
Qingping Hou
ae6c4bd03a
Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into rotate
...
Conflicts:
frontend/ui/reader/readerconfig.lua
12 years ago
Qingping Hou
2090dabf22
add menu to FileManager
12 years ago
Qingping Hou
dd7e26a986
fix crash in goint into screen saver
12 years ago
Qingping Hou
f568ee4139
remove unnecessary framecontainer in reader.lua
12 years ago
Qingping Hou
27ec17b405
only echo to /proc/keypad for K3 and DXG
12 years ago
Qingping Hou
1b7357fc0f
add Device:hasKeyboard to help initialize UI components
...
So that kindle4 won't have all the gesture event registered.
12 years ago
Qingping Hou
d4e5b4cb06
add readerpaging and readermenu touch support
12 years ago
Qingping Hou
c90e2ae797
delete dulplicate code
12 years ago
Qingping Hou
75f2c2774f
fix getopt module clearance in reader.lua
12 years ago
Qingping Hou
2b185961e8
remove getopt lua module in reader.lua
12 years ago
Qingping Hou
f641f50e2a
add comment for build version reading in the future
12 years ago
Qingping Hou
6c0670740d
revert wrong conflict merge for New InfoMessage Concept
12 years ago
NuPogodi
0eaf2671fd
New InfoMessage Concept
...
Part I (still no unireader, crereader, filesearcher & fileinfo)
Conflicts:
commands.lua
dialog.lua
filechooser.lua
filehistory.lua
font.lua
inputbox.lua
reader.lua
resources/info-i.png
screen.lua
selectmenu.lua
12 years ago
Tigran Aivazian
7894b15511
Tidy up debug support.
...
1. Make "-d" switch passed to reader.lua enable all debugging
2. Enable debugging for now (development stage) to preserve the current
behaviour. But for the production release I advise to: a) disable it by
not passing "-d" and b) redirect standard output (not just standard
error) of reader.lua to crash.log in kpdf.sh
3. Comment out debug printf()s in pdf.c
Conflicts:
reader.lua
12 years ago
Qingping Hou
ac385783ed
remove menu item shortcut for k4
12 years ago
Qingping Hou
4c71c628d3
release input devices on reader exit
12 years ago
Qingping Hou
84c435ebdc
use getProvider and openDocument in reader.lua
...
we use getProvider for file extension filter
12 years ago
Qingping Hou
07d6f66565
fix screen rotation mode restore for native system
12 years ago
Qingping Hou
379d6216a0
read reader settings in reader.lua
12 years ago
Qingping Hou
bb450c81d4
read arguemtns in reader.lua
12 years ago
HW
5025be971d
separated dialog.lua into source files for each individual function
12 years ago
HW
1e9fdd818f
a new base file for the reader in new_ui_code branch
12 years ago
HW
9e531fc2db
file reorganisation
...
all lua frontend files are now in the frontend/ directory.
all old code is cleaned up.
13 years ago
Qingping Hou
a89c88f40f
add zip format support
13 years ago
Qingping Hou
dbb49505f1
add doc format support
...
Though I don't like doc at all.
13 years ago
Dobrica Pavlinusic
18f0cf8043
added mobi to CREReader #131
13 years ago
Qingping Hou
b03d589ae9
add preLoadSettings methods for cache_document_size setting
...
cache_document_size should be configurable for
every docuemnt and it must be loaded before
document open, so I added the preLoadSettings method
13 years ago
Qingping Hou
c4bd2a1046
add debug argument to reader.lua
...
Without -d argument, all the debug message will
be suppressed.
13 years ago
Qingping Hou
3306346dba
use debug to print debug info
13 years ago
Qingping Hou
1b2d0b71b0
fallback to stop framework approach on screensaver fix
13 years ago
Qingping Hou
fa414af1eb
handle obselete jumpstack settings
...
* remove jumpstack settings if found
* add DocSettings:delSetting method
* rename DocSettings:savesetting to
DocSettings:savesetting.
13 years ago
Qingping Hou
84fe9f49a4
rewrite jump stack and add bookmark feature
...
* jump stack is rewritten as jump history
* add bookmark feature
13 years ago
Dobrica Pavlinusic
065d68c3a5
use refresh_mode
13 years ago
Qingping Hou
5e867d38ef
show infomessage on document open
13 years ago
HW
676e4268ff
display document open error message
13 years ago
HW
ec2eda0c05
switched font handling to only work with external fonts
...
now you can use a environment variable, FONTDIR, to point
to a font dir. Otherwise, "./fonts" is used by default.
Subdirectories are indexed.
13 years ago
HW
a824204039
fixed missed case for device/emu recognition
13 years ago
HW
caefddb99c
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
...
Conflicts:
crereader.lua
13 years ago
HW
877ecdfb71
switched slider handling to a fork()ed process
13 years ago
Qingping Hou
ecd56a3745
mod: prefix global variables width and height with G_
13 years ago
Qingping Hou
1f9efe0d9c
Merge branch 'master' into epub
...
Conflicts:
Makefile
unireader.lua
13 years ago
Qingping Hou
9d11916bbd
mod: resume framework in kpdf.sh
13 years ago
Qingping Hou
c41e3e75a3
add: demo for fixing #85 , #86
13 years ago
Qingping Hou
1593c56803
mod: add html support in crereader
13 years ago
Qingping Hou
37dfc84d5a
fix: move commands initilization from global init to local
...
If we call addAllCommands in initGlobalSettings, all
the readers will share the same commands and we cannot
adjust commands for a specific reader. I thus moved this
method call to Unireader:init() method.
13 years ago
Qingping Hou
8a2b86e203
mod: factor last reading page saving and resotring
13 years ago
Qingping Hou
b09110a38d
Merge branch 'djvu-highlight' into epub
13 years ago
Qingping Hou
4821f10dda
half done demo for crengine
13 years ago
Qingping Hou
46f171df3b
Merge branch 'master' of github.com:hwhw/kindlepdfviewer into djvu-highlight
...
Conflicts:
unireader.lua
13 years ago
traycold
bfcad367bb
using font module for getting fonts (commit f95231d789
)
...
renamed function names using camelCase (issue #62 )
13 years ago
traycold
fd6c6dbe60
Merge remote branch 'hwhw/master'
...
* hwhw/master:
Password input, handling for broken documents
factored pages count out, better error and password handling
factored pages counter out of document struct
13 years ago
Qingping Hou
f4ea1cdb62
Merge branch 'master' of github.com:hwhw/kindlepdfviewer into djvu-highlight
...
Conflicts:
blitbuffer.c
unireader.lua
13 years ago
HW
7e3e38be62
Password input, handling for broken documents
13 years ago
traycold
c2fe6f9bee
Merge remote branch 'hwhw/master'
...
* hwhw/master:
make muPDF cache size configurable from Lua
add XPS and CBZ support (muPDF provides this)
fixed bug for odd rendering widths
refactored muPDF integration to use strictly the fitz.h API
forgot Makefile change when factoring out drawcontext
13 years ago
HW
48463d4739
add XPS and CBZ support (muPDF provides this)
13 years ago
Qingping Hou
7bbc5b5ed2
highlight with cursor demo
13 years ago
traycold
943b511b7c
complete implementation of issue #55
...
created a help page
13 years ago
Qingping Hou
f95231d789
add: status bar in reading menu & font.lua
...
* Since fontchooser is replaced by selectmenu, it
is no longer needed. So I rewrite it into font.lua
module which can cache faces that shared among all
UIs.
* add progressBar method in graphics.lua to draw
reading progress.
* add reading progress information in reading menu.
It is just a demo. Should be clean up in next release
when the real reading menu is out. :)
13 years ago
Qingping Hou
319826c385
mod: screen rotation implemented by ioctl
...
Now you get a instance rotate :) With only one bug.
I have to restore to previous rotation state of the
native system after exists. Because the native system
does poll the new rotation state that changed by ioctl.
Currently, I don't know how to force the native system
to detect the changes.
13 years ago
Qingping Hou
d2aaf15dce
add: screen.lua
...
* move rotation mode to global variable, now check rotation
with Screen.cur_rotation_mode
* move screenRotate to screen module so other UIs can use it.
13 years ago
Qingping Hou
3dbf9877bc
add: 90 degree rotation support
...
demo for issue #51
13 years ago
Qingping Hou
f79ae48de8
add: UniReader:initGlobalSettings()
...
Use this method to read settings that may shared
among all readers. For instance, pan_overlap_vertical
13 years ago
Dobrica Pavlinusic
0e48785e0e
fix #36 : enable file path back
13 years ago
traycold
eba1c2d5ef
Merge remote-tracking branch 'hwhw/master' into djvu
13 years ago
HW
917dc33985
put some missing bits into place to fix #34
13 years ago
Qingping Hou
ab2cd3ec8c
mod: save jump_stack after exit
13 years ago
Qingping Hou
b318ca08e3
mod: merge djvu branch with master
13 years ago
traycold
04184a5950
improved filechooser; enable "single file" mode of kindlepdfviewer
...
with this mode it's possible to start kindlepdfviewer opening last
viewed file, bypassing filechooser
13 years ago
HW
4f46f9fa7a
proper exit when pressing HOME, store settings etc
13 years ago
Qingping Hou
e4e0eb45ee
mod: adapt pdfreader and djvureader to unireader
13 years ago
Qingping Hou
2f9a44bfc6
code clean up for first demo
13 years ago
Qingping Hou
516e32bc46
mod: call different reader in reader.lua
...
call PDFReader or DJVUReader according to filetype
13 years ago
Qingping Hou
e258371134
mod: add closePage and demo for filechooser
13 years ago
Qingping Hou
4a1a5233c0
Merge branch 'master' into djvu
...
Conflicts:
reader.lua
13 years ago
Qingping Hou
1713e2ab0b
fix: refresh screen more elegantly after reader exit
13 years ago
Qingping Hou
c4d0cd26ae
half done djvu support
13 years ago