/srv/irclogs.ubuntu.com/2013/06/05/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
=== wgrant_ is now known as wgrant
zsombigood morning folks05:56
dpmgood morning all06:32
dpmhi zsombi, a quick question: I was trying to create a dialog following the example on http://developer.ubuntu.com/api/ubuntu-12.10/qml/mobile/qml-ubuntu-components-popups0-dialog.html - but I couldn't find a way to set the 'text' and 'title' properties of the 'dialogue' component in that example. Is it possible to set those properties before displaying the dialog?06:47
bzoltandpm:  ping06:58
dpmhi bzoltan06:58
zsombidpm: I don't get it... you want to set the text and title of the object created with PopupUtils.open() I guess, right?07:21
dpmzsombi, yeah, I wanted to set the text and title and then call PopUtils.open()07:22
zsombidpm: well, the dialogue in that example is a template (Component) so it has instance only after you call open(). You either set up the dialog in this way with all the info you have, or you set these after you call open() (through the object returned by open) or you define the dialog leaving out the caging Component{}, and then you can set the text/title before calling open07:25
zsombidpm: but if you do it like that, you don't use anymore the PopupUtils.open() but the Dialog's show()07:26
dpmaha07:28
* dpm hadn't noticed the show() method07:28
* dpm re-reads API docs07:29
oSoMoNgusch: hey, would you be up for a quick review? https://code.launchpad.net/~osomon/webbrowser-app/suggestions-always-rich-text/+merge/16735007:29
dpmthanks zsombi!07:29
zsombidpm: we also need to find a way to have a link to the components derived from07:29
guschoSoMoN: sure07:29
oSoMoNthx07:29
oSoMoNgusch: I’m on your mammoth MR07:30
zsombidpm: that's why you don't see the show() function because that is in PopupBase07:30
guschoSoMoN: get used to it - more to come ;)07:30
dpmzsombi, I'll see if I can get that to work, thanks!07:31
zsombidpm: the funny thing is that all deriving components are listed in the superclass doc, but not in the deriveds... so the backlink is missing...07:32
dpmzsombi, ah, I see what you mean, I noticed that a while ago. Is this a qdoc issue, or a missing parameter in the apidoc comments in the code used to generate the docs?07:34
zsombidpm: good question07:35
dpmoSoMoN, translators are a bit confused by these type of strings in the apps, I think we should probably add translator comments for them. Could you give me some context on the rules to translate them?  As in: what are they? Does the semicolon need to be preserved? Are they verbs (actions)? Can more be added? https://translations.launchpad.net/mediaplayer-app/trunk/+pots/mediaplayer-app/zh_CN/+translate?start=0&batch=10&show=untranslated&field.altern07:35
dpmative_language=&field.alternative_language-empty-marker=1&old_show=all07:35
oSoMoNdpm: agreed, we should add translators comments, those are keywords for the HUD actions07:36
dpmoSoMoN, ah, great, that's what I figured. What about the rules to translate them? We want to make sure translations respect the syntax and don't break the app07:38
guschoSoMoN: I can't see a difference, but it looks ok07:40
oSoMoNdpm: afaik, they are free-form keywords or sequences of words, separated by semi-colons07:40
oSoMoNgusch: there’s a bug report linked to the MR, if you follow the steps listed there, you should be able to reproduce it before applying the patch, and verify that the patch fixes it07:40
dpmthanks oSoMoN07:42
oSoMoNdpm: wanna send out an e-mail to the team requesting to add translators comments for all those keywords? I can do it for the browser now07:42
dpmoSoMoN, sure. What's the best address to reach the whole team?07:42
guschoSoMoN: ah - I see - works now - I did not top approve because of the jenkins error ...07:43
oSoMoNgusch: yeah, there’s a problem with jenkins, builds time out after 60min, mmrazik is aware of the issue, I’ll top-approve myself when it’s fixed, thanks07:43
oSoMoNdpm: unfortunately we don’t have a ML for the team that I know of07:44
dpmoSoMoN, no worries. I'll find a way :)07:44
oSoMoNdpm: that would be gusch, renato, boiko, nerochiaro, me07:45
dpmperfect07:45
guschoSoMoN dpm I'm not sure, but did pmcgowan__ create an apps list?07:46
oSoMoNdunno07:47
dpmgusch, oSoMoN we created the core apps list, and I think it might be the best place: https://launchpad.net/~ubuntu-touch-coreapps07:47
dpmgood idea07:47
oSoMoNdpm: would this be good enough? https://code.launchpad.net/~osomon/webbrowser-app/hud-keywords-translators/+merge/16747608:02
dpmoSoMoN, will look in a minute, LP hasn't updated the diff yet08:09
dpmoSoMoN, nm, I looked on loggerhead. That looks perfect.08:10
oSoMoNdpm: cool, feel free to approve then08:11
nerochiarozsombi: please ping me when you have some time08:29
zsombinerochiaro: ping08:29
nerochiarozsombi: hey, yesterday timp tested the IMA test application and he agrees that the taps are very erratic, and don't behave like taps on buttons or other components08:32
nerochiarozsombi: i am thinking what's the best way to open a but with some concrete way to repro the bug08:33
zsombinerochiaro: we just tested it with bzoltan on the phone, and we can also confirm that on the phone, but I cannot confirm that on the tablet08:33
zsombinerochiaro: so, this is either our touch handling in IMA, or hybris problem on the phone08:34
nerochiarozsombi: for now the phone is our main target, so it needs some fixing, though not sure what exactly. In any case, do you think it is better to use a workaround for now (replace IMA with something else, like a few mouseareas positioned outside of the note ?08:35
zsombinerochiaro: perhaps... in any case one MA covering the entire IMA sensing would be enough...08:36
zsombinerochiaro: hmm... I use TouchPoint::pos() and not the normalizedPos()... perhaps if I switch to that it would solve the idea... though I don't have the phone in my hand...08:39
zsombinerochiaro: need to leave now, bbl08:40
=== zsombi is now known as zsombi|afk
bzoltanzsombi|afk: I can help with testing08:40
bzoltannerochiaro:  this issue is weird... bigger area you tap on the IMA less likely it takes the event. But if you just use the tip of your finger then it works fine ...08:41
=== chriadam is now known as chriadam|away
zsombi|afknerochiaro: bzoltan: you could try to replace all point.point() occurences in inversemouseareatype.cpp to point.normalizedPoint(), rebuild SDK and try with that08:49
* zsombi|afk gotta go now08:49
nerochiarobzoltan: zsombi|afk: i won't have time to mess around with this myself, unless we decide i should go with the workaround. cut certainly can't be trying things in the SDK, sorry08:55
nerochiarozsombi|afk: bzoltan: so should I file a bug for this ?08:55
oSoMoNgusch: approved, feel free to top-approve once jenkins has run CI09:01
guschoSoMoN: cool thx09:01
bzoltannerochiaro: zsombi|afk:I think this issue has little if anything to do with the SDK. I am positive that we just captured a hybris/driver problem.09:05
nerochiarobzoltan: well, either way i would like to know where to file the bug, of if you can file it better than me since you seem to know where it might come from09:19
Macphisto1983Hi all09:20
Macphisto1983I have a question, I'm starting now developing app on ubuntu platform, I have a 3 years background of developing app on Android devices09:22
Macphisto1983now I started following the tutorial on how to develop an appp on ubuntu, but I have an error building the app:09:22
Macphisto1983in the second page of the tutorial I have to create a component (popover) and i have an error on a line: Cannot assign to non-existent property "text"09:24
Macphisto1983this is the code sample:09:24
Macphisto1983Component {             id: currencySelector             Popover {                 Column {                     anchors {                         top: parent.top                         left: parent.left                         right: parent.right                     }                     height: pageLayout.height                     Header {                         id: header                         text: i18n.tr("S09:24
Macphisto1983can anyone help me09:25
Macphisto1983?09:25
nerochiaroMacphisto1983: can't help you right away, but as a suggestion in general please use pastebin.ubuntu.com to paste long-ish text snippets09:25
Macphisto1983ok sorry09:26
nerochiaroMacphisto1983: also somewhere on developer.ubuntu.com there should be the API documentation for all the classes, like Header. it might be that the text property has been removed, and if so you will see it there. (but if the tutorial is broken it needs to be fixed)09:28
nerochiarodpm: ^09:28
Macphisto1983ok thanks09:28
Macphisto1983i'll try to find my answer09:28
Macphisto1983if you could take a look09:28
Macphisto1983here is the code09:28
Macphisto1983http://pastebin.ubuntu.com/5735232/09:28
dpmMacphisto1983, let me have a look09:36
Macphisto1983dpm thanks09:38
me4oslavHello - dpm. I am free to talk in about 20 mins. BTW, are there other qreator guys here on IRC now?09:39
dpmhey me4oslav, thanks. It's only me atm09:39
me4oslavkk09:40
nerochiarooSoMoN: do you think the history model should be part of the Browser component or should it be separate ?09:41
nerochiarooSoMoN: and part ofthe app09:41
oSoMoNnerochiaro: it should be part of the component, actually I have a task to move it to the plugin and make it instantiatable from QML09:43
dpmMacphisto1983, I've just followed the tutorial up until page 2 and I cannot reproduce your error. Does your code look like this? -> http://pastebin.ubuntu.com/5735260/09:43
nerochiarooSoMoN: for now I think i'll just make it part of the plugin but still exposed as a context property09:43
dpmtimp, I think you are the best person to talk about tabs in the team. Would you have a few minutes for a question on tabs and nested pagestacks, now or later on?09:44
oSoMoNnerochiaro: sounds good09:44
timpdpm: you can ask now09:45
dpmcool09:45
timpdpm: I implemented the tabs and pagestack. Nesting needs to work in the future, but I haven't had time to really test that yet.09:45
Macphisto1983dpm, ok thank you, i make an error pasting some snippet of code09:46
dpmtimp, so I've got an app with 2 tabs, and one of them contains a pagestack with a root page with a list to select items, which take you to other pages.09:46
dpmtimp, from each "leaf" page you can go back to the root page through the "Back" action in the toolbar09:47
dpmtimp, so for this tab with the nested pagestack the workflow is as follows:09:47
dpm1) The root page with the list is shown: http://ubuntuone.com/0wwMoVfCULgMy7sfRBuw9909:47
dpm 2) I then click on e.g. URL and the URL page is shown: http://ubuntuone.com/7bteNl5DJHERVkTf8iUtcm09:47
dpm3) I use the back action on the toolbar to return to 1)09:48
timpok, sounds logical09:48
dpmtimp, yeah, so far so good. Until I read the app design guides :)09:48
dpmtimp, the design guides tell me that I shouldn't be using tabbed and page (i.e. toolbar) navigation on the same view. Unfortunately, that's exactly what I'm doing in 2)09:49
dpmCalum tells me that on 2) the header should be the name of the current page, rather than the name of the tab09:50
timphmm09:50
dpmBut although I've defined the page title in the code, it keeps showing the tab's title, instead of the page's title09:50
timpI would expect it the way it is implemented now. So navigate between pages using tabs, and the pagestack is just one of those pages09:51
dpmSo I'm wondering if there is something I'm not getting or doing wrong09:51
timpyou are not doing something wrong, when you have tabs active, that overrides the header contents to show the tab selector09:51
timpdpm: do you have a link to the design guidelines that say it should be different?09:52
dpmyeah, just a sec09:52
dpmtimp, see the bottom of the page at http://design.ubuntu.com/apps/global-patterns/navigation#deep09:53
timpdpm: it doesn't say *how* to do the combination, it says *not* to combine the two09:54
Macphisto1983dpm: thank you, I finally get it right.09:55
dpmtimp, yeah, but I'm actually combining them in 2) I can either use tabbed navigation by tapping on the header or page navigation using the toolbar09:55
timpdpm: perhaps we need more feedback from design here09:55
timpdpm: so according to those guidelines you should change the navigation structure of your app09:56
dpmtimp, yeah, but I don't really know how. I thought the way I did it fitted quite nicely with the components we have. I'll follow up with Calum, thanks!09:56
timpdpm: if the combination should be possible, please ask calum to write guidelines for that, and file a bug so it is clear how we should implement it09:57
dpmok, thanks!09:57
dpmMacphisto1983, cool, glad to hear that!09:58
Macphisto1983dpm: I hope to be helpful as soon as possible, now I'll take a look at the documentation and I'll start developin'... thanks again.10:01
dpmMacphisto1983, awesome! I'm sure you can put your Android development experience to good use in Ubuntu!10:01
* me4oslav whatces dpm video10:17
me4oslavok10:18
me4oslavwe need to talk10:18
me4oslavdpm: so, did I got it correct that this is to replace the Desktop version?10:20
dpmme4oslav, indeed. It already runs on desktop and phone (in fact, I shot the video on my desktop), but we'll now be focusing on getting it to work right on the phone10:22
me4oslavdpm: right. The working bit is not the one that worries me (it does work). The look and feel bit is the problematic one. I don't mind the phablet SDK, it's great for mobile stuff10:25
me4oslavhowever10:25
me4oslavthis desktop app != mobile app10:26
me4oslavlike imagine what would happen if10:26
me4oslavFirefox on the desktop had the same UI as on Android10:26
dpmme4oslav, I understand, but I'm not too worried about convergence yet, and for that, the desktop version. The plan is to rather focus on the phone version for now.10:27
me4oslavdpm: so, what I'm saying is keep the desktop version and develop a touch version too10:29
me4oslavbecause the current touch version is good for touch, but I don't wanna see "a la Friends" situation10:29
dpmme4oslav, yeah, that's actually what I'm doing. I'm not going to remove the current desktop-only version. That's in maintenance mode and still available10:29
dpmin fact, we've been doing quite a lot of releases lately10:30
me4oslavwhere a mobile app (Friends) is stick on a desktop :/10:30
me4oslavso, let me check the current desktop one10:30
me4oslavand give me a link to the wireframes10:30
dpmme4oslav, https://ubuntu.mybalsamiq.com/projects/qreator/grid10:31
dpmyou can get the latest desktop version from https://launchpad.net/qreator10:32
me4oslavdpm: ok, that's mobile only I need to look at desktop10:32
me4oslave.g. will install it10:32
me4oslavbut I need access to balsamiq10:32
me4oslavto create wireframes for desktop too10:32
dpmme4oslav, sure, if you pm me the e-mail you want to use for balsamiq access, I can add you10:33
me4oslavdpm: I haz access. Will look at it today and possibly do some stuff10:36
dpmme4oslav, that sounds brilliant, thanks!10:36
me4oslavyou totally went British on me ... :>10:37
dpmwell, I'm closer to the UK than to the US :)10:37
dpmbtw, if you're doing wireframes, you'll find icons for gestures and QR codes in the "Project asset" tab10:37
me4oslavwell duh, Britain is in Europe, USA is not :D Even in tthe Balkan countries it's next to impossible to find somebody to teach you USA English10:38
Kaleohttps://docs.google.com/a/canonical.com/document/d/1z3OtBp0L0upjo85khfaF8HSp4tMYI_-thnnM53RZ8UU/edit#11:06
me4oslavdpm: I want to make new icon for the app ... Ubuntu Touch style. Fancy one?11:24
dpmme4oslav, that'd be awesome11:28
me4oslavgreat11:30
* me4oslav gets on it11:30
me4oslavdpm: do you want to keep the ubuntu branding on it? e.g. having it orange or purple coloured.11:34
dpmme4oslav, for the icon it's not necessary. For the app, the SDK should take care of the Ubuntu look11:35
me4oslavdpm: awesome. I was planning on having it green (the icon)11:35
dpmok :)11:36
Kaleotimp: do you have a mumble sec?11:40
timpy11:42
timpKaleo: https://docs.google.com/a/canonical.com/document/d/1GVw0jQfvdhG-xkL6HAb7EJdpQlb32Q2-JlBLy2slsF4/edit#heading=h.1w7t2rskl45811:43
me4oslavdpm: http://i.imgur.com/QegC8Rz.png11:53
me4oslavtell me if anything bugs you11:53
dpmme4oslav, nice! I'd like to show it to the other dev and add some comments. Do you have some place where you usually share your designs and comments can be posted? Would that dribble thing work for that?11:55
me4oslavdpm: I don't even have dribble, but I can make one. I will make a fully squared one for uTouch too, as there Unity crops the shape automatically11:57
dpmme4oslav, whatever works best for you. You don't need to create one just for this. I think I'd like to make the QR code a bit bigger and the circle less prominent, but I won't have much time to review properly until this evening11:58
me4oslavkk, will fix those two, make the uTouch version and upload it somewhere11:58
me4oslavdpm: check g+12:12
dpmme4oslav, cool, thanks. Could you share the post with Stefan as well? I'm not sure it's automatically shared if I just mention him on a comment12:16
me4oslavdpm: that works :) he will see it too, 101% sure12:17
dpmme4oslav, great, let's take it from there, thanks!12:17
me4oslavkk12:17
* me4oslav goes back to study-ing ASP12:18
nerochiarooSoMoN: any specific reason why the HUD is instantiated inside Browser.qml instead of inside the main webbrowser app qml file ?12:30
oSoMoNnerochiaro: no specific reason12:41
nerochiarooSoMoN: ok, it will need to be moved back to the main app later12:41
guschom26er: can you review https://code.launchpad.net/~schwann/gallery-app/gallery-more-robust-autopilot-tests/+merge/16753113:17
om26ergusch, sure, looking13:17
kalikianadpm, maybe you can have another look at https://code.launchpad.net/%7Eubuntu-sdk-team/ubuntu-ui-toolkit/navi/+merge/165617 there's no more "modules" so I think it solves the inconsistencies13:22
dpmkalikiana, cool, I'll see if I can manage this evening to build the new docs online and check it out. Otherwise this might have to wait until Tuesday unfortunately, as I'll be away for a couple of days.13:24
om26ergusch, approved, btw nice approach with the _retry13:24
kalikianadpm, k, thanks for the heads-up13:24
guschom26er: thx13:24
guschom26er: maybe we should put the _retry functions in a more generic place13:25
guschom26er: so more projects can use it13:25
guschom26er: any maybe use a better name ;)13:25
om26ergusch, yes, that would turn out to be handy, especially for the cases where tests fail on one platform and pass on the other13:26
guschom26er: but it's up to you QA guys to do that13:27
zsombi|afkKaleo: greyback: timp: have any of you had the time to look at the layouts MR yet?13:27
om26ergusch, I'll make a merge proposal for autopilot and try to get feedback from thomi on it.13:28
guschom26er: the more Loader Items are in use, the more this "retry" is needed13:28
greybackzsombi|afk: so sorry, but not yet13:28
=== zsombi|afk is now known as zsombi
zsombiok13:28
Kaleozsombi: nope, sorry13:30
=== daker_ is now known as daker
=== hatchetation_ is now known as hatchetation
=== jono is now known as Guest19882
=== ashams is now known as Guest15032
om26ergotta love mumble for not connecting14:02
=== Guest19882 is now known as jono
=== jono is now known as Guest85454
=== daker_ is now known as daker
=== ken_ is now known as Guest1980
oSoMoNgusch: here is the Tabs MR: https://code.launchpad.net/~osomon/webbrowser-app/tabsmodel/+merge/16758016:04
guschoSoMoN: ok - on it ...16:04
oSoMoNgusch: thanks, and good luck!16:05
gusch;)16:05
=== daker_ is now known as daker
me4oslavdpm: in other news me and stefan settled for the icon design, it's all up to your feedback now :)16:12
=== Guest1980 is now known as kenvandine
nerochiaroKaleo: still around ?17:02
nerochiaroKaleo: I'm trying to figure out how to run autopilot tests on the device for the plugin, since they won't work without a proper desktop-file-hint, but thre's no desktop file for the library17:03
=== tiagoscd is now known as Guest15290
=== Guest15290 is now known as tiagoscd
AskUbuntuHow to take ownership over an existing Ubuntu Software Center app? | http://askubuntu.com/q/30448117:45
nerochiaroom26er: you around ?18:10
om26ernerochiaro, hey, yes18:10
nerochiaroom26er: i am trying to setup autopilot tests for a QML plugin library. i'm not really sure how to make them work on the device since to launch any app i need to pass --desktop-file-hint but my little test app i use only for the autopilot tests dosn't have a desktop file18:12
om26ernerochiaro, you would need to stop the shell for that I guess18:13
nerochiaroom26er: how can i do that from an autopilot test ?18:14
om26ernerochiaro, if you use phablet-test-run -n it will kill the shell for you18:14
om26ernerochiaro, so that would make it, "phablet-test-run -n your_test_suite" from your desktop18:16
om26ernerochiaro, also if you want to do what the phablet-test-run does to stop the shell, look here: http://bazaar.launchpad.net/~phablet-team/phablet-tools/trunk/view/head:/phablet-test-run#L9418:18
nerochiaroom26er: i will probably need to call phablet-test-run on the device, in the test setup18:35
nerochiaroom26er: do you know of any other app that does that ?18:35
nerochiaroom26er: i would like to use it as an example18:35
om26ernerochiaro, no, I am not sure if any other app does that18:40
nerochiaroom26er: ok, i'll play around with it. does it pass to the application any cmd line args that you pass to it ?18:40
om26ernerochiaro, yeah, the app actually starts its just behind the shell so every argument should be passed18:41
=== francisco is now known as Guest71674

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