-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.py
39 lines (37 loc) · 883 Bytes
/
events.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
sources = (
HISTORY,
#HISTORY_BACK,
QUICK_SELECTOR,
VERSE_TREE,
BIBLE_REF_ENTER,
#TOOLTIP,
BIBLEFRAME,
LINK_CLICKED,
SETTINGS_CHANGED,
BIBLE_MODULE_CHANGED,
RANDOM_VERSE,
VERSE_LINK_SELECTED,
DISPLAY_TAGS_TOGGLED,
EXPAND_CROSS_REFERENCES_TOGGLED,
VERSE_MOVE,
CHAPTER_MOVE,
HARMONY,
SEARCH,
TOPIC_LIST,
LOADING_SETTINGS,
PASSAGE_TAGGED,
HEADER_BAR,
COMMENT_DELETED,
) = range(21)
sources_not_to_reload_harmony_for = (
DISPLAY_TAGS_TOGGLED,
EXPAND_CROSS_REFERENCES_TOGGLED,
)
sources_not_to_reload_linked_frames_for = \
sources_not_to_reload_harmony_for + (BIBLE_MODULE_CHANGED,)
class BibleEvent(object):
def __init__(self, ref, settings_changed=False, source=None, ref_to_scroll_to=None):
self.ref = ref
self.settings_changed = settings_changed
self.source = source
self.ref_to_scroll_to = ref_to_scroll_to