-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathveritas.kv
More file actions
149 lines (137 loc) · 4.46 KB
/
veritas.kv
File metadata and controls
149 lines (137 loc) · 4.46 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<HexAsciiLabel@Label>:
text_size: self.width, None
size_hint_y: None
height: self.texture_size[1]
size_hint_x: None
font_size: 20
font_name: "RobotoMono-Regular"
markup: True
padding: 20, 5
<MarkerLabel@Label>:
text_size: self.width, None
size_hint_y: None
height: self.texture_size[1]
font_size: 20
font_name: "RobotoMono-Regular"
markup: True
padding: 20, 0
index: 0
highlight: False
canvas.before:
Color:
rgba: (1, 0, 0, 1) if self.highlight else (0, 0, 0, 0)
Line:
width: 1.5
rectangle: self.x, self.y, self.width, self.height
on_touch_down:
if self.collide_point(*args[1].pos): app.root.current_tab.content.handle_marker_click(self.index)
<HexAsciiViewClass@GridLayout>:
offsettext: ""
hextext: ""
asciitext: ""
cols: 3
height: self.minimum_height
size_hint_y: None
highlight: False
canvas.before:
Color:
rgba: (1, 0, 0, 1) if self.highlight else (0, 0, 0, 0)
Line:
width: 1.5
rectangle: self.x, self.y, self.width, self.height
HexAsciiLabel:
text: root.offsettext
width: 72+20+20
HexAsciiLabel:
text: root.hextext
width: 564+20+20
HexAsciiLabel:
text: root.asciitext
width: 192+20+20
<MyWidget>
firstrv:firstrv
secondrv:secondrv
GridLayout:
rows: 2
size: root.width, root.height
BoxLayout:
orientation: 'horizontal'
size_hint_y: None
height: '48dp'
width: '500dp'
padding: '12dp'
Button:
id: openfile
text: "Open Artifact"
font_size: 16
on_release: app.root.open_file_from_widget(root)
Button:
id: closefile
text: "Close"
font_size: 16
disabled: True
opacity: 0
on_release: root.closeFile()
GridLayout:
cols: 2
BoxLayout:
orientation: 'vertical'
size_hint_x: None
width: 564+20+20+192+20+20+72+20+20
BoxLayout:
id: offsetheader
orientation: 'horizontal'
size_hint_y: None
height: '30dp'
padding: [20, 5]
spacing: 10
Label:
text: "Offset"
size_hint_x: None
width: 72
font_size: 20
font_name: "RobotoMono-Regular"
Label:
text: "00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F"
size_hint_x: None
width: 564+20+20+20
font_size: 20
font_name: "RobotoMono-Regular"
Label:
text: "ASCII"
size_hint_x: None
width: 192
font_size: 20
font_name: "RobotoMono-Regular"
RecycleView:
id: firstrv
viewclass: 'HexAsciiViewClass'
do_scroll: True
bar_width: 15
effect_cls: "ScrollEffect"
scroll_type: ["bars", "content"]
scroll_wheel_distance: 50
smooth_scroll_end: 10
RecycleBoxLayout:
id: layout
default_size: None, None
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
orientation: 'vertical'
RecycleView:
id: secondrv
viewclass: 'MarkerLabel'
do_scroll: True
bar_width: 15
effect_cls: "ScrollEffect"
scroll_type: ["bars", "content"]
scroll_wheel_distance: 50
smooth_scroll_end: 10
RecycleBoxLayout:
id: layout
default_size: None, None
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
orientation: 'vertical'