Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_transfer_voice.kv @ 126:cd99f70ea592
global file reorganisation:
- follow common convention by puttin cagou in "cagou" instead of "src/cagou"
- added VERSION in cagou with current version
- updated dates
- moved main executable in /bin
- moved buildozer files in root directory
- temporary moved platform to assets/platform
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 05 Apr 2018 17:11:21 +0200 |
parents | src/cagou/plugins/plugin_transfer_voice.kv@5d2289127bb7 |
children | 1b835bcfa663 |
comparison
equal
deleted
inserted
replaced
125:b6e6afb0dc46 | 126:cd99f70ea592 |
---|---|
1 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client | |
2 # Copyright (C) 2016-2018 Jérôme Poisson (goffi@goffi.org) | |
3 | |
4 # This program is free software: you can redistribute it and/or modify | |
5 # it under the terms of the GNU Affero General Public License as published by | |
6 # the Free Software Foundation, either version 3 of the License, or | |
7 # (at your option) any later version. | |
8 | |
9 # This program is distributed in the hope that it will be useful, | |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 # GNU Affero General Public License for more details. | |
13 | |
14 # You should have received a copy of the GNU Affero General Public License | |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | |
17 #:import _ sat.core.i18n._ | |
18 #:import IconButton cagou.core.common.IconButton | |
19 | |
20 | |
21 <VoiceRecorder>: | |
22 orientation: "vertical" | |
23 counter: counter | |
24 Label: | |
25 size_hint: 1, 0.4 | |
26 text_size: self.size | |
27 halign: 'center' | |
28 valign: 'top' | |
29 text: _(u"Push the microphone button to start the record, then push it again to stop it.\nWhen you are satisfied, click on the transmit button") | |
30 Label: | |
31 id: counter | |
32 size_hint: 1, None | |
33 height: dp(60) | |
34 bold: True | |
35 font_size: sp(40) | |
36 text_size: self.size | |
37 text: u"{}:{:02}".format(root.time/60, root.time%60) | |
38 halign: 'center' | |
39 valign: 'middle' | |
40 BoxLayout: | |
41 size_hint: 1, None | |
42 height: dp(60) | |
43 Widget | |
44 IconButton: | |
45 source: app.expand("{media}/icons/muchoslava/png/") + ("micro_on_50.png" if root.recording else "micro_off_50.png") | |
46 allow_stretch: True | |
47 size_hint: None, None | |
48 size: dp(60), dp(60) | |
49 on_release: root.switchRecording() | |
50 IconButton: | |
51 opacity: 0 if root.recording or not root.time and not root.playing else 1 | |
52 source: app.expand("{media}/icons/muchoslava/png/") + ("stop_50.png" if root.playing else "play_50.png") | |
53 allow_stretch: True | |
54 size_hint: None, None | |
55 size: dp(60), dp(60) | |
56 on_release: root.playRecord() | |
57 Widget | |
58 Widget: | |
59 size_hint: 1, None | |
60 height: dp(50) | |
61 Button: | |
62 text: _("transmit") | |
63 size_hint: 1, None | |
64 height: dp(50) | |
65 on_release: root.callback(root.audio.file_path) | |
66 Button: | |
67 text: _("cancel") | |
68 size_hint: 1, None | |
69 height: dp(50) | |
70 on_release: root.cancel_cb(root) | |
71 Widget |