Commit Graph

348 Commits

Author SHA1 Message Date
chrox 394c9cf948 fix dimen returned by getSize used as dimen in inputcontainer 2015-10-26 23:53:07 +08:00
Qingping Hou 46aed752c7 Merge pull request #1680 from erosennin/opds-title
OPDS: fix parsing entry titles on ManyBooks (and possible other sites)
2015-10-18 15:43:55 -07:00
Qingping Hou 8cff0f3ba9 Merge pull request #1679 from erosennin/opds-author
OPDS: include author's name into the file name
2015-10-18 15:40:42 -07:00
Andrey Golovizin 63e0605080 OPDS: fix entry titles on ManyBooks 2015-10-18 21:39:29 +02:00
Andrey Golovizin dbac03e5f4 OPDS: include author's name into the file name 2015-10-18 19:54:54 +02:00
chrox 2216ddd796 hold to lookup word in dict window
This should close #1541.
2015-10-18 20:47:48 +08:00
NiLuJe bfb2ee703a Force poll the battery when showing the menu.
Making sure to always show up to date info.

Also fix the battery polling cache invalidation logic to actually
work?
Should make it behave properly on devices where we handle resuming
ourselves.
2015-10-16 02:49:39 +02:00
chrox 8b85cbf157 add support for password protected zip/cbz documents 2015-10-06 21:18:31 +08:00
chrox e91b7bd266 set foucus of button table only if the device has a dpad
so that Kindle Voyage won't show a highlighted button in
confirm dialog.
2015-09-27 09:05:40 +08:00
chrox 9e91512f5f add custom sync server option in Kosync plugin
This should fix #1619.
2015-09-17 23:28:42 +08:00
Huang Xin d393fbb180 Merge pull request #1628 from apletnev/#1581
Add Statistic plugin (#1581 Amount of hours spent on a book)
2015-09-16 19:55:26 +08:00
chrox b0df6d53e9 add Basic Authentication for OPDS catalog
use coroutine to support ad-hoc callback in login button so that when
the username/password is incorrect it will retry automatically
currently tested with COPS on apache

This should fix #1001.
2015-09-15 00:59:00 +08:00
chrox 5ec384efb5 fix #1593 cannot download from COPS OPDS server
and get rid of the ugly baseurl workaround for "Internet Archive",
actually the url building of all these catalogs is perfectly
handled with `url.absolute(base, relative)`.
2015-09-13 22:08:05 +08:00
Qingping Hou a62e7ee34c feat: add keyboard support for button table 2015-09-13 01:10:09 -07:00
Qingping Hou 8c14613085 fix: support self.selected override for FocusManager 2015-09-13 01:10:09 -07:00
Qingping Hou 63e88baf33 fix: stop self.dimen polution for inputcontainers
Without this fix, self.dimen is shared among all inputcontainers
intances, which breaks some of the UI rendering. All widget should
set/initialize their own self.dimen in self:init() method.
2015-09-13 01:10:09 -07:00
NiLuJe ce5f66ccbc Prefix battery percentage w/ a + when charging.
Adresses comments on MR.
Add a comment explaining the magic behind CRe's charging icon when using
CRE's full (top) status bar.
2015-09-09 17:37:35 +02:00
Alexander Pletnev 52d821df00 Add Statistic plugin (#1581 Amount of hours spent on a book) 2015-09-07 20:06:17 +03:00
NiLuJe 6309df9dec Guard against nil text in menu widget
Allow one to go further in the FM's setting menu on legacy devices...
... and potentially shoot oneself in the foot because of the unusable
confirmdialogs (among other things ;p).
2015-09-06 17:23:48 +02:00
Frans de Jonge f84b537954 Make 'default' and 'fallback' strings translatable 2015-09-04 10:59:07 +02:00
frankyifei 059de23037 implement GUI dialog for setting crengine fallback font 2015-09-03 00:51:38 +09:30
frankyifei d0a44b9152 style 2015-08-01 19:20:10 +09:30
frankyifei f7fb103abc loop menu pages when it reaches ends
the following graph shows my idea.

1->2->3->4->5->6->7->8->9->10
└----------------------------------------┘
2015-08-01 19:14:40 +09:30
frankyifei f7142cfcbe fix filechooser crash on entering folder contains nil symlink 2015-08-01 19:12:40 +09:30
Qingping Hou 186673587e chore: fix some of the luacheck errors 2015-04-26 20:57:45 -04:00
NiLuJe c847807322 Turns out that also looks better as ui refreshes 2015-04-26 20:10:18 +02:00
NiLuJe 50dbf6b581 Switch a few widgets to ui refresh modes
More closely matches native behavior on REAGL devices.
Closing those widgets should still trigger a partial refresh though,
because we usually get back to the reader, and text, so we want REAGL
;).
2015-04-26 20:07:17 +02:00
chrox 932df2a2f9 Refactor out string.gsplit to util.gsplit 2015-04-22 14:27:33 +08:00
chrox ebdd374c93 Add 'input page number' function in filemanager
by holding on the page info label at the buttom of the filemanager
2015-04-13 14:45:05 +08:00
chrox 72012e97e1 disable reflow options when reflow is not ON
This should also fix #1061.
2015-03-16 21:51:17 +08:00
chrox 90a5e09bdc disable highlight in dict window if it's highlighted already
This should fix #1418.
2015-03-12 18:51:01 +08:00
chrox cf124eb72f refresh menu instead of closing if menu item is a check option 2015-03-12 14:19:10 +08:00
chrox f22a53affd screen orientation won't change when going into filemanager
and filemanager remembers screen orientation at exit
This should fix #1338.
2015-02-02 01:36:52 +08:00
chrox c6f6699644 fix empty menu widget won't trigger screen refresh
This should fix #1398.
2015-02-01 20:41:23 +08:00
Qingping Hou 6ed8f30f35 fix: empty item_table crashes menu widget 2014-12-18 03:16:11 -05:00
chrox b3d79b053a workaround to fix #1340 2014-12-04 10:09:09 +08:00
variousvirgil 9c69c1f14e Fix #1299 2014-12-02 20:30:55 +08:00
Hans-Werner Hilse ff0fbbdb4b fix widget closing 2014-12-01 16:21:42 +00:00
Hans-Werner Hilse 94ce08937a clean up refreshes
This is a larger clean-up of the refresh situation.
The general shift is that refreshes are now mainly triggered by
the (top-level) widgets when they get shown or closed via UIManager.

All refreshes for the widgets when they are in use were handled by
themselves before. This adds the case of showing/closing.

It is the desired result of not having UIManager:show()/:close()
do (full screen) refreshes on its own.
2014-12-01 16:03:40 +00:00
Huang Xin ddae003925 Merge pull request #1310 from hwhw/master
fixes for scrolling, fix for double-refresh, misc stuff
2014-12-01 09:56:04 +08:00
Hans-Werner Hilse e8642fbad7 use API for refresh when closing widgets in message popups 2014-11-30 22:35:08 +00:00
Hans-Werner Hilse 143c56c48c record ButtonDialog.dimen 2014-11-30 22:33:38 +00:00
Frans de Jonge 47d7a48555 OPDS: refactored unit test and fixed a minor bug with undefined image_rel 2014-11-30 21:44:47 +01:00
Hans-Werner Hilse 3f9dc46315 fix dict window refresh
was still using old API
also, move this to another place.
2014-11-30 18:38:03 +00:00
Frans de Jonge c25254a7ec OPDS: embryonic unit test for OPDS browser
This initial seed specifically tests against what recently broke in Gutenberg and FeedBooks.
2014-11-30 19:06:27 +01:00
Hans-Werner Hilse f02be20a65 refresh fixes for the menus
this will only refresh the areas that actually need to be refreshed.
2014-11-30 12:04:33 +00:00
Hans-Werner Hilse 6793a4fee1 reader config dialog: properly refresh config pane
This serves as a good example for the way refreshes are done:
setDirty("all", function() ... end)
* the "all" will have all widgets on screen repainted.
  In this case that is needed because the config pane has
  different sizes, covering different parts of underlying
  widgets. So they need to be repainted every time.
* the function will return the area to refresh and is evaluated
  after painting. In this example, we take the area that is covered
  by the config pane before switching it (if present at all), and
  hand it to the refresh area function as an upvalue.
  When the function is called later after painting, it will
  use that saved area and combine it with the area that is covered
  then by the widget. That way, parts that are covered no more are
  included in the refresh area, too.
2014-11-30 11:50:51 +00:00
Hans-Werner Hilse 82c26b1f18 adapt widgets to new refresh/repaint API 2014-11-30 00:17:50 +00:00
Andrey Golovizin 296f63b22a OPDS: ignore links with unknown rel values, treat empty rel as rel="subsection". 2014-11-29 11:15:41 +01:00
Frans de Jonge 7a87b66fa1 OPDS catalog: auto-fill http:// if no protocol given and revert #1106
This fixes #1259.
2014-11-28 21:58:19 +01:00