-
Notifications
You must be signed in to change notification settings - Fork 1
/
EventList.py
34 lines (30 loc) · 1.53 KB
/
EventList.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
from namedtuple import namedtuple
FocusChangeEvent = namedtuple("FocusChangeEvent", "window")
LoadingRulesEvent = namedtuple("LoadingRulesEvent", "state")
MicrophoneEvent = namedtuple("MicrophoneEvent", "state")
RuleActivateEvent = namedtuple("RuleActivateEvent", "rule")
RuleDeactivateEvent = namedtuple("RuleDeactivateEvent", "rule")
RuleMatchEvent = namedtuple("RuleMatchEvent", "hash phrase extras words")
RuleRegisterEvent = namedtuple("RuleRegisterEvent", "rule")
WindowListEvent = namedtuple("WindowListEvent", "windows")
WordEvent = namedtuple("WordEvent", "words")
WordListEvent = namedtuple("WordListEvent", "name words")
RecognitionStateEvent = namedtuple("RecognitionStateEvent", "state")
PedalsEvent = namedtuple("PedalsEvent", "pedalStates changed")
ExitEvent = namedtuple("ExitEvent", [])
RepeatRequestEvent = namedtuple("RepeatRequestEvent", [])
# emacs events
BufferListEvent = namedtuple("BufferListEvent", "query choices")
EmacsConnectedEvent = namedtuple("EmacsConnectedEvent", [])
EmacsSymbolEvent = namedtuple("EmacsSymbolEvent", "choices")
EmacsWordEvent = namedtuple("EmacsWordEvent", "choices")
MajorModeEvent = namedtuple("MajorModeEvent", "modeList")
NickEvent = namedtuple("NickEvent", "choices")
ProjectFileListEvent = namedtuple("BufferListEvent", "choices")
ProjectListEvent = namedtuple("ProjectListEvent", "choices")
class ConnectedEvent(object): pass
class DisconnectedEvent(object): pass
class EventsDrainedEvent(object): pass
class RestartEvent(object): pass
class StartupCompleteEvent(object): pass
### DRAGONSHARE RSYNC