-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.py
More file actions
39 lines (25 loc) · 816 Bytes
/
const.py
File metadata and controls
39 lines (25 loc) · 816 Bytes
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
import enum
from gi.repository import GtkSource
from meld.conf import _
class ActionMode(enum.IntEnum):
"""Action mode for chunk change actions"""
Replace = 0
Delete = 1
Insert = 2
class ChunkAction(enum.Enum):
delete = 'delete'
replace = 'replace'
copy_down = 'copy_down'
copy_up = 'copy_up'
class FileComparisonMode(enum.Enum):
AutoMerge = 'AutoMerge'
Compare = 'Compare'
NEWLINES = {
GtkSource.NewlineType.LF: ('\n', _("UNIX (LF)")),
GtkSource.NewlineType.CR_LF: ('\r\n', _("DOS/Windows (CR-LF)")),
GtkSource.NewlineType.CR: ('\r', _("Mac OS (CR)")),
}
FILE_FILTER_ACTION_FORMAT = 'folder-custom-filter-{}'
TEXT_FILTER_ACTION_FORMAT = 'text-custom-filter-{}'
#: Sentinel value for mtimes on files that don't exist.
MISSING_TIMESTAMP = -2147483648