|
a |
|
b/temp |
|
|
1 |
<FileChooserListView>: |
|
|
2 |
layout: layout |
|
|
3 |
FileChooserListLayout: |
|
|
4 |
id: layout |
|
|
5 |
controller: root |
|
|
6 |
|
|
|
7 |
[FileListEntry@FloatLayout+TreeViewNode]: |
|
|
8 |
locked: False |
|
|
9 |
entries: [] |
|
|
10 |
path: ctx.path |
|
|
11 |
is_selected: self.path in ctx.controller().selection |
|
|
12 |
|
|
|
13 |
orientation: 'horizontal' |
|
|
14 |
size_hint_y: None |
|
|
15 |
height: '48dp' if dp(1) > 1 else '24dp' |
|
|
16 |
is_leaf: not ctx.isdir or ctx.name.endswith('..' + ctx.sep) or self.locked |
|
|
17 |
on_touch_down: self.collide_point(*args[1].pos) and ctx.controller().entry_touched(self, args[1]) |
|
|
18 |
on_touch_up: self.collide_point(*args[1].pos) and ctx.controller().entry_released(self, args[1]) |
|
|
19 |
BoxLayout: |
|
|
20 |
pos: root.pos |
|
|
21 |
size_hint_x: None |
|
|
22 |
width: root.width - dp(10) |
|
|
23 |
|
|
|
24 |
Label: |
|
|
25 |
color: .4, .4, .4, 1 |
|
|
26 |
id: filename |
|
|
27 |
text_size: self.width, None |
|
|
28 |
halign: 'left' |
|
|
29 |
shorten: True |
|
|
30 |
text: ctx.name |
|
|
31 |
Label: |
|
|
32 |
color: .4, .4, .4, 1 |
|
|
33 |
text_size: self.width, None |
|
|
34 |
size_hint_x: None |
|
|
35 |
halign: 'right' |
|
|
36 |
text: '{}'.format(ctx.get_nice_size()) |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
HPage: |
|
|
41 |
HPageBox: |
|
|
42 |
HPageBody: |
|
|
43 |
TextButton: |
|
|
44 |
text: 'BACK' |
|
|
45 |
dir: 'right' |
|
|
46 |
|
|
|
47 |
on_press: |
|
|
48 |
app.root.ids.workspace.transition.direction = self.dir |
|
|
49 |
app.root.ids.workspace.current = 'screen_start' |
|
|
50 |
|
|
|
51 |
HTitle: |
|
|
52 |
text: 'Categorize' |
|
|
53 |
|
|
|
54 |
HDivider: |
|
|
55 |
|
|
|
56 |
StackLayout: |
|
|
57 |
size_hint: 1, None |
|
|
58 |
width: self.minimum_width |
|
|
59 |
height: self.minimum_height |
|
|
60 |
spacing: 10 |
|
|
61 |
|
|
|
62 |
ImageLoader: |
|
|
63 |
size: 350, 350 |
|
|
64 |
id: slide |
|
|
65 |
|
|
|
66 |
ImageLoader: |
|
|
67 |
size: 350, 350 |
|
|
68 |
id: sub_sample |
|
|
69 |
|
|
|
70 |
StackLayout: |
|
|
71 |
size_hint: 1, None |
|
|
72 |
height: self.minimum_height |
|
|
73 |
|
|
|
74 |
TextButton: |
|
|
75 |
text: 'Select Image' |
|
|
76 |
on_press: |
|
|
77 |
root.load_slide() |
|
|
78 |
|
|
|
79 |
HDivider: |
|
|
80 |
|
|
|
81 |
BoxLayout: |
|
|
82 |
id: tag_editor |
|
|
83 |
|
|
|
84 |
size_hint: 1, None |
|
|
85 |
height: self.minimum_height |
|
|
86 |
orientation: 'vertical' |
|
|
87 |
spacing: 10 |
|
|
88 |
padding: [0, 0, 0, 10] |
|
|
89 |
|
|
|
90 |
|
|
|
91 |
LeftLabel: |
|
|
92 |
bold: True |
|
|
93 |
text: 'Add Tags to Subsample' |
|
|
94 |
|
|
|
95 |
StackLayout: |
|
|
96 |
id: tags |
|
|
97 |
|
|
|
98 |
size_hint: 1, None |
|
|
99 |
height: self.minimum_height |
|
|
100 |
|
|
|
101 |
spacing: 10 |
|
|
102 |
padding: [20, 0, 0, 0] |
|
|
103 |
|
|
|
104 |
ChipInputAdder: |
|
|
105 |
hint_text: 'add tag' |
|
|
106 |
id: tag_adder |
|
|
107 |
callback: root.add_tag |
|
|
108 |
|
|
|
109 |
StackLayout: |
|
|
110 |
TextButton: |
|
|
111 |
text: 'Done' |
|
|
112 |
on_press: |
|
|
113 |
root.save_tags() |
|
|
114 |
root.next_sample() |
|
|
115 |
TextButton: |
|
|
116 |
text: 'Skip' |
|
|
117 |
on_press: |
|
|
118 |
root.next_sample() |