-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.kv
168 lines (158 loc) · 6.14 KB
/
main.kv
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#:import FadeTransition kivy.uix.screenmanager.FadeTransition
<MapToolbarWidget@BoxLayout>:
size_hint_y: None
height: '48dp'
padding: '4dp'
spacing: '4dp'
canvas.before:
Color:
rgba: .2, .2, .2, .6
Rectangle:
pos: self.pos
size: self.size
<NotesWidget@BoxLayout>:
id: note_layout
<SoundboardWidget@ScrollView>:
id: sound_layout
<RecorderWidget@ScrollView>:
id: record_layout
<MessageWidget@BoxLayout>:
id: message_layout
<MenuWidget@BoxLayout>:
id: menu_layout
<MapPanelWidget@FloatLayout>:
id: map_panel_layout
MapWidget:
id: map_widget
MapToolbarWidget:
Button:
text: 'Go To Current Location'
on_release: app.map.do_move_to_current_location()
Button:
size_hint: (.3, 1)
text: 'Type'
on_release: app.map.do_cycle_map_type()
<ChecklistWidget@ScrollView>:
id: checklist_layout
<RootWidget>:
screen_manager: screen_manager
BoxLayout:
id: root_widget
name: 'root'
orientation: 'vertical'
BoxLayout:
name: 'mood_bar'
id: status_panel_layout
orientation: 'horizontal'
size_hint: 1, .1
Button:
background_normal: 'data/images/status/good.jpg'
background_down: 'data/images/status/good_pressed.jpg'
on_release: app.update_mood('happy')
Button:
background_normal: 'data/images/status/neutral.jpg'
background_down: 'data/images/status/neutral_pressed.jpg'
on_release: app.update_mood('calm')
Button:
background_normal: 'data/images/status/bad.jpg'
background_down: 'data/images/status/bad_pressed.jpg'
on_release: app.update_mood('angry')
BoxLayout
ScreenManager:
id: screen_manager
transition: FadeTransition()
Screen:
name: 'Home'
MapPanelWidget:
id: map_panel_widget
Screen:
name: 'Menu'
BoxLayout:
id: default_layout
orientation: 'vertical'
spacing: 2
BoxLayout:
id: menu_panel_layout
orientation: 'horizontal'
size_hint: 1, .8
ScrollView:
do_scroll_x: False
BoxLayout:
id: settings_layout
orientation: 'vertical'
canvas.before:
Color:
rgba: 0, 0, 0, 1
Rectangle:
pos: self.pos
size: self.size
Button:
text: "Notes"
on_release: root.do_set_screen(self, "Notes")
Button:
text: "Messages"
on_release: root.do_set_screen(self, "Messages")
Button:
text: "Recorder"
on_release: root.do_set_screen(self, "Recorder")
Button:
text: "Soundboard"
on_release: root.do_set_screen(self, "Soundboard")
Button:
text: "Checklist"
on_release: root.do_set_screen(self, "Checklist")
Button:
text: "Campaigns"
on_release: root.do_set_screen(self, "Campaigns")
Button:
text: "Settings"
on_release: root.do_set_screen(self, "Settings")
Screen:
name: 'Notes'
NotesWidget:
id: notes_menu
Screen:
name: 'Messages'
MessageWidget:
id: message_menu
Screen:
name: 'Recorder'
RecorderWidget:
id: recorder_menu
Screen:
name: 'Soundboard'
SoundboardWidget:
id: sound_menu
Screen:
name: 'Checklist'
ChecklistWidget:
id: checklist_menu
Screen:
name: 'Campaigns'
Screen:
name: 'Settings'
SettingsWidget:
id: settings_menu
BoxLayout:
size_hint: 1, .1
id: tool_panel_layout
orientation: 'horizontal'
name: 'bar'
canvas.before:
Color:
rgba: 0, 0, 0, 1
Rectangle:
pos: self.pos
size: self.size
Button:
background_normal: 'data/images/nav/lock.png'
background_down: 'data/images/nav/lock.png'
on_release: app.prompt_lock_screen()
Button:
background_normal: 'data/images/nav/map.png'
background_down: 'data/images/nav/map.png'
on_release: root.do_set_screen(self, "Home")
Button:
background_normal: 'data/images/nav/menu.png'
background_down: 'data/images/nav/menu.png'
on_release: root.do_set_screen(self, "Menu")