=== salem_ is now known as _salem === _salem is now known as salem_ === salem_ is now known as _salem === shuduo is now known as shuduo-afk [09:44] timp, How do I show the tab navigation drawer action in the leadingActionBar? [09:45] I couldn't find that in the UITK Gallery example [10:16] nik90: if you have more actions than numberOfSlots, you automatically get an overflow [10:16] nik90: so in case of the leadingActionBar, you get an overflow when you have more than 1 action in it [10:19] hello, i have a question about js scopes... [10:19] chesedo: sure :) [10:19] is it possible to declare an object in a seperate file and then to import it? [10:20] the object might be quite long as it will be used to handle data easier [10:20] ... so do not want it in the main file [10:24] chesedo: sure, it's possible, you need to put your extra file in src/node_modules and do it this way: http://stackoverflow.com/questions/3922994/share-variables-between-files-in-node-js [10:24] chesedo: well, you don't "need" to, but it's cleanrer this way, all js imports are in the same place :) [10:24] cleaner* [10:25] ok, let me try [10:31] great that worked. ty davidcalle [10:31] chesedo: cool, yw [11:03] timp, in Podbird we have 4 tabs which we can access using the tab switcher button (3 lines). When I switch over to PageHeader, I didnt declare any leadingActions thereby hiding that tab switcher which is essentially for us. [11:04] timp, I tried leadingActionBar: navigationActions but that didnt work either [11:04] How do I show the tab switcher? [11:07] nik90: oh, right, you don't get a list from the Tabs automatically any more. We don't have designs (yet?) for tabs working with convergence [11:08] the basic idea was for apps to use the AdaptivePageLayout, so they can support convergence [11:09] timp, while we can use AdaptivePageLayout, on the phone it shouldn't matter much..tabs should be tabs on phones, while on desktops we can show additional columns [11:09] that means, to get a list like the old tab overflow panel, you'd have to add actions to leadingActionBar like [ Action { onTriggered: apl.addPageToNextColumn(myTab } ] [11:09] so we do something like Dekko and create a custom sliding menu from where we can launch other pages? [11:10] better support for a custom sliding menu like that should be added to the toolkit eventually, but we didn't start to work on that yet, and we don't have the requirements yet [11:11] nik90: but yes, a sliding menu like that is an option. Adding a list of actions to the leadingActionBar would be less work though, I imagine [11:12] timp, I suppose adding a list of actions would be less work, but then it would show the overflow button (3 vertical dots) which might look out of place :/ [11:19] nik90: the leading action bar has this by default: [11:19] StyleHints { [11:19] overflowIconName: "navigation-menu" [11:19] } [11:19] so it shows the "tabs" button [11:20] if it doesn't, let me know because that is a bug [11:20] oh nice, will try it out. [11:21] nik90: if there are any more questions, don't hesitate to ask :) I'll work on a blog post about the new header stuff and it is good to know which things are not obvious :) [11:21] timp, will do === _salem is now known as salem_ [12:48] timp, anyway of making a generic list of actions and using that in different pages to avoid code duplication? I tried creating a ActionList with common actions, and then settings that to the leadingActionBar.actions but didnt work. [12:55] nik90, can you not just have a property list myActions ? and set the myActions to .actions ? or are you wanting it as a component ? [12:56] ahayzen, I want to implement it as a component and push it into own file and use it in several places [12:57] hmm, i think we have been using states for that [12:58] nik90, something like this? http://bazaar.launchpad.net/~ahayzen/music-app/convergence-tabs-with-sidebar-01/view/head:/app/components/HeadState/PlaylistsHeadState.qml [12:58] ahayzen, ah ... but I am transitioning from PageHeadState to PageHeader :) [12:59] same :-) [12:59] ahayzen, turns out that the new PageHeader doesn't display the list of tabs anymore automatically [12:59] nik90, note at the bottom of that the PropertyChanges [12:59] oh i had that as well [12:59] let me find what i did... [13:00] nik90, http://bazaar.launchpad.net/~ahayzen/music-app/convergence-tabs-with-sidebar-01/view/head:/app/components/MusicPage.qml#L46 [13:00] nik90, set the leadingActionBar.actions to a list of the tab actions [13:01] currently that is a fixed list, but hopefully gonna improve that a bit [13:01] ahayzen, yup that's what I am trying to do, however I want to turn that list of tab actions into a component so that I can use it in other tab pages. [13:01] I could try instead creating a generic page component instead [13:02] i just put it in the main under the Tabs {} [13:02] then i could access pretty much anywhere with tabs.tabActions [13:02] ah...think I will do that as well [13:02] http://bazaar.launchpad.net/~ahayzen/music-app/convergence-tabs-with-sidebar-01/view/head:/app/music-app.qml#L640 [13:02] nik90, ^^ like that [13:03] ahayzen, yup that's it..perfect! thnx [13:03] \o/ no problem [13:03] i want to move all of the tabs and actions to be generated from a repeater eventually :-) [13:04] I/SDK Team don't know what will become of tabs in the convergent future...they don't have a design for it. [13:04] which is a tiny bit worrying considering there are so many apps out there using tabs [13:05] yeah, i had fun getting the tabs to work in our 'converged' scenario [13:05] ;) [13:05] ahayzen, so does switching tabs does the same thing in desktop mode in the music app with the only difference being the sidebar showing the now playing song and playlist? [13:06] s/does/do [13:06] yup [13:06] and it displays on a 10" tablet [13:06] in landscape [13:06] ah ok...we were exploring this for podbird as well. but we have other work to get done before we can think of convergence [13:07] :-) if you look below the Tabs you can see how we've done the sidebar http://bazaar.launchpad.net/~ahayzen/music-app/convergence-tabs-with-sidebar-01/view/head:/app/music-app.qml#L891 [13:07] note this hasn't been reviewed yet, it was just created for demoing at MWC [13:08] ok.. [13:08] but it is looking much closer than previous attempts :-) [13:08] only 1 or 2 issues left IIRC [13:08] looking forward to see MWC demoes of the music app :) [13:09] hah :-) or just push lp:~ahayzen/music-app/convergence-tabs-with-sidebar-01 to a tablet :-) [13:09] or tweak the wideAspect value so you can play with it on a mako like i do :') [13:09] I think music app and Dekko are the best forerunners of showing convergence of real-world desktop apps [13:09] well I don't own a tablet nor a desktop with 16.04 to try it out :P [13:10] this is why I need the god-sent desktop-kit to work ;) [13:10] yeah, same hence me having to develop on a mako :-) [13:10] but i have a slimport adaptor so can play on a 'big screen' :-) [13:10] nik90: hmm, why that doesn't work? [13:10] hmm I should get that too since I have a mako [13:11] nik90: you can define the actions like Action { id: action1 }; Action { id: action2 }; and then define leadingActionBar.actions: [action1, action2] [13:11] timp, I want to have that Action { id: action1} and Action { id: action2} together in a separate file. [13:11] I tried it with http://paste.ubuntu.com/15179770/ [13:12] on referencing TabsList{} or an instance of it, I got error that an object cannot be used in place of a list. [13:13] could you not do ... QtObject { property list actions: [ ... ] } ... MyObject { id: myObject } ... leadingActionBar.actions = myObject.actions ? or is that super hacky ;-) [13:13] nik90: leadingActionBar.actions: TabsList.actions ? [13:13] or that :-) [13:14] * nik90 tries [13:14] in TabsList.qml you could even put the Actions as children of the ActionsList. It has: default property alias children: list.actions [13:14] ok [13:15] yup that works [13:16] thnx [13:16] maybe you want to add property int currentTab to the TabsList, and something like Action { id: add; visible: tabsList.currentTab != 2 } [13:17] so you can hide the current tab from the tab list [13:24] yes :) === JMulholland_ is now known as JMulholland [16:04] zsombi: hiya, question :) is it possible apl.removePages(apl.primaryPage) is async? if so, do I have quarantee pages will be removed, but not the one I push to the stack in the next line? [16:04] zsombi: I either have a bug in QML (highly probable in this case), or a page that is added *after* that call, is also being removed [17:13] balloons, on your coreapps tests document, what does "Templates in place for all tests" refer to? [17:13] dpm, I should move that over or remove it. I was originally tracking how the tests were laid out within the projects [17:14] but it's more or less an answered question -- if there's qml and autopilot and manual tests, then it has everything we want [17:15] balloons, ok, gotcha. I think one thing to address will be also the fact that unit tests are not run on build by default from what I see on column F [17:15] yes, I was just noticing it no longer seems to be the case for anything. Not sure what changed, but I'm thinking of just forcing it on the jenkins side instead of relying on the cmake build [17:16] so that way it can't be shut off as easily :-) [17:20] balloons, ok. Also I'm surprised to see that only 3 apps have manual tests. I thought we had gone through most of the core apps and wrote tests when we were prepping things up for Pilot [17:20] we have them, they just aren't in the source tree [17:20] we wrote and used 4 fully vetted testsuites in checkbox format [17:21] I'm not sure what happened to the 4th one -- those are what is in the source tree. I'd like the other suites to get added in the same way I think [17:22] oh, if they're not in the source tree, where are they currently? [17:24] popey would know more, and could answer better than I. However, they are in pads / wikis from what I remember in creating the original 4 [17:25] very similar to the other system apps. There manual tests are strewn about [17:25] so it seems to me at least [17:29] for a js scope, where should images (emblems) be stored and how will their uri be? [17:42] hello [17:44] I'm have trouble to build my software because I rely on an "external" ppa [17:44] when I submit my package to launchpad === zequence_ is now known as zequence [17:46] what should I do to have my build successful? === javiercrowsoft1 is now known as javiercrowsoft [18:47] Hello everyone! [18:49] I'd like to take up the task of creating a WhatsApp client for Ubuntu Touch, but I just wanted to check to see if there was a reason no one has done this already? [19:00] I posted about it on the forums as well, because a team of people got it running for FirefoxOS: http://ubuntuforums.org/showthread.php?t=2314659 [19:36] branau: main reason is that WhatsApp actively break third party clients, and ban users they catch using them [19:37] also, without support from the whatsapp server side, it will have pretty limited functionality on ubuntu phones [19:48] not sure about the lack of functionality, but the terms of service are definitely an issue [19:59] dobey, that makes sense, thanks [19:59] Might be time to start boycotting whatsapp === philipballew is now known as Guest44851 [23:18] ahayzen, ever get the error: unable to assign AppHeader_QMLTYPE_28_QML_34 to AppHeader_QMLTYPE_84 [23:18] ahoneybun, don't think so, what you trying todo? [23:19] seems to be related to a move from 1.2 to 1.3 components [23:19] with PageStacks [23:20] are all the imports updated to 1.3? [23:20] nope, that worked [23:21] looks so much better with 1.3 over 1.2 [23:21] with the header alone [23:22] well then [23:22] ahoneybun, does it tell you a line number and file where the issue was? [23:22] ahayzen, I fixed it after I checked all the version numbers [23:22] ah :-) [23:22] \o/ [23:23] now to look at mhall119's code how he uses pages in pages with PageStack [23:23] ...pages in pages... ? [23:23] under the Contribute page I want to have subpages of the different flavor [23:23] *s [23:23] if possible [23:23] like sections ? [23:23] that might work better [23:23] make it flickable [23:24] like what Contacts has "All" | "Favourites" [23:24] on thouse [23:24] I could never get those to work or figure them out [23:24] or both [23:24] XD [23:24] let me find the docs [23:24] they are super simple [23:24] I saw them [23:25] or from the reddit app [23:25] ...once you know how :-) [23:25] well that appiles to a lot [23:25] *applies [23:25] like spelling [23:25] I just got head.actions to work lol [23:25] ahoneybun, look at the example here https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.PageHeadSections/#model-prop [23:26] ahoneybun, then all you do is visible: page.head.sections.selectedIndex === thisIndex on each of the items [23:26] visible? [23:27] yeah so if you have MyFirstItem { visible: page.head.sections.selectedIndex === 0 } MySecondItem { visible: page.head.sections.selectedIndex === 1 } [23:27] etc [23:28] will make MyFirstItem be shown when the first section is selected and the MySecondItem on the second [23:28] you said sections so I went here: https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.Sections/ [23:28] yeah that as well :-) [23:29] how different are thouse? [23:29] those? [23:29] they are the same thing [23:29] just the page.head.sections is already in the Page for you [23:31] now how do I add things to each? [23:34] there are move then 2-3 flavors though... [23:34] the docs recommend not using more then that