Commit Graph

111 Commits

Author SHA1 Message Date
Veronica Berglyd Olsen bb1a778277 Merge Novel Layouts (#837)
* Merge novel layouts and simplify the Tokenizer class
* Fix core tests
* Delete auto-layout code
* Remove no longer needed item layouts
* Remove references to deleted item layouts in test
* Make some minor changes to Tokenizer class and update tests
* Update test reference files
* Update sample project
* Fix a few issues with the Tokenizer
* Centre some text in the sample documents
* Make some minor changes to how new projects are generated
* Add support for New Page and VSpace commands to the Tokenizer
* Remove Title and Page layouts and add codes for page break and vertical space
* Add document layout and fix some issues in index class with new title formats
* Update tests and reference files
* Bump the project file version and fix a minor issue in items class
* Update tests and test coverage
* Clean up some warnings and issues in tests
2021-08-02 23:44:35 +02:00
Veronica Berglyd Olsen 6d7ca2bb86 Cleanup (#820)
* Update instructions and readmes
* Cleanup in base files
* Cleanup in core files
* Cleanup in gui files
* Cleanup in dialog files
* Cleanup in tools files
* Cleanup in test files
2021-07-04 17:57:54 +02:00
Veronica Berglyd Olsen 1b89d0a4f0 Logger messages (#818)
* Change the way logger messages are generated by using the printf-like method
* Use single quotes around log values that can be empty strings
* Fix bug in log message
2021-07-02 10:22:00 +02:00
Veronica Berglyd Olsen 26912f226f Add double space before in-line comments 2021-06-25 21:36:52 +02:00
Veronica Berglyd Olsen edfd7c9770 Remove encoding line and add spaces between classes and functions 2021-06-25 20:53:33 +02:00
Veronica Berglyd Olsen e2f08d3c76 Merge branch 'main' into dev 2021-06-13 17:58:49 +02:00
Veronica Berglyd Olsen 141b5eb776 Update project word count when a file is permanently deleted 2021-06-13 16:53:40 +02:00
Veronica Berglyd Olsen 6e1e40f13e Fix translations and refactor makeAlert calls 2021-06-10 21:42:40 +02:00
Veronica K. B. Olsen 1a5076438d Add a signal for updated word counts 2021-05-16 17:31:12 +02:00
Veronica K. B. Olsen ba5e5f4bb5 Make GuiDocEditor variables private 2021-05-15 23:57:31 +02:00
Veronica K. B. Olsen 0eb09a2136 Move error reporting out of the NWDoc class 2021-04-25 23:21:51 +02:00
Veronica K. B. Olsen 470daf0036 Make NWDoc class non-reusable 2021-04-25 23:01:20 +02:00
Veronica K. B. Olsen 48695651e1 Core classes should only init with project class and if needed access main gui via project 2021-04-25 17:39:52 +02:00
Veronica K. B. Olsen 45f726669e Remove the showStatus flag from document handling 2021-04-25 17:16:57 +02:00
Veronica K. B. Olsen d473615ccf Rename open and save document to read and write in NWDoc 2021-04-25 17:10:12 +02:00
Veronica K. B. Olsen f92ef05ee2 Move enum and constants to the root source folder 2021-03-28 17:15:17 +02:00
Veronica K. B. Olsen de57d0b027 Merge branch 'main' into dev 2021-03-13 17:00:07 +01:00
Veronica K. B. Olsen 065e3828b1 Update test and always ask before moving to trash 2021-03-09 11:02:44 +01:00
Veronica K. B. Olsen 63e91f0ee5 Fix broken emptu trash feature (#701) 2021-03-09 10:52:27 +01:00
Veronica K. B. Olsen 3a1367a1d8 Finish the first iteration of the Norwegian translation 2021-02-17 21:55:23 +01:00
Veronica K. B. Olsen 6d56bc7c0c Fix flake8 complaints 2021-02-15 17:01:38 +01:00
Veronica K. B. Olsen df19ced50c Rewrap self.tr and fix a few bugs 2021-02-15 16:47:57 +01:00
Bruno Kühnen Meneguello 98e3343808 novelWriter i18n and portuguese translation 2021-02-14 17:16:43 -03:00
Veronica K. B. Olsen 525c9c8fd8 Revert last commit and instead change delete item shortcut 2021-02-11 19:27:35 +01:00
Veronica K. B. Olsen 0c4d278de2 Extract duplicate code into a new function 2021-01-31 22:53:58 +01:00
Veronica K. B. Olsen 9596d24cca Some final tweaks to the drag and drop feature 2021-01-31 22:29:39 +01:00
Veronica K. B. Olsen 2307dfaaac Add feature to undo last project tree move 2021-01-31 17:44:28 +01:00
Veronica K. B. Olsen cca895e418 Cleanup in main menu and move the Move Up/Down entries to the project menu 2021-01-31 13:35:40 +01:00
Veronica K. B. Olsen f4f2feae3c Merge branch 'main' into actions_refactoring 2021-01-31 12:45:57 +01:00
Veronica K. B. Olsen f73cdac9e2 Only allow the delete item command in the project tree if it has focus 2021-01-31 11:53:38 +01:00
Veronica K. B. Olsen 9e294529cf When a new file is added, automatically add the title line 2021-01-30 23:31:19 +01:00
Veronica K. B. Olsen c35255b82b Merge branch 'file_headers' into source_code_maintenance 2021-01-16 17:51:32 +01:00
Veronica K. B. Olsen cdf3c62d17 Reformat and update the source file header docstrings 2021-01-16 17:41:40 +01:00
Veronica K. B. Olsen 39be3d0958 Merge branch 'main' into dev 2021-01-09 15:33:03 +01:00
Veronica K. B. Olsen 8b963f3fe4 Use new novel class list to select status or importance list in Item Editor 2021-01-06 22:08:34 +01:00
Veronica K. B. Olsen 323ab5498b Merge branch 'dev' into novel_tab 2021-01-03 17:17:30 +01:00
Veronica K. B. Olsen 21d91193a2 Keep project tree and outline tree in sync 2021-01-02 17:33:53 +01:00
Veronica K. B. Olsen 4d7f925c5a Added timestamp to project tree, and made some class variables internal in various classes 2021-01-02 16:57:12 +01:00
Veronica K. B. Olsen b2d3b2cf72 Bump copyright year to 2021 2021-01-01 15:14:37 +01:00
Veronica K. B. Olsen 942a604b5b Merge branch 'main' into novel_tab 2020-12-21 21:51:17 +01:00
Veronica K. B. Olsen fa319391c0 Remove some now redundant checks 2020-12-21 21:25:04 +01:00
Veronica K. B. Olsen 6ad132e12d Clean up the logic of creating new project tree items, and improve test coverage 2020-12-21 21:08:13 +01:00
Veronica K. B. Olsen 4509545214 Some minor cleanup and fixes 2020-12-21 11:03:47 +01:00
Veronica K. B. Olsen 414f4d3a6e Remove code related to orphaned files 2020-12-21 01:39:18 +01:00
Veronica K. B. Olsen 6a188a5906 Orphaned files are now put back in the tree, or rejected if nowhere to put them 2020-12-21 01:28:19 +01:00
Veronica K. B. Olsen cf3350c6b6 Trash and Orphaned folders shouldn't be editable 2020-12-20 22:07:10 +01:00
Veronica K. B. Olsen e5ea8074d2 Copy the mouse press behaviour from the project tree to the novel tree 2020-12-20 17:18:54 +01:00
Veronica K. B. Olsen 2779c8e69f Use build time to update novel tree, and restore last selected item on tab change 2020-12-20 16:50:01 +01:00
Veronica K. B. Olsen 1d12014399 The basic functionality of the novel tree view is now in place 2020-12-20 16:27:42 +01:00
Veronica K. B. Olsen d4b26025ed Add the basic structure for a novel tree 2020-12-20 15:50:01 +01:00