mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-09-29 08:51:14 +13:00
55 lines
1,013 B
Python
55 lines
1,013 B
Python
#!/usr/bin/env python
|
|
#--!-- coding: utf8 --!--
|
|
|
|
|
|
|
|
|
|
# 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
|
|
notes = 10
|
|
|
|
class Plot(Enum):
|
|
name = 0
|
|
ID = 1
|
|
importance = 2
|
|
persos = 3
|
|
description = 4
|
|
result = 5
|
|
subplots = 6
|
|
summary = 7
|
|
|
|
class Outline(Enum):
|
|
title = 0
|
|
ID = 1
|
|
type = 2
|
|
summarySentance = 3
|
|
summaryFull = 4
|
|
POV = 5
|
|
notes = 6
|
|
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
|
|
# (sum of all sub-items' goals)
|
|
textFormat = 15
|
|
|