novelWriter 2.3.1__py3-none-any.whl → 2.4__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.3.1.dist-info → novelWriter-2.4.dist-info}/METADATA +5 -6
- {novelWriter-2.3.1.dist-info → novelWriter-2.4.dist-info}/RECORD +114 -107
- novelwriter/__init__.py +17 -10
- 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_fr_FR.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/nw_pt_BR.qm +0 -0
- novelwriter/assets/i18n/nw_zh_CN.qm +0 -0
- novelwriter/assets/icons/none.svg +4 -0
- novelwriter/assets/icons/typicons_dark/icons.conf +4 -0
- novelwriter/assets/icons/typicons_dark/nw_tb-mark.svg +7 -0
- novelwriter/assets/icons/typicons_dark/typ_refresh-flipped.svg +1 -1
- novelwriter/assets/icons/typicons_dark/typ_refresh.svg +1 -1
- novelwriter/assets/icons/typicons_dark/typ_search-grey.svg +4 -0
- novelwriter/assets/icons/typicons_dark/typ_times.svg +1 -1
- novelwriter/assets/icons/typicons_dark/typ_unfold-hidden.svg +4 -0
- novelwriter/assets/icons/typicons_dark/typ_unfold-visible.svg +4 -0
- novelwriter/assets/icons/typicons_light/icons.conf +4 -0
- novelwriter/assets/icons/typicons_light/nw_tb-mark.svg +7 -0
- novelwriter/assets/icons/typicons_light/typ_refresh-flipped.svg +1 -1
- novelwriter/assets/icons/typicons_light/typ_refresh.svg +1 -1
- novelwriter/assets/icons/typicons_light/typ_search-grey.svg +4 -0
- novelwriter/assets/icons/typicons_light/typ_times.svg +1 -1
- novelwriter/assets/icons/typicons_light/typ_unfold-hidden.svg +4 -0
- novelwriter/assets/icons/typicons_light/typ_unfold-visible.svg +4 -0
- novelwriter/assets/manual.pdf +0 -0
- novelwriter/assets/sample.zip +0 -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/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 +25 -23
- novelwriter/common.py +12 -4
- novelwriter/config.py +47 -16
- novelwriter/constants.py +5 -6
- novelwriter/core/buildsettings.py +64 -44
- novelwriter/core/coretools.py +97 -13
- novelwriter/core/docbuild.py +74 -7
- novelwriter/core/document.py +24 -3
- novelwriter/core/index.py +31 -112
- novelwriter/core/project.py +10 -15
- novelwriter/core/projectxml.py +1 -1
- novelwriter/core/sessions.py +2 -2
- novelwriter/core/spellcheck.py +3 -3
- novelwriter/core/status.py +6 -5
- novelwriter/core/storage.py +8 -2
- novelwriter/core/tohtml.py +22 -25
- novelwriter/core/tokenizer.py +417 -233
- novelwriter/core/tomd.py +17 -8
- novelwriter/core/toodt.py +386 -351
- novelwriter/core/tree.py +8 -8
- novelwriter/dialogs/about.py +9 -11
- novelwriter/dialogs/docmerge.py +17 -14
- novelwriter/dialogs/docsplit.py +20 -19
- novelwriter/dialogs/editlabel.py +5 -4
- novelwriter/dialogs/preferences.py +32 -40
- novelwriter/dialogs/projectsettings.py +31 -28
- novelwriter/dialogs/quotes.py +10 -9
- novelwriter/dialogs/wordlist.py +17 -14
- novelwriter/enum.py +17 -14
- novelwriter/error.py +14 -12
- novelwriter/extensions/circularprogress.py +12 -8
- novelwriter/extensions/configlayout.py +1 -3
- novelwriter/extensions/modified.py +51 -2
- novelwriter/extensions/pagedsidebar.py +16 -14
- novelwriter/extensions/simpleprogress.py +3 -1
- novelwriter/extensions/statusled.py +3 -1
- novelwriter/extensions/switch.py +10 -9
- novelwriter/extensions/switchbox.py +14 -13
- novelwriter/extensions/versioninfo.py +1 -1
- novelwriter/gui/doceditor.py +433 -496
- novelwriter/gui/dochighlight.py +54 -33
- novelwriter/gui/docviewer.py +162 -175
- novelwriter/gui/docviewerpanel.py +20 -37
- novelwriter/gui/editordocument.py +15 -4
- novelwriter/gui/itemdetails.py +51 -54
- novelwriter/gui/mainmenu.py +37 -16
- novelwriter/gui/noveltree.py +31 -37
- novelwriter/gui/outline.py +120 -98
- novelwriter/gui/projtree.py +61 -67
- novelwriter/gui/search.py +362 -0
- novelwriter/gui/sidebar.py +36 -45
- novelwriter/gui/statusbar.py +14 -14
- novelwriter/gui/theme.py +107 -32
- novelwriter/guimain.py +209 -202
- novelwriter/shared.py +31 -6
- novelwriter/text/counting.py +138 -0
- novelwriter/tools/dictionaries.py +15 -14
- novelwriter/tools/lipsum.py +20 -17
- novelwriter/tools/manusbuild.py +43 -35
- novelwriter/tools/manuscript.py +381 -104
- novelwriter/tools/manussettings.py +262 -125
- novelwriter/tools/noveldetails.py +20 -18
- novelwriter/tools/welcome.py +52 -49
- novelwriter/tools/writingstats.py +61 -55
- novelwriter/types.py +90 -0
- novelwriter/core/__init__.py +0 -3
- novelwriter/dialogs/__init__.py +0 -3
- novelwriter/extensions/__init__.py +0 -3
- novelwriter/gui/__init__.py +0 -3
- novelwriter/tools/__init__.py +0 -3
- {novelWriter-2.3.1.dist-info → novelWriter-2.4.dist-info}/LICENSE.md +0 -0
- {novelWriter-2.3.1.dist-info → novelWriter-2.4.dist-info}/WHEEL +0 -0
- {novelWriter-2.3.1.dist-info → novelWriter-2.4.dist-info}/entry_points.txt +0 -0
- {novelWriter-2.3.1.dist-info → novelWriter-2.4.dist-info}/top_level.txt +0 -0
novelwriter/types.py
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
"""
|
2
|
+
novelWriter – Types and Flags
|
3
|
+
=============================
|
4
|
+
|
5
|
+
File History:
|
6
|
+
Created: 2024-04-01 [2.4rc1]
|
7
|
+
|
8
|
+
This file is a part of novelWriter
|
9
|
+
Copyright 2018–2024, Veronica Berglyd Olsen
|
10
|
+
|
11
|
+
This program is free software: you can redistribute it and/or modify
|
12
|
+
it under the terms of the GNU General Public License as published by
|
13
|
+
the Free Software Foundation, either version 3 of the License, or
|
14
|
+
(at your option) any later version.
|
15
|
+
|
16
|
+
This program is distributed in the hope that it will be useful, but
|
17
|
+
WITHOUT ANY WARRANTY; without even the implied warranty of
|
18
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
19
|
+
General Public License for more details.
|
20
|
+
|
21
|
+
You should have received a copy of the GNU General Public License
|
22
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
23
|
+
"""
|
24
|
+
from __future__ import annotations
|
25
|
+
|
26
|
+
from PyQt5.QtCore import Qt
|
27
|
+
from PyQt5.QtGui import QColor, QPainter, QTextCursor
|
28
|
+
from PyQt5.QtWidgets import QDialogButtonBox, QStyle
|
29
|
+
|
30
|
+
# Qt Alignment Flags
|
31
|
+
|
32
|
+
QtAlignAbsolute = Qt.AlignmentFlag.AlignAbsolute
|
33
|
+
QtAlignCenter = Qt.AlignmentFlag.AlignCenter
|
34
|
+
QtAlignCenterTop = Qt.AlignmentFlag.AlignHCenter | Qt.AlignmentFlag.AlignTop
|
35
|
+
QtAlignJustify = Qt.AlignmentFlag.AlignJustify
|
36
|
+
QtAlignLeft = Qt.AlignmentFlag.AlignLeft
|
37
|
+
QtAlignLeftBase = Qt.AlignmentFlag.AlignLeft | Qt.AlignmentFlag.AlignBaseline
|
38
|
+
QtAlignLeftMiddle = Qt.AlignmentFlag.AlignLeft | Qt.AlignmentFlag.AlignVCenter
|
39
|
+
QtAlignLeftTop = Qt.AlignmentFlag.AlignLeft | Qt.AlignmentFlag.AlignTop
|
40
|
+
QtAlignMiddle = Qt.AlignmentFlag.AlignVCenter
|
41
|
+
QtAlignRight = Qt.AlignmentFlag.AlignRight
|
42
|
+
QtAlignRightBase = Qt.AlignmentFlag.AlignRight | Qt.AlignmentFlag.AlignBaseline
|
43
|
+
QtAlignRightMiddle = Qt.AlignmentFlag.AlignRight | Qt.AlignmentFlag.AlignVCenter
|
44
|
+
QtAlignRightTop = Qt.AlignmentFlag.AlignRight | Qt.AlignmentFlag.AlignTop
|
45
|
+
QtAlignTop = Qt.AlignmentFlag.AlignTop
|
46
|
+
|
47
|
+
# Qt Painter Types
|
48
|
+
|
49
|
+
QtTransparent = QColor(0, 0, 0, 0)
|
50
|
+
QtNoBrush = Qt.BrushStyle.NoBrush
|
51
|
+
QtNoPen = Qt.PenStyle.NoPen
|
52
|
+
QtRoundCap = Qt.PenCapStyle.RoundCap
|
53
|
+
QtSolidLine = Qt.PenStyle.SolidLine
|
54
|
+
QtPaintAnitAlias = QPainter.RenderHint.Antialiasing
|
55
|
+
QtMouseOver = QStyle.StateFlag.State_MouseOver
|
56
|
+
QtSelected = QStyle.StateFlag.State_Selected
|
57
|
+
|
58
|
+
# Qt Tree and Table Types
|
59
|
+
|
60
|
+
QtDecoration = Qt.ItemDataRole.DecorationRole
|
61
|
+
QtUserRole = Qt.ItemDataRole.UserRole
|
62
|
+
|
63
|
+
# Keyboard and Mouse Buttons
|
64
|
+
|
65
|
+
QtModCtrl = Qt.KeyboardModifier.ControlModifier
|
66
|
+
QtModeNone = Qt.KeyboardModifier.NoModifier
|
67
|
+
QtModShift = Qt.KeyboardModifier.ShiftModifier
|
68
|
+
QtMouseLeft = Qt.MouseButton.LeftButton
|
69
|
+
QtMouseMiddle = Qt.MouseButton.MiddleButton
|
70
|
+
|
71
|
+
# Dialog Button Box Types
|
72
|
+
|
73
|
+
QtDialogApply = QDialogButtonBox.StandardButton.Apply
|
74
|
+
QtDialogCancel = QDialogButtonBox.StandardButton.Cancel
|
75
|
+
QtDialogClose = QDialogButtonBox.StandardButton.Close
|
76
|
+
QtDialogOk = QDialogButtonBox.StandardButton.Ok
|
77
|
+
QtDialogReset = QDialogButtonBox.StandardButton.Reset
|
78
|
+
QtDialogSave = QDialogButtonBox.StandardButton.Save
|
79
|
+
|
80
|
+
QtRoleAccept = QDialogButtonBox.ButtonRole.AcceptRole
|
81
|
+
QtRoleAction = QDialogButtonBox.ButtonRole.ActionRole
|
82
|
+
QtRoleApply = QDialogButtonBox.ButtonRole.ApplyRole
|
83
|
+
QtRoleReject = QDialogButtonBox.ButtonRole.RejectRole
|
84
|
+
|
85
|
+
# Cursor Types
|
86
|
+
|
87
|
+
QtKeepAnchor = QTextCursor.MoveMode.KeepAnchor
|
88
|
+
QtMoveAnchor = QTextCursor.MoveMode.MoveAnchor
|
89
|
+
QtMoveLeft = QTextCursor.MoveOperation.Left
|
90
|
+
QtMoveRight = QTextCursor.MoveOperation.Right
|
novelwriter/core/__init__.py
DELETED
novelwriter/dialogs/__init__.py
DELETED
novelwriter/gui/__init__.py
DELETED
novelwriter/tools/__init__.py
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|