comparison cagou/plugins/plugin_wid_remote.py @ 322:e2b51663d8b8

core, android: new share widget + added Cagou to "share" menu: - new intent filter to add Cagou to share menu for all media types - minimum Kivy version is now 1.11.0 - new "Share" widget to display data to share via SàT and select the target - new core.platform_ module (the suffix "_" avoid trouble with standard "platform" module), for platform specific code. - Android intent are now checked on startup and "on_new_intent" events - if a android.intent.action.SEND action is received (i.e. some data is shared), the "Share" widget is shown - new Cagou.share method to share data using "Share" widget - new Cagou.getAncestorWidget method to easily retrieve an instance of a specific class in a widget's ancestors - ContactList's Avatar and ContactItem widgets have been moved to core.common
author Goffi <goffi@goffi.org>
date Fri, 06 Dec 2019 13:23:03 +0100
parents 772c170b47a9
children 33244f944bd8
comparison
equal deleted inserted replaced
321:a6eb154ba266 322:e2b51663d8b8
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 20
21 from sat.core import log as logging 21 from sat.core import log as logging
22 log = logging.getLogger(__name__)
23 from sat.core.i18n import _ 22 from sat.core.i18n import _
24 from sat_frontends.quick_frontend import quick_widgets 23 from sat_frontends.quick_frontend import quick_widgets
25 from cagou.core import cagou_widget 24 from cagou.core import cagou_widget
26 from cagou.core.constants import Const as C 25 from cagou.core.constants import Const as C
27 from cagou.core.menu import TouchMenuBehaviour 26 from cagou.core.menu import TouchMenuBehaviour
37 from kivy.uix.floatlayout import FloatLayout 36 from kivy.uix.floatlayout import FloatLayout
38 from kivy.core.window import Window 37 from kivy.core.window import Window
39 from cagou import G 38 from cagou import G
40 from functools import partial 39 from functools import partial
41 40
41
42 log = logging.getLogger(__name__)
42 43
43 PLUGIN_INFO = { 44 PLUGIN_INFO = {
44 "name": _("remote control"), 45 "name": _("remote control"),
45 "main": "RemoteControl", 46 "main": "RemoteControl",
46 "description": _("universal remote control"), 47 "description": _("universal remote control"),