From d658a993c0951dd5555aad6293a92d3874e10189 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Tue, 8 Aug 2023 21:41:35 +0200 Subject: [PATCH] Update source file headers --- novelwriter/core/project.py | 1 - novelwriter/core/status.py | 2 +- novelwriter/dialogs/docmerge.py | 2 +- novelwriter/dialogs/docsplit.py | 2 +- novelwriter/dialogs/editlabel.py | 2 +- novelwriter/dialogs/preferences.py | 2 +- novelwriter/dialogs/projdetails.py | 2 +- novelwriter/dialogs/projload.py | 2 +- novelwriter/dialogs/quotes.py | 2 +- novelwriter/dialogs/updates.py | 2 +- novelwriter/enum.py | 1 - novelwriter/extensions/configlayout.py | 1 - novelwriter/extensions/pageddialog.py | 2 +- novelwriter/extensions/switch.py | 2 +- novelwriter/gui/components.py | 2 +- novelwriter/gui/dochighlight.py | 2 +- novelwriter/gui/docviewer.py | 2 +- novelwriter/gui/itemdetails.py | 2 +- novelwriter/gui/mainmenu.py | 2 +- novelwriter/gui/noveltree.py | 2 +- novelwriter/gui/outline.py | 2 +- novelwriter/gui/projtree.py | 1 - novelwriter/gui/sidebar.py | 2 +- novelwriter/gui/statusbar.py | 2 +- novelwriter/gui/theme.py | 1 - novelwriter/tools/lipsum.py | 2 +- novelwriter/tools/projwizard.py | 2 +- 27 files changed, 22 insertions(+), 27 deletions(-) diff --git a/novelwriter/core/project.py b/novelwriter/core/project.py index 839ab335..c1b2ea2a 100644 --- a/novelwriter/core/project.py +++ b/novelwriter/core/project.py @@ -1,7 +1,6 @@ """ novelWriter – Project Wrapper ============================= -The parent class for a novelWriter project File History: Created: 2018-09-29 [0.0.1] diff --git a/novelwriter/core/status.py b/novelwriter/core/status.py index a1e99899..88b4467a 100644 --- a/novelwriter/core/status.py +++ b/novelwriter/core/status.py @@ -1,7 +1,6 @@ """ novelWriter – Project Item Status Class ======================================= -Data class for the status/importance settings of a project item File History: Created: 2019-05-19 [0.1.3] @@ -23,6 +22,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import random import logging diff --git a/novelwriter/dialogs/docmerge.py b/novelwriter/dialogs/docmerge.py index 5ad908a4..0faf9dd9 100644 --- a/novelwriter/dialogs/docmerge.py +++ b/novelwriter/dialogs/docmerge.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Doc Merge Dialog ================================== -Custom dialog class for merging documents. File History: Created: 2020-01-23 [0.4.3] @@ -23,6 +22,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/dialogs/docsplit.py b/novelwriter/dialogs/docsplit.py index b68613a2..9542268f 100644 --- a/novelwriter/dialogs/docsplit.py +++ b/novelwriter/dialogs/docsplit.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Doc Split Dialog ================================== -Custom dialog class for splitting documents. File History: Created: 2020-02-01 [0.4.3] @@ -23,6 +22,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/dialogs/editlabel.py b/novelwriter/dialogs/editlabel.py index 58c72890..662c00f6 100644 --- a/novelwriter/dialogs/editlabel.py +++ b/novelwriter/dialogs/editlabel.py @@ -1,7 +1,6 @@ """ novelWriter – Edit Label Dialog =============================== -A simple dialog for editing a label File History: Created: 2022-06-11 [2.0rc1] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/dialogs/preferences.py b/novelwriter/dialogs/preferences.py index 08a4d5b9..47d35b08 100644 --- a/novelwriter/dialogs/preferences.py +++ b/novelwriter/dialogs/preferences.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Preferences ============================= -GUI classes for the user preferences dialog File History: Created: 2019-06-10 [0.1.5] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/dialogs/projdetails.py b/novelwriter/dialogs/projdetails.py index 68a6b3b6..b3d942ca 100644 --- a/novelwriter/dialogs/projdetails.py +++ b/novelwriter/dialogs/projdetails.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Project Details ================================= -Class holding the project details dialog File History: Created: 2021-01-03 [1.1rc1] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import math import logging diff --git a/novelwriter/dialogs/projload.py b/novelwriter/dialogs/projload.py index f88e7130..1ae6fb50 100644 --- a/novelwriter/dialogs/projload.py +++ b/novelwriter/dialogs/projload.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Open Project ============================== -GUI class for the load/browse/new project dialog File History: Created: 2020-02-26 [0.4.5] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/dialogs/quotes.py b/novelwriter/dialogs/quotes.py index 4f5ba9eb..6282c6b6 100644 --- a/novelwriter/dialogs/quotes.py +++ b/novelwriter/dialogs/quotes.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Quotes Dialog =============================== -GUI class for quotes dialog File History: Created: 2020-06-18 [0.9] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/dialogs/updates.py b/novelwriter/dialogs/updates.py index c40cb5a4..9553fa8d 100644 --- a/novelwriter/dialogs/updates.py +++ b/novelwriter/dialogs/updates.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Updates ========================= -A dialog box for checking for latest updates File History: Created: 2021-08-21 [1.5b1] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import json import logging diff --git a/novelwriter/enum.py b/novelwriter/enum.py index aeab3f5e..1abc29c7 100644 --- a/novelwriter/enum.py +++ b/novelwriter/enum.py @@ -1,7 +1,6 @@ """ novelWriter – Enums =================== -Global enum values File History: Created: 2018-11-02 [0.0.1] diff --git a/novelwriter/extensions/configlayout.py b/novelwriter/extensions/configlayout.py index 93d348be..68ac39e2 100644 --- a/novelwriter/extensions/configlayout.py +++ b/novelwriter/extensions/configlayout.py @@ -1,7 +1,6 @@ """ novelWriter – Custom Widget: Config Layout ========================================== -A custom grid layout for config pages File History: Created: 2020-05-03 [0.4.5] diff --git a/novelwriter/extensions/pageddialog.py b/novelwriter/extensions/pageddialog.py index 28bd817c..aa8de6e2 100644 --- a/novelwriter/extensions/pageddialog.py +++ b/novelwriter/extensions/pageddialog.py @@ -1,7 +1,6 @@ """ novelWriter – Custom Widget: Paged Dialog ========================================= -A custom dialog with tabs and a vertical tab bar File History: Created: 2020-05-17 [0.5.1] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations from PyQt5.QtCore import QRect, QPoint from PyQt5.QtWidgets import ( diff --git a/novelwriter/extensions/switch.py b/novelwriter/extensions/switch.py index 529db854..be90bec7 100644 --- a/novelwriter/extensions/switch.py +++ b/novelwriter/extensions/switch.py @@ -1,7 +1,6 @@ """ novelWriter – Custom Widget: Switch =================================== -A custom switch widget File History: Created: 2020-05-03 [0.4.5] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations from PyQt5.QtGui import QPainter from PyQt5.QtCore import Qt, QRectF, QPropertyAnimation, pyqtProperty diff --git a/novelwriter/gui/components.py b/novelwriter/gui/components.py index ffa19af1..762f0b0c 100644 --- a/novelwriter/gui/components.py +++ b/novelwriter/gui/components.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Components Module =================================== -A module of various small GUI components File History: Created: 2020-05-17 [0.5.1] StatusLED @@ -23,6 +22,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/gui/dochighlight.py b/novelwriter/gui/dochighlight.py index 355a0b54..1032c886 100644 --- a/novelwriter/gui/dochighlight.py +++ b/novelwriter/gui/dochighlight.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Syntax Highlighter ==================================== -Class for the main document editor syntax highlighter File History: Created: 2019-04-06 [0.0.1] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/gui/docviewer.py b/novelwriter/gui/docviewer.py index c532d430..fdb5435f 100644 --- a/novelwriter/gui/docviewer.py +++ b/novelwriter/gui/docviewer.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Document Viewer ================================= -GUI classes for the main document viewer File History: Created: 2019-05-10 [0.0.1] GuiDocViewer @@ -26,6 +25,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/gui/itemdetails.py b/novelwriter/gui/itemdetails.py index 6270f2f0..df11ce2c 100644 --- a/novelwriter/gui/itemdetails.py +++ b/novelwriter/gui/itemdetails.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Item Details Panel ==================================== -GUI class for the project tree item details panel File History: Created: 2019-04-24 [0.0.1] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/gui/mainmenu.py b/novelwriter/gui/mainmenu.py index f74f7f18..dce2ca55 100644 --- a/novelwriter/gui/mainmenu.py +++ b/novelwriter/gui/mainmenu.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Main Menu =========================== -GUI class for the main window menu File History: Created: 2019-04-27 [0.0.1] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/gui/noveltree.py b/novelwriter/gui/noveltree.py index fda64471..877dc1bd 100644 --- a/novelwriter/gui/noveltree.py +++ b/novelwriter/gui/noveltree.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Novel Tree ============================ -GUI class for the main window novel tree File History: Created: 2020-12-20 [1.1rc1] GuiNovelTree @@ -24,6 +23,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/gui/outline.py b/novelwriter/gui/outline.py index 93b94ee8..0c75a6b1 100644 --- a/novelwriter/gui/outline.py +++ b/novelwriter/gui/outline.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Project Outline ================================= -GUI class for the project outline view File History: Created: 2022-05-15 [2.0rc1] GuiOutlineView @@ -26,6 +25,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/gui/projtree.py b/novelwriter/gui/projtree.py index f45de16f..a4dedd46 100644 --- a/novelwriter/gui/projtree.py +++ b/novelwriter/gui/projtree.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Project Tree ============================== -GUI classes for the main window project tree File History: Created: 2018-09-29 [0.0.1] GuiProjectTree diff --git a/novelwriter/gui/sidebar.py b/novelwriter/gui/sidebar.py index 8e8b608d..6ec9f308 100644 --- a/novelwriter/gui/sidebar.py +++ b/novelwriter/gui/sidebar.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Main Window SideBar ===================================== -GUI class for the main window side bar File History: Created: 2022-05-10 [2.0rc1] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/gui/statusbar.py b/novelwriter/gui/statusbar.py index f14affff..e3512270 100644 --- a/novelwriter/gui/statusbar.py +++ b/novelwriter/gui/statusbar.py @@ -1,7 +1,6 @@ """ novelWriter – GUI Main Window Status Bar ======================================== -GUI class for the main window status bar File History: Created: 2019-04-20 [0.0.1] GuiMainStatus @@ -23,6 +22,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import logging diff --git a/novelwriter/gui/theme.py b/novelwriter/gui/theme.py index c65fad5d..a91d9ae1 100644 --- a/novelwriter/gui/theme.py +++ b/novelwriter/gui/theme.py @@ -1,7 +1,6 @@ """ novelWriter – Theme and Icons Classes ===================================== -Classes managing and caching themes and icons File History: Created: 2019-05-18 [0.1.3] GuiTheme diff --git a/novelwriter/tools/lipsum.py b/novelwriter/tools/lipsum.py index b803caf6..d7aa9d51 100644 --- a/novelwriter/tools/lipsum.py +++ b/novelwriter/tools/lipsum.py @@ -1,7 +1,6 @@ """ novelWriter – Lorem Ipsum Tool ============================== -Simple tool for inserting placeholder text in a document File History: Created: 2022-04-02 [2.0rc1] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import random import logging diff --git a/novelwriter/tools/projwizard.py b/novelwriter/tools/projwizard.py index c4f61416..6564320a 100644 --- a/novelwriter/tools/projwizard.py +++ b/novelwriter/tools/projwizard.py @@ -1,7 +1,6 @@ """ novelWriter – GUI New Project Wizard ==================================== -GUI classes for the new project wizard dialog File History: Created: 2020-07-11 [0.10.1] @@ -22,6 +21,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . """ +from __future__ import annotations import os import logging