comparison cagou/core/menu.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 b77792cc6d12
comparison
equal deleted inserted replaced
321:a6eb154ba266 322:e2b51663d8b8
310 def onTransferCb(file_path, cleaning_cb=None): 310 def onTransferCb(file_path, cleaning_cb=None):
311 if not external: 311 if not external:
312 self._closeUI(wid) 312 self._closeUI(wid)
313 self.callback( 313 self.callback(
314 file_path, 314 file_path,
315 cleaning_cb,
316 transfer_type = (C.TRANSFER_UPLOAD 315 transfer_type = (C.TRANSFER_UPLOAD
317 if self.ids['upload_btn'].state == "down" else C.TRANSFER_SEND)) 316 if self.ids['upload_btn'].state == "down" else C.TRANSFER_SEND),
317 cleaning_cb=cleaning_cb,
318 )
318 wid = plug_info['factory'](plug_info, 319 wid = plug_info['factory'](plug_info,
319 onTransferCb, 320 onTransferCb,
320 self.cancel_cb, 321 self.cancel_cb,
321 self.profiles) 322 self.profiles)
322 if not external: 323 if not external: