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 K. B. Olsen
7867965989
Alter the init logic of handles in NWDoc
2021-05-02 17:19:50 +02:00
Veronica K. B. Olsen
5ee39d7ecc
Tighten up the use of item and nwdoc objects in editor class
2021-04-25 23:46:09 +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
8f1c4af9fa
Fix a bug in Build and Constants, and clean up some more nested translates
2021-02-16 19:42:50 +01:00
Veronica K. B. Olsen
31b665d344
Last pass of fixes and tweaks
2021-02-15 17:52:04 +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. Berglyd Olsen
2df0d81d29
Revert "Add timestamp to document meta"
2021-01-31 11:59:24 +01:00
Veronica K. B. Olsen
087735a08f
Add timestamp to document meta data
2021-01-30 18:54:13 +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
b2d3b2cf72
Bump copyright year to 2021
2021-01-01 15:14:37 +01:00
Veronica K. B. Olsen
1ea12fedb9
Don't force string format on file meta data (must be able to handle NoneType)
2020-12-20 22:08:27 +01:00
Veronica K. B. Olsen
8cc6fa6030
New test for NWDoc class
2020-12-01 22:19:18 +01:00
Veronica K. B. Olsen
6e029f56a4
Remove line endings from logged ignored doc meta lines
2020-10-25 14:51:15 +01:00
Veronica K. B. Olsen
de8ee126cf
Add some debug output to the document meta parser
2020-10-24 19:08:26 +02:00
Veronica K. B. Olsen
538009eff6
Updated tests
2020-10-24 18:56:01 +02:00
Veronica K. B. Olsen
a9b264227a
Merge branch 'main' into doc_meta
2020-10-24 18:32:49 +02:00
Veronica K. B. Olsen
f13bd87702
Allow more than one meta data line in documents, and split the current line into three
2020-10-24 18:31:18 +02:00
Veronica K. B. Olsen
c0ad631039
Updated source file descriptions
2020-10-23 21:05:41 +02:00
Veronica K. B. Olsen
1923a55443
Code cleanup in core classes and rename of parHandle to itemParent in NWItem class
2020-10-15 19:08:35 +02:00
Veronica K. B. Olsen
d973f28755
Code and comment cleanup in main GUI
2020-10-15 18:39:15 +02:00
Veronica K. B. Olsen
e251ddacd2
Completed coverage of setProjectPath and made all os imports explicit
2020-09-29 23:27:51 +02:00
Veronica K. B. Olsen
67f8a36272
Change copyright year to year-range
2020-09-22 23:13:46 +02:00
Veronica K. B. Olsen
86bb1fc9a4
Made some the properties of the NWDoc class internal
2020-09-18 17:10:33 +02:00
Veronica K. B. Olsen
61b9567e3a
Added test for document meta
2020-09-10 22:40:45 +02:00
Veronica K. B. Olsen
619810544a
Reduce the defacto maximum folder depth from ~200 to a hard 30 and enforce it
2020-08-16 21:55:36 +02:00
Veronica K. B. Olsen
95ee2bf874
Fixed pycodestyle E231 errors
2020-08-12 20:51:22 +02:00
Veronica K. B. Olsen
56b2cbee10
Code cleanup and added comments
2020-08-08 21:54:32 +02:00
Veronica K. B. Olsen
a9b6e00ba7
Cleanup of unused imports
2020-08-08 20:55:45 +02:00
Veronica K. B. Olsen
5358bf5e6b
Trying another method of parsing the meta string
2020-06-12 17:45:27 +02:00
Veronica K. B. Olsen
ad0ccf8a56
Fixed return of no meta data
2020-06-12 17:22:48 +02:00
Veronica K. B. Olsen
3fc17c5439
Save more meta data to the top of files
2020-06-12 17:08:18 +02:00
Veronica K. B. Olsen
1fc76b0d95
Remove the whole document read only logic
2020-06-07 23:19:28 +02:00
Veronica K. B. Olsen
25aedc398b
Add a couple of checks that handles are valid
2020-05-30 14:56:06 +02:00
Veronica K. B. Olsen
5d2f6d33b5
Also updated the documen class with new project variables
2020-05-29 23:31:38 +02:00
Veronica K. B. Olsen
bdbfa1d3c3
Some more cleanup
2020-05-28 19:13:51 +02:00
Veronica K. B. Olsen
192427deaa
Changed the data structure of the project folder
2020-05-28 18:55:44 +02:00
Veronica K. B. Olsen
03751c5ff9
No more document .bak files, .nwd~ works just fine.
2020-05-27 20:31:09 +02:00
Veronica K. B. Olsen
c865dbd59b
Added a lot of comments to functions in the source code
2020-05-24 16:42:28 +02:00
Veronica K. B. Olsen
4dc768bdd2
Dropped the progress bar for rebuild index, and used statusbar instead
2020-05-16 21:56:26 +02:00
Veronica K. B. Olsen
75adcdf679
Can now restore document label for orphaned files
2020-05-09 13:59:57 +02:00