manuskript/src/enums.py

57 lines
1 KiB
Python
Raw Normal View History

2015-06-01 22:29:06 +12:00
#!/usr/bin/env python
#--!-- coding: utf8 --!--
2015-06-08 08:06:57 +12:00
2015-06-01 22:29:06 +12:00
# As seen on http://stackoverflow.com/questions/36932/how-can-i-represent-an-enum-in-python
from enum import Enum
#def enum(**enums):
#return type(str('Enum'), (), enums)
class Perso(Enum):
name = 0
ID = 1
importance = 2
motivation = 3
goal = 4
conflict = 5
epiphany = 6
summarySentance = 7
summaryPara = 8
summaryFull = 9
2015-06-02 10:06:17 +12:00
notes = 10
2015-06-29 21:28:34 +12:00
infoName = 11
infoData = 12
2015-06-01 22:29:06 +12:00
class Plot(Enum):
name = 0
ID = 1
importance = 2
persos = 3
description = 4
result = 5
subplots = 6
2015-06-22 23:11:45 +12:00
summary = 7
2015-06-04 12:04:47 +12:00
class Outline(Enum):
title = 0
ID = 1
type = 2
summarySentance = 3
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
2015-06-10 00:03:22 +12:00