[00:14] hello === aaron is now known as Guest86034 === Guest86034 is now known as ahoneybun [00:18] in my ubuntu html5 project, I am trying to combin a button and a popover and optionselector, where when the button is clicked a popover is shown with a list of clickable options, when one of those options are clicked a dialog appears, I want to know if this is possible? I have been playing around with it but haven't gotten it to work, if anyone can point me out to a resource or example which could help me accomplish this t [00:42] I've been trying to get buttons in popups as well but QML guest6790 [00:42] not sure if it is [00:44] other then the close button for the dialog [01:19] ahayzen: free? [01:19] ahoneybun, sup? [01:19] ahayzen: I just got a idea for a app [01:19] *an [01:19] \o/ [01:19] membership card app [01:19] take pics of your card so you dont have to carry them all [01:20] so need to be able to access the camera [01:20] what like student ID cards etc? [01:20] insurance as well [01:20] gamestop and stuff [01:20] ah more documents that you would photocopy but still need [01:21] * ahayzen wonders about a mobile business card app that you could then 'share' to other people you meet via MMS/email/bluetooth whatever [01:21] ... but then is that what LinkedIn is these days? [01:22] yea a bit [01:22] ahoneybun, like what you said could work, suppose it just depends if the vendor themselves accept a photo of the card on a phone? [01:22] I mean most of the time you need the numbers on the card [01:22] like AAA [01:23] membership # [01:23] the phone # would be on your phone and if not you have it on the phone with the pic [01:23] like most of our cards use some form of RF/NFC or a barcode/chip ... but yeah i guess for smaller things like gamestop a photo with the id may work [01:23] I don't like to carry more then I need [01:24] same, tbh a photo of even the ones that have a barcode/membership # could be useful [01:24] would remove the need for 1.5 of my cards to carry ;-) [01:25] how would I get access to the camera [01:25] have a look at tagger i would say [01:25] https://code.launchpad.net/tagger [01:26] you'll definitely need the "camera" policy in your apparmor profile [01:27] otherwise ahoneybun https://developer.ubuntu.com/api/apps/qml/sdk-14.10/QtMultimedia.Camera/ [01:27] yea [01:27] thanks ahayzen [01:27] first time messing with that [01:28] have fun ;-) [01:29] so much code to found out if I need it [01:29] would it be a good idea to c+p and just test [01:29] ? [01:32] probably [01:34] Cannot assign a value directly to a grouped property [01:34] oh [01:34] old [01:34] odd [01:39] so it needs to be in its one qml file [01:39] or it at least works [01:39] lol [01:43] though o the device it shots at a angle [01:47] ahayzen: how do you make a button open a qml file? [01:47] like I want to click a button to start the camera [01:47] onTriggered? [01:47] just make it visible: false and flip that or put it in another page and push it on the stack [01:48] ue [01:48] que [01:48] PageStack? [01:48] yeah [01:48] probably best to sketch out some designs so you know what your heading for [01:49] like multiple pages etc [01:49] the only problem is that I never know what I can really do lol [01:49] I'm a bit limited in knewledge XD [01:50] hehe, just look at what other apps have done [01:50] seems they all are out of my grade lol [01:51] ..but the code is somewhere for you to c+p hehe ;-) [01:57] what component holds head.actions? [01:58] I have Ubuntu.Components 1.2 but it says "non-existen property head" [01:58] Page holds it [01:59] oh I see [01:59] lol [01:59] but I have Page [02:00] seems the order matters lol [02:01] wha? [02:01] I had 1.Page 2.Column 3. head.actions [02:01] 1. Page 2. head.actions 3.Column works [02:01] you definitely had the braces right? [02:01] yea [02:02] to end the head.actions [02:02] i mean the closing of Column... but interesting [02:02] could be that [02:03] yea [02:03] head.actions needs to be outside the column [02:03] thanks ahayzen [02:04] ahoneybun, generally we *try* to order things like this http://qt-project.org/doc/qt-5/qml-codingconventions.html [02:04] but that doesn't always happen hehe [02:06] there was bug 1315796 for the coreapps to try and get something like PEP8 used with python for QML..but yeah nothing happened [02:06] I kinda see but I would need a example of things I know (don't worry about giving me one atm) [02:06] bug 1315796 in ubuntu-ui-toolkit (Ubuntu) "Style Guide for Core apps" [Low,Triaged] https://launchpad.net/bugs/1315796 [02:06] lol [02:06] I'm trying to look though tagger for how he started the app [02:06] the cameraa [02:07] ahoneybun, app started here http://bazaar.launchpad.net/~mzanetti/tagger/trunk/view/head:/app/main.cpp and that launches http://bazaar.launchpad.net/~mzanetti/tagger/trunk/view/head:/app/qml/tagger.qml [02:08] the camera starts right away [02:08] looks like the camera is here http://bazaar.launchpad.net/~mzanetti/tagger/trunk/view/head:/app/qml/tagger.qml#L221 [02:08] note the startAndConfigure() on line 236 [02:08] yea I've been using the developer.ubuntu examples so far [02:08] and the Connection {} to call that just below [02:09] which does? [02:09] when the app gains focus it starts the camera and it loses it stops, by the looks of it (i've never used the camera component either btw) [02:12] onTriggered: start() might work [02:12] but I need find what to connect it to [02:13] ahoneybun, literally do the same as they did from L243->246 [02:13] that should work enough for now [02:13] if not yeah try doing it on the trigger/onVisible [02:14] I dont know [02:14] what connections does [02:14] well [02:14] you said it [02:14] but I'm still trying to understand it [02:15] http://doc.qt.io/qt-5/qml-qtqml-connections.html [02:15] so like if you had a Rectangle { id: rect } [02:15] somewhere else in your code you could do Connections { target: rect; onWidthChanged: { // do stuff } } [02:15] head [02:15] so you can like connect to another object [02:16] im not getting it sadly [02:16] lol its complicated until you try it [02:16] can't try if I dont get it [02:17] plus I like pictures lol [02:17] http://imgur.com/W3avS5t [02:18] looks like you need Reader {} somewhere [02:18] yea [02:18] then you need to make that visible onTriggered [02:18] but idk what design your going for ;-) anyway i need sleep [02:19] ok night ahayzen [02:19] thanks a lot :) [02:19] no problem, night o/ [02:19] night === ahayzen_ is now known as ahayzen [14:44] moring ahayzen [14:44] ahoneybun, afternoon [14:45] lol [14:45] so I put the camera on a different tab [14:48] ahoneybun, does it work as you expect now? [14:53] the camera does, at first it was at a 90 degree till I took some code from tagger [14:54] orientation: device.naturalOrientation === "portrait" ? -90 : 0 [14:54] for VideoOutput [14:55] now displaying the cards is a different ball game [14:55] haha [14:56] might be easier with textfields lol [14:56] to put the numbers lol [14:56] http://sturmflut.github.io/ubuntu/touch/2015/05/31/ubuntu-touch-app-wishlist-may-2015/ Any additions/corrections? [14:57] uBeginner? [14:57] lo [14:58] I actually thought about uBeginner, but wasn't sure which category it fits into etc. [14:58] true [14:59] it would be a utils [14:59] but you have clone of small utils [15:00] * ahoneybun is a bit biased as he is the dev of uBeginner lol [15:00] But it is not actually a "clone", is it? [15:00] no [15:00] Might have to rework the categories again next time. Work on progress. [15:01] of course [15:01] s/on/in/ [15:01] games, utils, music, [15:01] video [15:02] some really cool scopes out there too [15:02] is Level a clone of something? [15:02] Yes, there are lots of these level apps on Android and iOS [15:03] Maybe just call the category "small utilities"? [15:03] And add a "Scopes" category [15:03] yea since the concept is not really a clone [15:04] it is not copyrighted to make a level app (yet) lol [15:08] ahayzen: missing: Business card scanner [15:32] ahoneybun: We have a business card scanner? [15:32] he was talking about it [15:32] brb [15:32] Oh cool === aaron is now known as ahoneybun [16:02] In the last two months the app store has seen an added/updated entry every three hours on average [16:02] Hm no [16:02] Thats just the additions [16:03] A new app/scope was added every three hours [16:06] thats kinda good [16:11] That's awesome! In the first year, we didn't even average one new app/scope a day! [16:12] depends on the quality [16:16] Sure. [17:09] DanChapman: Dekko is damn awesome [17:30] ahoneybun: thanks :-) glad you like it so far. [18:00] Beta is pretty damn stable [21:35] ahayzen: I'm bothering just you too much right? lol [21:39] ahoneybun, possibly, why? lol [21:43] don;t want to do thatlol [21:43] *don't want to do that lol [21:46] * ahoneybun will poke other people lol [21:48] ahoneybun, haha i was only joking :-P but i do need to go to sleep soon gotta get up early tomorrow, whats the issue your having? [21:54] I'm trying to make a function to switch from 6 different TextFields [21:54] but I thought you could just click the textfield to edit it [21:54] you can? [21:54] but " property TextField focused: score1" [21:54] this keeps me from it [21:54] but if I remove it it breaks [21:55] no like TextField { id: textField1 } [21:55] I'm working on Gazeteer (sorry for that [21:55] ? [21:55] oh [21:55] the focussed var thing i remember [21:55] so you want it todo what? [21:56] six different? [21:56] yea [21:56] litle me show you [21:57] http://pastebin.ubuntu.com/11482016/ [21:58] yeah either your gonna have a horrific if then else if then etc statement or you could like have a list containing the textfields like [field1, field2] then keep an index and just increment that or you could do something funky with repeaters as they are all the same anyway [21:59] a combo button? [21:59] could do that [21:59] depends what you want the UI todo? [22:00] combobutton to change what score I am editing [22:00] removing this: property TextField focused: score1 ; gives me a error about actualValue [22:00] not defined.. [22:01] yeah it will you need to set the focused value depending on what you select from the combobox? [22:02] oh [22:06] * ahoneybun 's head blows [22:06] Cannot assign to non-existent property "spacing" [22:06] ComboButtons have spacing [22:12] ahayzen: list? index? [22:13] property var myList: [textFieldA, textFieldB]; property int currentFocusedField: 0 [22:13] or something idk [22:13] currentFocusedField [22:16] * ahoneybun moves on for today [22:16] thanks ahayzen [22:17] haha no problem [22:17] best for both of us lol [22:25] anyone there?