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.
- {novelWriter-2.2.1.dist-info → novelWriter-2.3.dist-info}/METADATA +1 -1
- {novelWriter-2.2.1.dist-info → novelWriter-2.3.dist-info}/RECORD +116 -101
- novelWriter-2.3.dist-info/entry_points.txt +2 -0
- novelwriter/__init__.py +4 -4
- novelwriter/assets/i18n/nw_de_DE.qm +0 -0
- novelwriter/assets/i18n/nw_en_US.qm +0 -0
- novelwriter/assets/i18n/nw_es_419.qm +0 -0
- novelwriter/assets/i18n/nw_it_IT.qm +0 -0
- novelwriter/assets/i18n/nw_ja_JP.qm +0 -0
- novelwriter/assets/i18n/nw_nb_NO.qm +0 -0
- novelwriter/assets/i18n/nw_nl_NL.qm +0 -0
- novelwriter/assets/i18n/project_nl_NL.json +11 -0
- novelwriter/assets/i18n/project_pt_BR.json +11 -0
- novelwriter/assets/icons/typicons_dark/icons.conf +8 -0
- novelwriter/assets/icons/typicons_dark/mixed_document-new.svg +6 -0
- novelwriter/assets/icons/typicons_dark/mixed_import.svg +5 -0
- novelwriter/assets/icons/typicons_dark/typ_document-add.svg +4 -0
- novelwriter/assets/icons/typicons_dark/typ_document.svg +4 -0
- novelwriter/assets/icons/typicons_dark/typ_th-dot-more.svg +4 -0
- novelwriter/assets/icons/typicons_dark/typ_th-list.svg +9 -0
- novelwriter/assets/icons/typicons_light/icons.conf +8 -0
- novelwriter/assets/icons/typicons_light/mixed_document-new.svg +6 -0
- novelwriter/assets/icons/typicons_light/mixed_import.svg +5 -0
- novelwriter/assets/icons/typicons_light/typ_document-add.svg +4 -0
- novelwriter/assets/icons/typicons_light/typ_document.svg +4 -0
- novelwriter/assets/icons/typicons_light/typ_th-dot-more.svg +4 -0
- novelwriter/assets/icons/typicons_light/typ_th-list.svg +9 -0
- novelwriter/assets/images/novelwriter-text-dark.svg +4 -0
- novelwriter/assets/images/novelwriter-text-light.svg +4 -0
- novelwriter/assets/images/welcome-dark.jpg +0 -0
- novelwriter/assets/images/welcome-light.jpg +0 -0
- novelwriter/assets/manual.pdf +0 -0
- novelwriter/assets/sample.zip +0 -0
- novelwriter/assets/syntax/cyberpunk_night.conf +26 -0
- novelwriter/assets/syntax/default_dark.conf +1 -0
- novelwriter/assets/syntax/default_light.conf +1 -0
- novelwriter/assets/syntax/grey_dark.conf +1 -0
- novelwriter/assets/syntax/grey_light.conf +1 -0
- novelwriter/assets/syntax/light_owl.conf +1 -0
- novelwriter/assets/syntax/night_owl.conf +1 -0
- novelwriter/assets/syntax/solarized_dark.conf +1 -0
- novelwriter/assets/syntax/solarized_light.conf +1 -0
- novelwriter/assets/syntax/tango.conf +23 -0
- novelwriter/assets/syntax/tomorrow.conf +1 -0
- novelwriter/assets/syntax/tomorrow_night.conf +1 -0
- novelwriter/assets/syntax/tomorrow_night_blue.conf +1 -0
- novelwriter/assets/syntax/tomorrow_night_bright.conf +1 -0
- novelwriter/assets/syntax/tomorrow_night_eighties.conf +1 -0
- novelwriter/assets/text/credits_en.htm +4 -2
- novelwriter/assets/themes/cyberpunk_night.conf +29 -0
- novelwriter/assets/themes/default_dark.conf +2 -2
- novelwriter/assets/themes/default_light.conf +2 -2
- novelwriter/common.py +48 -37
- novelwriter/config.py +36 -41
- novelwriter/constants.py +38 -16
- novelwriter/core/buildsettings.py +7 -7
- novelwriter/core/coretools.py +196 -156
- novelwriter/core/docbuild.py +6 -3
- novelwriter/core/document.py +6 -6
- novelwriter/core/index.py +89 -56
- novelwriter/core/item.py +21 -3
- novelwriter/core/options.py +8 -7
- novelwriter/core/project.py +70 -44
- novelwriter/core/projectdata.py +1 -14
- novelwriter/core/projectxml.py +13 -41
- novelwriter/core/sessions.py +2 -1
- novelwriter/core/spellcheck.py +2 -1
- novelwriter/core/status.py +2 -1
- novelwriter/core/storage.py +182 -140
- novelwriter/core/tohtml.py +4 -2
- novelwriter/core/tokenizer.py +109 -82
- novelwriter/core/toodt.py +40 -30
- novelwriter/core/tree.py +3 -2
- novelwriter/dialogs/about.py +70 -160
- novelwriter/dialogs/docmerge.py +6 -5
- novelwriter/dialogs/docsplit.py +6 -6
- novelwriter/dialogs/editlabel.py +1 -1
- novelwriter/dialogs/preferences.py +553 -703
- novelwriter/dialogs/{projsettings.py → projectsettings.py} +288 -262
- novelwriter/dialogs/quotes.py +27 -23
- novelwriter/dialogs/wordlist.py +96 -40
- novelwriter/enum.py +20 -18
- novelwriter/error.py +1 -1
- novelwriter/extensions/circularprogress.py +11 -11
- novelwriter/extensions/configlayout.py +185 -134
- novelwriter/extensions/modified.py +81 -0
- novelwriter/extensions/novelselector.py +26 -12
- novelwriter/extensions/pagedsidebar.py +14 -16
- novelwriter/extensions/simpleprogress.py +5 -5
- novelwriter/extensions/statusled.py +8 -8
- novelwriter/extensions/switch.py +31 -63
- novelwriter/extensions/switchbox.py +1 -1
- novelwriter/extensions/versioninfo.py +153 -0
- novelwriter/gui/doceditor.py +178 -150
- novelwriter/gui/dochighlight.py +63 -92
- novelwriter/gui/docviewer.py +49 -51
- novelwriter/gui/docviewerpanel.py +72 -24
- novelwriter/gui/itemdetails.py +7 -7
- novelwriter/gui/mainmenu.py +14 -19
- novelwriter/gui/noveltree.py +9 -8
- novelwriter/gui/outline.py +98 -75
- novelwriter/gui/projtree.py +241 -106
- novelwriter/gui/sidebar.py +3 -4
- novelwriter/gui/statusbar.py +3 -4
- novelwriter/gui/theme.py +69 -70
- novelwriter/guimain.py +51 -156
- novelwriter/shared.py +15 -1
- novelwriter/tools/dictionaries.py +5 -6
- novelwriter/tools/manuscript.py +6 -6
- novelwriter/tools/manussettings.py +192 -221
- novelwriter/tools/noveldetails.py +525 -0
- novelwriter/tools/welcome.py +819 -0
- novelwriter/tools/writingstats.py +9 -9
- novelWriter-2.2.1.dist-info/entry_points.txt +0 -5
- novelwriter/assets/images/wizard-back.jpg +0 -0
- novelwriter/assets/text/gplv3_en.htm +0 -641
- novelwriter/assets/text/release_notes.htm +0 -60
- novelwriter/dialogs/projdetails.py +0 -518
- novelwriter/dialogs/projload.py +0 -294
- novelwriter/dialogs/updates.py +0 -172
- novelwriter/extensions/pageddialog.py +0 -130
- novelwriter/tools/projwizard.py +0 -478
- {novelWriter-2.2.1.dist-info → novelWriter-2.3.dist-info}/LICENSE.md +0 -0
- {novelWriter-2.2.1.dist-info → novelWriter-2.3.dist-info}/WHEEL +0 -0
- {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(
|
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(
|
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(
|
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(
|
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(
|
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(
|
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), "
|
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
|
-
|
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,
|
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)
|
Binary file
|