novelWriter 2.2.1__py3-none-any.whl → 2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. {novelWriter-2.2.1.dist-info → novelWriter-2.3.dist-info}/METADATA +1 -1
  2. {novelWriter-2.2.1.dist-info → novelWriter-2.3.dist-info}/RECORD +116 -101
  3. novelWriter-2.3.dist-info/entry_points.txt +2 -0
  4. novelwriter/__init__.py +4 -4
  5. novelwriter/assets/i18n/nw_de_DE.qm +0 -0
  6. novelwriter/assets/i18n/nw_en_US.qm +0 -0
  7. novelwriter/assets/i18n/nw_es_419.qm +0 -0
  8. novelwriter/assets/i18n/nw_it_IT.qm +0 -0
  9. novelwriter/assets/i18n/nw_ja_JP.qm +0 -0
  10. novelwriter/assets/i18n/nw_nb_NO.qm +0 -0
  11. novelwriter/assets/i18n/nw_nl_NL.qm +0 -0
  12. novelwriter/assets/i18n/project_nl_NL.json +11 -0
  13. novelwriter/assets/i18n/project_pt_BR.json +11 -0
  14. novelwriter/assets/icons/typicons_dark/icons.conf +8 -0
  15. novelwriter/assets/icons/typicons_dark/mixed_document-new.svg +6 -0
  16. novelwriter/assets/icons/typicons_dark/mixed_import.svg +5 -0
  17. novelwriter/assets/icons/typicons_dark/typ_document-add.svg +4 -0
  18. novelwriter/assets/icons/typicons_dark/typ_document.svg +4 -0
  19. novelwriter/assets/icons/typicons_dark/typ_th-dot-more.svg +4 -0
  20. novelwriter/assets/icons/typicons_dark/typ_th-list.svg +9 -0
  21. novelwriter/assets/icons/typicons_light/icons.conf +8 -0
  22. novelwriter/assets/icons/typicons_light/mixed_document-new.svg +6 -0
  23. novelwriter/assets/icons/typicons_light/mixed_import.svg +5 -0
  24. novelwriter/assets/icons/typicons_light/typ_document-add.svg +4 -0
  25. novelwriter/assets/icons/typicons_light/typ_document.svg +4 -0
  26. novelwriter/assets/icons/typicons_light/typ_th-dot-more.svg +4 -0
  27. novelwriter/assets/icons/typicons_light/typ_th-list.svg +9 -0
  28. novelwriter/assets/images/novelwriter-text-dark.svg +4 -0
  29. novelwriter/assets/images/novelwriter-text-light.svg +4 -0
  30. novelwriter/assets/images/welcome-dark.jpg +0 -0
  31. novelwriter/assets/images/welcome-light.jpg +0 -0
  32. novelwriter/assets/manual.pdf +0 -0
  33. novelwriter/assets/sample.zip +0 -0
  34. novelwriter/assets/syntax/cyberpunk_night.conf +26 -0
  35. novelwriter/assets/syntax/default_dark.conf +1 -0
  36. novelwriter/assets/syntax/default_light.conf +1 -0
  37. novelwriter/assets/syntax/grey_dark.conf +1 -0
  38. novelwriter/assets/syntax/grey_light.conf +1 -0
  39. novelwriter/assets/syntax/light_owl.conf +1 -0
  40. novelwriter/assets/syntax/night_owl.conf +1 -0
  41. novelwriter/assets/syntax/solarized_dark.conf +1 -0
  42. novelwriter/assets/syntax/solarized_light.conf +1 -0
  43. novelwriter/assets/syntax/tango.conf +23 -0
  44. novelwriter/assets/syntax/tomorrow.conf +1 -0
  45. novelwriter/assets/syntax/tomorrow_night.conf +1 -0
  46. novelwriter/assets/syntax/tomorrow_night_blue.conf +1 -0
  47. novelwriter/assets/syntax/tomorrow_night_bright.conf +1 -0
  48. novelwriter/assets/syntax/tomorrow_night_eighties.conf +1 -0
  49. novelwriter/assets/text/credits_en.htm +4 -2
  50. novelwriter/assets/themes/cyberpunk_night.conf +29 -0
  51. novelwriter/assets/themes/default_dark.conf +2 -2
  52. novelwriter/assets/themes/default_light.conf +2 -2
  53. novelwriter/common.py +48 -37
  54. novelwriter/config.py +36 -41
  55. novelwriter/constants.py +38 -16
  56. novelwriter/core/buildsettings.py +7 -7
  57. novelwriter/core/coretools.py +196 -156
  58. novelwriter/core/docbuild.py +6 -3
  59. novelwriter/core/document.py +6 -6
  60. novelwriter/core/index.py +89 -56
  61. novelwriter/core/item.py +21 -3
  62. novelwriter/core/options.py +8 -7
  63. novelwriter/core/project.py +70 -44
  64. novelwriter/core/projectdata.py +1 -14
  65. novelwriter/core/projectxml.py +13 -41
  66. novelwriter/core/sessions.py +2 -1
  67. novelwriter/core/spellcheck.py +2 -1
  68. novelwriter/core/status.py +2 -1
  69. novelwriter/core/storage.py +182 -140
  70. novelwriter/core/tohtml.py +4 -2
  71. novelwriter/core/tokenizer.py +109 -82
  72. novelwriter/core/toodt.py +40 -30
  73. novelwriter/core/tree.py +3 -2
  74. novelwriter/dialogs/about.py +70 -160
  75. novelwriter/dialogs/docmerge.py +6 -5
  76. novelwriter/dialogs/docsplit.py +6 -6
  77. novelwriter/dialogs/editlabel.py +1 -1
  78. novelwriter/dialogs/preferences.py +553 -703
  79. novelwriter/dialogs/{projsettings.py → projectsettings.py} +288 -262
  80. novelwriter/dialogs/quotes.py +27 -23
  81. novelwriter/dialogs/wordlist.py +96 -40
  82. novelwriter/enum.py +20 -18
  83. novelwriter/error.py +1 -1
  84. novelwriter/extensions/circularprogress.py +11 -11
  85. novelwriter/extensions/configlayout.py +185 -134
  86. novelwriter/extensions/modified.py +81 -0
  87. novelwriter/extensions/novelselector.py +26 -12
  88. novelwriter/extensions/pagedsidebar.py +14 -16
  89. novelwriter/extensions/simpleprogress.py +5 -5
  90. novelwriter/extensions/statusled.py +8 -8
  91. novelwriter/extensions/switch.py +31 -63
  92. novelwriter/extensions/switchbox.py +1 -1
  93. novelwriter/extensions/versioninfo.py +153 -0
  94. novelwriter/gui/doceditor.py +178 -150
  95. novelwriter/gui/dochighlight.py +63 -92
  96. novelwriter/gui/docviewer.py +49 -51
  97. novelwriter/gui/docviewerpanel.py +72 -24
  98. novelwriter/gui/itemdetails.py +7 -7
  99. novelwriter/gui/mainmenu.py +14 -19
  100. novelwriter/gui/noveltree.py +9 -8
  101. novelwriter/gui/outline.py +98 -75
  102. novelwriter/gui/projtree.py +241 -106
  103. novelwriter/gui/sidebar.py +3 -4
  104. novelwriter/gui/statusbar.py +3 -4
  105. novelwriter/gui/theme.py +69 -70
  106. novelwriter/guimain.py +51 -156
  107. novelwriter/shared.py +15 -1
  108. novelwriter/tools/dictionaries.py +5 -6
  109. novelwriter/tools/manuscript.py +6 -6
  110. novelwriter/tools/manussettings.py +192 -221
  111. novelwriter/tools/noveldetails.py +525 -0
  112. novelwriter/tools/welcome.py +819 -0
  113. novelwriter/tools/writingstats.py +9 -9
  114. novelWriter-2.2.1.dist-info/entry_points.txt +0 -5
  115. novelwriter/assets/images/wizard-back.jpg +0 -0
  116. novelwriter/assets/text/gplv3_en.htm +0 -641
  117. novelwriter/assets/text/release_notes.htm +0 -60
  118. novelwriter/dialogs/projdetails.py +0 -518
  119. novelwriter/dialogs/projload.py +0 -294
  120. novelwriter/dialogs/updates.py +0 -172
  121. novelwriter/extensions/pageddialog.py +0 -130
  122. novelwriter/tools/projwizard.py +0 -478
  123. {novelWriter-2.2.1.dist-info → novelWriter-2.3.dist-info}/LICENSE.md +0 -0
  124. {novelWriter-2.2.1.dist-info → novelWriter-2.3.dist-info}/WHEEL +0 -0
  125. {novelWriter-2.2.1.dist-info → novelWriter-2.3.dist-info}/top_level.txt +0 -0
@@ -193,37 +193,37 @@ class GuiWritingStats(QDialog):
193
193
  self.filterForm = QGridLayout(self)
194
194
  self.filterBox.setLayout(self.filterForm)
195
195
 
196
- self.incNovel = NSwitch(width=2*sPx, height=sPx)
196
+ self.incNovel = NSwitch(self, height=sPx)
197
197
  self.incNovel.setChecked(
198
198
  pOptions.getBool("GuiWritingStats", "incNovel", True)
199
199
  )
200
200
  self.incNovel.clicked.connect(self._updateListBox)
201
201
 
202
- self.incNotes = NSwitch(width=2*sPx, height=sPx)
202
+ self.incNotes = NSwitch(self, height=sPx)
203
203
  self.incNotes.setChecked(
204
204
  pOptions.getBool("GuiWritingStats", "incNotes", True)
205
205
  )
206
206
  self.incNotes.clicked.connect(self._updateListBox)
207
207
 
208
- self.hideZeros = NSwitch(width=2*sPx, height=sPx)
208
+ self.hideZeros = NSwitch(self, height=sPx)
209
209
  self.hideZeros.setChecked(
210
210
  pOptions.getBool("GuiWritingStats", "hideZeros", True)
211
211
  )
212
212
  self.hideZeros.clicked.connect(self._updateListBox)
213
213
 
214
- self.hideNegative = NSwitch(width=2*sPx, height=sPx)
214
+ self.hideNegative = NSwitch(self, height=sPx)
215
215
  self.hideNegative.setChecked(
216
216
  pOptions.getBool("GuiWritingStats", "hideNegative", False)
217
217
  )
218
218
  self.hideNegative.clicked.connect(self._updateListBox)
219
219
 
220
- self.groupByDay = NSwitch(width=2*sPx, height=sPx)
220
+ self.groupByDay = NSwitch(self, height=sPx)
221
221
  self.groupByDay.setChecked(
222
222
  pOptions.getBool("GuiWritingStats", "groupByDay", False)
223
223
  )
224
224
  self.groupByDay.clicked.connect(self._updateListBox)
225
225
 
226
- self.showIdleTime = NSwitch(width=2*sPx, height=sPx)
226
+ self.showIdleTime = NSwitch(self, height=sPx)
227
227
  self.showIdleTime.setChecked(
228
228
  pOptions.getBool("GuiWritingStats", "showIdleTime", False)
229
229
  )
@@ -381,7 +381,7 @@ class GuiWritingStats(QDialog):
381
381
  # Generate the file name
382
382
  savePath = CONFIG.lastPath() / f"sessionStats.{fileExt}"
383
383
  savePath, _ = QFileDialog.getSaveFileName(
384
- self, self.tr("Save Data As"), str(savePath), "%s (*.%s)" % (textFmt, fileExt)
384
+ self, self.tr("Save Data As"), str(savePath), f"{textFmt} (*.{fileExt})"
385
385
  )
386
386
  if not savePath:
387
387
  return False
@@ -585,13 +585,13 @@ class GuiWritingStats(QDialog):
585
585
  newItem.setText(self.C_COUNT, f"{nWords:n}")
586
586
 
587
587
  if nWords > 0 and listMax > 0:
588
- theBar = self.barImage.scaled(
588
+ wBar = self.barImage.scaled(
589
589
  int(200*min(nWords, histMax)/listMax),
590
590
  self.barHeight,
591
591
  Qt.IgnoreAspectRatio,
592
592
  Qt.FastTransformation
593
593
  )
594
- newItem.setData(self.C_BAR, Qt.DecorationRole, theBar)
594
+ newItem.setData(self.C_BAR, Qt.DecorationRole, wBar)
595
595
 
596
596
  newItem.setTextAlignment(self.C_LENGTH, Qt.AlignRight)
597
597
  newItem.setTextAlignment(self.C_IDLE, Qt.AlignRight)
@@ -1,5 +0,0 @@
1
- [console_script]
2
- novelwriter-cli = novelwriter:main
3
-
4
- [gui_scripts]
5
- novelwriter = novelwriter:main
Binary file