Added Outline enums and column labels to constants submodule
This commit is contained in:
@@ -4,7 +4,7 @@ from nw.constants.constants import (
|
|||||||
nwConst, nwFiles, nwKeyWords, nwLabels, nwDependencies, nwQuotes, nwUnicode
|
nwConst, nwFiles, nwKeyWords, nwLabels, nwDependencies, nwQuotes, nwUnicode
|
||||||
)
|
)
|
||||||
from nw.constants.enum import (
|
from nw.constants.enum import (
|
||||||
nwAlert, nwDocAction, nwItemClass, nwItemLayout, nwItemType
|
nwAlert, nwDocAction, nwItemClass, nwItemLayout, nwItemType, nwOutline
|
||||||
)
|
)
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
@@ -22,4 +22,5 @@ __all__ = [
|
|||||||
"nwItemClass",
|
"nwItemClass",
|
||||||
"nwItemLayout",
|
"nwItemLayout",
|
||||||
"nwItemType",
|
"nwItemType",
|
||||||
|
"nwOutline",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from nw.constants.enum import nwItemClass, nwItemLayout
|
from nw.constants.enum import nwItemClass, nwItemLayout, nwOutline
|
||||||
|
|
||||||
class nwConst():
|
class nwConst():
|
||||||
|
|
||||||
@@ -104,6 +104,24 @@ class nwLabels():
|
|||||||
nwKeyWords.ENTITY_KEY : "Entities",
|
nwKeyWords.ENTITY_KEY : "Entities",
|
||||||
nwKeyWords.CUSTOM_KEY : "Custom",
|
nwKeyWords.CUSTOM_KEY : "Custom",
|
||||||
}
|
}
|
||||||
|
OUTLINE_COLS = {
|
||||||
|
nwOutline.TITLE : "Title",
|
||||||
|
nwOutline.LEVEL : "Level",
|
||||||
|
nwOutline.LABEL : "Document",
|
||||||
|
nwOutline.LINE : "Line",
|
||||||
|
nwOutline.CCOUNT : "Chars",
|
||||||
|
nwOutline.WCOUNT : "Words",
|
||||||
|
nwOutline.PCOUNT : "Pars",
|
||||||
|
nwOutline.POV : "POV",
|
||||||
|
nwOutline.CHAR : KEY_NAME[nwKeyWords.CHAR_KEY],
|
||||||
|
nwOutline.PLOT : KEY_NAME[nwKeyWords.PLOT_KEY],
|
||||||
|
nwOutline.TIME : KEY_NAME[nwKeyWords.TIME_KEY],
|
||||||
|
nwOutline.WORLD : KEY_NAME[nwKeyWords.WORLD_KEY],
|
||||||
|
nwOutline.OBJECT : KEY_NAME[nwKeyWords.OBJECT_KEY],
|
||||||
|
nwOutline.ENTITY : KEY_NAME[nwKeyWords.ENTITY_KEY],
|
||||||
|
nwOutline.CUSTOM : KEY_NAME[nwKeyWords.CUSTOM_KEY],
|
||||||
|
nwOutline.SYNOP : "Synopsis",
|
||||||
|
}
|
||||||
|
|
||||||
# END Class nwLabels
|
# END Class nwLabels
|
||||||
|
|
||||||
|
|||||||
@@ -88,3 +88,24 @@ class nwAlert(Enum):
|
|||||||
BUG = 3
|
BUG = 3
|
||||||
|
|
||||||
# END Enum nwAlert
|
# END Enum nwAlert
|
||||||
|
|
||||||
|
class nwOutline(Enum):
|
||||||
|
|
||||||
|
TITLE = 0
|
||||||
|
LEVEL = 1
|
||||||
|
LABEL = 2
|
||||||
|
LINE = 3
|
||||||
|
CCOUNT = 4
|
||||||
|
WCOUNT = 5
|
||||||
|
PCOUNT = 6
|
||||||
|
POV = 7
|
||||||
|
CHAR = 8
|
||||||
|
PLOT = 9
|
||||||
|
TIME = 10
|
||||||
|
WORLD = 11
|
||||||
|
OBJECT = 12
|
||||||
|
ENTITY = 13
|
||||||
|
CUSTOM = 14
|
||||||
|
SYNOP = 15
|
||||||
|
|
||||||
|
# END Enum nwOutline
|
||||||
|
|||||||
Reference in New Issue
Block a user