You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/ui
poire-z 0d66ea7555
Text input fixes and enhancements (#4084)
InputText, ScrollTextWidget, TextBoxWidget:
- proper line scrolling when moving cursor or inserting/deleting text
  to behave like most text editors do
- fix cursor navigation, optimize refreshes when moving only the cursor,
  don't recreate the textwidget when moving cursor up/down
- optimize refresh areas, stick to "ui" to avoid a "partial" black
  flash every 6 appended or deleted chars

InputText:
- fix issue when toggling Show password multiple times
- new option: InputText.cursor_at_end (default: true)
- if no InputText.height provided, measure the text widget height
  that we would start with, and use a ScrollTextWidget with that
  fixed height, so widget does not overflow container if we extend
  the text and increase the number of lines
- as we are using "ui" refreshes while text editing, allows refreshing
  the InputText with a diagonal swipe on it (actually, refresh the
  whole screen, which allows refreshing the keyboard too if needed)

ScrollTextWidget:
- properly align scrollbar with its TextBoxWidget

TextBoxWidget:
- some cleanup (added new properties to avoid many method calls), added
  proxy methods for upper widgets to get them
- reordered/renamed/refactored the *CharPos* methods for easier reading
  (sorry for the diff that won't help reviewing, but that was needed)

InputDialog:
- new options:
   allow_newline = false, -- allow entering new lines
   cursor_at_end = true, -- starts with cursor at end of text, ready to append
   fullscreen = false, -- adjust to full screen minus keyboard
   condensed = false, -- true will prevent adding air and balance between elements
   add_scroll_buttons = false, -- add scroll Up/Down buttons to first row of buttons
   add_nav_bar = false, -- append a row of page navigation buttons
- find the most adequate text height, when none provided or fullscreen, to
  not overflow screen (and not be stuck with Cancel/Save buttons hidden)
- had to disable the use of a MovableContainer (many issues like becoming
  transparent when a PathChooser comes in front, Hold to paste from
  clipboard, moving the InputDialog under the keyboard and getting stuck...)

GestureRange: fix possible crash (when event processed after widget
destruction ?)

LoginDialog: fix some ui stack increase and possible crash when switching
focus many times.
6 years ago
..
data Style tweaks: re-order Allow hyphenation on all text (#4050) 6 years ago
elements Dismiss Wi-Fi scan popup after connection (#4055) 6 years ago
message UI Behavior tweaks (#3983) 6 years ago
network Dismiss Wi-Fi scan popup after connection (#4055) 6 years ago
plugin SwitchPlugin and BackgroundTaskPlugin with tests (#3137) 7 years ago
widget Text input fixes and enhancements (#4084) 6 years ago
downloadmgr.lua DevDocs: ui.downloadmgr 7 years ago
event.lua doc: event propagation for widgets 8 years ago
font.lua Minor font sanity checking (#4039) 6 years ago
geometry.lua [travis] Add protection against unscaled sizes 7 years ago
gesturerange.lua Text input fixes and enhancements (#4084) 6 years ago
hook_container.lua Move kobo auto-suspension logic out of UIManager (#2933) 7 years ago
language.lua [i18n] Update frontend/ui/language: add Basque and uncomment Vietnamese (#3755) 6 years ago
menusorter.lua [Menusorter] Ignore warning for the plus_menu. (#3903) 6 years ago
opdsparser.lua opds(fix): unescape name and value 8 years ago
otamanager.lua Handle OTA updates during the restart loop on Kobo/Kindle (#4049) 6 years ago
quickstart.lua [feat] Build AppImage (#3850) 6 years ago
renderimage.lua UI Behavior tweaks (#3983) 6 years ago
rendertext.lua [doc] RenderText:getGlyph() and truncateTextByWidth() (#3140) 7 years ago
screensaver.lua Assorted bag of fixes (#4014) 6 years ago
size.lua Text input fixes and enhancements (#4084) 6 years ago
timeval.lua [fix, doc] TimeVal: typo 7 years ago
translator.lua Docs: cosmetic updates and additions 7 years ago
trapper.lua Add MovableContainer: allow moving some widgets (#3636) 6 years ago
uimanager.lua UI Behavior tweaks (#3983) 6 years ago
wikipedia.lua bump crengine: alternative TOC, no page break on borders (#4011) 6 years ago