Add mentions to outline
This commit is contained in:
@@ -247,6 +247,7 @@ class nwLabels:
|
||||
nwKeyWords.OBJECT_KEY: QT_TRANSLATE_NOOP("Constant", "Objects"),
|
||||
nwKeyWords.ENTITY_KEY: QT_TRANSLATE_NOOP("Constant", "Entities"),
|
||||
nwKeyWords.CUSTOM_KEY: QT_TRANSLATE_NOOP("Constant", "Custom"),
|
||||
nwKeyWords.MENTION_KEY: QT_TRANSLATE_NOOP("Constant", "Mentions"),
|
||||
}
|
||||
OUTLINE_COLS = {
|
||||
nwOutline.TITLE: QT_TRANSLATE_NOOP("Constant", "Title"),
|
||||
@@ -265,6 +266,7 @@ class nwLabels:
|
||||
nwOutline.OBJECT: KEY_NAME[nwKeyWords.OBJECT_KEY],
|
||||
nwOutline.ENTITY: KEY_NAME[nwKeyWords.ENTITY_KEY],
|
||||
nwOutline.CUSTOM: KEY_NAME[nwKeyWords.CUSTOM_KEY],
|
||||
nwOutline.MENTION: KEY_NAME[nwKeyWords.MENTION_KEY],
|
||||
nwOutline.SYNOP: QT_TRANSLATE_NOOP("Constant", "Synopsis"),
|
||||
}
|
||||
BUILD_FMT = {
|
||||
|
||||
+2
-1
@@ -174,7 +174,8 @@ class nwOutline(Enum):
|
||||
OBJECT = 13
|
||||
ENTITY = 14
|
||||
CUSTOM = 15
|
||||
SYNOP = 16
|
||||
MENTION = 16
|
||||
SYNOP = 17
|
||||
|
||||
|
||||
class nwBuildFmt(Enum):
|
||||
|
||||
@@ -328,6 +328,7 @@ class GuiOutlineTree(QTreeWidget):
|
||||
nwOutline.OBJECT: 100,
|
||||
nwOutline.ENTITY: 100,
|
||||
nwOutline.CUSTOM: 100,
|
||||
nwOutline.MENTION: 100,
|
||||
nwOutline.SYNOP: 200,
|
||||
}
|
||||
|
||||
@@ -348,6 +349,7 @@ class GuiOutlineTree(QTreeWidget):
|
||||
nwOutline.OBJECT: True,
|
||||
nwOutline.ENTITY: True,
|
||||
nwOutline.CUSTOM: True,
|
||||
nwOutline.MENTION: True,
|
||||
nwOutline.SYNOP: False,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user