manuskript/manuskript/ui/editors
Jan Wester 3aa9cadfd8 Restore progress bar functionality
A previous fix (5f9ea3) inadvertently broke the progress bar by
converting to the wrong data type. (See issue #561 / PR #609).

While checking the code I realized the problem occurred primarily
because we weren't checking the validity of the values closer to the
source. Doing so alleviates the need to check elsewhere.

In the hope of inspiring a more systematic approach, a new uiParse()
utility function has been added to curb the further growth of toXxx()
functions that exist solely to validate user input.

There is no doubt room for improvement, both on the end of the new
uiParse() function as well as the spot where it is used. Ideally, the
data that comes out of the model should already be 'safe', but since
this is a bugfix for a bugfix I want to keep waves to a minimum.

This commit fixes issue #652.
2019-09-23 14:13:38 -06:00
..
__init__.py Renaming source folder 2016-02-06 08:38:33 +01:00
blockUserData.py Cleaning up imports, at last 2016-02-06 12:34:22 +01:00
completer.py Removes most of hard-coded colors 2017-11-14 14:56:11 +01:00
completer_ui.py Cleaning up imports, at last 2016-02-06 12:34:22 +01:00
completer_ui.ui Renaming source folder 2016-02-06 08:38:33 +01:00
editorWidget.py Fix misc. typos 2019-09-19 09:58:24 -06:00
editorWidget_ui.py Subclass textEditView 2017-11-27 15:00:07 +01:00
editorWidget_ui.ui Subclass textEditView 2017-11-27 15:00:07 +01:00
fullScreenEditor.py trying to resolve full screen exit issues on macOS 2019-05-03 09:41:39 -06:00
locker.py Fixes #119: Distraction free mode crashes with time target 2017-06-20 14:08:48 +02:00
locker_ui.py Renaming source folder 2016-02-06 08:38:33 +01:00
locker_ui.ui Renaming source folder 2016-02-06 08:38:33 +01:00
mainEditor.py Restore progress bar functionality 2019-09-23 14:13:38 -06:00
mainEditor_ui.py Removes textFormat panel (bold, italic, etc. buttons) 2017-11-27 20:58:02 +01:00
mainEditor_ui.ui Removes textFormat panel (bold, italic, etc. buttons) 2017-11-27 20:58:02 +01:00
MDFunctions.py Purging some remaining t2tfiles 2016-03-30 11:36:25 +02:00
tabSplitter.py Fix typos in code comments, invisible to end-users. 2018-01-29 10:30:41 -07:00
tabSplitter_ui.py Removes most of hard-coded colors 2017-11-14 14:56:11 +01:00
tabSplitter_ui.ui Can split views 2016-04-10 19:58:49 +02:00
textFormat.py Changes every Enum to IntEnum 2017-11-15 21:05:48 +01:00
textFormat_ui.py Some more tweaks 2016-04-08 20:16:35 +02:00
textFormat_ui.ui Renaming source folder 2016-02-06 08:38:33 +01:00
themes.py Set editor theme stylesheet to QTextEdit only. 2019-02-25 11:15:16 -07:00