manuskript/manuskript/enums.py

85 lines
1.4 KiB
Python
Raw Permalink Normal View History

2015-06-01 22:29:06 +12:00
#!/usr/bin/env python
2019-12-22 04:42:49 +13:00
# --!-- coding: utf8 --!--
2017-10-24 00:45:08 +13:00
2015-06-08 08:06:57 +12:00
2017-11-16 08:40:14 +13:00
from enum import IntEnum
2015-06-01 22:29:06 +12:00
2017-11-16 08:40:14 +13:00
class Character(IntEnum):
2015-06-01 22:29:06 +12:00
name = 0
ID = 1
importance = 2
motivation = 3
goal = 4
conflict = 5
epiphany = 6
summarySentence = 7
2015-06-01 22:29:06 +12:00
summaryPara = 8
summaryFull = 9
2015-06-02 10:06:17 +12:00
notes = 10
pov = 11
2019-12-22 04:42:49 +13:00
infos = 12
2017-10-24 00:45:08 +13:00
2017-11-16 08:40:14 +13:00
class Plot(IntEnum):
name = 0
ID = 1
importance = 2
characters = 3
description = 4
result = 5
2016-03-07 04:10:25 +13:00
steps = 6
2015-06-22 23:11:45 +12:00
summary = 7
2017-10-24 00:45:08 +13:00
2017-11-16 08:40:14 +13:00
class PlotStep(IntEnum):
2015-07-07 01:00:22 +12:00
name = 0
ID = 1
meta = 2
summary = 3
2017-10-24 00:45:08 +13:00
2017-11-16 08:40:14 +13:00
class World(IntEnum):
name = 0
ID = 1
description = 2
passion = 3
conflict = 4
2017-10-24 00:45:08 +13:00
2017-11-16 08:40:14 +13:00
class Outline(IntEnum):
2015-06-04 12:04:47 +12:00
title = 0
ID = 1
type = 2
2016-03-02 12:36:51 +13:00
summarySentence = 3
2015-06-04 12:04:47 +12:00
summaryFull = 4
POV = 5
notes = 6
2015-06-10 00:03:22 +12:00
label = 7
status = 8
compile = 9
text = 10
wordCount = 11
goal = 12
goalPercentage = 13
setGoal = 14 # The goal set by the user, if any. Can be different from goal which can be computed
2015-06-05 21:37:01 +12:00
# (sum of all sub-items' goals)
2015-06-10 00:03:22 +12:00
textFormat = 15
2015-07-04 04:41:18 +12:00
revisions = 16
2017-10-24 00:45:08 +13:00
customIcon = 17
charCount = 18
2017-11-18 00:16:39 +13:00
class Abstract(IntEnum):
title = 0
ID = 1
type = 2
2019-12-22 04:42:49 +13:00
class FlatData(IntEnum):
summarySituation = 0,
summarySentence = 1,
summaryPara = 2,
summaryPage = 3,
summaryFull = 4
class Model(IntEnum):
Character = 0
Plot = 1
PlotStep = 2
World = 3
Outline = 4
FlatData = 5