/srv/irclogs.ubuntu.com/2015/01/06/#ubuntu-app-devel.txt

=== X_o is now known as Guest46513
Guest46513error: QtGui/QMainWindow: No such file or directory  #include <QtGui/QMainWindow>   <--I have this error. How can I install this library ??   Sorry I'm rookie03:06
AkivaAvrahamGuest46513, is this an include?03:06
AkivaAvraham#include <QtGui>03:06
AkivaAvraham?03:06
Guest46513yes03:07
AkivaAvrahamGuest46513, what version of ubuntu you running?03:07
Guest4651314.1003:07
AkivaAvrahamGuest46513, upgraded or newly installed?03:07
Guest46513newly03:08
AkivaAvrahamokay... and its ubuntu03:08
AkivaAvrahamnot lubuntu03:08
AkivaAvrahamor edubuntu03:08
AkivaAvrahamor xubuntu03:08
Guest46513ubuntu03:08
AkivaAvrahamokay03:08
AkivaAvrahamif thats the case... sec03:08
Guest46513okay..!!03:09
AkivaAvrahamGuest46513, take out the slash03:09
AkivaAvraham#include <QtGui>03:09
Guest46513okay03:09
AkivaAvrahamGuest46513, you shouldnt need QMainWindow.03:10
AkivaAvrahamGuest46513, speaking of which; what are you trying to develop?03:10
AkivaAvrahamGuest46513, or are you just practicing?03:10
Guest46513./Videos/Qt-prog/q/mainwindow.h:7: error: QtGui: No such file or directory  #include <QtGui>                  ^03:11
AkivaAvrahamGuest46513, have you done something to muck up your qt libraries?03:12
Guest46513./Videos/Qt-prog/q/main.cpp:2: error: QApplication: No such file or directory  #include <QApplication>                         ^03:12
AkivaAvrahampastebin your header file.03:13
AkivaAvrahamor whatever file this is on03:13
Guest46513#ifndef MAINWINDOW_H #define MAINWINDOW_H  #if QT_VERSION >= 0x050000 #include <QtWidgets/QMainWindow> #else //#include <QMainWindow> #endif  namespace Ui { class MainWindow; }  class MainWindow : public QMainWindow {     Q_OBJECT  public:     explicit MainWindow(QWidget *parent = 0);     ~MainWindow();  protected:     void changeEvent(QEvent *e);  private:     Ui::MainWindow *ui; };  #endif // MAINWINDOW_H03:13
AkivaAvrahamGuest46513, thats not pastebin03:14
Guest46513#include "mainwindow.h" #include <QApplication>  int main(int argc, char *argv[]) {     QApplication a(argc, argv);     MainWindow w;     w.show();      return a.exec(); }03:14
Guest46513oh, sorry03:14
AkivaAvrahamon the left, there is a pastebin button03:14
AkivaAvrahamnp03:15
AkivaAvrahamwe were all newbies at one point.03:15
Guest46513http://pastebin.com/yRs7w541 << that is mainwindow.cpp03:17
AkivaAvrahamokay lets see the header03:18
Guest46513http://pastebin.com/SMaCb6ea <<-- mainwindow.h03:19
AkivaAvrahamBy the way; do you know c++?03:19
Guest46513something not that much03:20
AkivaAvrahamGuest46513, you are using the sdk right?03:20
Guest46513yes03:21
AkivaAvrahamGuest46513, http://i.imgur.com/lNNHVtP.png03:21
AkivaAvrahamfuture reference, that is where the better pastebin is.03:22
AkivaAvrahamGuest46513, are you trying to write a program here?03:22
AkivaAvrahamGuest46513, what program are you trying to write?03:22
AkivaAvrahamIs this supposed to be for ubuntu touch?03:22
Guest46513show a message hello world03:23
AkivaAvrahamGuest46513, okay :)03:23
AkivaAvrahamGuest46513, that is easy03:23
AkivaAvraham#include <QDebug>03:23
Guest46513ui->pushButton->setText("Hello")l03:23
Guest46513ui->pushButton->setText("Hello");03:23
AkivaAvrahamqDebug() << "Hello world"03:23
AkivaAvrahamah you are building a UI.03:24
AkivaAvrahamare you following a tutorial from Bucky or Void realms?03:24
Guest46513yes03:24
AkivaAvrahamGuest46513, who? Bucky?03:24
Guest46513voidrealm03:24
AkivaAvrahamah03:24
AkivaAvrahamVoidy; very good03:24
AkivaAvrahamGuest46513, and your goal is to develop what ultimately?03:25
Guest46513I like the way explaint in that tutorial03:25
AkivaAvrahamThe reason I ask, is because if you want to develop for the phone, you should learn qml first, and qt second.03:26
Guest46513not, at this time I just want to develop a program for BBB03:27
AkivaAvrahamBBB?03:27
AkivaAvrahambetter business bureau?03:27
Guest46513Beaglebone black03:27
* AkivaAvraham looks that up03:27
Guest46513no, lol03:28
AkivaAvrahamraspberry pie sort of thing?03:28
AkivaAvrahamGuest46513, Let me ask you a c++ question... If you don't know it, then I can save you some headaches.03:29
AkivaAvrahamGuest46513, what's the stack, and what's the heap?03:29
Guest46513I know as guru but I can works with classes and variables03:30
AkivaAvrahamwhat?03:30
Guest46513I dont know as a guru03:30
AkivaAvrahamokay03:30
AkivaAvrahamGuest46513, this isn't a guru sort of thing when working with c++03:30
AkivaAvrahama little bit03:30
Guest46513:\03:31
AkivaAvrahamGuest46513, easier question, What is & for?03:31
AkivaAvrahamGuest46513, trust me on this; I tried learning qt from scratch.03:31
Guest46513I want to learn qt I like it03:31
Guest46513address= &03:31
AkivaAvrahamgood :)03:31
Guest46513:)03:31
AkivaAvrahamWhats does dereference mean?03:32
AkivaAvrahamWhat*03:32
Guest46513hold on let me thing03:32
Guest46513referr to a character03:33
Guest46513referr to a characters03:33
AkivaAvrahammmmm nope03:33
AkivaAvrahamit takes the address, and grabs the object it points to.03:34
AkivaAvrahamso if int* x = new int(1);03:34
AkivaAvrahamx would equal the address to the new integer, that was created on the heap.03:35
Guest46513I know "new" was involved03:35
AkivaAvrahamso x wouldn't return an object, just the address.03:35
AkivaAvrahamyou would go *x, and that would dereference the address, and return you the object.03:36
AkivaAvrahamGuest46513, anyways; I have the perfect thing for you03:36
AkivaAvrahamhttp://www.reddit.com/r/UbuntuAppDev/comments/2qy5ko/guide_for_new_ubuntu_developers/03:36
AkivaAvrahamat the bottom of this tutorial I am making, I provide a link03:36
AkivaAvrahamto a guide that you can get for free, that teaches you "C++ the Qt Way"03:37
AkivaAvrahamso you learn Qt and C++ at the same time03:37
AkivaAvrahaminstead of having to learn C++ with a bunch of standard libs, and then Qt by itself.03:37
AkivaAvrahamGuest46513, https://drive.google.com/file/d/0B2XdRsCSWUwWaFhIOFJCX0V5YVE/view is a version you can download from my google drive.03:38
Guest46513one question03:39
AkivaAvrahamGuest46513, sure03:39
=== chihchun_afk is now known as chihchun
Guest46513How can I fix that problem ??03:39
AkivaAvrahamGuest46513, I don't know. It looks like you have messed up your qt libraries, or that you are following an obsolete tutorial from void03:40
AkivaAvrahamhe works with Qt4, and you are on Qt503:40
AkivaAvrahamGuest46513, in any case, I can guarantee you, just given the fact that I am self taught c++ and qt,03:41
AkivaAvrahamif you do not go through the instruction manual I gave you, and just stick to Void Realms or Bucky Roberts, you are not going to learn it properly03:42
AkivaAvrahammainly, you will not be able to understand the documentation provided by Qt.03:43
AkivaAvrahamGuest46513, I think Void Realms is best when you want a demonstration on how to use a Qt Class, as he covers most of them.03:43
Guest46513to fix that problem I have to install a library?03:44
AkivaAvrahamBut you have to remember; he is assuming a ton, A TON of C++ knowledge, when he takes you through that.03:44
AkivaAvrahamGuest46513, You shouldn't have to...03:45
Guest46513lol...!!03:45
AkivaAvrahamGuest46513, hmmm?03:46
Guest46513I want to follow voidrealms tutorial but with that error I can't do it03:47
AkivaAvrahamGuest46513, you can try bucky as well, but you seriously, need to learn C++ or you will be spinning your wheels for months.03:49
AkivaAvrahamGuest46513, Like, I made the mistake of trying to learn Qt through Void Realms without learning C++; it was a huge waste of time. The best tutorial is the one from ICS that teaches you Qt and C++ at the same time.03:51
Guest46513AkivaAvraham: can I uninstall qt and re-install03:58
Guest46513??03:58
AkivaAvrahamGuest46513, is this a fresh ubuntu install?03:59
Guest46513yes03:59
AkivaAvrahamYou shouldnt need to do anything unless you really screwed soemthing up03:59
AkivaAvrahamreinstalling Qt I don't think will help.03:59
Guest46513:(04:00
AkivaAvrahamYou can try installing qt404:00
AkivaAvrahambut then you are learning to use an old library.04:00
AkivaAvrahamGuest46513, why not try to build a qml app?04:01
AkivaAvrahamthat would be a better starting point if you just want to build a gui04:01
Guest46513Im installing qt404:02
AkivaAvrahamQML was designed specifically to make qt apps quicker. That is what Most of Ubuntu uses these days ...04:02
AkivaAvrahamokay. :P04:02
Guest46513if I can't fix it I will format my computer :S04:03
Guest46513to fix that problem04:03
AkivaAvrahamGuest46513, I think the tutorial is just old04:03
Guest46513qt witn C++?04:03
AkivaAvrahamI know qt4 uses an import not used in qt504:03
AkivaAvrahamGuest46513, no, voidrealms04:04
AkivaAvrahamGuest46513, are you going to use the documentation I suggested to you? "Learn c++ the Qt way"?04:04
Guest46513I tried make a program by default and the program show the same error04:05
Guest46513yes04:05
AkivaAvrahamcool04:05
Guest46513that tutorial use qt5 or qt4?04:06
AkivaAvrahamI'm a bit tired now, almost asleep...04:06
Guest46513okay, thx dude04:06
AkivaAvrahamit was written for qt4, but the stuff you learn off the bat is synonymous with both04:06
AkivaAvrahambut if you get teamviewer, I can check it out for you04:07
Guest46513ok04:07
AkivaAvrahamyou make it sound like you have a borked installation, or you havent set up your runtime properly04:07
Guest46513runtime properly << do you have any info for that ?04:08
AkivaAvrahambuild environment I mean.04:08
Guest46513okay04:08
=== chihchun is now known as chihchun_afk
dholbachgood morning08:29
justCarakasgood morning08:30
dholbachmhall119: do you recall who wrote the content hub docs on developer.u.c? I just saw https://bugs.launchpad.net/developer-ubuntu-com/+bug/1407753 and wondered who to ping about it10:37
JamesTaitGood morning all; happy Apple Tree Day! :-)10:37
ubot5Launchpad bug 1407753 in Ubuntu App Developer site "Content Hub documentation is missing various pieces" [Undecided,New]10:37
=== _salem is now known as salem_
dholbachdavidcalle, did we decide what to do with the cookbook section(s)?11:13
davidcalledholbach, not really, afaik. But I think we should fix what we have on the site, it's a few links, and decide after.11:14
dholbachdavidcalle, so remove cookbook links for now?11:15
davidcalledholbach, no, fixing them :)11:15
dholbachah ok11:15
dholbachare you working on that now?11:15
dholbach(I saw you had the bug assigned to yourself)11:15
davidcalledholbach, what do you think ? (I'm happy with both solutions) and I don't mind doing it11:15
dholbachwe should probably have a chat with mhall11911:16
dholbachI could imagine that in the future we would hook up the djangosnippets instance with the developer site11:17
davidcalledholbach, ok. On a related note, we should find a design pattern (a box probably) to hook up askubuntu links and snippets in articles.11:17
dholbachyeah, that'd be nice11:20
t1mpgcollura: hello12:01
gcollurat1mp, hi :)12:02
t1mpI just noticed https://code.launchpad.net/~gcollura/ubuntu-ui-toolkit/fix-1341814-and-1400297/+merge/245552 when I was going to start to figure out how to fix those bugs12:02
t1mpawesome that you worked on it :)12:02
gcollurat1mp, :D12:02
t1mpthe diff in that MR however shows some unrelated changes to the .po files12:03
gcollurat1mp, I know, that's because I had to re-propose the branch targetting /staging this time12:03
gcollurabecause my branch was based off trunk, sorry, if you want I can rebase everything12:04
t1mpgcollura: give me a few minutes and I'll get back to you, I'm in a short meeting now12:11
gcollurayeah sure t1mp :)12:11
t1mpI'm back12:25
t1mpgcollura: yes, please rebase it from staging12:25
gcollurat1mp, sure, give me a second :)12:30
t1mpgcollura: awesome :) I also left two small suggestions for improvements as comments on https://code.launchpad.net/~gcollura/ubuntu-ui-toolkit/fix-1341814-and-1400297/+merge/2455512:31
gcolluragreat idea, t1mp thanks for your review :)12:32
gcollurat1mp, done https://code.launchpad.net/~gcollura/ubuntu-ui-toolkit/staging-fix-1341814-and-1400297/+merge/24564512:39
t1mpgcollura: I top-approved https://code.launchpad.net/~gcollura/ubuntu-ui-toolkit/staging-fix-1341814-and-1400297/+merge/24564512:57
t1mpgcollura: thanks again :) if all goes will it will land in staging automatically today.12:58
gcollurathanks t1mp :D12:59
jgdxdholbach, hi, are cpp docs missing from developer.u.c?13:03
dholbachjgdx, what are you looking for?13:04
dholbachjgdx, I don't think we ever went into much detail regarding C++ Qt app development - the scopes docs talk about C++ though13:05
dholbachbut maybe you can explain what specifically you were looking for13:05
jgdxdbarth, that's it—was looking for /api/devel/ubuntu-14.10/cplusplus/connectivity-api/13:05
jgdxdholbach, ^13:05
dholbachok13:05
jgdxdbarth, tabfail, sorry!13:05
dholbachoh ok13:06
jgdxdholbach, [1] refers to this documentation IIUC [1] https://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Connectivity.index/13:07
dholbachjgdx, I guess you mean dbarth?13:08
jgdxdholbach, I actually meant you :)13:10
dholbachjgdx, what can I do for you?13:11
dholbachjgdx, everything under /api/ is pulled in from the actual docs in the source itself13:12
gcollurat1mp, do you know if this change can get backported to ubuntu-sdk-14.10? I need this fix in an app13:12
jgdxdholbach, thanks!13:12
dholbachjgdx, you could try to ping pete-woods on #ubuntu-touch about it13:13
dholbachor any of the folks who are listed as committers here: https://code.launchpad.net/~unity-api-team/connectivity-api/trunk.15.0413:14
jgdxdholbach, right.13:15
dholbachdavidcalle, if you run linkchecker again - does it look better now? I think I fixed most of things now13:42
dholbach(apart from some blog entries and the cookbook)13:43
davidcalledholbach, running13:43
dholbachyoohoo13:43
davidcalledholbach, almost perfect, I'm fixing a few missing stuff... and didn't checked zh-cn yet :p14:01
dholbachdavidcalle, great - looks like we're finally getting somewhere14:01
davidcalledholbach, indeed. Now, there is only https://developer.ubuntu.com/en/web/api/ubuntu-13-10/ , we have kinda lost the documentation (it wasn't on the API website). I'm going to retrieve it.14:05
dholbachdavidcalle, do you know if somebody talked to dbarth about those pieces and where we're going to host them?14:07
davidcalledholbach, no, probably because the project is being replaced by the new webapps. It won't be updated anymore.14:08
dholbachI'm wondering if we should drop it already(?)14:09
dbarthdholbach: i'm there14:14
dbarthwe're keeping the 13.10 documentaiton for reference, as the last supported release14:15
dbarthhowever i felt there was not much point in making a 14.04 version, knowing that tihngs would change within the 5 years of the LTS cycle14:15
dholbachdbarth, 13.10 is not supported anymore14:16
dbarthie, the apis are there as-is, but we'd like to be able to upate the APIs once we fully understand how they fit into the desktop convergence scenario14:16
dbarthah14:16
dbarthwell, i'd still keep the documentation around; i updated the text to clarify that it was desktop only, and mostly there as a reference14:17
dbarthunless it is a major pain to support the doc from a site structure or package pov14:17
dholbachdbarth, we moved to a new infrastructure and it looks like the page was not moved over, but something else referred to it14:18
dholbachdavidcalle, right? ^14:19
davidcalledholbach, dbarth, right. The branch is at https://code.launchpad.net/webapps-documentation and we would need to host it somewhere (or port the content).14:21
dholbachmaybe I'm missing something, but if we don't support it any more, it would likely confuse developers, no?14:23
dbarthdholbach: that's a point14:25
dbarthdholbach: could we then also remove the cookbook questions? or filter them out in the web section ?14:25
dholbachdbarth, so the content in https://developer.ubuntu.com/en/web/cookbook/ is stale as well?14:26
dbarthyes, refers to the destkop webapp integration afaict14:26
dbarthi could provide the videos from our last online workshop as a substitute for the cookbook content14:27
dholbachdavidcalle, ^ shall we unpublish https://developer.ubuntu.com/en/web/cookbook/ for now then?14:27
dbarthalso if you can shortcut the tutorials and guides links to just the content, ie without having to go via that short intermediate page?14:28
davidcalledholbach, probably yes. Ok if I unpublish the whole?14:29
dbarthdavidcalle: the whole section, yes i think so14:29
dbarthie the whole cookbook section14:29
davidcalledbarth, and API right?14:30
davidcalledbarth, https://developer.ubuntu.com/en/web/api/14:30
dbarthdavidcalle: yes14:30
davidcalledbarth, ok.14:31
dbarthdavidcalle: you can also add this link to the tutorials section: https://plus.google.com/events/c3prd0erlagajl8tq9d689q6en414:31
dbarthUOS - Ubuntu Webapps & HTML5 Apps Workshop14:31
dbarthand that's the slide deck link for the presentation as well: http://goo.gl/NTdTTy14:32
davidcalledbarth, ok, and I'll move the guide to be only one page, since it covers all aspects.14:33
dbarthcoolio, thanks14:33
davidcalledbarth, np14:34
davidcalledholbach, ^14:34
dholbachdavidcalle, brilliant, thanks14:34
dholbachdavidcalle, maybe we should leave the other pages as redirects afterwards still?14:34
dholbachjust to make sure we don't lose anyone on the way :)14:34
dbarthseo, yes14:35
davidcalledholbach, yep14:36
dbarthor rather avoiding broken links14:36
dholbachyep14:36
dholbachgreat14:36
mhall119dholbach: most likely kenvandine wrote the content-hub docs14:52
dholbachok, thanks14:52
nik90_aquarius: ping15:05
aquariusnik90_, pong15:06
nik90_aquarius: I added python-bzrlib as a dependency to the debian control file...are there any other dependecies?15:06
aquariuserm15:06
nik90_Does it require python > 3.0?15:06
aquariusit does not15:06
aquariusbecause there is no bzrlib for pytohn3 afaict :(15:06
aquariusI blame Barry :)15:07
nik90_ah ok15:07
nik90_so I need to add python2.7 as a dependency15:07
aquariusI even started off writing the thing as python 3, like a good boy15:07
aquariusshouldn't need to -- bzrlib should surely pull it in?15:07
aquariusbut I don't know much aboutpackaging dependency stuff15:07
nik90_true15:07
nik90_bzrlib pulls in python-configobj, python2.7, python (>= 2.7.1-0ubuntu2), python (<< 2.8), libc6 (>= 2.14)15:08
aquariusit's All One Script -- doesn't dh_python or whatever it's called work this stuff out for you?15:08
aquariuspkgme did.15:08
nik90_so I guess then python-bzrlib should be sufficient15:08
nik90_I am not sure....I am at a basic level of debian packaging15:08
aquariussounds plausible to me, but the reason I didn't do the debian packaging is that I don't know anything about it ;)15:08
nik90_ok15:08
nik90_it should work15:08
aquariusso I ain't the guy you wanna ask here. Should be reasonably easy to test that it works though, rihgt?15:09
nik90_yes15:09
nik90_I am doing that now15:09
aquariusnice one15:09
nik90_aquarius: debian packaging done -> https://code.launchpad.net/~nik90/component-store/fix-debian-packaging/+merge/24566115:15
nik90_aquarius: so when you branch lands in trunk, I will push out an update to the PPA (trusty, utopic and vivid)15:16
nik90_s/you/your15:16
aquariusay15:17
aquariusyay15:17
aquariusnice one15:17
=== charles_ is now known as charles
t1mpgcollura: no, the new stuff is only for vivid15:28
t1mpbzoltan: ^we don't backport to utopic right?15:28
gcollurat1mp, :/ ok then15:28
t1mpgcollura: unless you can get someone to mark this as rtm critical15:29
bzoltant1mp:  not the UITK... only the tools15:31
t1mpbzoltan: ok. It was about this fix, https://code.launchpad.net/~gcollura/ubuntu-ui-toolkit/staging-fix-1341814-and-1400297/+merge/245645 which is UITK15:31
bzoltant1mp: yes, I have seen that MR. It is good, but obviously it is for Vivid only15:42
t1mpgcollura: it is ugly, but maybe you can set your Page.config.contents.parent to null when your Page.active becomes false15:55
t1mpas a workaround for vivid15:55
gcollurat1mp, it's not enough, because that patch also fix the bug 140029715:57
ubot5bug 1400297 in ubuntu-ui-toolkit (Ubuntu) "PageHeadState doens't correctly update head.contents" [Undecided,New] https://launchpad.net/bugs/140029715:57
om26ermhall119, who takes care of the Ubuntu membership certificates ?16:06
om26ermhall119, I requested the certificate in 2013, never received it.16:07
t1mpgcollura: oh, pity.16:08
t1mpgcollura: working around that is more work (maybe by having a single contents Item of which the contents is updated by the app, and setting the back action depending on whether you are in search mode or default mode)..16:09
t1mpgcollura: eventually devices should switch to vivid, but that is not going to happen very soon16:09
t1mphmm16:10
t1mpgcollura: I wonder if you can add a MyPageHeadState that inherits PageHeadState, and then use MyPageHeadState instead to define the states16:10
t1mpgcollura: ^ to your app code (without changing uitk in utopic)16:11
gcollurat1mp, maybe I could add a Connections { target: page.head; onContentsChanged: { } }16:19
rickspencer3hey, can anyone here help me write and run auto-pilot tests?16:22
rickspencer3I get this error, and don't know what to make of it:16:26
rickspencer3NotImplementedError: On desktop we can't install click packages yet, so we can only run from source.16:26
rickspencer3balloons, ^ ?16:26
balloonsrickspencer3, where do you see that?16:27
justCarakasbeuno do you know what the status is of the online store for the apps ?16:28
rickspencer3balloons, when I do "sh run" on the run file created in the autopilot test directory that was created when I created my project16:29
balloonsrickspencer3, ahh. I would invoke ap directly; let's look at the run file. just a sec16:30
rickspencer3balloons, I'm not certain what you mean16:34
rickspencer3I get the same thing if I just do: autopilot run FaireDesCourses16:34
rickspencer3if that's what you meant16:34
balloonsrickspencer3, i recreated your error, so i see what you mean16:34
balloonsthe __init__.py file handles the setup and ll=aunch. it's not seeing the source. clearly a bug in the template16:35
balloonsrickspencer3, let's fix your file however16:38
rickspencer3balloons, I changed _get_app_qml_source_path(self): to return the hard coded path the main.qml and it worked16:38
rickspencer3of course, not too useful if someone wants to branch the code, but at least I am in business :)16:39
rickspencer3balloons, so, the web page with the autopilot docs if offline, is there somewhere else I can find the docs?16:39
balloonsright. the file isn't following best practice16:39
balloonsrickspencer3, yea i know. there's an rt for it :-(16:39
rickspencer3balloons, where else can I find the docs?16:40
balloonsrickspencer3, this is older but should serve you well enough16:40
balloonshttp://unity.ubuntu.com/autopilot/16:40
rickspencer3thanks balloons16:40
beunojustCarakas, WIP, no release date yet, but not too far off16:40
* balloons looks for template updating bug16:43
rickspencer3balloons, it wold be sweet to have that auto-pilot doc available as a pdf16:45
balloonsit's built with sphinx.. i wonder if we can set that as an output too16:46
rickspencer3if not, there is probably a simple tool that will convert html to pdf16:47
rickspencer3balloons, ooh, or epub might be even nicer!16:47
balloonsright.. i guess we could publish all those. i'll file a bug to add them16:49
balloonsrickspencer3, what template do you normally use for new projects16:50
rickspencer3Ubuntu -> Simple16:50
balloonsnot simple (qmake?)16:51
rickspencer3balloons, yes, it's App with Simple UI (QMake)16:53
rickspencer3balloons, so, I want to do page object pattern16:58
rickspencer3any hints on how to do that with qml?16:58
rickspencer3i.e. how do I call a function on the page in qml from the test?16:58
balloonsrickspencer3, we have an article on it on d.u.c16:58
rickspencer3balloons, http://developer.ubuntu.com/en/apps/platform/guides/acceptance-testing-using-the-page-object-model/16:59
rickspencer3?16:59
balloonsyes. does it help?16:59
rickspencer3balloons, I guess so17:00
balloonsyou can't reference a qml function durectly from ap. that's too low level. ap tests should be user stories,user interaction17:00
rickspencer3I assumed that I would write the functions in teh qml17:00
balloonsyou can test at that level in qml17:00
rickspencer3but it looks like I write a wrapper function in the test17:00
rickspencer3and call that17:00
mhall119om26er: you're not the only one, I'll find out who's responsible now that jono's left17:00
aquariusjustCarakas, you might like appstore.bhdouglass.com until an "official" store comes alone17:02
aquariusobviously not :)17:03
balloonsaquarius, oO17:03
balloonsrickspencer3, many of the core apps follow the model well and follow best practices for setup, etc. you can sneak a peek at them17:09
rickspencer3balloons, which one is the easiest to understand, and can you paste me a link?17:09
rickspencer3balloons, do you know how I am supposed to use autopilot to click on an action button? seems objectName does not work for it :/17:12
balloonsrickspencer3, lp:ubuntu-calculator-app and lp:ubuntu-calendar-app17:13
balloonscalc is easy app, and more or less gets it right17:13
balloonsrickspencer3, there is a helper for many of the uitk elements17:14
balloonsthe docs for that is offline too, linked for d.u.c. the local copy on your machine isn't in html sadly17:14
balloonsrickspencer3, syntax is like this17:16
balloons        header = self.get_header()17:16
balloons        header.click_action_button('objectname')17:16
rickspencer3ah17:16
balloonsrickspencer3, you'll want to clone the setup of one of the core apps or otherwise import ubuntuuitoolkit to get the helpers17:17
rickspencer3balloons, where is get_header implemented?17:17
rickspencer3lp:ubuntu-calculator-app17:17
rickspencer3oops17:17
rickspencer3AttributeError: 'MainViewTestCase' object has no attribute 'get_header'17:18
balloonsrickspencer3, import ubuntuuitoolkit17:18
balloonsinside calc, look at it's helpers17:18
balloons__init__.py17:18
balloonsone does the setup work, the other is the helper definitions17:18
balloonsit has class objects and useful functions17:19
rickspencer3balloons, can you link me to the specific file that you mean in lp?17:20
balloonsrickspencer3, yes17:20
rickspencer3it doesn't seem that the calculator app used "get_header"17:22
balloonshttp://bazaar.launchpad.net/~ubuntu-calculator-dev/ubuntu-calculator-app/trunk/view/head:/tests/autopilot/ubuntu_calculator_app/__init__.py17:23
balloonsrickspencer3, if you pull the calc reboot branch, andrea just bootstrapped it so you can see a proper shell with no tests if you wish17:25
elopiorickspencer3: the get_header method is implement in the MainView page object.17:26
balloonsanyways, the file linked contains what we call helpers for the test suite. it inherits from the uitk helpers17:26
rickspencer3elopio, so self.get_header() is supposed to work?17:26
elopioso you would have something like self.app = self.launch_test_app(...)17:26
rickspencer3because I get this17:26
rickspencer3AttributeError: 'MainViewTestCase' object has no attribute 'get_header'17:26
elopiothen self.main_view = self.app.select_single(ubuntuuitoolkit.MainView)17:26
balloonsrickspencer3, your testsuite isn't setup in a way that allows you to easily use it17:27
elopioand then you do self.main_view.get_header()17:27
rickspencer3balloons, well, I didn't set up the test case!17:27
balloonsyes, elopio has laid it out17:27
rickspencer3I am using what came with the template17:27
elopiorickspencer3: but as the templates in qt creator are terribly outdated, I'm not sure what's the state of your code.17:27
balloonsrickspencer3, i know :( i'm filing a bug to fix that17:27
rickspencer3oh geez17:27
elopioif you want you can push it and we can take a look.17:27
rickspencer3elopio, ok17:27
rickspencer3elopio, lp:~rick-rickspencer3/+junk/fairedescourses/17:28
elopiorickspencer3: I see. Give me 15 minutes to remove the ugly parts from your test case.17:30
balloonsprobably easiest to just propose a merge to fix it17:30
rickspencer3not sure what those are, but ok17:30
balloonselopio, rickspencer3 fyi: https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/140804217:31
ubot5Launchpad bug 1408042 in qtcreator-plugin-ubuntu (Ubuntu) "Template tests don't reflect best practice" [Undecided,New]17:31
rickspencer3balloons, so, I think someone needs to stay on top of that17:31
rickspencer3not sure how the sdk team is supposed to find out that the templates are out of date17:31
balloonsideally, via a test17:32
bzoltanrickspencer3: balloons: Now that the templates are stable for various training programmes it is good time to get the template tests in shape. It is in my January plans.17:34
rickspencer3elopio, so, I think I shall go get some lunch and exercise, so will check when I get back, is that ok, or are you near eod?17:34
elopiorickspencer3: the day is young. I will send you an email with my diff.17:35
rickspencer3thanks elopio17:35
rickspencer3you are a prince among men :)17:35
elopionp17:35
rickspencer3I really appreciate the help17:35
rickspencer3I am keen to post a video showing autopilot working on my app ;)17:35
balloons:)17:36
elopioflattery will get you everywhere :)17:36
elopioand beer.17:37
balloonselopio, flat beer however wins you no friends17:38
=== bfiller is now known as bfiller_dentist
renatuom26er, I am getting this error on jenkins: 15:43:09.172 ERROR content:47 - Could not add content object 'None' due to IO Error: [Errno 13] Permission denied: '/var/log/syslog'17:47
renatuom26er, could you help me with that?17:47
elopioballoons: flat beer will get you half the way.17:51
aquariusIs it possible to tweak the background colour of the emulator window? I think it ought to be black, so that when you record videos or take screenshots of it you don't get tiny white corners around the Ubuntu Edge image.19:38
aquariusAlso, we'll get a bq skin for it, right? :)19:38
aquariusooh, /usr/share/ubuntu-emulator/skins. Interesting. Maybe I can do a nicer shot of the edge which doesn't have the horrible artifacts in the image. Although I can't see how to configure the skin that I use; is there a way?19:42
=== salem_ is now known as _salem
rickspencer3elopio, not as easy as you were hoping?20:00
rickspencer3:)20:00
elopiorickspencer3: https://code.launchpad.net/~elopio/+junk/fairesdescourses/20:01
elopiorickspencer3: fixing it was easy: http://bazaar.launchpad.net/~elopio/+junk/fairesdescourses/revision/2520:01
rickspencer3huh20:02
elopioI got a little too far, because I would feel ashamed of that code if you show it around. So the following revisions are what the template should lead you to.20:02
rickspencer3so if I just try to merge r30, I'm good to go?20:03
elopiorickspencer3: yes.20:04
elopiorickspencer3: and if you get stuck while implementing the rest of the test, ping ubuntu-qa and we'll give you a hand.20:04
elopiobtw, the task to prettify the templates is already in our backlog. I think that today it's priority will be bumped a little :)20:05
rickspencer3elopio, between qmltestrunner and autopilot, we have a really excellent story for developers20:06
rickspencer3I think we should show it off a lot more20:06
elopiorickspencer3: I agree.20:07
elopioballoons: one thing we are missing is a document where we make it clear which tests we want in autopilot and which ones we want in qttest.20:08
elopioballoons: we don't have that yet, right?20:08
rickspencer3elopio, cools, seems to be working now20:08
rickspencer3thanks20:08
elopioyour welcome.20:08
=== bfiller_dentist is now known as bfiller
ahoneybundoes anyone have the problem with the device always shown as booting in the SDK?20:49
rickspencer3elopio, hey, so I have a page stack ... main_view.wait_select_single doesn't seem to be able to find anything a page pushed onto the page stack20:52
rickspencer3elopio, nm20:53
rickspencer3I didn't use the objectName keyword :)20:53
rickspencer3hey, does anyone know how to use get_children_by_type ?21:22
rickspencer3in autopilot?21:22
veebersrickspencer3: it should be something like: myproxy_obj.get_children_by_type('TextField')21:24
veebersrickspencer3: it will only select immediate children though21:28
rickspencer3hmmm21:29
aquariussergiusens, ping about the emulator skin :)21:31
rickspencer3veebers do you know I how specify the "typename" for a standard list item?21:50
rickspencer3is it like:21:51
rickspencer3list.select_many("Ubuntu.Components.ListItem.Standard")21:51
rickspencer3?21:51
rickspencer3nm, I guess it's21:51
veebersrickspencer3: just 'Standard'21:51
rickspencer3list.select_many("Standard")21:51
rickspencer3weird, but ok :)21:51
elopiorickspencer3: actually, select_many|select_single(ubuntuuitoolkit.listitems.Standard)22:00
rickspencer3elopio oh?22:01
elopiothen you will inherit some helpers already implemented, like swipe_to_delete.22:01
DanChapmanaquarius: are you wanting to use a custom skin? if so you can set it something like ubuntu-emulator run --skin="blah" ...22:01
rickspencer3elopio, any helpers for CheckBox ?22:01
elopiorickspencer3: of course.22:01
aquariusDanChapman, I am! how do you know this? :) And... where does it look for skins? only in the system folder?22:01
elopiorickspencer3: http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/view/head:/tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_checkbox.py#L2722:02
rickspencer3elopio, is there reference somewhere that I can see how to do it?22:02
elopioselect_single(ubuntuuitoolkit.CheckBox)22:02
elopiorickspencer3: the autopilot tutorial explains how to define and use custom proxy objects. And the toolkit API docs show the existing custom proxy objects that you can use.22:03
elopiobut everything is offline atm.22:03
rickspencer3hmmm22:03
rickspencer3ok22:03
rickspencer3I am making good progress22:03
veeberselopio: ah nice, thanks for the further info. I really need to get into the UI code to see what extra helpers etc. are all there22:04
rickspencer3elopio, so, I assume there is a helper in the header to go back?22:04
elopiorickspencer3: there is :)22:05
elopiohttp://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/view/head:/tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_header.py#L9422:05
elopiorickspencer3: but better use self.main_view.go_back()22:06
DanChapmanaquarius i found it by poking around ubuntu-emulator :-) anyway i believe these are the paths it checks http://bazaar.launchpad.net/~phablet-team/goget-ubuntu-touch/trunk/view/head:/ubuntu-emulator/run.go#L4922:06
elopiorickspencer3: actually, now that I see it you shouldn't do header.click_action_button(...). You should do self.main_view.click_action_button(...)22:08
elopiothat way if they go crazy again and move the actions to a different place, your test will not have to change.22:08
rickspencer3oh nice22:08
rickspencer3by the way .. "they" == "me"22:09
rickspencer3also, I don't think designers "go crazy" so much as "improve designs" :)22:09
rickspencer3we should not malign them for doing their jobs! right?22:09
elopioright... :D22:09
aquariusDanChapman, aha, I can pass it skindir22:13
aquariusDanChapman, I like how all these command line options are totally undocumented ;)22:13
aquariusDanChapman, but now I can make other skins... although I am not the most talented artist. mhall119, it'd be very cool if someone got on to the design team and got a bq emulator skin ready for the phone release. (And a bunch of Ubuntu bq images for publishing screenshots of one's app on websites, too, for similar reasons)22:15
rickspencer3\o/ my first autopilot test22:16
balloonso/22:17
balloonselopio, no we don't have a doc explaining the difference nicely, but it's on the list for me. sucks i can't type now22:17
balloonsits intended to go on the revamped d.u.c site22:18
mhall119aquarius: probably wouldn't be the design team skinning the emulator22:18
elopioballoons: we have added a task to our backlog to do autopilot and qttest docs. Maybe you should talk to jfunk to join our team during that sprint, at least partial time.22:18
elopiothat would be awesome.22:18
veeberselopio, balloons: aye that would be awesome :-)22:18
aquariusmhall119, not expecting a designer to skin the emulator. What's needed is a png of the bq phone at the appropriate size. That's totally a designer job :) Dropping that png into the emulator deb file is not.22:19
balloonsohh excellebt. a whole sprint for that.22:19
aquariusmhall119, I'd ping one of them myself with the specs for the png file but I don't think I know anyone there who's a visual designer any more :)22:19
mhall119aquarius: right, I'll poke the emulator maintainers to tell design what they need to make it happen22:19
aquariusmhall119, nice one; that's exactly what I was hoping for22:20
mhall119once I figure out who is maintaining the ubuntu-emulator22:20
aquariusthen the emulator will look like our new phone22:20
aquariusand not be an Edge with horrible artifacts around the, er, edge22:20
elopioballoons: well, not a whole sprint. We probably will have to fix the templates and do some other cleaning during those two weeks.22:20
balloonsyes.. but a sprint for cleanup tasks and docs will be nice. i asked for some of those cards22:21
AkivaAvrahamubuntu-emulator; this is new...22:23
rickspencer3elopio, does ap work with scopes?22:26
elopiorickspencer3: yes, we have some initial helpers in unity to do the basic things, open them, click items, get information.22:27
rickspencer3groovy22:27
elopiobut some more work is needed. It's in progress as part of the click sccope automation.22:27
rickspencer3elopio, https://plus.google.com/109101768243927790674/posts/G3ZqXLR7WtN22:28
elopiorickspencer3: awesome! specially the last sentence :)22:30
balloons:)22:30
AkivaAvrahamCannot install /tmp/com.ubuntu.developer.akiva.classical-music-youtube-dl_0.1_i386.click: Framework "ubuntu-sdk-14.10" not present on system (use --force-missing-framework option to override)22:34
AkivaAvrahamam I just missing a package?22:34
AkivaAvrahamWhat would be the best way to go about getting youtube-dl installed on the ubuntu touch?23:22
AkivaAvrahamit is a python script through and through so23:23

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