fix deprecated debug call in credocument.lua
Merge pull request #595 from houqp/new_ui_code

some minor tweaks before introducing gesture detection module
fix bug in multi-level menu support

The size of framecontainer is not reset after content changed.
add all zoom modes support to reader menu
bugfix: waitForInput should return error when select returns zero
add indentation option in koptconfig
By default the indentaion detection is enabled in K2pdfopt. This will
sometimes generate very poor reflowed page when there are sidenotes on
the page which would be treated as indentation. Disabling indentaion
detection will rescue the reflowed page from this situation.
add render quality option
Many users complained that the reflowing process is too slow. This is
rather a speed-quality dilemma. Trade-off can be made by decreasing the
dpi of source page. And by default quality is prefered.
add defect size option
update K2pdfopt to the latest version 1.60
add trim page option
use koptcontext to keep dozons of parameters for k2pdfopt
move k2pdfopt source to a submodule libk2pdfopt
Currently libk2pdfopt is staticly linked to kpdfview.
include k2pdfopt header in pdf.c and djvu.c and koptcontext.h
feature: add bbox support in koptreader
Reflow can be configured to use bbox which could remove
side comments and defects in the margin and get much better reflowed
page in some documents. Currently the bbox is only set in PDFReader or
DJVUReader reader. But eventually there will be bbox setting routines in
KOPTReader.
Thirdparty should be cleaned and refetched and remake to get
this feature in operation.
Pulled update to libk2pdfopt
build libk2pdfopt as a shared library
update libk2pdfopt
bugfix: no need to use crop boxes
use -O3 option in k2pdfopt compilation
Koptreader will gain 20% performance boost.
adjust gamma in k2pdfopt