summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
Commit message (Collapse)AuthorAgeFilesLines
* bitbake: hob: Buttons width and height are taken for hostIoana Grigoropol2012-09-271-1/+1
| | | | | | | | | | | | | - removed all set_size_request calls for buttons in order to: - force autosizing of buttons with regard to the text length - use host theme default height for buttons - modified buttons on image details page to have the same height (default host one) and the width of the button with the largest text - modified Stop button on build details page to have the default height by directly attaching it to the containing table instead of hbox (Bitbake rev: 9cdfaa17309d368c3bbae0f1cce0ad875d340e83) Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: hob/packageselectionpage:cancel button should redirect to Image ↵Cristiana Voicu2012-09-251-3/+3
| | | | | | | | | | | | conf screen Cancel button brings you to Image configuration page. [YOCTO #3105] (Bitbake rev: 88cd9586f0f6a413c1a6800b3e57444f453afb73) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: hob/packageselectionpage: "Cancel" button returns to "Image ↵Cristiana Voicu2012-09-201-1/+1
| | | | | | | | | | | | | | | | configuration" screen Once package building completes, you can customise the list of packages that will go into the final image. Once you have made the changes you need, you can either build your image, or you can exit the process and go back to the 'Image configuration' screen by selecting 'Cancel'. [YOCTO #3105] (Bitbake rev: c5fd1824c9794923576ec1e747536c0430542fd1) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: hob: rename 'View log' to 'Open log'Constantin Musca2012-09-201-6/+6
| | | | | | | | | | | Rename all the 'View log' buttons to 'Open log' for consistency. [YOCTO #3045] (Bitbake rev: 7bc9b0c1c2544b494959b13ac79ac3e52edb4fe3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: hob/packageselectionpage: restore selected packagesCristiana Voicu2012-09-101-3/+2
| | | | | | | | | | After "Cancel" action, selected packages are restored to default. [YOCTO #2984] (Bitbake rev: 81b0c0cd15cbd61285e6525f482412051371ea4c) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: Hob: change view of 'recipes' and 'packages' tables as ui designLiming An2012-09-071-36/+12
| | | | | | | | | | | | | changed the order of task tables, cancel the 'description' column, add the binb total number indicator, and so on [YOCTO 2195] (Bitbake rev: 6dc3263d60a6d35f9eebfcdbc2665201ee40b953) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: hob/recipe&packageselectionpage: Change "Back" button to "Cancel" ↵Cristiana Voicu2012-09-071-4/+3
| | | | | | | | | | | | | | | button "Back" button placed on RecipeSelectionPage and PackageSelectionPage was changed to "Cancel" button to avoid any confusion. Also, it was placed next to the other buttons on the page. [YOCTO #3012] (Bitbake rev: 1785b49a1b0b9698851d6e8aea94d1d2aa22c445) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: hob/packageselectionpage: Add tooltips to 'Included' and 'All ↵Cristiana Voicu2012-09-071-1/+6
| | | | | | | | | | | | | | | packages' tab and 'Search' field For the 'Included' tab: "The packages currently included for your image" For the 'All packages' tab: "All packages that have been built" For the 'Search' field: "Enter a package name to find it" [YOCTO #2322] (Bitbake rev: 0828f352419127fb30dc4eb5f91feba84ea59202) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: hob/packageselectionpage: Correctly restore previously selected ↵Cristiana Voicu2012-09-071-0/+3
| | | | | | | | | | | | | | | packages "Back" button from "Packageselection" page now restores correctly previously selected packages list. Till now "Back" button was implemented just to switch pages, not to cancel changes you have made to packages list. [YOCTO #2984] (Bitbake rev: 1ad03d6a327eb3389f7b4d0d74d2e8ae8b50c3b6) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: Hob wizard-like reorganizationCristian Iorga2012-08-221-4/+12
| | | | | | | | | | | | | | | | | | | | | | Hob is now more context-sensitive regarding user changes/options. Also, the workflow have been streamlined and resembles more of a wizard. Beautified some hardcoded values. Fixed typo. New streamlined Image Configuration page. Build and/or Edit image buttons presence is context sensitive. Recipes and packages tabs selected automatically based on custom image or pre-defined target image (included or all). Context sensitive Back button. Fixes [YOCTO 2165] (Bitbake rev: b48cd7dcf57b1abc8c5b46ced11d4f57bf06e557) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: Hob: log for Hob and allow users to show logs after successful buildLiming An2012-08-021-4/+23
| | | | | | | | | | | | | | | | | | If users build images in Hob, record logs and allow users to retrieve the lo after successful build. The logs are generated if and only if: - users do "just bake" - users do "build image" after "build packages" - users do "build packages" only [YOCTO #1991] (Bitbake rev: 291289787bb042b99f0599babc2d67c220aadb87) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: Fix for Hob bug #2323Cristian Iorga2012-06-251-5/+2
| | | | | | | | | | | Removed unnecessary button from Recipes screen and replaced the button that diplayed packages size and total image size from Packages screen with a label. (Bitbake rev: e6ff1d4bab43fdcd8af1230f1d54615f53c1978e) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: fixed a definition not match issue when click choose directflb in ↵Liming An2012-06-081-1/+1
| | | | | | | | | | | package page [YOCTO #2526] (Bitbake rev: 3c285d386a4ca0a86798feb0c506673a2a312727) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs/[package|recipe]selectionpage: include buttonJoshua Lock2012-05-201-2/+8
| | | | | | | | | | | The indication of the included packages/recipes in the top right of the GUI, per design, is a button which switches the Notebook to the included tab. (Bitbake rev: 494534cae6211d9055098562df1f35b56858f3ec) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs/: replace custom HobNotebookJoshua Lock2012-05-201-2/+1
| | | | | | | | | | | | | | | | The custom HobNotebook widget was implemented to address perceived deficiencies in the gtk.Notebook API. Recent inspection reveals that the API is capable of all that Hob requires of it and therefore maintaining a custom class to provide similar functionality does not make sense. Addresses [YOCTO #2276] (Bitbake rev: e683caa9863bbb52480346669806f22173629a5e) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: add group number show and 'bold' visible effect for Package viewLiming An2012-05-091-0/+26
| | | | | | | | | | | | as ui design, add number of packages for each group, and make the text font to 'bold' when row be selected [YOCTO #2195] (Bitbake rev: 5812176a679a39a4d096134c871c3d24a7e505ea) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: fix the missing functionsShane Wang2012-04-121-2/+6
| | | | | | | | | | | | | The patch is to correct 7e5d41ab223b73c1c7b2cf7e4dd13289a2dc2e8b (Bitbake rev: b6e68019494044305ab28492a517d1eafea851c3) to fix the missing functions. [Yocto #2281] (Bitbake rev: 3c2808b67384e92601cbd66877c36ca40df7c7ba) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* packageselectionpage: add missing methodJoshua Lock2012-04-121-0/+4
| | | | | | | | | | | | This is just a copy of the same method from the recipeselectionpage so that we can actually run hob again. Fixes [YOCTO #2281] (Bitbake rev: b6e68019494044305ab28492a517d1eafea851c3) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: tooltip change for "Build image" buttonShane Wang2012-04-111-1/+1
| | | | | | | | | [Yocto #2242] (Bitbake rev: a36bd8ddf62397c554dadb97841532e260b01b91) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: add fadeout display effection for package view include pageLiming An2012-04-111-6/+38
| | | | | | | | | [YOCTO #2100] (Bitbake rev: c0c81647dc5e72fe3abb1fb3b65a978aa4b226a5) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Add an extra 50M space if zypper is selectedDongxiao Xu2012-04-111-0/+2
| | | | | | | | | | If zypper is selected, RPM packaging will add extra 50M free space to the final image. We need to reflect it in package selection page. (Bitbake rev: 22344f13d5e201be0d6381c6542d05c6fde7eec3) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Change base image to "Create your own image" if customizedDongxiao Xu2012-04-111-0/+6
| | | | | | | | | | | | | Once user did customization to his base image, we change the base image to be "Create your own image" to avoid some issues caused by the relationship between base image and its default recipes and packages. This fixes [YOCTO #2211] (Bitbake rev: 8edad8d282b69896237e956a00c66cd4d10ef494) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* selectionpage: show persistent tooltips on clickJoshua Lock2012-04-111-5/+8
| | | | | | | | | | Requiring a double click to show the tooltips isn't very intuitive, add a callback to show the persistent tooltips on button release. (Bitbake rev: 80af7e72a9404044910fca7f9265e66354f747a6) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs/[recipe|package]selectionpage: fixed width Included colJoshua Lock2012-04-111-9/+14
| | | | | | | | | | Set the expand property on all columns other than the 'Included' column so that the included column remains at the max size set. (Bitbake rev: e1406d75c0643a2e65bb61649958e05e730fb332) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs: only display one 'Brought in by' item in Hob treesJoshua Lock2012-04-111-1/+1
| | | | | | | | | | The design calls for a single 'Brought in by' item to be shown in the tree views with any extra items to be shown in the tooltip. (Bitbake rev: 6866271da738237d3a119e291ac8f9d2c517e124) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: unify _size_to_string() and _string_to_size()Shane Wang2012-04-051-16/+5
| | | | | | | | | | We call intsize_to_string (and string_to_intsize) in 3 different places. We unify the implementations into one place. (Bitbake rev: 578ce86a9ac2110f5b128aae582c6e0b3e739cec) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: fix IMAGE_INSTALL setting while save templateDongxiao Xu2012-04-051-0/+1
| | | | | | | | | | | | | If save every selected package into IMAGE_INSTALL field, and then build the saved bb file by bitbake command line, it will report errors since some packages could not be found since they are dynamically generated. With this commit, Hob will only save those packages into the IMAGE_INSTALL variable which are brought in by user. (Bitbake rev: 6c970d07422bb9a8fcf339315587cfc9b207a44e) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: change some words on recipes screen and package screen to make them ↵Shane Wang2012-03-291-2/+2
| | | | | | | | | consistent (Bitbake rev: 63bfa397059823bea6fa453703cf0653fc123f0b) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs: make use of HobButton for existing primary action buttonsJoshua Lock2012-03-231-9/+2
| | | | | | | | | | Replace all gtk.Button instances that have the orange style applied with HobButton. (Bitbake rev: f4dfdc23a6498fdaa164a1bfccf616ff8fcbd251) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs: fix 'Back to image configuration' alt button textJoshua Lock2012-03-231-1/+1
| | | | | | | | | Design calls for these buttons to include << at the beginning of the label (Bitbake rev: 08cc5ec196a51c29f936eccba1644607be2ed759) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs: Add HobAltButton and use itJoshua Lock2012-03-221-2/+2
| | | | | | | | | | | | | | | | | | | This adds a gtk.Button subclass for secondary actions which unsets the relief so that the user is aware that the button is clickable and yet it is more subtle than the primary action (such that the primary action is the most obvious one) - this is per the interaction design. Further we replace all uses of gtk.LinkButton with the new HobAltButton Partially addresses [YOCTO #2105], a follow on patch will theme the button so that it matches the visual design. (From Poky rev: c3f17fed243180678264168968333463b203bfa0) (Bitbake rev: 601521c2d7f5568d94529a77b2cbe19fef7cbf48) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Change the titles for recipe view and package viewShane Wang2012-03-221-1/+1
| | | | | | | | | (From Poky rev: cccbf0cc8a3d8c93a141d96bed4763beb7b85786) (Bitbake rev: 98dd4f20f2e6f50c1cad2c480eebde14eeadc41a) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Change package selection tab orderDongxiao Xu2012-03-221-20/+20
| | | | | | | | | | | | | | | | | In the package screen, change the tab order to be: "Included" and "All packages". Also change some descriptions in tab. This fixes [YOCTO #2111] (From Poky rev: 25628f43d16bcc35874bdac3e1ce1b552c049633) (Bitbake rev: e12a5e478635a0de87060ac20aff8c9b1858596e) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: change the code style to enumerate a list in a for-loopShane Wang2012-03-201-5/+5
| | | | | | | | | | | | | | | | | | | | We use the more common style to enumerate a list in a for-loop (http://docs.python.org/library/functions.html#enumerate), that is: try to use for item in mylist, and try to use for i, item in enumerate(list) rather than for i in range(len(mylist)) (From Poky rev: 33c21bc60bd1542f81d33c328f116dec424728cd) (Bitbake rev: 9b168239a5d9693573438eb6514938b81de85af3) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: implement a self-defined notebook visual component for HobShane Wang2012-03-201-12/+5
| | | | | | | | | | | | | | | | | | | | In recipe selection page, package selection page, and build details page, etc, there is a notebook component which is not gtk.Notebook in the design video. We implement the visual component with a drawing area, and use it to replace the old notebook in recipe selection page and package selection page. The reasons why we do it are: 1) General speaking, gtk.Notebook doesn't look like the designer worked out. (see https://wiki.yoctoproject.org/wiki/File:Hob1.2-screencast2.mov) 2) And the designer version looks better, for example, there is an indicator to show how many recipes or packages are included, and how many issues happened when building? Very straightforward. But technically, gtk.Notebook can't implement that, as far as we know. 3) Moreover, there is an entry for "search recipes", and "search packages". How to make it horizontal to the tabs is a problem to us. Regarding those, we give up gtk.Notebook and use our own. (From Poky rev: e4ebac226cc5e4589bcecd8bada9fde462e925cc) (Bitbake rev: b0c2ca3f600694c6d37924006de3f9474b2a9a8e) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Change Box's padding valueDongxiao Xu2012-03-151-1/+1
| | | | | | | | | | For Box type of widget, change the padding value to be HIG consistent, that is an increments of 6 pixels. (Bitbake rev: 0347e99ca5c232832f2b490584d76872c6d77311) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: improve recipe/package selection performanceDongxiao Xu2012-03-151-0/+1
| | | | | | | | | | | | | | | | Originally we will send selection chagned notification in each include_item and exclude_item, which is time cost since these are recursive functions and we may select hundreds of recipes/packages. The improvement is to move the notification from include_item and exclude_item to the place where the two functions are called. This could greatly improve the selection/deselection speed for recipe and package lists. (Bitbake rev: 5ad7c54f4b8739b9ae097c68978093a53f950ed7) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Remove the reset button in recipe/package selection pageDongxiao Xu2012-03-151-11/+0
| | | | | | | (Bitbake rev: f576355686804631fd797e2a5d383a70f6fc42cd) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: enable indicators on the "Included" tab in the recipe selection page ↵Shane Wang2012-03-011-0/+1
| | | | | | | | | and the package selection page (Bitbake rev: 504d480b208cacad7a5595312890f49fe19b80be) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: fixed the issue in the brought-in-by dialog.Shane Wang2012-03-011-9/+3
| | | | | | | | | | | When typing any thing in the search entry, the brough-in-by dialog will be shown. That is because we call back "selection-changed" signal to pop up the dialog, which is not correct. This patch is to fix the problem by using "row-activated" signal. (Bitbake rev: ea56ae787153460166697bbcae92f51a77ca1571) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: make HobViewTable more general in hob and make the image selection ↵Shane Wang2012-03-011-11/+17
| | | | | | | | | | | | | | | dialog and the image details page reuse it. This patch is to make the class HobViewTable more general as a tree view in Hob. Now the recipe selection page and the package selection page are using it. And we have tree views in the image selection dialog and the image details page, which used the class methods in HobWidget to create the tree views. That is not good in OO. So, make them reuse HobViewTable to create its instances. (Bitbake rev: 3c900211e8bc0311542873480d79b347d7449f59) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: A new implemetation (v2)Dongxiao Xu2012-02-241-0/+226
This commit implements a new design for hob Some of the new features: - Friendly new designed GUI. Quick response to user actions. - Two step builds support package generation and image generation. - Support running GUI seprarately from bitbake server. - Recipe/package selection and deselection. - Accurate customization for image contents and size. - Progress bars showing the parsing and build status. - Load/save user configurations from/into templates. (Bitbake rev: 4dacd29f9c957d20f4583330b51e5420f9c3338d) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Fengxia Hua <fengxia.hua@intel.com> Designed-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>