**** BEGIN LOGGING AT Sat Aug 01 02:59:58 2015 Aug 01 06:01:16 Tofe: Ping Aug 01 09:38:40 Herrie: pong Aug 01 09:41:37 Do you know how I can adjust the width of a Rectangle to the max width of the contents of the ListView which is inside of it Aug 01 09:47:56 ah Aug 01 09:48:29 First, one issue I see here is that there might be some content of the ListView that hasn't been built yet Aug 01 09:49:10 If you scroll and some content is wider than your rectangle, what behavior do you expect? Aug 01 09:49:43 Or would you like to have the whole thing loaded ? Aug 01 09:50:13 If yes, is there going to be a *lot* of items? Aug 01 09:52:59 So a partial answer to you question is to simply put a little script in your Component.onComplete of the ListView delegate, and adjust the Rectangle width if needed. If the number of items is reasonable, you can use Flickable + Repeater, and use the same delegate. Aug 01 09:54:17 If you can pre-compute the width of the delegate just by knowing its model properties, then you can put a callback in the model and adjust the width whenever a new item arrives. Aug 01 09:56:11 Tofe it's for the Select input type like: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_optgroup Aug 01 09:56:43 I guess theoretically the list could be quite long. Problem is that when I give it a defined width it'll look ugly if the options are short Aug 01 09:56:50 And long options don't fit sometimes Aug 01 09:57:05 So would like to be able to adjust it dynamically after the list is populated basically Aug 01 10:02:09 I see Aug 01 10:03:37 Why not using QML ComboBox? Aug 01 10:04:21 Doing it by hand will be quite painful Aug 01 10:14:12 Tofe: I think combobox doesn't support grouping? Aug 01 10:14:41 So the Swedish and German Cars stuff ;) Aug 01 10:15:28 Anyway I PR'd what I've done so far on browser. We can finetine it from there ;) Aug 01 10:18:59 Most should be OK, except for the ItemSelector that needs some work still ;) Aug 01 10:19:04 Hence my question Aug 01 10:19:08 Rest works for me :) Aug 01 10:36:39 ok :) Aug 01 11:35:00 Good Morning Aug 01 11:39:48 I have 'human' status on the wiki. Making some improvements to the layout might be within my limited skill set if you would like this to be done. Aug 01 11:43:15 Preemptive; Feel free to do that ;) Aug 01 11:43:23 If you need extra access let me know! Aug 01 11:43:34 I can set you up for that Aug 01 11:43:54 It was on my to-do list ;) Wiki needs quite some work still, so any help is very welcome! Aug 01 11:44:50 http://www.webos-ports.org/wiki/Special:AllPages Aug 01 11:46:29 My proposal to begin with, would be to add a short introductory paragraph to the main page and a general contents list Aug 01 11:46:55 (SHORT contents list!) Aug 01 11:51:22 I made an overview of all pages on the wiki a while ago Aug 01 11:51:26 Might be of help Aug 01 11:51:28 I'm thinking as I type, but I guess categories would be 'project administration', 'OS architecture', 'repository layout' & 'how to contribute' plus a link to the 'all pages' I posted above. Would that be sufficient? Any suggestions for other items or different ways to do this? Aug 01 11:51:30 And their statuses Aug 01 11:53:37 Is your overview the link I posted? Or do you have another link? I found that page via 'special pages' in the left menu Aug 01 11:54:11 No I made a Google Docs "Excel" sheet while I was cleaning things up last year Aug 01 11:54:17 I would assume there would be some wiki tool to generate a list of pages..? Aug 01 11:54:27 THat's the one you used ;) Aug 01 11:54:39 :) OK Aug 01 11:54:55 Can you PM me your mailaddress so I can share the Google Doc with you? Aug 01 11:55:53 This one has a lot of unorganized pages: http://www.webos-ports.org/wiki/Architecture Aug 01 11:58:48 There should be a request in your email inbox Aug 01 11:58:49 It might be a bit outdated but should give you a rough idea about what's on each page etc Aug 01 11:59:04 Yeah added you to the Google Docs. Feel free to edit it as you seem fit Aug 01 12:07:31 OK, well I'll look into wiki stuff. I've got lots of other things to do, so I'll take it slow and check in before doing anything major. So, as above, I'll do a short paragraph for the top of the page and a 'category list'. Then each category will have a sub-page of links to all pages relevant to the category. Hopefully that will be enough to make the information easier to find. Aug 01 12:09:02 Yeah that would be good :) Eventually we'll want to have a real page similar to Jolla but that's when OS gets more mature and we alreayd have some people lined up for that ;) Aug 01 12:10:40 But wiki will always remain a good source for devs because it will have info that's not very relevant to end-users ;) Aug 01 12:14:43 I figured that further down the line, a user manual would be needed, so I could add that category. Then any material there might serve as a source for on device help also - assuming this aspect is lagging behind development of functionality. Aug 01 12:15:06 ...and for a fancier website of course ;) Aug 01 12:16:01 Yeah ;) Aug 01 12:16:10 THese things don't have much priority tbh Aug 01 12:16:27 We first want to get the OS stable, add features, gets basics working before we work on that Aug 01 12:16:37 And we don't have a dedicated person for that currently ;) Aug 01 12:16:43 Otherwise it coudl be in parralel ;) Aug 01 12:18:16 Yes, there's little point in documenting features that may be subject to change, but general usage will of course be similar to webOS, so some items could be 'roughed in' - as is the nature of a wiki! ;) Aug 01 12:25:17 Yup ;) Aug 01 12:47:32 I've sent a draft via email Aug 01 14:06:38 Looks good :) Aug 01 14:24:38 DougReeder: morning ;) Look what I have for you :) https://github.com/webOS-ports/org.webosports.app.browser/pull/35 Aug 01 14:24:50 Still needs a bit of tweaking for N4 but functionality is there ;) Aug 01 14:47:12 * DougReeder looks at pull 36 Aug 01 14:47:22 s/36/35 Aug 01 14:49:33 Herrie, would I need to flash a nightly to play with this? Aug 01 14:50:22 It's not merged yet so not in a nightly yet ;) Aug 01 14:50:34 But you can download my repo and adb push it to N4 ;) Aug 01 14:50:49 If you have a site that I can test for you I'm happy to do so ;) Aug 01 14:51:15 How recent does the rest of the system need to be? I usually run latest stable. Aug 01 14:51:43 It should be fine on anything ;) Aug 01 14:51:48 It's just the browser that's updated Aug 01 14:51:54 http://html5-demos.appspot.com/static/styled_file_input.html that one works for me ;) Aug 01 14:52:19 Only devved on Desktop, tested it on N4, it's OK but needs to be a little smaller so will tweak that ;) Aug 01 14:52:26 Ah, good. Aug 01 14:52:45 For apps, you could install Serene Notes from my feed. Aug 01 14:53:22 Tap the hamburger button, then “Import text as multiple notes” Aug 01 14:54:04 Let me see Aug 01 14:54:04 The version currently in my feed uses a visible file input; the new version hides it. Aug 01 14:55:24 It currently only works in the browser, not in apps yet ;) Aug 01 14:55:32 Ah. Aug 01 14:55:52 I need some feedback from Tofe and morphis on this I guess Aug 01 14:56:08 Not sure I can simply copy & paste code from browser ;) Aug 01 14:56:19 * DougReeder nods Aug 01 14:56:24 Go if you have a github.io link I can test that :P Aug 01 14:56:38 Haven’t set that up yet. Aug 01 14:56:45 Well I could theoretically do it in browser too Aug 01 14:56:47 Let me try ;) Aug 01 14:57:01 I’ve cloned your repo, what’s the command to build and install? Aug 01 14:57:40 Go into the browser folder that you cloned then: adb push qml /usr/palm/applications/org.webosports.app.browser/qml Aug 01 14:57:42 ;) Aug 01 14:57:44 That's all :) Aug 01 14:57:55 You might want to restart N4 just to be sure but shouldn't be needed ;) Aug 01 14:59:15 Adding that command to the README might be helpful. Aug 01 15:01:52 It work on my N4! Aug 01 15:02:07 As you say, needs some styling to work in landscape mode. Aug 01 15:03:33 Yeah even in portrait it needs ;) Aug 01 15:06:03 And the available filesystem should be sandboxed to /media/internal Aug 01 15:06:43 But this is great! It’s needed for most productivity web apps. Aug 01 15:09:02 Yeah ;) Aug 01 15:09:05 It's cosmetics Aug 01 15:09:16 It was a bit of a pain to get the Symbian look into webOS look ;) Aug 01 15:09:23 Thank you. Aug 01 15:09:34 Looks better on Desktop, so needs some tweaks still for N4 it seems Aug 01 15:09:39 It's probably better on TP Aug 01 15:09:41 Let me try that Aug 01 15:10:17 Does qml have a maxheight attribute like CSS? Aug 01 15:12:24 The items could be a bit shorter and still be useable. 48 CSS pixels is good. Aug 01 15:15:50 Seems it's a bit big on tp too Aug 01 15:19:13 Actually it's spot on on TP Aug 01 15:19:36 Had a TP with legacy next to it Aug 01 15:19:44 Might differ a mm or 2 but close enough Aug 01 15:20:13 Hmm; I havn’t looked into the units used with QML Aug 01 15:20:33 We use Units.gu (Grid Unit) Aug 01 15:20:38 Which we specify once per device Aug 01 15:20:43 For TP 10px = 1gu Aug 01 15:20:48 For N4 18px = 1gu Aug 01 15:21:26 This is our device/resolution independent solution Aug 01 15:21:34 * DougReeder nods Aug 01 15:21:35 Borrowed from Ubuntu if I'm correct ;) Aug 01 15:22:10 So I just take legacy screenshots on TP and converting to Units.gu is easy ;) Just /10 ;) Aug 01 15:22:21 But N4 resolution is a bit odd (widescreen really) Aug 01 15:22:25 So needs some tweaking ;) Aug 01 15:22:38 It’s probably worth considering a wholly different layout on phones - the webOS Mojo file dialog that fills the screen works well. Aug 01 15:23:00 Yeah need to look into that Aug 01 15:23:04 For more things as well Aug 01 15:23:13 Just it's merely cosmetics in general ;) Aug 01 15:27:19 I’m looking at the Mojo file selector, and realizeing the file picker I had to write for FxOS could use some elements from the Mojo one. Aug 01 15:28:28 For a lot of good design, you don’t notice the details unless you have some reason to focus on them. Aug 01 16:05:28 Yeah ;) Aug 01 16:05:37 Palm guys knew what they were doing most of the times ;) Aug 01 16:33:49 Morning! Aug 01 16:34:01 * DougReeder waves to tofe Aug 01 16:34:22 Herrie: Is it sufficient to use desktop version, for testing your PR? Aug 01 16:41:48 Tofe: In general yes ;) Aug 01 16:42:01 I'm just did a Tweak for FIlePicker on N4 Aug 01 16:43:34 Layout was a bit too big Aug 01 16:43:40 So made it a bit smaller for now Aug 01 16:43:42 See how it works Aug 01 16:43:48 Pushing now to N4 to test Aug 01 16:46:52 Herrie: how can I trigger the new code ? Aug 01 16:48:45 nevermind, found how Aug 01 16:50:06 Herrie: I would put the location of the "Current location" directly on the second line, and use a eliding in the center or at the beginning Aug 01 16:50:35 Tofe: Yeah I need to see how that works Aug 01 16:50:40 I think on device it's better Aug 01 16:50:47 Looks like little one broke my USB cable ;) Aug 01 16:50:51 Need to look for another ;) Aug 01 16:51:02 Have all different kinds laying around except for the one I need :P Aug 01 16:51:10 the file browser looks great, really Aug 01 16:51:27 Cancel button looks grayed out when it's not Aug 01 16:54:51 Tofe: I need to have a look at that ;) Aug 01 16:55:04 It was a bit trickt to convert from Symbian layout to webOS one :P Aug 01 16:58:12 ugh, symbian layout... Aug 01 16:58:34 "look ! it's touch friendly now ! -- mmmmmh... no..." Aug 01 16:59:14 What was the status before your code? Aug 01 16:59:18 no UI at all? Aug 01 17:01:24 It didn't work ;) Aug 01 17:01:45 AT ALL ;) Aug 01 17:01:50 Hence DougReeder complaining :P Aug 01 17:01:55 Because he uses it in apps ;) Aug 01 17:01:59 * DougReeder smiles Aug 01 17:02:11 This now works in the browser but we would need to make it working in apps too Aug 01 17:02:20 I might need some here there from you Tofe ;) Aug 01 17:03:12 Herrie: ok, merging :) Aug 01 17:03:32 merged! Aug 01 17:03:33 Tofe: Legacy: http://tinypic.com/r/2hqfjvd/8 Aug 01 17:03:39 Buttons should be the same Aug 01 17:03:54 I used color picker to get the color :P Aug 01 17:04:40 P.s. I noticed that when I open browser with URL 1 using luna-send, then want to open URL 2 with luna-send it opens URL 1 again instead of URL 2 Aug 01 17:04:44 Probably something small ;) Aug 01 17:04:56 Herrie: the black looks grey, here, for the buttons Aug 01 17:05:39 wow, legacy had preview within the selector... great... Aug 01 17:06:33 Hmmz Aug 01 17:06:42 Well I might have gotten the font color wrong ;) Aug 01 17:06:50 Tofe for apps we'd need to add it here: https://github.com/webOS-ports/luna-webappmanager/blob/master/src/qml/ApplicationContainer.qml#L143 Aug 01 17:07:35 But I'm not sure we can re-use the code 1:1 like that? Aug 01 17:08:18 "it" ? you mean the selector ? Aug 01 17:09:13 Yeah basically https://github.com/Herrie82/org.webosports.app.browser/blob/master/qml/WebView.qml#L52 and later also for the itemSelector Aug 01 17:09:47 I'm not sure we could simply copy the FilePicker.qml and other qml + js files into the luna-webappmanager? Aug 01 17:10:03 What we can do is move most of your code into LunaNext, and then import it in both projects Aug 01 17:10:34 That makes sense :) Aug 01 17:10:49 well, I mean, not necessarily the compositor itself, but a plugin system-wide Aug 01 17:13:35 In LuneOS.Components would also be an elegant solution Aug 01 17:15:27 Is that something you could do? Aug 01 17:15:47 Shouldn't be too difficult I guess, but quite sure it'd involve some C++ along the way :P Aug 01 17:16:44 No, not one line of C++ :) Aug 01 17:17:22 but yeah, really easy to do Aug 01 17:17:26 I can do that Aug 01 17:17:44 Great :) Aug 01 17:17:56 Can you plug it into luna-webappmgr as well? Aug 01 17:18:13 DougReeder has Serene Notes in his Preware feed where we can test with :P Aug 01 17:18:31 ok Aug 01 17:18:56 I’ll leave the old version with a visible file input in the feed for now. Aug 01 17:19:33 thanks, it'll make things easier indeed Aug 01 17:19:42 When you get the file picker working, I’ll update the version in my feed to the current one which uses a hidden file picker. Aug 01 17:20:06 It should work either way, but both cases are worth testing. Aug 01 17:20:14 ok Aug 01 17:28:56 Herrie: I import all the dialogs you've created so far ? Aug 01 17:29:35 (which are plugged in WebView, ofc) Aug 01 17:29:58 Yeah that makes sense Aug 01 17:30:09 We might not need them in webappmgr though Aug 01 17:30:12 We'd need to see Aug 01 17:30:18 Because Enyo dialogs we'd have Aug 01 17:30:23 oh, one remark, while I'm there: naming it "WebView.qml" was a not-so-great idea, as a WebView type already exists in Qt Aug 01 17:30:32 But doesn't hurt in case we need them elsewhere Aug 01 17:30:38 ok Aug 01 17:30:48 in a first step it'll be a copy anyway Aug 01 17:31:02 Don't forget the JS files + images ;) Aug 01 17:31:16 yup, I'll try my best :) Aug 01 17:31:37 I doubt I came up with WebView.qml myself :P Aug 01 17:32:03 I can rename it anytime though Aug 01 17:32:36 ok, that'll be for next version then Aug 01 17:32:43 Yup Aug 01 17:41:37 Herrie: you found very interesting bug imho :) if open first card of browser by request(e.g. by just type), then all next cards will open with the same url. Aug 01 17:42:40 we need to move https://github.com/webOS-ports/org.webosports.app.browser/blob/22d77547cac3f795ed659a2730d7190cc3615806/qml/BrowserWindow.qml#L196 to main.qml or WindowManager.qml Aug 01 17:45:10 or just use url instead of lparams.target Aug 01 18:13:48 nizovn: Feel free to do a PR for this ;) Aug 01 18:31:58 ok Aug 01 19:17:48 Herrie: what behavior is expected when opening browser with target "ddg.gg"? It should open http://ddg.gg or try to open file ddg.gg? Aug 01 19:27:08 nizovn: I'd say it tries the website, as it is a browser Aug 01 19:27:55 also it isn't an absolute path, so it wouldn't make sense to try to open it Aug 01 19:30:24 i agree, for now it opens file. so if try to open "/tmp/text.txt" it will load http:///tmp/text.txt Aug 01 19:30:58 for an absolute path, I'm less convinced Aug 01 19:31:08 Tofe: do you think it's ok to add function fixUrl to main.qml? Aug 01 19:32:54 Let's just call it "parseInputUrl", and it's fine :) Aug 01 19:33:33 (otherwise it makes me think of a bug, but maybe it's just me) Aug 01 19:33:48 ok :) Aug 01 19:37:21 Herrie: argg, you used global scoped variables in your components ! baaaad ! ;) Aug 01 20:05:11 Tofe: Did I? Aug 01 20:05:23 It probably came from Nokia's sample code :P Aug 01 20:06:15 Example? Aug 01 20:08:48 AuthenticationDialog.qml, line 28, and also line 29 Aug 01 20:09:28 I'd say it comes from a code refactoring Aug 01 20:09:32 Ah that came from Nokia quite sure :P Aug 01 20:10:02 :) Aug 01 20:10:19 Ah no ;) Aug 01 20:10:25 https://github.com/adobe/webkit/blob/master/Tools/MiniBrowser/qt/qml/AuthenticationDialog.qml#L33 Aug 01 20:10:56 Anyway it can move back the way it was if it's problematic ;) Aug 01 20:10:56 50% innocent :p Aug 01 20:11:33 It's no big in this case (i.e. for default value), I'll just change the default value to be parent-independant Aug 01 20:11:39 big deal* Aug 01 20:12:46 however line 48 is more annoying Aug 01 20:13:38 (I'm a bit deceived that my markup was ignored) Aug 01 20:14:45 As a first step, I'll just introduce new parameters for each global reference like this Aug 01 20:15:09 but it means a more complete review is needed, so no PR tonight ;) Aug 01 20:16:54 Tofe: I think this is the first time you're really looking at the browser in detail :P Aug 01 20:17:00 I say it's long overdue :P Aug 01 20:17:05 hehe Aug 01 20:17:44 It doesn't have a single Tofee commit in it yet :P Aug 01 20:17:48 Except for merging stuff ;) Aug 01 20:18:13 So I'm sure there's a lot to improve from the crap I wrote and bits & pieces nizovn and others did :P Aug 01 20:18:14 Well, you've made quite a great work so far Aug 01 20:18:50 Most things are hacked together, but they work more or less :P Aug 01 20:19:09 That's something we'll be improving as time goes on Aug 01 20:19:50 Yup ;) **** ENDING LOGGING AT Sun Aug 02 02:59:58 2015