Remove encoding line and add spaces between classes and functions
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Start Script
|
novelWriter – Start Script
|
||||||
==========================
|
==========================
|
||||||
|
|||||||
+5
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Init File
|
novelWriter – Init File
|
||||||
=======================
|
=======================
|
||||||
@@ -90,15 +89,19 @@ __docurl__ = "https://novelwriter.readthedocs.io"
|
|||||||
# Add verbose logging level
|
# Add verbose logging level
|
||||||
VERBOSE = 5
|
VERBOSE = 5
|
||||||
logging.addLevelName(VERBOSE, "VERBOSE")
|
logging.addLevelName(VERBOSE, "VERBOSE")
|
||||||
|
|
||||||
|
|
||||||
def logVerbose(self, message, *args, **kws):
|
def logVerbose(self, message, *args, **kws):
|
||||||
if self.isEnabledFor(VERBOSE):
|
if self.isEnabledFor(VERBOSE):
|
||||||
self._log(VERBOSE, message, args, **kws)
|
self._log(VERBOSE, message, args, **kws)
|
||||||
|
|
||||||
|
|
||||||
logging.Logger.verbose = logVerbose
|
logging.Logger.verbose = logVerbose
|
||||||
|
|
||||||
# Initiating logging
|
# Initiating logging
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Main Program
|
# Main Program
|
||||||
##
|
##
|
||||||
@@ -106,6 +109,7 @@ logger = logging.getLogger(__name__)
|
|||||||
# Load the main config as a global object
|
# Load the main config as a global object
|
||||||
CONFIG = Config()
|
CONFIG = Config()
|
||||||
|
|
||||||
|
|
||||||
def main(sysArgs=None):
|
def main(sysArgs=None):
|
||||||
"""Parses command line, sets up logging, and launches main GUI.
|
"""Parses command line, sets up logging, and launches main GUI.
|
||||||
"""
|
"""
|
||||||
|
|||||||
+19
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Common Functions
|
novelWriter – Common Functions
|
||||||
==============================
|
==============================
|
||||||
@@ -36,6 +35,7 @@ from nw.constants import nwConst, nwUnicode
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def checkString(value, default, allowNone=False):
|
def checkString(value, default, allowNone=False):
|
||||||
"""Check if a variable is a string or a none.
|
"""Check if a variable is a string or a none.
|
||||||
"""
|
"""
|
||||||
@@ -48,6 +48,7 @@ def checkString(value, default, allowNone=False):
|
|||||||
return str(value)
|
return str(value)
|
||||||
return default
|
return default
|
||||||
|
|
||||||
|
|
||||||
def checkInt(value, default, allowNone=False):
|
def checkInt(value, default, allowNone=False):
|
||||||
"""Check if a variable is an integer or a none.
|
"""Check if a variable is an integer or a none.
|
||||||
"""
|
"""
|
||||||
@@ -61,6 +62,7 @@ def checkInt(value, default, allowNone=False):
|
|||||||
except Exception:
|
except Exception:
|
||||||
return default
|
return default
|
||||||
|
|
||||||
|
|
||||||
def checkBool(value, default, allowNone=False):
|
def checkBool(value, default, allowNone=False):
|
||||||
"""Check if a variable is a boolean or a none.
|
"""Check if a variable is a boolean or a none.
|
||||||
"""
|
"""
|
||||||
@@ -85,6 +87,7 @@ def checkBool(value, default, allowNone=False):
|
|||||||
return default
|
return default
|
||||||
return default
|
return default
|
||||||
|
|
||||||
|
|
||||||
def checkHandle(value, default, allowNone=False):
|
def checkHandle(value, default, allowNone=False):
|
||||||
"""Check if a value is a handle.
|
"""Check if a value is a handle.
|
||||||
"""
|
"""
|
||||||
@@ -97,6 +100,7 @@ def checkHandle(value, default, allowNone=False):
|
|||||||
return str(value)
|
return str(value)
|
||||||
return default
|
return default
|
||||||
|
|
||||||
|
|
||||||
def isHandle(theString):
|
def isHandle(theString):
|
||||||
"""Check if a string is a valid novelWriter handle.
|
"""Check if a string is a valid novelWriter handle.
|
||||||
Note: This is case sensitive. Must be lower case!
|
Note: This is case sensitive. Must be lower case!
|
||||||
@@ -110,6 +114,7 @@ def isHandle(theString):
|
|||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def isTitleTag(theString):
|
def isTitleTag(theString):
|
||||||
"""Check if a string is a valid title string.
|
"""Check if a string is a valid title string.
|
||||||
"""
|
"""
|
||||||
@@ -124,21 +129,25 @@ def isTitleTag(theString):
|
|||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def isItemClass(theString):
|
def isItemClass(theString):
|
||||||
"""Check if an item is a calid nwItemClass identifier.
|
"""Check if an item is a calid nwItemClass identifier.
|
||||||
"""
|
"""
|
||||||
return theString in nwItemClass.__members__
|
return theString in nwItemClass.__members__
|
||||||
|
|
||||||
|
|
||||||
def isItemType(theString):
|
def isItemType(theString):
|
||||||
"""Check if an item is a calid nwItemType identifier.
|
"""Check if an item is a calid nwItemType identifier.
|
||||||
"""
|
"""
|
||||||
return theString in nwItemType.__members__
|
return theString in nwItemType.__members__
|
||||||
|
|
||||||
|
|
||||||
def isItemLayout(theString):
|
def isItemLayout(theString):
|
||||||
"""Check if an item is a calid nwItemLayout identifier.
|
"""Check if an item is a calid nwItemLayout identifier.
|
||||||
"""
|
"""
|
||||||
return theString in nwItemLayout.__members__
|
return theString in nwItemLayout.__members__
|
||||||
|
|
||||||
|
|
||||||
def hexToInt(value, default=0):
|
def hexToInt(value, default=0):
|
||||||
"""Convert a hex string to an integer.
|
"""Convert a hex string to an integer.
|
||||||
"""
|
"""
|
||||||
@@ -149,6 +158,7 @@ def hexToInt(value, default=0):
|
|||||||
return default
|
return default
|
||||||
return default
|
return default
|
||||||
|
|
||||||
|
|
||||||
def formatInt(theInt):
|
def formatInt(theInt):
|
||||||
"""Formats an integer with k, M, G etc.
|
"""Formats an integer with k, M, G etc.
|
||||||
"""
|
"""
|
||||||
@@ -168,6 +178,7 @@ def formatInt(theInt):
|
|||||||
|
|
||||||
return str(theInt)
|
return str(theInt)
|
||||||
|
|
||||||
|
|
||||||
def formatTimeStamp(theTime, fileSafe=False):
|
def formatTimeStamp(theTime, fileSafe=False):
|
||||||
"""Take a number (on the format returned by time.time()) and convert
|
"""Take a number (on the format returned by time.time()) and convert
|
||||||
it to a timestamp string.
|
it to a timestamp string.
|
||||||
@@ -177,6 +188,7 @@ def formatTimeStamp(theTime, fileSafe=False):
|
|||||||
else:
|
else:
|
||||||
return datetime.fromtimestamp(theTime).strftime(nwConst.FMT_TSTAMP)
|
return datetime.fromtimestamp(theTime).strftime(nwConst.FMT_TSTAMP)
|
||||||
|
|
||||||
|
|
||||||
def formatTime(tS):
|
def formatTime(tS):
|
||||||
"""Format a time in seconds in HH:MM:SS format or d-HH:MM:SS format
|
"""Format a time in seconds in HH:MM:SS format or d-HH:MM:SS format
|
||||||
if a full day or longer.
|
if a full day or longer.
|
||||||
@@ -188,6 +200,7 @@ def formatTime(tS):
|
|||||||
return f"{tS//3600:02d}:{tS%3600//60:02d}:{tS%60:02d}"
|
return f"{tS//3600:02d}:{tS%3600//60:02d}:{tS%60:02d}"
|
||||||
return "ERROR"
|
return "ERROR"
|
||||||
|
|
||||||
|
|
||||||
def splitVersionNumber(vString):
|
def splitVersionNumber(vString):
|
||||||
""" Splits a version string on the form aa.bb.cc into major, minor
|
""" Splits a version string on the form aa.bb.cc into major, minor
|
||||||
and patch, and computes an integer value aabbcc.
|
and patch, and computes an integer value aabbcc.
|
||||||
@@ -211,6 +224,7 @@ def splitVersionNumber(vString):
|
|||||||
|
|
||||||
return [vMajor, vMinor, vPatch, vInt]
|
return [vMajor, vMinor, vPatch, vInt]
|
||||||
|
|
||||||
|
|
||||||
def transferCase(theSource, theTarget):
|
def transferCase(theSource, theTarget):
|
||||||
"""Transfers the case of the source word to the target word. This
|
"""Transfers the case of the source word to the target word. This
|
||||||
will consider all upper or lower, and first char capitalisation.
|
will consider all upper or lower, and first char capitalisation.
|
||||||
@@ -232,6 +246,7 @@ def transferCase(theSource, theTarget):
|
|||||||
|
|
||||||
return theResult
|
return theResult
|
||||||
|
|
||||||
|
|
||||||
def fuzzyTime(secDiff):
|
def fuzzyTime(secDiff):
|
||||||
"""Converts a time difference in seconds into a fuzzy time string.
|
"""Converts a time difference in seconds into a fuzzy time string.
|
||||||
"""
|
"""
|
||||||
@@ -292,6 +307,7 @@ def fuzzyTime(secDiff):
|
|||||||
"Common", "{0} years ago"
|
"Common", "{0} years ago"
|
||||||
).format(int(round(secDiff/31557600)))
|
).format(int(round(secDiff/31557600)))
|
||||||
|
|
||||||
|
|
||||||
def makeFileNameSafe(theText):
|
def makeFileNameSafe(theText):
|
||||||
"""Returns a filename safe version of the text.
|
"""Returns a filename safe version of the text.
|
||||||
"""
|
"""
|
||||||
@@ -301,6 +317,7 @@ def makeFileNameSafe(theText):
|
|||||||
cleanName += c
|
cleanName += c
|
||||||
return cleanName
|
return cleanName
|
||||||
|
|
||||||
|
|
||||||
def getGuiItem(theName):
|
def getGuiItem(theName):
|
||||||
"""Returns a QtWidget based on its objectName.
|
"""Returns a QtWidget based on its objectName.
|
||||||
"""
|
"""
|
||||||
@@ -309,6 +326,7 @@ def getGuiItem(theName):
|
|||||||
return qWidget
|
return qWidget
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
def numberToRoman(numVal, isLower=False):
|
def numberToRoman(numVal, isLower=False):
|
||||||
"""Convert an integer to a roman number.
|
"""Convert an integer to a roman number.
|
||||||
"""
|
"""
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Config Class
|
novelWriter – Config Class
|
||||||
==========================
|
==========================
|
||||||
@@ -45,6 +44,7 @@ from nw.constants import nwConst, nwFiles, nwUnicode
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
|
|
||||||
CNF_STR = 0
|
CNF_STR = 0
|
||||||
|
|||||||
+10
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Constants
|
novelWriter – Constants
|
||||||
=======================
|
=======================
|
||||||
@@ -28,11 +27,13 @@ from PyQt5.QtCore import QCoreApplication, QT_TRANSLATE_NOOP
|
|||||||
|
|
||||||
from nw.enum import nwItemClass, nwItemLayout, nwItemType, nwOutline
|
from nw.enum import nwItemClass, nwItemLayout, nwItemType, nwOutline
|
||||||
|
|
||||||
|
|
||||||
def trConst(tString):
|
def trConst(tString):
|
||||||
"""Wrapper function for locally translating constants.
|
"""Wrapper function for locally translating constants.
|
||||||
"""
|
"""
|
||||||
return QCoreApplication.translate("Constant", tString)
|
return QCoreApplication.translate("Constant", tString)
|
||||||
|
|
||||||
|
|
||||||
class nwConst():
|
class nwConst():
|
||||||
|
|
||||||
# Date and Time Formats
|
# Date and Time Formats
|
||||||
@@ -51,6 +52,7 @@ class nwConst():
|
|||||||
|
|
||||||
# END Class nwConst
|
# END Class nwConst
|
||||||
|
|
||||||
|
|
||||||
class nwLists():
|
class nwLists():
|
||||||
"""Lists used for grouping various other constants.
|
"""Lists used for grouping various other constants.
|
||||||
"""
|
"""
|
||||||
@@ -65,6 +67,7 @@ class nwLists():
|
|||||||
|
|
||||||
# END Class nwLists
|
# END Class nwLists
|
||||||
|
|
||||||
|
|
||||||
class nwRegEx():
|
class nwRegEx():
|
||||||
|
|
||||||
FMT_EI = r"(?<![\w\\])(_)(?![\s_])(.+?)(?<![\s\\])(\1)(?!\w)"
|
FMT_EI = r"(?<![\w\\])(_)(?![\s_])(.+?)(?<![\s\\])(\1)(?!\w)"
|
||||||
@@ -73,6 +76,7 @@ class nwRegEx():
|
|||||||
|
|
||||||
# END Class nwRegEx
|
# END Class nwRegEx
|
||||||
|
|
||||||
|
|
||||||
class nwFiles():
|
class nwFiles():
|
||||||
|
|
||||||
PROJ_FILE = "nwProject.nwx"
|
PROJ_FILE = "nwProject.nwx"
|
||||||
@@ -87,6 +91,7 @@ class nwFiles():
|
|||||||
|
|
||||||
# END Class nwFiles
|
# END Class nwFiles
|
||||||
|
|
||||||
|
|
||||||
class nwKeyWords:
|
class nwKeyWords:
|
||||||
|
|
||||||
TAG_KEY = "@tag"
|
TAG_KEY = "@tag"
|
||||||
@@ -121,6 +126,7 @@ class nwKeyWords:
|
|||||||
|
|
||||||
# END Class nwKeyWords
|
# END Class nwKeyWords
|
||||||
|
|
||||||
|
|
||||||
class nwLabels():
|
class nwLabels():
|
||||||
|
|
||||||
CLASS_NAME = {
|
CLASS_NAME = {
|
||||||
@@ -218,6 +224,7 @@ class nwLabels():
|
|||||||
|
|
||||||
# END Class nwLabels
|
# END Class nwLabels
|
||||||
|
|
||||||
|
|
||||||
class nwQuotes():
|
class nwQuotes():
|
||||||
"""Allowed quotation marks.
|
"""Allowed quotation marks.
|
||||||
Source: https://en.wikipedia.org/wiki/Quotation_mark
|
Source: https://en.wikipedia.org/wiki/Quotation_mark
|
||||||
@@ -249,6 +256,7 @@ class nwQuotes():
|
|||||||
|
|
||||||
# END Class nwQuotes
|
# END Class nwQuotes
|
||||||
|
|
||||||
|
|
||||||
class nwUnicode:
|
class nwUnicode:
|
||||||
"""Supported unicode character constants and their HTML equivalents.
|
"""Supported unicode character constants and their HTML equivalents.
|
||||||
"""
|
"""
|
||||||
@@ -384,6 +392,7 @@ class nwUnicode:
|
|||||||
|
|
||||||
# END Class nwUnicode
|
# END Class nwUnicode
|
||||||
|
|
||||||
|
|
||||||
class nwHtmlUnicode():
|
class nwHtmlUnicode():
|
||||||
|
|
||||||
U_TO_H = {
|
U_TO_H = {
|
||||||
|
|||||||
+20
-1
@@ -1,4 +1,23 @@
|
|||||||
# -*- coding: utf-8 -*-
|
"""
|
||||||
|
novelWriter – Core Init
|
||||||
|
=======================
|
||||||
|
|
||||||
|
This file is a part of novelWriter
|
||||||
|
Copyright 2018–2021, Veronica Berglyd Olsen
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
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 <https://www.gnu.org/licenses/>.
|
||||||
|
"""
|
||||||
|
|
||||||
from nw.core.document import NWDoc
|
from nw.core.document import NWDoc
|
||||||
from nw.core.index import NWIndex, countWords
|
from nw.core.index import NWIndex, countWords
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Project Document
|
novelWriter – Project Document
|
||||||
==============================
|
==============================
|
||||||
@@ -32,6 +31,7 @@ from nw.common import isHandle
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class NWDoc():
|
class NWDoc():
|
||||||
|
|
||||||
def __init__(self, theProject, theHandle):
|
def __init__(self, theProject, theHandle):
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Project Index
|
novelWriter – Project Index
|
||||||
===========================
|
===========================
|
||||||
@@ -39,6 +38,7 @@ from nw.core.document import NWDoc
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class NWIndex():
|
class NWIndex():
|
||||||
|
|
||||||
H_VALID = ("H0", "H1", "H2", "H3", "H4")
|
H_VALID = ("H0", "H1", "H2", "H3", "H4")
|
||||||
@@ -895,6 +895,7 @@ class NWIndex():
|
|||||||
|
|
||||||
# END Class NWIndex
|
# END Class NWIndex
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Simple Word Counter
|
# Simple Word Counter
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Project Item Class
|
novelWriter – Project Item Class
|
||||||
================================
|
================================
|
||||||
@@ -33,6 +32,7 @@ from nw.common import checkInt, isHandle, isItemClass, isItemLayout, isItemType
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class NWItem():
|
class NWItem():
|
||||||
|
|
||||||
def __init__(self, theProject):
|
def __init__(self, theProject):
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Project Options Cache
|
novelWriter – Project Options Cache
|
||||||
===================================
|
===================================
|
||||||
@@ -34,6 +33,7 @@ from nw.constants import nwFiles
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class OptionState():
|
class OptionState():
|
||||||
|
|
||||||
def __init__(self, theProject):
|
def __init__(self, theProject):
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Project Wrapper
|
novelWriter – Project Wrapper
|
||||||
=============================
|
=============================
|
||||||
@@ -50,6 +49,7 @@ from nw.constants import trConst, nwFiles, nwLabels
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class NWProject():
|
class NWProject():
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Spell Check Classes
|
novelWriter – Spell Check Classes
|
||||||
=================================
|
=================================
|
||||||
@@ -31,6 +30,7 @@ import difflib
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# SpellChecking SuperClass
|
# SpellChecking SuperClass
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
@@ -122,6 +122,7 @@ class NWSpellCheck():
|
|||||||
|
|
||||||
# END Class NWSpellCheck
|
# END Class NWSpellCheck
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Enchant Based SpellChecking
|
# Enchant Based SpellChecking
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
@@ -208,6 +209,7 @@ class NWSpellEnchant(NWSpellCheck):
|
|||||||
|
|
||||||
# END Class NWSpellEnchant
|
# END Class NWSpellEnchant
|
||||||
|
|
||||||
|
|
||||||
class FakeEnchant:
|
class FakeEnchant:
|
||||||
"""Fallback for when Enchant is selected, but not installed.
|
"""Fallback for when Enchant is selected, but not installed.
|
||||||
"""
|
"""
|
||||||
@@ -225,6 +227,7 @@ class FakeEnchant:
|
|||||||
|
|
||||||
# END Class FakeEnchant
|
# END Class FakeEnchant
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Fallback SpellChecking Using difflib
|
# Fallback SpellChecking Using difflib
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Project Item Status Class
|
novelWriter – Project Item Status Class
|
||||||
=======================================
|
=======================================
|
||||||
@@ -32,6 +31,7 @@ from nw.common import checkInt
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class NWStatus():
|
class NWStatus():
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – HTML Text Converter
|
novelWriter – HTML Text Converter
|
||||||
=================================
|
=================================
|
||||||
@@ -31,6 +30,7 @@ from nw.constants import nwKeyWords, nwLabels, nwHtmlUnicode
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class ToHtml(Tokenizer):
|
class ToHtml(Tokenizer):
|
||||||
|
|
||||||
M_PREVIEW = 0 # Tweak output for the DocViewer
|
M_PREVIEW = 0 # Tweak output for the DocViewer
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Text Tokenizer
|
novelWriter – Text Tokenizer
|
||||||
============================
|
============================
|
||||||
@@ -40,6 +39,7 @@ from nw.core.document import NWDoc
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Tokenizer():
|
class Tokenizer():
|
||||||
|
|
||||||
# In-Text Format
|
# In-Text Format
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Markdown Text Converter
|
novelWriter – Markdown Text Converter
|
||||||
=====================================
|
=====================================
|
||||||
@@ -31,6 +30,7 @@ from nw.core.tokenizer import Tokenizer
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class ToMarkdown(Tokenizer):
|
class ToMarkdown(Tokenizer):
|
||||||
|
|
||||||
M_STD = 0 # Standard Markdown
|
M_STD = 0 # Standard Markdown
|
||||||
|
|||||||
+4
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – ODT Text Converter
|
novelWriter – ODT Text Converter
|
||||||
================================
|
================================
|
||||||
@@ -57,6 +56,7 @@ TAG_TAB = "{%s}tab" % XML_NS["text"]
|
|||||||
TAG_SPAN = "{%s}span" % XML_NS["text"]
|
TAG_SPAN = "{%s}span" % XML_NS["text"]
|
||||||
TAG_STNM = "{%s}style-name" % XML_NS["text"]
|
TAG_STNM = "{%s}style-name" % XML_NS["text"]
|
||||||
|
|
||||||
|
|
||||||
class ToOdt(Tokenizer):
|
class ToOdt(Tokenizer):
|
||||||
|
|
||||||
X_BLD = 0x01 # Bold format
|
X_BLD = 0x01 # Bold format
|
||||||
@@ -985,6 +985,7 @@ class ToOdt(Tokenizer):
|
|||||||
|
|
||||||
# END Class ToOdt
|
# END Class ToOdt
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Auto-Style Classes
|
# Auto-Style Classes
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
@@ -1212,6 +1213,7 @@ class ODTParagraphStyle():
|
|||||||
|
|
||||||
# END Class ODTParagraphStyle
|
# END Class ODTParagraphStyle
|
||||||
|
|
||||||
|
|
||||||
class ODTTextStyle():
|
class ODTTextStyle():
|
||||||
"""Wrapper class for the text style setting used by the exporter.
|
"""Wrapper class for the text style setting used by the exporter.
|
||||||
Only the used settings are exposed here to keep the class minimal
|
Only the used settings are exposed here to keep the class minimal
|
||||||
@@ -1282,6 +1284,7 @@ class ODTTextStyle():
|
|||||||
|
|
||||||
# END Class ODTTextStyle
|
# END Class ODTTextStyle
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Local Functions
|
# Local Functions
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Project Tree Class
|
novelWriter – Project Tree Class
|
||||||
================================
|
================================
|
||||||
@@ -62,6 +61,7 @@ LAYOUT_MAP = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class NWTree():
|
class NWTree():
|
||||||
|
|
||||||
def __init__(self, theProject):
|
def __init__(self, theProject):
|
||||||
|
|||||||
+20
-1
@@ -1,4 +1,23 @@
|
|||||||
# -*- coding: utf-8 -*-
|
"""
|
||||||
|
novelWriter – Dialogs Init
|
||||||
|
==========================
|
||||||
|
|
||||||
|
This file is a part of novelWriter
|
||||||
|
Copyright 2018–2021, Veronica Berglyd Olsen
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
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 <https://www.gnu.org/licenses/>.
|
||||||
|
"""
|
||||||
|
|
||||||
from nw.dialogs.about import GuiAbout
|
from nw.dialogs.about import GuiAbout
|
||||||
from nw.dialogs.docmerge import GuiDocMerge
|
from nw.dialogs.docmerge import GuiDocMerge
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI About Box
|
novelWriter – GUI About Box
|
||||||
===========================
|
===========================
|
||||||
@@ -39,6 +38,7 @@ from PyQt5.QtWidgets import (
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiAbout(QDialog):
|
class GuiAbout(QDialog):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Doc Merge Tool
|
novelWriter – GUI Doc Merge Tool
|
||||||
================================
|
================================
|
||||||
@@ -39,6 +38,7 @@ from nw.gui.custom import QHelpLabel
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiDocMerge(QDialog):
|
class GuiDocMerge(QDialog):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Doc Split Tool
|
novelWriter – GUI Doc Split Tool
|
||||||
================================
|
================================
|
||||||
@@ -40,6 +39,7 @@ from nw.gui.custom import QHelpLabel
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiDocSplit(QDialog):
|
class GuiDocSplit(QDialog):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Item Editor
|
novelWriter – GUI Item Editor
|
||||||
=============================
|
=============================
|
||||||
@@ -39,6 +38,7 @@ from nw.gui.custom import QSwitch
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiItemEditor(QDialog):
|
class GuiItemEditor(QDialog):
|
||||||
|
|
||||||
def __init__(self, theParent, tHandle):
|
def __init__(self, theParent, tHandle):
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Preferences
|
novelWriter – GUI Preferences
|
||||||
=============================
|
=============================
|
||||||
@@ -43,6 +42,7 @@ from nw.dialogs.quotes import GuiQuoteSelect
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiPreferences(PagedDialog):
|
class GuiPreferences(PagedDialog):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -134,6 +134,7 @@ class GuiPreferences(PagedDialog):
|
|||||||
|
|
||||||
# END Class GuiPreferences
|
# END Class GuiPreferences
|
||||||
|
|
||||||
|
|
||||||
class GuiPreferencesGeneral(QWidget):
|
class GuiPreferencesGeneral(QWidget):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -319,6 +320,7 @@ class GuiPreferencesGeneral(QWidget):
|
|||||||
|
|
||||||
# END Class GuiPreferencesGeneral
|
# END Class GuiPreferencesGeneral
|
||||||
|
|
||||||
|
|
||||||
class GuiPreferencesProjects(QWidget):
|
class GuiPreferencesProjects(QWidget):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -479,6 +481,7 @@ class GuiPreferencesProjects(QWidget):
|
|||||||
|
|
||||||
# END Class GuiPreferencesProjects
|
# END Class GuiPreferencesProjects
|
||||||
|
|
||||||
|
|
||||||
class GuiPreferencesDocuments(QWidget):
|
class GuiPreferencesDocuments(QWidget):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -649,6 +652,7 @@ class GuiPreferencesDocuments(QWidget):
|
|||||||
|
|
||||||
# END Class GuiPreferencesDocuments
|
# END Class GuiPreferencesDocuments
|
||||||
|
|
||||||
|
|
||||||
class GuiPreferencesEditor(QWidget):
|
class GuiPreferencesEditor(QWidget):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -849,6 +853,7 @@ class GuiPreferencesEditor(QWidget):
|
|||||||
|
|
||||||
# END Class GuiPreferencesEditor
|
# END Class GuiPreferencesEditor
|
||||||
|
|
||||||
|
|
||||||
class GuiPreferencesSyntax(QWidget):
|
class GuiPreferencesSyntax(QWidget):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -973,6 +978,7 @@ class GuiPreferencesSyntax(QWidget):
|
|||||||
|
|
||||||
# END Class GuiPreferencesSyntax
|
# END Class GuiPreferencesSyntax
|
||||||
|
|
||||||
|
|
||||||
class GuiPreferencesAutomation(QWidget):
|
class GuiPreferencesAutomation(QWidget):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -1129,6 +1135,7 @@ class GuiPreferencesAutomation(QWidget):
|
|||||||
|
|
||||||
# END Class GuiPreferencesAutomation
|
# END Class GuiPreferencesAutomation
|
||||||
|
|
||||||
|
|
||||||
class GuiPreferencesQuotes(QWidget):
|
class GuiPreferencesQuotes(QWidget):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Open Project
|
novelWriter – GUI Open Project
|
||||||
==============================
|
==============================
|
||||||
@@ -43,6 +42,7 @@ from nw.constants import nwFiles
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectLoad(QDialog):
|
class GuiProjectLoad(QDialog):
|
||||||
|
|
||||||
NONE_STATE = 0
|
NONE_STATE = 0
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Project Settings
|
novelWriter – GUI Project Settings
|
||||||
==================================
|
==================================
|
||||||
@@ -40,6 +39,7 @@ from nw.gui.custom import QSwitch, PagedDialog, QConfigLayout
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectSettings(PagedDialog):
|
class GuiProjectSettings(PagedDialog):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -156,6 +156,7 @@ class GuiProjectSettings(PagedDialog):
|
|||||||
|
|
||||||
# END Class GuiProjectSettings
|
# END Class GuiProjectSettings
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectEditMain(QWidget):
|
class GuiProjectEditMain(QWidget):
|
||||||
|
|
||||||
def __init__(self, theParent, theProject):
|
def __init__(self, theParent, theProject):
|
||||||
@@ -239,6 +240,7 @@ class GuiProjectEditMain(QWidget):
|
|||||||
|
|
||||||
# END Class GuiProjectEditMain
|
# END Class GuiProjectEditMain
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectEditStatus(QWidget):
|
class GuiProjectEditStatus(QWidget):
|
||||||
|
|
||||||
COL_LABEL = 0
|
COL_LABEL = 0
|
||||||
@@ -487,6 +489,7 @@ class GuiProjectEditStatus(QWidget):
|
|||||||
|
|
||||||
# END Class GuiProjectEditStatus
|
# END Class GuiProjectEditStatus
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectEditReplace(QWidget):
|
class GuiProjectEditReplace(QWidget):
|
||||||
|
|
||||||
COL_KEY = 0
|
COL_KEY = 0
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Quotes Dialog
|
novelWriter – GUI Quotes Dialog
|
||||||
===============================
|
===============================
|
||||||
@@ -38,6 +37,7 @@ from nw.constants import trConst, nwQuotes
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiQuoteSelect(QDialog):
|
class GuiQuoteSelect(QDialog):
|
||||||
|
|
||||||
selectedQuote = ""
|
selectedQuote = ""
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI User Wordlist
|
novelWriter – GUI User Wordlist
|
||||||
===============================
|
===============================
|
||||||
@@ -39,6 +38,7 @@ from nw.constants import nwFiles
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiWordList(QDialog):
|
class GuiWordList(QDialog):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
|
|||||||
+9
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Enums
|
novelWriter – Enums
|
||||||
===================
|
===================
|
||||||
@@ -26,6 +25,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class nwItemType(Enum):
|
class nwItemType(Enum):
|
||||||
|
|
||||||
NO_TYPE = 0
|
NO_TYPE = 0
|
||||||
@@ -36,6 +36,7 @@ class nwItemType(Enum):
|
|||||||
|
|
||||||
# END Enum nwItemType
|
# END Enum nwItemType
|
||||||
|
|
||||||
|
|
||||||
class nwItemClass(Enum):
|
class nwItemClass(Enum):
|
||||||
|
|
||||||
NO_CLASS = 0
|
NO_CLASS = 0
|
||||||
@@ -52,6 +53,7 @@ class nwItemClass(Enum):
|
|||||||
|
|
||||||
# END Enum nwItemClass
|
# END Enum nwItemClass
|
||||||
|
|
||||||
|
|
||||||
class nwItemLayout(Enum):
|
class nwItemLayout(Enum):
|
||||||
|
|
||||||
NO_LAYOUT = 0
|
NO_LAYOUT = 0
|
||||||
@@ -66,6 +68,7 @@ class nwItemLayout(Enum):
|
|||||||
|
|
||||||
# END Enum nwItemLayout
|
# END Enum nwItemLayout
|
||||||
|
|
||||||
|
|
||||||
class nwDocAction(Enum):
|
class nwDocAction(Enum):
|
||||||
|
|
||||||
NO_ACTION = 0
|
NO_ACTION = 0
|
||||||
@@ -98,6 +101,7 @@ class nwDocAction(Enum):
|
|||||||
|
|
||||||
# END Enum nwDocAction
|
# END Enum nwDocAction
|
||||||
|
|
||||||
|
|
||||||
class nwDocInsert(Enum):
|
class nwDocInsert(Enum):
|
||||||
|
|
||||||
NO_INSERT = 0
|
NO_INSERT = 0
|
||||||
@@ -108,6 +112,7 @@ class nwDocInsert(Enum):
|
|||||||
|
|
||||||
# END Enum nwDocInsert
|
# END Enum nwDocInsert
|
||||||
|
|
||||||
|
|
||||||
class nwAlert(Enum):
|
class nwAlert(Enum):
|
||||||
|
|
||||||
INFO = 0
|
INFO = 0
|
||||||
@@ -117,6 +122,7 @@ class nwAlert(Enum):
|
|||||||
|
|
||||||
# END Enum nwAlert
|
# END Enum nwAlert
|
||||||
|
|
||||||
|
|
||||||
class nwState(Enum):
|
class nwState(Enum):
|
||||||
|
|
||||||
NONE = 0
|
NONE = 0
|
||||||
@@ -125,6 +131,7 @@ class nwState(Enum):
|
|||||||
|
|
||||||
# END Enum nwState
|
# END Enum nwState
|
||||||
|
|
||||||
|
|
||||||
class nwWidget(Enum):
|
class nwWidget(Enum):
|
||||||
|
|
||||||
TREE = 1
|
TREE = 1
|
||||||
@@ -134,6 +141,7 @@ class nwWidget(Enum):
|
|||||||
|
|
||||||
# END Enum nwWidget
|
# END Enum nwWidget
|
||||||
|
|
||||||
|
|
||||||
class nwOutline(Enum):
|
class nwOutline(Enum):
|
||||||
|
|
||||||
TITLE = 0
|
TITLE = 0
|
||||||
|
|||||||
+3
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Exception Handling
|
novelWriter – Exception Handling
|
||||||
================================
|
================================
|
||||||
@@ -35,6 +34,7 @@ from PyQt5.QtWidgets import (
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Utility Functions
|
# Utility Functions
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
@@ -45,6 +45,7 @@ def logException():
|
|||||||
exType, exValue, _ = sys.exc_info()
|
exType, exValue, _ = sys.exc_info()
|
||||||
logger.error("%s: %s" % (exType.__name__, str(exValue).strip("'")))
|
logger.error("%s: %s" % (exType.__name__, str(exValue).strip("'")))
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Error Handler
|
# Error Handler
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
@@ -151,6 +152,7 @@ class NWErrorMessage(QDialog):
|
|||||||
|
|
||||||
# END Class NWErrorMessage
|
# END Class NWErrorMessage
|
||||||
|
|
||||||
|
|
||||||
def exceptionHandler(exType, exValue, exTrace):
|
def exceptionHandler(exType, exValue, exTrace):
|
||||||
"""Function to catch unhandled global exceptions.
|
"""Function to catch unhandled global exceptions.
|
||||||
"""
|
"""
|
||||||
|
|||||||
+20
-1
@@ -1,4 +1,23 @@
|
|||||||
# -*- coding: utf-8 -*-
|
"""
|
||||||
|
novelWriter – GUI Init
|
||||||
|
======================
|
||||||
|
|
||||||
|
This file is a part of novelWriter
|
||||||
|
Copyright 2018–2021, Veronica Berglyd Olsen
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
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 <https://www.gnu.org/licenses/>.
|
||||||
|
"""
|
||||||
|
|
||||||
from nw.gui.doceditor import GuiDocEditor
|
from nw.gui.doceditor import GuiDocEditor
|
||||||
from nw.gui.docviewer import GuiDocViewer, GuiDocViewDetails
|
from nw.gui.docviewer import GuiDocViewer, GuiDocViewDetails
|
||||||
|
|||||||
+5
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Custom Widgets and Layouts
|
novelWriter – Custom Widgets and Layouts
|
||||||
========================================
|
========================================
|
||||||
@@ -43,6 +42,7 @@ from nw.constants import nwUnicode
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Config Form Layout
|
# Config Form Layout
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
@@ -198,6 +198,7 @@ class QConfigLayout(QGridLayout):
|
|||||||
|
|
||||||
# END Class QConfigLayout
|
# END Class QConfigLayout
|
||||||
|
|
||||||
|
|
||||||
class QHelpLabel(QLabel):
|
class QHelpLabel(QLabel):
|
||||||
|
|
||||||
def __init__(self, theText, textCol, fontSize=0.9):
|
def __init__(self, theText, textCol, fontSize=0.9):
|
||||||
@@ -223,6 +224,7 @@ class QHelpLabel(QLabel):
|
|||||||
|
|
||||||
# END Class QHelpLabel
|
# END Class QHelpLabel
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Switch Widget
|
# Switch Widget
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
@@ -367,6 +369,7 @@ class QSwitch(QAbstractButton):
|
|||||||
|
|
||||||
# END Class QSwitch
|
# END Class QSwitch
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Paged Dialog w/Custom TabWidget
|
# Paged Dialog w/Custom TabWidget
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
@@ -417,6 +420,7 @@ class PagedDialog(QDialog):
|
|||||||
|
|
||||||
# END Class PagedDialog
|
# END Class PagedDialog
|
||||||
|
|
||||||
|
|
||||||
class VerticalTabBar(QTabBar):
|
class VerticalTabBar(QTabBar):
|
||||||
|
|
||||||
def __init__(self, theParent=None):
|
def __init__(self, theParent=None):
|
||||||
|
|||||||
+6
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Document Editor
|
novelWriter – GUI Document Editor
|
||||||
=================================
|
=================================
|
||||||
@@ -57,6 +56,7 @@ from nw.gui.dochighlight import GuiDocHighlighter
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiDocEditor(QTextEdit):
|
class GuiDocEditor(QTextEdit):
|
||||||
|
|
||||||
MOVE_KEYS = (
|
MOVE_KEYS = (
|
||||||
@@ -1931,6 +1931,7 @@ class GuiDocEditor(QTextEdit):
|
|||||||
|
|
||||||
# END Class GuiDocEditor
|
# END Class GuiDocEditor
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# The Off-GUI Thread Word Counter
|
# The Off-GUI Thread Word Counter
|
||||||
# A runnable for the word counter to be run in the thread pool off the main GUI thread.
|
# A runnable for the word counter to be run in the thread pool off the main GUI thread.
|
||||||
@@ -1962,6 +1963,7 @@ class BackgroundWordCounter(QRunnable):
|
|||||||
|
|
||||||
## END Class BackgroundWordCounter
|
## END Class BackgroundWordCounter
|
||||||
|
|
||||||
|
|
||||||
class BackgroundWordCounterSignals(QObject):
|
class BackgroundWordCounterSignals(QObject):
|
||||||
"""The QRunnable cannot emit a signal, so we need a simple QObject
|
"""The QRunnable cannot emit a signal, so we need a simple QObject
|
||||||
to hold the word counter signal.
|
to hold the word counter signal.
|
||||||
@@ -1970,6 +1972,7 @@ class BackgroundWordCounterSignals(QObject):
|
|||||||
|
|
||||||
# END Class BackgroundWordCounterSignals
|
# END Class BackgroundWordCounterSignals
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# The Embedded Document Search/Replace Feature
|
# The Embedded Document Search/Replace Feature
|
||||||
# Only used by DocEditor, and is at a fixed position in the QTextEdit's viewport
|
# Only used by DocEditor, and is at a fixed position in the QTextEdit's viewport
|
||||||
@@ -2345,6 +2348,7 @@ class GuiDocEditSearch(QFrame):
|
|||||||
|
|
||||||
# END Class GuiDocEditSearch
|
# END Class GuiDocEditSearch
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# The Embedded Document Header
|
# The Embedded Document Header
|
||||||
# Only used by DocEditor, and is at a fixed position in the QTextEdit's viewport
|
# Only used by DocEditor, and is at a fixed position in the QTextEdit's viewport
|
||||||
@@ -2567,6 +2571,7 @@ class GuiDocEditHeader(QWidget):
|
|||||||
|
|
||||||
# END Class GuiDocEditHeader
|
# END Class GuiDocEditHeader
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# The Embedded Document Footer
|
# The Embedded Document Footer
|
||||||
# Only used by DocEditor, and is at a fixed position in the QTextEdit's viewport
|
# Only used by DocEditor, and is at a fixed position in the QTextEdit's viewport
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Syntax Highlighter
|
novelWriter – GUI Syntax Highlighter
|
||||||
====================================
|
====================================
|
||||||
@@ -38,6 +37,7 @@ from nw.constants import nwRegEx, nwUnicode
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiDocHighlighter(QSyntaxHighlighter):
|
class GuiDocHighlighter(QSyntaxHighlighter):
|
||||||
|
|
||||||
BLOCK_NONE = 0
|
BLOCK_NONE = 0
|
||||||
|
|||||||
+5
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Document Viewer
|
novelWriter – GUI Document Viewer
|
||||||
=================================
|
=================================
|
||||||
@@ -46,6 +45,7 @@ from nw.constants import nwUnicode
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiDocViewer(QTextBrowser):
|
class GuiDocViewer(QTextBrowser):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -571,6 +571,7 @@ class GuiDocViewer(QTextBrowser):
|
|||||||
|
|
||||||
# END Class GuiDocViewer
|
# END Class GuiDocViewer
|
||||||
|
|
||||||
|
|
||||||
class GuiDocViewHistory():
|
class GuiDocViewHistory():
|
||||||
|
|
||||||
def __init__(self, docViewer):
|
def __init__(self, docViewer):
|
||||||
@@ -702,6 +703,7 @@ class GuiDocViewHistory():
|
|||||||
|
|
||||||
# END Class GuiDocViewHistory
|
# END Class GuiDocViewHistory
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# The Embedded Document Header
|
# The Embedded Document Header
|
||||||
# Only used by DocViewer, and is at a fixed position in the QTextBrowser's viewport
|
# Only used by DocViewer, and is at a fixed position in the QTextBrowser's viewport
|
||||||
@@ -908,6 +910,7 @@ class GuiDocViewHeader(QWidget):
|
|||||||
|
|
||||||
# END Class GuiDocViewHeader
|
# END Class GuiDocViewHeader
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# The Embedded Document Footer
|
# The Embedded Document Footer
|
||||||
# Only used by DocViewer, and is at a fixed position in the QTextBrowser's viewport
|
# Only used by DocViewer, and is at a fixed position in the QTextBrowser's viewport
|
||||||
@@ -1133,6 +1136,7 @@ class GuiDocViewFooter(QWidget):
|
|||||||
|
|
||||||
# END Class GuiDocViewFooter
|
# END Class GuiDocViewFooter
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# The Document Back-Reference Panel
|
# The Document Back-Reference Panel
|
||||||
# Placed in a separate QSplitter position in the main GUI window
|
# Placed in a separate QSplitter position in the main GUI window
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Item Details Panel
|
novelWriter – GUI Item Details Panel
|
||||||
====================================
|
====================================
|
||||||
@@ -36,6 +35,7 @@ from nw.constants import trConst, nwLabels
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiItemDetails(QWidget):
|
class GuiItemDetails(QWidget):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Main Menu
|
novelWriter – GUI Main Menu
|
||||||
===========================
|
===========================
|
||||||
@@ -36,6 +35,7 @@ from nw.constants import trConst, nwKeyWords, nwLabels, nwUnicode
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiMainMenu(QMenuBar):
|
class GuiMainMenu(QMenuBar):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Novel Tree
|
novelWriter – GUI Novel Tree
|
||||||
============================
|
============================
|
||||||
@@ -37,6 +36,7 @@ from nw.constants import nwKeyWords
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiNovelTree(QTreeWidget):
|
class GuiNovelTree(QTreeWidget):
|
||||||
|
|
||||||
C_TITLE = 0
|
C_TITLE = 0
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Project Outline
|
novelWriter – GUI Project Outline
|
||||||
=================================
|
=================================
|
||||||
@@ -39,6 +38,7 @@ from nw.constants import trConst, nwKeyWords, nwLabels
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiOutline(QTreeWidget):
|
class GuiOutline(QTreeWidget):
|
||||||
|
|
||||||
DEF_WIDTH = {
|
DEF_WIDTH = {
|
||||||
@@ -467,6 +467,7 @@ class GuiOutline(QTreeWidget):
|
|||||||
|
|
||||||
# END Class GuiOutline
|
# END Class GuiOutline
|
||||||
|
|
||||||
|
|
||||||
class GuiOutlineHeaderMenu(QMenu):
|
class GuiOutlineHeaderMenu(QMenu):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Project Outline Details
|
novelWriter – GUI Project Outline Details
|
||||||
=========================================
|
=========================================
|
||||||
@@ -37,6 +36,7 @@ from nw.constants import trConst, nwKeyWords, nwLabels
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiOutlineDetails(QScrollArea):
|
class GuiOutlineDetails(QScrollArea):
|
||||||
|
|
||||||
LVL_MAP = {
|
LVL_MAP = {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Project Details
|
novelWriter – GUI Project Details
|
||||||
=================================
|
=================================
|
||||||
@@ -41,6 +40,7 @@ from nw.gui.custom import PagedDialog, QSwitch
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectDetails(PagedDialog):
|
class GuiProjectDetails(PagedDialog):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -128,6 +128,7 @@ class GuiProjectDetails(PagedDialog):
|
|||||||
|
|
||||||
# END Class GuiProjectDetails
|
# END Class GuiProjectDetails
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectDetailsMain(QWidget):
|
class GuiProjectDetailsMain(QWidget):
|
||||||
|
|
||||||
def __init__(self, theParent, theProject):
|
def __init__(self, theParent, theProject):
|
||||||
@@ -241,6 +242,7 @@ class GuiProjectDetailsMain(QWidget):
|
|||||||
|
|
||||||
# END Class GuiProjectDetailsMain
|
# END Class GuiProjectDetailsMain
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectDetailsContents(QWidget):
|
class GuiProjectDetailsContents(QWidget):
|
||||||
|
|
||||||
C_TITLE = 0
|
C_TITLE = 0
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Project Tree
|
novelWriter – GUI Project Tree
|
||||||
==============================
|
==============================
|
||||||
@@ -42,6 +41,7 @@ from nw.constants import nwConst, trConst, nwLists, nwLabels
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectTree(QTreeWidget):
|
class GuiProjectTree(QTreeWidget):
|
||||||
|
|
||||||
C_NAME = 0
|
C_NAME = 0
|
||||||
@@ -1102,6 +1102,7 @@ class GuiProjectTree(QTreeWidget):
|
|||||||
|
|
||||||
# END Class GuiProjectTree
|
# END Class GuiProjectTree
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectTreeMenu(QMenu):
|
class GuiProjectTreeMenu(QMenu):
|
||||||
|
|
||||||
def __init__(self, theTree):
|
def __init__(self, theTree):
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Main Window Status Bar
|
novelWriter – GUI Main Window Status Bar
|
||||||
========================================
|
========================================
|
||||||
@@ -38,6 +37,7 @@ from nw.enum import nwState
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiMainStatus(QStatusBar):
|
class GuiMainStatus(QStatusBar):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -235,6 +235,7 @@ class GuiMainStatus(QStatusBar):
|
|||||||
|
|
||||||
# END Class GuiMainStatus
|
# END Class GuiMainStatus
|
||||||
|
|
||||||
|
|
||||||
class StatusLED(QAbstractButton):
|
class StatusLED(QAbstractButton):
|
||||||
|
|
||||||
def __init__(self, colNone, colGood, colBad, sW, sH, parent=None):
|
def __init__(self, colNone, colGood, colBad, sW, sH, parent=None):
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Theme and Icons Classes
|
novelWriter – Theme and Icons Classes
|
||||||
=====================================
|
=====================================
|
||||||
@@ -43,6 +42,7 @@ from nw.enum import nwAlert
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Gui Theme Class
|
# Gui Theme Class
|
||||||
# Handles the look and feel of novelWriter
|
# Handles the look and feel of novelWriter
|
||||||
@@ -496,6 +496,7 @@ class GuiTheme:
|
|||||||
|
|
||||||
# End Class GuiTheme
|
# End Class GuiTheme
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
# Icons Class
|
# Icons Class
|
||||||
# =============================================================================================== #
|
# =============================================================================================== #
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Main Window
|
novelWriter – GUI Main Window
|
||||||
=============================
|
=============================
|
||||||
@@ -55,6 +54,7 @@ from nw.constants import nwLists
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiMain(QMainWindow):
|
class GuiMain(QMainWindow):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|||||||
+20
-1
@@ -1,4 +1,23 @@
|
|||||||
# -*- coding: utf-8 -*-
|
"""
|
||||||
|
novelWriter – Tools Init
|
||||||
|
========================
|
||||||
|
|
||||||
|
This file is a part of novelWriter
|
||||||
|
Copyright 2018–2021, Veronica Berglyd Olsen
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
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 <https://www.gnu.org/licenses/>.
|
||||||
|
"""
|
||||||
|
|
||||||
from nw.tools.build import GuiBuildNovel
|
from nw.tools.build import GuiBuildNovel
|
||||||
from nw.tools.projwizard import GuiProjectWizard
|
from nw.tools.projwizard import GuiProjectWizard
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Build Novel Project
|
novelWriter – GUI Build Novel Project
|
||||||
=====================================
|
=====================================
|
||||||
@@ -52,6 +51,7 @@ from nw.gui.custom import QSwitch
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiBuildNovel(QDialog):
|
class GuiBuildNovel(QDialog):
|
||||||
|
|
||||||
FMT_PDF = 1 # Print to PDF
|
FMT_PDF = 1 # Print to PDF
|
||||||
@@ -1182,6 +1182,7 @@ class GuiBuildNovel(QDialog):
|
|||||||
|
|
||||||
# END Class GuiBuildNovel
|
# END Class GuiBuildNovel
|
||||||
|
|
||||||
|
|
||||||
class GuiBuildNovelDocView(QTextBrowser):
|
class GuiBuildNovelDocView(QTextBrowser):
|
||||||
|
|
||||||
def __init__(self, theParent, theProject):
|
def __init__(self, theParent, theProject):
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI New Project Wizard
|
novelWriter – GUI New Project Wizard
|
||||||
====================================
|
====================================
|
||||||
@@ -48,6 +47,7 @@ PAGE_POP = 2
|
|||||||
PAGE_CUSTOM = 3
|
PAGE_CUSTOM = 3
|
||||||
PAGE_FINAL = 4
|
PAGE_FINAL = 4
|
||||||
|
|
||||||
|
|
||||||
class GuiProjectWizard(QWizard):
|
class GuiProjectWizard(QWizard):
|
||||||
|
|
||||||
def __init__(self, theParent):
|
def __init__(self, theParent):
|
||||||
@@ -86,6 +86,7 @@ class GuiProjectWizard(QWizard):
|
|||||||
|
|
||||||
# END Class GuiProjectWizard
|
# END Class GuiProjectWizard
|
||||||
|
|
||||||
|
|
||||||
class ProjWizardIntroPage(QWizardPage):
|
class ProjWizardIntroPage(QWizardPage):
|
||||||
|
|
||||||
def __init__(self, theWizard):
|
def __init__(self, theWizard):
|
||||||
@@ -155,6 +156,7 @@ class ProjWizardIntroPage(QWizardPage):
|
|||||||
|
|
||||||
# END Class ProjWizardIntroPage
|
# END Class ProjWizardIntroPage
|
||||||
|
|
||||||
|
|
||||||
class ProjWizardFolderPage(QWizardPage):
|
class ProjWizardFolderPage(QWizardPage):
|
||||||
|
|
||||||
def __init__(self, theWizard):
|
def __init__(self, theWizard):
|
||||||
@@ -227,6 +229,7 @@ class ProjWizardFolderPage(QWizardPage):
|
|||||||
|
|
||||||
# END Class ProjWizardFolderPage
|
# END Class ProjWizardFolderPage
|
||||||
|
|
||||||
|
|
||||||
class ProjWizardPopulatePage(QWizardPage):
|
class ProjWizardPopulatePage(QWizardPage):
|
||||||
|
|
||||||
def __init__(self, theWizard):
|
def __init__(self, theWizard):
|
||||||
@@ -282,6 +285,7 @@ class ProjWizardPopulatePage(QWizardPage):
|
|||||||
|
|
||||||
# END Class ProjWizardPopulatePage
|
# END Class ProjWizardPopulatePage
|
||||||
|
|
||||||
|
|
||||||
class ProjWizardCustomPage(QWizardPage):
|
class ProjWizardCustomPage(QWizardPage):
|
||||||
|
|
||||||
def __init__(self, theWizard):
|
def __init__(self, theWizard):
|
||||||
@@ -400,6 +404,7 @@ class ProjWizardCustomPage(QWizardPage):
|
|||||||
|
|
||||||
# END Class ProjWizardCustomPage
|
# END Class ProjWizardCustomPage
|
||||||
|
|
||||||
|
|
||||||
class ProjWizardFinalPage(QWizardPage):
|
class ProjWizardFinalPage(QWizardPage):
|
||||||
|
|
||||||
def __init__(self, theWizard):
|
def __init__(self, theWizard):
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – GUI Writing Statistics
|
novelWriter – GUI Writing Statistics
|
||||||
====================================
|
====================================
|
||||||
@@ -45,6 +44,7 @@ from nw.gui.custom import QSwitch
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class GuiWritingStats(QDialog):
|
class GuiWritingStats(QDialog):
|
||||||
|
|
||||||
C_TIME = 0
|
C_TIME = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user