Commit Graph

82 Commits

Author SHA1 Message Date
Veronica K. B. Olsen 0e84452533 Reorganise constants, and add ISO language codes in order to drop dependency pycountry 2019-11-05 18:14:40 +01:00
Veronica K. B. Olsen 709689cf55 Added --info flag and modified logging output a bit 2019-11-05 11:25:45 +01:00
Veronica K. B. Olsen 62988df7d2 Clean up imports 2019-11-03 19:44:58 +01:00
Veronica K. B. Olsen b303eb6539 Further PEP8 compliance changes 2019-11-03 18:02:47 +01:00
Veronica K. B. Olsen 7c95af951a Make comments and docstrings comply with PEP8 2019-11-03 17:23:39 +01:00
Veronica K. B. Olsen 33e3b67ba5 Make sure all code lines are within a 100 characters 2019-11-03 15:36:34 +01:00
Veronica K. B. Olsen c0aca6a069 Only make a copy of the project file when not autosaving 2019-11-02 14:11:50 +01:00
Veronica K. B. Olsen f60eeedce8 Clear the project if open fails 2019-11-02 12:56:14 +01:00
Veronica K. B. Olsen dd97aefd60 Added some checks for corrupt novel project files 2019-11-02 12:49:13 +01:00
Veronica K. B. Olsen 4252df9682 Add backups of the project xml file as a rolling version in the cashe folder 2019-11-02 12:25:37 +01:00
Veronica K. B. Olsen 9fea45b7df The editable flag for files is now respected by the editor, and trash files are not editable 2019-10-31 13:37:27 +01:00
Veronica K. B. Olsen 557b86af64 Add the option to expand ~ to user home directory in export and project path 2019-10-30 15:47:12 +01:00
Veronica K. B. Olsen f760eeb544 Set encoding for all text reads and writes to utf8, as windows defaults to latin1 2019-10-28 13:44:13 +01:00
Veronica K. B. Olsen 2fe001b336 Session log is now printed in the table 2019-10-20 15:52:25 +02:00
Veronica K. B. Olsen 77c6caacee When closing a project, it should ask for backup even if the project is saved. 2019-10-20 13:56:21 +02:00
Veronica K. B. Olsen 6a19807310 All xml attributes are now added to the etree class in alphabetical order to ensure it writes the same on different versions 2019-08-11 20:21:06 +02:00
Veronica K. B. Olsen f11cc452d8 Backup options and settings complete 2019-06-26 18:13:02 +02:00
Veronica K. B. Olsen 46bd7a8871 Fixed the loading of dictionaries 2019-06-12 20:33:06 +02:00
Veronica K. B. Olsen ca0a756fe5 Added autosave and theme to preferences dialog 2019-06-10 14:41:32 +02:00
Veronica K. B. Olsen 2d55ec06cc Auto-replace values now loaded and saved. 2019-06-08 20:02:09 +02:00
Veronica K. B. Olsen 76cb03fad8 Some reorganisation of how stuff is opened and closed. 2019-05-26 15:34:34 +02:00
Veronica K. B. Olsen 367d2c5014 Added a log file that appends session stats. 2019-05-26 14:39:13 +02:00
Veronica K. B. Olsen 601bd3dca6 Filenames are set nwFiles now, and deleted some unused file in nw/gui 2019-05-26 14:06:48 +02:00
Veronica K. B. Olsen 49ea321d92 Session word count now works 2019-05-25 23:24:30 +02:00
Veronica K. B. Olsen ad79b60961 Changed the way creating new, and closing projects is done to make it more roubust 2019-05-24 00:37:45 +02:00
Veronica K. B. Olsen 20418f79ca Fix the GUI tests 2019-05-22 21:21:02 +02:00
Veronica K. B. Olsen 823426f4f8 Loading and saving of status and importance now works 2019-05-19 22:49:24 +02:00
Veronica K. B. Olsen fdd9c58235 Document tree is now refreshed when status colours change 2019-05-19 22:20:54 +02:00
Veronica K. B. Olsen edb6c41788 Manipulating statuses now seem to work, and update correctly. 2019-05-19 21:55:50 +02:00
Veronica K. B. Olsen 540aa7fcbc Moved item status recrod keeping into a separate iterable class 2019-05-19 19:03:59 +02:00
Veronica K. B. Olsen 37ec8e6280 Added code to extend the status and importance colour lists 2019-05-19 17:00:05 +02:00
Veronica K. B. Olsen 2a1b371974 Adding a bug trap too ... 2019-05-19 00:20:29 +02:00
Veronica K. B. Olsen f59a815a02 While loops are scary, so just in case ... 2019-05-19 00:15:18 +02:00
Veronica K. B. Olsen 33fe71ae62 Improved tree builing logic to handle out of order items from project file 2019-05-19 00:13:03 +02:00
Veronica K. B. Olsen 2bbadcb3bd Open last edited and viewed document when opening project 2019-05-18 18:03:23 +02:00
Veronica K. B. Olsen 8b9b5f40ad Use same colours as for status 2019-05-12 21:59:31 +02:00
Veronica K. B. Olsen 53b97e8399 Importance colours added to the GUI 2019-05-12 21:54:21 +02:00
Veronica K. B. Olsen e2895ce4f7 Improved the alert to user interface, and added an enum class for severity flags. 2019-05-12 20:34:52 +02:00
Veronica K. B. Olsen fbdff8d249 Spell check can now be enabled/disabled and re-run on document 2019-05-12 16:18:37 +02:00
Veronica K. B. Olsen 3ce2bb8a0e Moved the value check functions to a common.py file 2019-05-12 15:47:02 +02:00
Veronica K. B. Olsen 00cc5617a5 Added spellCheck flag to project settings 2019-05-12 15:42:42 +02:00
Veronica K. B. Olsen c39efc34fd A good start on project tests. needed some tewaking of the project class. 2019-05-12 14:54:02 +02:00
Veronica K. B. Olsen 72a3e4f9dd Fixed merge conflicts 2019-05-12 14:10:41 +02:00
Veronica K. B. Olsen f1d30ae253 Project class should not contain any GUI elements. Status icons moved to main GUI class. 2019-05-12 14:08:52 +02:00
Veronica K. B. Olsen d6409a5bf9 Spell checker context menu can now add words to dictionary for current project 2019-05-10 23:11:46 +02:00
Veronica K. B. Olsen 971d8a9a59 Added better tracking of document and project changes and added coloured icons for the status bar 2019-05-05 01:02:04 +02:00
Veronica K. B. Olsen 9565b14d8b Autosaving works, and document and project tracks whether they have been changed or not. 2019-05-05 00:11:46 +02:00
Veronica K. B. Olsen edcf9665b5 Folders can now be deleted as well, and depth and haschildren flags removed from item meta data. 2019-05-04 17:24:17 +02:00
Veronica K. B. Olsen c775636a71 Files can now be moved to trash 2019-05-04 16:24:38 +02:00
Veronica K. B. Olsen 7768335d3f Added code to create trash folder when needed. 2019-05-04 15:59:11 +02:00