/srv/irclogs.ubuntu.com/2015/10/19/#ubuntu-unity.txt

=== timchen1` is now known as timchen119
=== nudtrobert1 is now known as nudtrobert
Saviqmzanetti, welcome back, FYI http://bazaar.launchpad.net/~robru/phablet-tools/further-fixes/view/head:/citrain is a useful-again version of the script10:29
Saviqactually it's been released to the overlay already I think10:30
=== willcooke_ is now known as willcooke
mzanettiSaviq, hey ho. thanks10:49
Guest42341mzanetti, omg kodimote is great! :D the only think that doesn't work for me is the http password11:01
mzanettiGuest42341, glad you like it. will look into the password stuff. It should work, but I haven't used that in a while11:01
Guest42341mzanetti, i love it! :D i works great with my laziness +111:02
=== alan_g is now known as alan_g|lunch
=== alan_g|lunch is now known as alan_g
=== balloons is now known as Guest77565
=== Guest77565 is now known as balloons_
=== dandrader_ is now known as dandrader\
=== dandrader\ is now known as dandrader
=== mhall119_ is now known as mhall119
=== balloons_ is now known as balloons
=== dandrader is now known as dandrader|afk
=== alan_g is now known as alan_g|EOD
robruSaviq: mzanetti should be in overlay ppa and phablet tools ppa, and  SDK ppa17:19
mzanettirobru, ?17:23
mzanettiyou mean the new citrain tool?17:24
robruYeah17:24
mterrymzanetti, let's say I'm writing qml, and I wanted to watch input events happen on my widget but still "fall through" to lower layers.  Is that easy?17:28
Saviqmterry, sure, .accepted = false17:57
Saviqmterry, http://doc.qt.io/qt-5/qml-qtquick-mouseevent.html#accepted-prop17:58
mterrySaviq, in my case I want to "monitor" the progress of a drag -- which would be complicated if I !accept the initial events, right?17:58
Saviqmterry, not sure, but indeed you might not get subsequent events when a drag is in progress17:59
mterryhumph17:59
Saviqmterry, or at least, you'll need to decide whether it's a drag yourself18:00
Saviqmterry, just tested with http://paste.ubuntu.com/12864305/, a drag grabs the mouse indeed18:07
mterrySaviq, yeah figured.  Thanks for actually testing  :)18:08
mterryThat makes some tutorial-redesign tricks harder18:08
Saviqmterry, http://doc.qt.io/qt-5/qml-qtquick-mousearea.html#propagateComposedEvents-prop *could* help, if drag is treated like a propagated event, but not sure18:08
Saviqmterry, what's your use case?18:08
mterrySaviq, trying to monitor the bottom-edge drag in an app so that we can fade out / hide the tutorial screen as it goes up / finishes18:12
mterrySaviq, so I'd like the app to get the drag, so it can show the bottom edge screen.  And I'd like us to watch it to fade on our side (we'd only do this for a known set of apps, so we know that the app isn't doing anything weird on its side)18:13
mterrySaviq, otherwise we'd need to have the app communicate to us where it's at with the drag.  Which is a complexity I'd *like* to avoid18:14
mterrySince it would need to be per-app (PageWithBottomEdge still isn't in sdk)18:14
Saviqmterry, oh that's not a drag even18:16
Saviqmterry, DDA handles that, all touch-based18:16
mterryDirecationalDRAGArea, right?   :)18:17
Saviqsure, not a MouseArea.drag I meant18:17
Saviqbut still, likely that the touch is grabbed when it determines it wants it18:17
mterrySaviq, right.  Does that change anything?  I thought the same accepted=false stuff happened for touch too?18:17
Saviqdandrader|afk will know (obviously)18:17
mterryWill bug him tomorrow, thanks  :)18:20
mterryMaybe there's a way to fake it18:20
Saviqmterry, FWIW all touch events will go through the shell, regardless of whether they're sent to the app or not18:23
Saviqmterry, so maybe we need a monitoring-version of DDA, doubt it would be difficult to add18:23
mterrySaviq, because the shell is the Mir parent of the app?  that's good18:26
Saviqmterry, shell decides what input goes where, tes18:26
Saviqyes, even18:26
mterry:)18:26
Saviqthat's how we can do DDA in the first place, and still pass input to apps on the edges18:27
=== dandrader|afk is now known as dandrader
dandraderSaviq, what?18:33
Saviqmterry, FWIW, that approach will obviously only work if the app did not modify the bottom DDA settings18:33
Saviqdandrader, long story short, we need to have a tutorial for the bottom edge that's triggered by an app that you launch, one that does have a bottom edge implemented18:34
Saviqdandrader, that tut is only supposed to be an overlay, while the app in question actually works as it would normally18:35
Saviqdandrader, so mterry was thinking to have a DDA on the bottom edge that would not accept any events, just monitor them18:35
dandraderif it's about monitoring touch input without disturbing the input dispatching that QQuickWindow does, TouchRegistry is what you want18:35
dandradermterry, ^18:35
Saviqdandrader, well, sure, but he'd have to reimplement DDA's behaviour18:36
dandradermterry, TouchRegistry::addTouchWatcher()18:36
mterryhmph, my irc isn't notifiying me of highlights right now18:36
Saviqdandrader, thought it would be easier to add a monitoring-only mode to DDA18:36
* mterry reads back18:36
Saviqthat being said18:36
dandraderSaviq, no, let's not make DDA a do-it-all frankenstein suffering from featuritus18:37
Saviqdandrader, well, better than just copying code18:37
dandraderSaviq, Have an item that takes touch input but rejects them and call TouchRegistry::addTouchWatcher() instead18:38
dandraderSaviq, mterry, it's not much code to do that18:38
Saviqdandrader, that still means you need to replicate what DDA is doing18:38
Saviqaaanyway18:38
dandraderSaviq, a quite small part18:38
mterrydandrader, I can take a look at that and see how bad it would be for me18:39
mterrydandrader, will poke if I have questions18:39
Saviqstill less copypasta to just add a mode to DDA18:39
Saviqbutt! I'm not really happy with that approach anyway, feels like it's gonna break a lot18:39
mterrySaviq, the general tutorial approach?18:39
Saviqmterry, for the bottom edge, yes18:39
dandraderSaviq, An item that simply monitors input coming through is not a DirectionalDragArea anymore18:40
mterrySaviq, yeah...  I pushed back a bit, but they were firm.  But the design just changed (was on contract), so I'll have another go on Wednesday18:40
dandraderSaviq, is something else18:40
Saviqdandrader, we can rename it ;)18:40
mterrySaviq, we are only going to do this for a few well-known apps that will behave well (we hope)18:40
Saviqmterry, I rather meant how we want to achieve the design18:40
dandraderSaviq, YourOneStopForTouchStuffItem18:40
Saviqdandrader, I disagree, but let's not dwell on it18:41
mterrydandrader, well to be fair, it's still acting like a directionaldragarea, just one that doesn't grab input right?18:41
dandraderSaviq, besides monitoring, does it also has to tell whether the touch point is performing a directional drag?18:42
Saviqdandrader, yes18:42
mterrySaviq, monitoring input seems like it should be fine to me (as a way to implement design)18:42
dandraderSaviq, ahhh, ok. now it's different...18:42
Saviqwe didn't explain well, sry18:42
Saviqdandrader, we'd want everything DDA does, except for grabbing the input18:42
dandraderSaviq, ok18:43
mterrydandrader, (we basically want to pretend we know what's going on with a DDA in an app)18:43
Saviqmterry, especially because we're only looking at a few white-listed apps, could we not rely on the app reporting the bottom edge progress for us instead?18:43
dandradermterry, it will only work if the app is also using a DDA and that DDA is using the same recognition parameters18:43
Saviqyeah, exactly18:44
mterrySaviq, oh we could for sure...  But that seemed worse than monitoring to me.  We'd need to patch like 6 apps to report over... dbus?  to the shell.  Felt easier to just monitor18:44
dandraderSaviq, mterry, and you still run the risk of getting it wrong if the timing is not the same18:44
mterrydandrader, Saviq: I suspect the apps we're talking about are all using copies of PageWithBottomEdge somewhere...18:44
mterryI haven't done a survey18:45
mterryHaven't nailed down the app list with Design yet18:45
dandradermterry, this PageWithBottomEdge thing is from ui toolkit?18:46
mterrydandrader, not official part of the SDK yet.  Just a class that gets copied around a lot18:47
mterrydandrader, like libegg if you know GNOME stuff18:47
dandradermterry, Saviq couldn't we make this bottom edge tutorial a component that those apps use?18:47
Saviqdandrader, we ~can't, since it's meant to cover indicators as well (and stop other edges)18:47
mterrydandrader, the tutorial needs to cover the screen (including main / side stages).  So bigger than the app18:47
Saviqmterry, well, we were to put DDA in the SDK for a while now18:48
dandraderright18:48
mterrydandrader, though Design wants to offer the component to apps to use for in-app tutorials too18:48
Saviqmterry, so that should be the goal IMO18:48
mterrySaviq, yeah...  for future stuff.  But doesn't help the shell with our redesign of the tutorial now18:48
Saviqmterry, right18:48
dandradermterry, Saviq, well, the app could tell unity8 it's in tutorial mode or something so that unity8 does its part....18:49
Saviqdandrader, yeah, that'd be a long-term goal, but would require the "thing" that's driving it to be constant (i.e. part of SDK, which is unlikely to happen in the short term)18:49
mterryEh.  Not sure that's any prettier than apps telling us about bottom drag18:50
dandraderSaviq, oh, so we're talking about a quick hack then18:50
mterryEspecially since the strings and all that should live in one place18:50
mterrydandrader, Saviq: no....  this is not a quick hack18:50
Saviqjust a temporary solution18:50
Saviquntil we arrive in a better world18:50
mterrylong term goal of apps having their own tutorials is separate from the shell tutorial18:50
mterrySaviq, no not even temporary18:50
dandradermterry, right, apps telling us the bottom drag status would be better than this last idea of mine...18:50
mterryI think there's some miscommunication18:50
Saviqmterry, I meant just the bottom edge18:50
Saviqmterry, not in-app tutorial18:51
mterrySaviq, I still would want that in shell18:51
Saviqmterry, yes, but the noop-mode of DDA18:51
Saviqmterry, if we put DDA in SDK and instrument it18:51
Saviqmterry, that'd be more reliable than an overlay noop DDA IMO18:51
mterrySaviq, oh...  why would that be a temporary change?  regardless of where DDA lives, we'd want it to act like a no-op in this montoring case18:52
mterrySaviq, although if DDA were in SDK we'd guarantee same behavior as the app...18:52
Saviqmterry, I meant there would be no DDA in the shell on the bottom edge18:52
Saviqmterry, if DDA from SDK would report progress on $IPC18:52
mterrySaviq, oh oh, you're talking about that approach.  Sure we could do that over DBus or whatnot.  We could do that today by patching apps18:53
Saviqbut yeah, OTOH as you said, 6 core apps should probably *not* change the DDA parameters from the defaults18:53
mterrySaviq, you really think monitoring will be flaky?18:53
mterryI probably need to survey the apps and see what their drag code looks like18:54
Saviqmterry, no, just feels really weird ;)18:54
mterrySaviq, I was surprised to see that SDK 1.3 added BottomEdgeHint but not PageWithBottomEdge.  Felt like a weird half stp18:54

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!