Merge branches 'new_ui_code' and 'new_ui_code' of github.com:houqp/kindlepdfviewer into new_ui_code
cre: load document afer set font

Conflicts:
	cre.cpp
	crereader.lua
adapt ui to loadDocument before setFont
read header font from config
reset postInitCallback on ReaderUI:init
read LineSpace from config
save header_font_face
save and restore gamma_index for crengine
pass filename properly for zipped fb2 in CreDocument:init()
make the dimension of config dialog change according to the size of current config options
I can't find a way to resize a WidgetContainer in runtime so when switching config options
new ConfigDialog is created with requested option panel.
Merge pull request #709 from houqp/new_ui_houqp

couple of enhancements to crengine
fix bug in TOC construction in cre.cpp

first toc entry should start with index 1 instead of 0
Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into new_ui_houqp
Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into new_ui_code
force repaint all when changing options
invert icon color temporarily when tapping on menubar
show more options
rename 'screen rotation' option in koptinterface to 'vertical text'
Merge pull request #714 from chrox/config_ui

some config UI changes
Merge pull request #715 from houqp/new_ui_houqp

bug fix for TOC construction in cre.cpp