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

37 Commits

Author SHA1 Message Date
NiLuJe
2d12f8a8ee Mention that arguments are always evaluated, to curb enthusiasm at
putting too much fancy stuff in a logger call ;).

(Not actually an issue in our current codebase).
2021-08-09 02:32:58 +02:00
yparitcher
dc59391632
Dispatcher: use UIManager:sendEvent instead of the current instance (#7999)
This fixes inheritance issues when changing documents.
Also allow "Go to page" in FM.
2021-07-23 13:27:12 +02:00
Frans de Jonge
81eb5f8c49
Add Lua 5.1 to sample Debubuntu apt-get command (#7421)
To ensure it gets installed.

Cf. <https://github.com/koreader/koreader/issues/7409#issuecomment-800267291>.
2021-03-27 10:41:01 +01:00
NiLuJe
fe10d0bce5
Revamp flash_ui handling, once more, with feeling ;) (#7262)
* Simplify flash_ui handling (by handling the unhighlight pre-callback, c.f., #7262 for more details).
* UIManager: Handle translucent window-level widgets (and those wrapped in a translucent MovableContainer) properly in setDirty directly, making sure what's *underneath* them gets repainted to avoid alpha layering glitches. (This was previously handled via localized hacks).
* Update UIManager's documentation, and format it properly for ldoc parsing, making the HTML docs more useful.
* ReaderView: Reinitialize the various page areas when opening a new document, to prevent poisoning from the previous document.
* Event: Handle nils in an event's arguments.
* CheckButton/RadioButton: Switch to simple inversion to handle highlighting
* CheckButton: Make the highlight span the inner frame's width, instead of just the text's width, if possible.
* AlphaContainer: Fix & simplify, given the UIManager alpha handling.
* MovableContainer: When translucent, cache the canvas bb used for composition.
* Avoid spurious refreshes in a few widgets using various dummy *TextWidgets in order to first compute a text height.
* KeyValuePage: Avoid floats in size computations.
2021-02-20 18:22:48 +01:00
NiLuJe
995668ac02
Unbreak macOS build (#7313)
* Bump base

https://github.com/koreader/koreader-base/pull/1308
https://github.com/koreader/koreader-base/pull/1310

* Include bison in macOS build deps

Apparently something in gettext is possibly unhappy with the hilariously
outdated stock version (2.3).
2021-02-18 23:46:29 +01:00
Rex Kerr
286a6b4883
Emulator: update mac instructions to include gnu grep (#7266)
Since `grep -z` is not available on posix grep
2021-02-10 20:55:26 +01:00
NiLuJe
04a980649f
kodev: Use getopt instead of a hand-rolled hack (#6980)
* Update log android to match the current issue template
* Fix GUI gdb frontends getting wrecked by the older glib library we ship w/
KOReader
* Slightly more aggressive valgrind defaults
  It's slower, but interpreting results without leak-check=full ends up
  costing more time than just running with it.
* Add a callgrind shortcut
* Use getopt instead of a hand-rolled hack for option parsing
* Make it clearer that complex args should be quoted
* Document prompt
* Add a Valgrind suppression file for libdrm/mesa on AMD hardware
  Because mesa/libdrm isn't built w/ -D valgrind=enabled on Gentoo,
  and Valgrind is very much not happy with mesa ;p.
* Allow toggling reader.lua's sane return mode
  (Enabled automatically under gdb/valgrind).
  Should hopefully weed out some noise from valgrind reports.
* Propagate reader.lua's return code
* Sim a few other common devices
* Handle assigning values to short options with an equal instead of a space, like the previous solution
  (This is purely for backward compatibility purposes, this is a syntax that'd fail with the C getopt, too).
* Add gnu-getopt to the build requirement on macOS, because of course everything is terrible.
2020-12-18 18:26:32 +01:00
Frans de Jonge
090f33b5b8
[fix] Minor doc touchups re. QR encode (#6861)
Cf. <https://github.com/koreader/koreader/pull/6844#issuecomment-723672448>.
2020-11-09 09:17:11 +01:00
yparitcher
602e0b3feb ldoc fixes 2020-10-20 18:11:55 -04:00
NiLuJe
f0f0cfd167
[Dev docs] Steer people more strongly towards koxtoolchain (#6727)
* Steer people more strongly towards koxtoolchain

And stop mentioning blatantly broken/outdated stuff

* Add macOS to the list

Also, put 'em in hierarchical order, and link to the main build docs for
the native emulator.
2020-09-29 15:06:40 +02:00
yparitcher
70f89c4df1
ReaderGesture: cleanup (#6292)
convert all gesture actions to use events for better modularity
add network event handlers and device event handlers
2020-07-12 14:47:49 -04:00
Martín Fernández
f4dad2fae8
[doc] WSL extra bits (#6368)
Fixes #6354
2020-07-11 08:16:26 +02:00
Frans de Jonge
f8af0a9e0e
[doc] Add some tips about GitHub PR refs (#6289) 2020-06-24 12:49:34 +02:00
Frans de Jonge
48060c3b86
[fix] Ignore sha2.lua in doc generation (#6229)
Otherwise it'll choke on the comments in that file.

See <https://github.com/koreader/koreader/pull/6195#issuecomment-638801075>.

Accidentally introduced in <https://github.com/koreader/koreader-base/pull/1105>.
2020-06-04 15:34:16 +02:00
NiLuJe
c54578e254
[doc] macOS build info tweaks (#5891)
* Update macOS PATH shenanigans.

c.f., https://github.com/koreader/koreader-base/pull/1052

* Prefer coreutils, it now ships everything we need.

(Or it always did? I apparently don't actually have coreutils
installed on my end).

* Also recommend putting Homebrew first in PATH

Mainly because it turns out that's how I tested this the last time ;).
Also, it  just makes sense, and might be part of Homebrew's
recommendations anyway.
2020-02-22 09:11:29 +01:00
Thomas Spurden
f3d2ef18f7
[doc] Add some basic info on using ffi-cdecl (#5808) 2020-02-12 17:40:38 +01:00
Frans de Jonge
9674928cbe
[doc] Add ragel to build prerequisites (#5743)
See discussion in https://github.com/koreader/koreader-base/pull/1025#issuecomment-570556188
2020-01-06 20:37:58 +01:00
yparitcher
0f896765c3 transifex -> weblate fixes (#5722) 2020-01-01 21:18:09 +01:00
Frans de Jonge
16fd731f73
[doc] Add coreutils to Mac brew dependencies (#5608)
See 75d02a9038 (commitcomment-36008019)
2019-11-18 17:55:40 +01:00
NiLuJe
4f52c4147f
Fix a deadlock with empty settings (#5546)
* Fix deadlock on empty settings
Emulator only. Was stuck looping forever on directory == base == .
2019-10-30 00:27:54 +01:00
NiLuJe
eae105bb72
Minor dev documentatioon tweaks (#5518)
* Made Porting not so hilariously outdated.
* Minor tweaks to the macOS build instructions and the various quirks involved in getting it to behave (and accompanying actual build fixes).
2019-10-22 01:25:00 +02:00
Frans de Jonge
a47b3b1a5b
[doc] Add internal documentation references (#5285)
Also some minor grammatical fixes.
2019-08-30 15:06:30 +02:00
Frans de Jonge
a2dcfe9aec
[doc] Tag @todo, @fixme and @warning (#5244)
This commit standardizes the various todos around the code a bit in a manner recognized by LDoc.

Besides drawing more attention by being displayed in the developer docs, they're also extractable with LDoc on the command line:

```sh
ldoc --tags todo,fixme *.lua
```

However, whether that particular usage offers any advantage over other search tools is questionable at best.

* and some random beautification
2019-08-23 19:53:53 +02:00
Frans de Jonge
8be113e4bd
[fix] Update LDoc config (#5231)
Follow-up to #5217.
2019-08-20 17:41:09 +02:00
Martín Fernández
57d9f75f53 [doc] Simplify and reorganize readme (#5217)
References #5213.
2019-08-20 17:01:28 +02:00
Frans de Jonge
032d1afc8e
doc/Unit tests: minor extra explanation (#3462) 2017-11-03 15:24:55 +00:00
Frans de Jonge
e566a7ffc6 kodev: add hidpi shortcut and dpi argument (#3208)
* [doc] also generate base ffi doc
* kodev: add hidpi shortcut and dpi argument
* Bump base
2017-09-14 13:19:20 +02:00
Frans de Jonge
c847d628e1 Docs: cosmetic updates and additions
* Content from wiki had some cosmetic leftover glitches
* Added/adapted some docs for other modules
2017-04-12 11:27:22 -07:00
Frans de Jonge
e217b99fa6 Dev docs (#2730) 2017-04-08 03:44:59 -07:00
Qingping Hou
09564d4b4d doc: event propagation for widgets 2016-12-11 12:20:59 -08:00
Dimitrios Semitsoglou-Tsiapos
2ed6cf760d Finish renaming utils to tools
Continues the work of 9afad43a3e
2016-11-25 14:43:08 -08:00
Qingping Hou
42d74c0a36 doc: add sqlite sample code 2016-11-19 12:15:27 -08:00
Qingping Hou
6493b643ec doc: Event page 2016-03-12 01:10:35 -08:00
Qingping Hou
93b9e245a9 doc: update hacking 2016-02-29 23:13:52 -08:00
Qingping Hou
815c5924e3 add documentation for wbuilder 2016-02-17 21:07:33 -08:00
Qingping Hou
e410ce14df doc: types/functions for font and rendertext module 2016-02-15 16:14:15 -08:00
Qingping Hou
e2096ed8d9 doc: add documentation build infrastructure 2016-02-04 10:24:53 -08:00