ahoneybun | rpadovani: 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 | ||
t1mp | zsombi_: ahayzen was yesterday trying something similar to what you are doing: http://pastebin.ubuntu.com/12209037/ | 10:14 |
t1mp | zsombi_: but yeah, like that you only need a single function binding | 10:14 |
ahayzen | t1mp, are you at the sprint? | 10:15 |
t1mp | ahayzen: no | 10:15 |
ahayzen | ah | 10:15 |
zsombi_ | t1mp: yes, ans as I said, there can be only one function set there... and that's not enough for us | 10:16 |
t1mp | right | 10:16 |
t1mp | zsombi_: what if we don't return anything in the addPageTo*Column, and we add a pageAdded(Page) signal? | 10:16 |
t1mp | ahayzen: 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 incubator | 10:17 |
t1mp | *function | 10:17 |
ahayzen | :-/ | 10:17 |
ahayzen | but you would only ever want it todo ^^ anyway right? | 10:17 |
ahayzen | so you could just do that internally ? | 10:17 |
ahayzen | t1mp, what would happen if you did Connections { target: pageIncubator; onStatusChanged: {} } ? | 10:18 |
t1mp | if I understood zsombi_'s explanation well, you cannot do that because the onStatusChanged of the incubator is not a real signal, but a callback function | 10:24 |
ahayzen | ah | 10:26 |
t1mp | kalikiana: do you have time for a quick review? https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/headercontents/+merge/269436 | 10:27 |
t1mp | kalikiana: or slow ;) any speed you like actually | 10:28 |
ahayzen | t1mp, is there a recommended way of doing different header actions per head section? assuming something like using states in the root page ? | 10:30 |
t1mp | ahayzen: what do you mean with head section? | 10:30 |
t1mp | ahayzen: you mean in the different columns in the AdaptivePageLayout? | 10:31 |
t1mp | ahayzen: each Page in a column has its own actions which will be shown in the (sub)header of that column | 10:31 |
ahayzen | head { sections { } } | 10:31 |
ahayzen | we have different header actions per section, i've got it working one sortof hacky way trying to figure out if there is a better way | 10:31 |
t1mp | ahayzen: are you using the sections.model to specify the sections? | 10:33 |
t1mp | ahayzen: instead of the model with strings, you can give a list of Actions to the "actions" property | 10:33 |
ahayzen | t1mp, yup | 10:33 |
ahayzen | ooo | 10:33 |
ahayzen | t1mp, are there any examples of this? | 10:34 |
t1mp | yes | 10:35 |
t1mp | uhm.. the online docs are probably not up-to-date :( | 10:35 |
ahayzen | yeah :'( | 10:35 |
* ahayzen looks in the code | 10:35 | |
t1mp | ahayzen: 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-prop | 10:36 |
ahayzen | ah :-) | 10:36 |
t1mp | ahayzen: head.sections is a Sections item, so it works the same in the header, just set head.sections.actions: [ ... ] | 10:37 |
ahayzen | found it :-) | 10:37 |
ahayzen | hmm that looks possible..not the next challenge will be the different states | 10:37 |
ahayzen | as they have like search bars :-) | 10:37 |
kalikiana | t1mp: lol, lemme make some tea and do a slow review then ;-) | 10:39 |
ahayzen | t1mp, 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 |
t1mp | ahayzen: it should work. Can you report a bug? | 11:29 |
ahayzen | if i delay it enough so that selectedIndex is set after everything has been fully created, it seems to work | 11:29 |
ahayzen | okies :-) | 11:29 |
ahayzen | t1mp, bug 1489850 | 11:36 |
ubot5 | bug 1489850 in ubuntu-ui-toolkit (Ubuntu) "Page head sections always start on selectedIndex = 0" [Undecided,New] https://launchpad.net/bugs/1489850 | 11:36 |
t1mp | ahayzen: thanks. I confirmed it | 11:37 |
ahayzen | t1mp, awesome thanks :-) | 11:37 |
* ahayzen appears to be creating loads of work for the SDK folks ;-) | 11:37 | |
t1mp | ahayzen: no you are doing good work pointing out the flaws that we still need to fix in new components :) | 11:45 |
ahayzen | t1mp, hehe no problem :-) are they likey to be fixed in the same timeframe as the others? eg OTA7ish ? | 11:45 |
ahayzen | as all these things i find will be blockers to landing convergence for music | 11:46 |
t1mp | I'll do my best for OTA7, but it might be OTA8 | 11:47 |
ahayzen | cool :-) | 11:47 |
Nymerea | Hello guys | 11:53 |
Nymerea | Someone has a tutorial for translate an application (ubuntu touch) with qmake ? | 11:54 |
=== MacSlow is now known as MacSlow|lunch | ||
t1mp | Nymerea: https://developer.ubuntu.com/en/apps/qml/tutorials/internationalizing-your-app/ | 12:09 |
t1mp | Mirv: ^thanks for finding the link :) | 12:09 |
Nymerea | t1mp, thank you, I'm going to check it | 12:10 |
Mirv | tiyou're welcome :D | 12:14 |
Mirv | t1mp | 12:14 |
=== chihchun is now known as chihchun_afk | ||
=== MacSlow|lunch is now known as MacSlow | ||
Lava141 | hi | 14:26 |
Lava141 | hum im makeing a application but i want an idea | 14:26 |
elopio | popey: do you know where can I find the source for the nearby photos scope? | 14:49 |
popey | elopio: i do not, kyleN may | 14:51 |
kyleN | hi | 14:52 |
kyleN | elopio, we have a nearby aggregator scope and a photos aggregator scope | 14: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 |
elopio | kyleN: on the nearby scope, I see a section that's called nearby places in flickr. | 14:53 |
elopio | I want to copy some of that. | 14:53 |
kyleN | yes | 14:53 |
kyleN | hang on | 14:53 |
kyleN | hmm. 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 |
kyleN | elopio, what do you want to do specifically? | 14:55 |
elopio | kyleN: 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 |
kyleN | elopio, OK. I can point you to some public code and resources | 14:57 |
elopio | kyleN: thanks. | 14:58 |
kyleN | 1) developer info on scopes with api docs is here: https://developer.ubuntu.com/en/scopes/ | 14:58 |
kyleN | 2) what follows is some urls to some public scopes: | 14:58 |
kyleN | thinking... | 15:00 |
elopio | kyleN: I think I can make it with a gps example. | 15:01 |
kyleN | what you really want is a simply scope that uses location awareness and calls a web api, right? | 15:01 |
kyleN | simple | 15:01 |
kyleN | elopio, ^ | 15:01 |
elopio | kyleN: yes, I think so. | 15:02 |
kyleN | elopio, 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 |
kyleN | but they will not build unless you provide that info in a file in your root project directory | 15:04 |
kyleN | let's use Day scope as an example (this is the top child scope displayed in the Today scope) | 15:05 |
kyleN | Day scope accesses an authenticated web api at timeanddate.com to get the lunar phase | 15:05 |
kyleN | you can go to timeanddate.com and get a developer account (free) and get your api key and api secret | 15:06 |
kyleN | so, first bzr branch lp:day-scope && cd day-scope | 15:07 |
kyleN | create a file named "assets" there that contains this: | 15:07 |
kyleN | set(APIKEY <yourkey>) | 15:08 |
kyleN | set(SECRETKEY <yoursecret>) | 15:08 |
kyleN | you need to create a 15.04 arm click chroot to build in, like this (iirc): | 15:08 |
kyleN | sudo click create -a armhf -f ubuntu-sdk-15.04 | 15:09 |
kyleN | now in day-scope/ (yoru project dir: mkdir build && cd build | 15:09 |
kyleN | now you can build it (probably) with this command in build/: click-buddy --arch armhf --framework ubuntu-sdk-15.04 --dir .. --provision | 15:10 |
kyleN | (--provision also installs it on your attached device) | 15:11 |
kyleN | elopio, 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#L213 | 15:12 |
kyleN | then you can formulate your web api call and parse the (probably) json results to build you scope results | 15:13 |
elopio | kyleN: okay, thanks a lot. | 15:13 |
kyleN | you are welcome | 15:13 |
elopio | this will take some time, but I'll be back with questions :) | 15:13 |
kyleN | popey, will be happy to help (kidding ;) | 15:13 |
popey | lies | 15:14 |
=== UbuntuIndia is now known as kunal | ||
kunal | hi every body | 15:58 |
kunal | can any body help me | 15:58 |
kunal | i want to contribte to ubuntu open source projects. | 15:59 |
kunal | ? | 15:59 |
kunal | ???? | 15:59 |
kunal | seriously 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!