/srv/irclogs.ubuntu.com/2015/08/28/#ubuntu-app-devel.txt

ahoneybunrpadovani: around?01:31
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chriadam is now known as chriadam|away
=== chihchun_afk is now known as chihchun
t1mpzsombi_: ahayzen was yesterday trying something similar to what you are doing: http://pastebin.ubuntu.com/12209037/10:14
t1mpzsombi_: but yeah, like that you only need a single function binding10:14
ahayzent1mp, are you at the sprint?10:15
t1mpahayzen: no10:15
ahayzenah10:15
zsombi_t1mp: yes, ans as I said, there can be only one function set there... and that's not enough for us10:16
t1mpright10:16
t1mpzsombi_: what if we don't return anything in the addPageTo*Column, and we add a pageAdded(Page) signal?10:16
t1mpahayzen: the problem with the incubator is that only a single functin can be bound to onStatusChanged. So if we watch the event internally, you cannot use it any more from the returned incubator10:17
t1mp*function10:17
ahayzen:-/10:17
ahayzenbut you would only ever want it todo ^^ anyway right?10:17
ahayzenso you could just do that internally ?10:17
ahayzent1mp, what would happen if you did Connections { target: pageIncubator; onStatusChanged: {} } ?10:18
t1mpif I understood zsombi_'s explanation well, you cannot do that because the onStatusChanged of the incubator is not a real signal, but a callback function10:24
ahayzenah10:26
t1mpkalikiana: do you have time for a quick review? https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/headercontents/+merge/26943610:27
t1mpkalikiana: or slow ;) any speed you like actually10:28
ahayzent1mp, is there a recommended way of doing different header actions per head section? assuming something like using states in the root page ?10:30
t1mpahayzen: what do you mean with head section?10:30
t1mpahayzen: you  mean in the different columns in the AdaptivePageLayout?10:31
t1mpahayzen: each Page in a column has its own actions which will be shown in the (sub)header of that column10:31
ahayzenhead { sections { } }10:31
ahayzenwe have different header actions per section, i've got it working one sortof hacky way trying to figure out if there is a better way10:31
t1mpahayzen: are you using the sections.model to specify the sections?10:33
t1mpahayzen: instead of the model with strings, you can give a list of Actions to the "actions" property10:33
ahayzent1mp, yup10:33
ahayzenooo10:33
ahayzent1mp, are there any examples of this?10:34
t1mpyes10:35
t1mpuhm.. the online docs are probably not up-to-date :(10:35
ahayzenyeah :'(10:35
* ahayzen looks in the code10:35
t1mpahayzen: if you did a "qmake && make docs" in a recent lp:ubuntu-ui-toolkit checkout, then check documentation/html/qml-ubuntu-components-sections.html#actions-prop10:36
ahayzenah :-)10:36
t1mpahayzen: head.sections is a Sections item, so it works the same in the header, just set head.sections.actions: [ ... ]10:37
ahayzenfound it :-)10:37
ahayzenhmm that looks possible..not the next challenge will be the different states10:37
ahayzenas they have like search bars :-)10:37
kalikianat1mp: lol, lemme make some tea and do a slow review then ;-)10:39
ahayzent1mp, is there a supported way for starting on a different head section index other than 0 ? eg this doesn't work http://pastebin.ubuntu.com/12213477/11:28
t1mpahayzen: it should work. Can you report a bug?11:29
ahayzenif i delay it enough so that selectedIndex is set after everything has been fully created, it seems to work11:29
ahayzenokies :-)11:29
ahayzent1mp, bug 148985011:36
ubot5bug 1489850 in ubuntu-ui-toolkit (Ubuntu) "Page head sections always start on selectedIndex = 0" [Undecided,New] https://launchpad.net/bugs/148985011:36
t1mpahayzen: thanks. I confirmed it11:37
ahayzent1mp, awesome thanks :-)11:37
* ahayzen appears to be creating loads of work for the SDK folks ;-)11:37
t1mpahayzen: no you are doing good work pointing out the flaws that we still need to fix in new components :)11:45
ahayzent1mp, hehe no problem :-) are they likey to be fixed in the same timeframe as the others? eg OTA7ish ?11:45
ahayzenas all these things i find will be blockers to landing convergence for music11:46
t1mpI'll do my best for OTA7, but it might be OTA811:47
ahayzencool :-)11:47
NymereaHello guys11:53
NymereaSomeone has a tutorial for translate an application (ubuntu touch) with qmake ?11:54
=== MacSlow is now known as MacSlow|lunch
t1mpNymerea: https://developer.ubuntu.com/en/apps/qml/tutorials/internationalizing-your-app/12:09
t1mpMirv: ^thanks for finding the link :)12:09
Nymereat1mp, thank you, I'm going to check it12:10
Mirvtiyou're welcome :D12:14
Mirvt1mp12:14
=== chihchun is now known as chihchun_afk
=== MacSlow|lunch is now known as MacSlow
Lava141hi14:26
Lava141hum im makeing a application but i want an idea14:26
elopiopopey: do you know where can I find the source for the nearby photos scope?14:49
popeyelopio: i do not, kyleN may14:51
kyleNhi14:52
kyleNelopio, we have a nearby aggregator scope and a photos aggregator scope14:52
kyleN(we also have my photos scope, a child scope, and other photo child scopes, like facebook photots, instagram and so on)14:53
elopiokyleN: on the nearby scope, I see a section that's called nearby places in flickr.14:53
elopioI want to copy some of that.14:53
kyleNyes14:53
kyleNhang on14:53
kyleNhmm. it turns out that code is not yet public (although I don't see a reason why it isn't except it hasn't happened yet ;)14:55
kyleNelopio, what do you want to do specifically?14:55
elopiokyleN: I want to make a scope for nearby places in mapillary. I don't know how to make scopes, or how to get the gps position, so copying seems the easiest way to learn.14:56
kyleNelopio, OK. I can point you to some public code and resources14:57
elopiokyleN: thanks.14:58
kyleN1) developer info  on scopes with api docs is here: https://developer.ubuntu.com/en/scopes/14:58
kyleN2) what follows is some urls to some public scopes:14:58
kyleNthinking...15:00
elopiokyleN: I think I can make it with a gps example.15:01
kyleNwhat you really want is a simply scope that uses location awareness and calls a web api, right?15:01
kyleNsimple15:01
kyleNelopio, ^15:01
elopiokyleN: yes, I think so.15:02
kyleNelopio, the reason I hesitate is that two "simple" public scopes (day scope and holidays scope) require a access token from the web apis they call. you can get them for free.15:04
kyleNbut they will not build unless you provide that info in a file in your root project directory15:04
kyleNlet's use Day scope as an example (this is the top child scope displayed in the Today scope)15:05
kyleNDay scope accesses an authenticated web api at timeanddate.com to get the lunar phase15:05
kyleNyou can go to timeanddate.com and get a developer account (free) and get your api key and api secret15:06
kyleNso, first bzr branch lp:day-scope && cd day-scope15:07
kyleNcreate a file named "assets" there that contains this:15:07
kyleNset(APIKEY <yourkey>)15:08
kyleNset(SECRETKEY <yoursecret>)15:08
kyleNyou need to create a 15.04 arm click chroot to build in, like this (iirc):15:08
kyleNsudo click create -a armhf -f ubuntu-sdk-15.0415:09
kyleNnow in day-scope/ (yoru project dir: mkdir build && cd build15:09
kyleNnow you can build it (probably) with this command in build/: click-buddy --arch armhf --framework ubuntu-sdk-15.04 --dir .. --provision15:10
kyleN(--provision also installs it on your attached device)15:11
kyleNelopio, regarding location: you can get your lat and long from the SearchMetadata object as shown here: http://bazaar.launchpad.net/~day-scope-team/day-scope/trunk/view/head:/src/query.cpp#L21315:12
kyleNthen you can formulate your web api call and parse the (probably) json results to build you scope results15:13
elopiokyleN: okay, thanks a lot.15:13
kyleNyou are welcome15:13
elopiothis will take some time, but I'll be back with questions :)15:13
kyleNpopey, will be happy to help (kidding ;)15:13
popeylies15:14
=== UbuntuIndia is now known as kunal
kunalhi every body15:58
kunalcan any body help me15:58
kunali want to contribte to ubuntu open source projects.15:59
kunal?15:59
kunal????15:59
kunalseriously no one?16:01
=== davmor2 is now known as davmor2_HOLS
=== wendar_ is now known as wendar

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