Add mentions to outline

This commit is contained in:
Veronica Berglyd Olsen
2024-10-24 23:57:39 +02:00
parent 88aa3f38c2
commit 46ecb2cf70
3 changed files with 83 additions and 78 deletions
+2
View File
@@ -247,6 +247,7 @@ class nwLabels:
nwKeyWords.OBJECT_KEY: QT_TRANSLATE_NOOP("Constant", "Objects"), nwKeyWords.OBJECT_KEY: QT_TRANSLATE_NOOP("Constant", "Objects"),
nwKeyWords.ENTITY_KEY: QT_TRANSLATE_NOOP("Constant", "Entities"), nwKeyWords.ENTITY_KEY: QT_TRANSLATE_NOOP("Constant", "Entities"),
nwKeyWords.CUSTOM_KEY: QT_TRANSLATE_NOOP("Constant", "Custom"), nwKeyWords.CUSTOM_KEY: QT_TRANSLATE_NOOP("Constant", "Custom"),
nwKeyWords.MENTION_KEY: QT_TRANSLATE_NOOP("Constant", "Mentions"),
} }
OUTLINE_COLS = { OUTLINE_COLS = {
nwOutline.TITLE: QT_TRANSLATE_NOOP("Constant", "Title"), nwOutline.TITLE: QT_TRANSLATE_NOOP("Constant", "Title"),
@@ -265,6 +266,7 @@ class nwLabels:
nwOutline.OBJECT: KEY_NAME[nwKeyWords.OBJECT_KEY], nwOutline.OBJECT: KEY_NAME[nwKeyWords.OBJECT_KEY],
nwOutline.ENTITY: KEY_NAME[nwKeyWords.ENTITY_KEY], nwOutline.ENTITY: KEY_NAME[nwKeyWords.ENTITY_KEY],
nwOutline.CUSTOM: KEY_NAME[nwKeyWords.CUSTOM_KEY], nwOutline.CUSTOM: KEY_NAME[nwKeyWords.CUSTOM_KEY],
nwOutline.MENTION: KEY_NAME[nwKeyWords.MENTION_KEY],
nwOutline.SYNOP: QT_TRANSLATE_NOOP("Constant", "Synopsis"), nwOutline.SYNOP: QT_TRANSLATE_NOOP("Constant", "Synopsis"),
} }
BUILD_FMT = { BUILD_FMT = {
+2 -1
View File
@@ -174,7 +174,8 @@ class nwOutline(Enum):
OBJECT = 13 OBJECT = 13
ENTITY = 14 ENTITY = 14
CUSTOM = 15 CUSTOM = 15
SYNOP = 16 MENTION = 16
SYNOP = 17
class nwBuildFmt(Enum): class nwBuildFmt(Enum):
+2
View File
@@ -328,6 +328,7 @@ class GuiOutlineTree(QTreeWidget):
nwOutline.OBJECT: 100, nwOutline.OBJECT: 100,
nwOutline.ENTITY: 100, nwOutline.ENTITY: 100,
nwOutline.CUSTOM: 100, nwOutline.CUSTOM: 100,
nwOutline.MENTION: 100,
nwOutline.SYNOP: 200, nwOutline.SYNOP: 200,
} }
@@ -348,6 +349,7 @@ class GuiOutlineTree(QTreeWidget):
nwOutline.OBJECT: True, nwOutline.OBJECT: True,
nwOutline.ENTITY: True, nwOutline.ENTITY: True,
nwOutline.CUSTOM: True, nwOutline.CUSTOM: True,
nwOutline.MENTION: True,
nwOutline.SYNOP: False, nwOutline.SYNOP: False,
} }