summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
Commit message (Collapse)AuthorAgeFilesLines
* Hob: show those appliable buttons on the image details page onlyShane Wang2012-04-111-38/+84
| | | | | | | | | | | | We don't use "grayed out" but use "show/hide" for those appliable buttons in the image details page. [Yocto #2143] (Bitbake rev: df1564d78d081ceab51d628d227e57b7a197259b) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: add tooltips into image details screenShane Wang2012-04-111-5/+11
| | | | | | | | | [Yocto #2243] (Bitbake rev: 543e81b87b48de9c5285b81c856376c9f52d7902) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: clean up and unify the steps for new build to call ↵Shane Wang2012-04-111-1/+1
| | | | | | | | | | | | | | | initiate_new_build_async() initiate_new_build() (changed the function name into initiate_new_build_async() to indicate it is an async function) or the similar sub-functions are called at different places. This patch is unify to call initiate_new_build_async(). (Bitbake rev: ec42be626a5d6362a09f12f4f4025ad92d70c89b) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Fix the pattern patch for image nameDongxiao Xu2012-04-111-2/+1
| | | | | | | | | | | | | Sometimes, users may open an image that is not built by Hob, therefore its image name is not started with "hob-image-". This commit sets a looser rule for runnable image matching. This fixes [YOCTO #2240] (Bitbake rev: 7b81389566cb27451557ca11ec8ed40ef2630543) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: unify _size_to_string() and _string_to_size()Shane Wang2012-04-051-10/+1
| | | | | | | | | | 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: remove grab_default() for deploy buttonShane Wang2012-04-051-1/+0
| | | | | | | | | | | | | | | | When the deploy button is disabled since there is no deployable image, the console will show the warning message: WARNING: /home/yocto-build5/poky-contrib/bitbake/lib/bb/ui/crumbs/imagedetailspage.py:333: GtkWarning: /build/buildd/gtk+2.0-2.22.0/gtk/gtkwidget.c:5684: widget not within a GtkWindow self.deploy_button.grab_default() This patch is to remove the warning message. (Bitbake rev: 51a9a5557bb798b559874a4e6dc9924380b5d9a4) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Remove some calling of initiate_new_build()Dongxiao Xu2012-04-051-2/+0
| | | | | | | | | | | | | initiate_new_build() function is in async mode and could not be called before another async function. Also we could not initialize the build if user simply change a setting, therefore remove this function. (Bitbake rev: c184cefe90115623e2312ad2bbe34ea95788c129) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Improve the matching for runnable machine typeDongxiao Xu2012-03-291-1/+2
| | | | | | | (Bitbake rev: 1b14488bcfb345a3258b15ebfdaa2e1235a5fe87) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: add Templates and Settings on image details screenShane Wang2012-03-291-0/+29
| | | | | | | | | | | | | | | | This patch is to add Templates and Settings tool buttons on the image details screen, which makes things easier and simplier. In order to fulfill that, the code splits the functions show_load_template_dialog() and show_adv_settings_dialog() in builder.py because they will possibly be called from different screens later. [Yocto #2163] (Bitbake rev: 29bea7b7076a7b74d36237da86a4eff6605d17ec) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: Set one of deployable images or runnable images as the default toggled itemShane Wang2012-03-291-26/+46
| | | | | | | | | | | | | | | | | | With this patch, even though there are a lot of images built out, a default image which is either deployable or runnable is toggled by default. So, for users, one more action to select an image before running qemu or deploying is not needed any more. Note: If there are more than one runnable or deployable images (such as ext2, ext3, jffs2 and btrfs), only the first image is toggled by default for run-qemu or deployment. If the user wants to run or deploy others, he/she needs to toggle them manually. [Yocto #2155] (Bitbake rev: 4568dfbd5e693cce0e6e947f323eaf08a3176744) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lib/bb/ui/crumbs/imagedetails: use secondary button style for 'View files'Joshua Lock2012-03-281-1/+5
| | | | | | | | | | | | | | Use HobAltButton, rather than gtk.LinkButton, for the 'View files' button. Use xdg-open to display the folders contents. (From Poky rev: 22955b47ac485e0d069ddd8301a11658d76bcfee) (Bitbake rev: 9647c188c0d06ec045c15281eae785e935c25d2b) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: runqemu and deployment functionality filterDongxiao Xu2012-03-251-11/+33
| | | | | | | | | | | | | | | | Implement the filter for runqemu and deployment functionality. runqemu 1) suffix should be in the list of RUNNABLE_IMAGE_TYPES. 2) machine should match the pattern of RUNNABLE_MACHINE_PATTERNS. deployment: 1) suffix should be in the list of DEPLOYMENT_IMAGE_TYPES. (Bitbake rev: de4d09a8d100b81622300db5f46627c649812abd) Signed-off-by: Dongxiao Xu <dongxiao.xu@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: Add HobAltButton and use itJoshua Lock2012-03-221-6/+6
| | | | | | | | | | | | | | | | | | | 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>
* ui/crumbs: remove unused return value from append_toolbar_buttonJoshua Lock2012-03-201-1/+1
| | | | | | | | | No caller of the method uses the returned toolbar variable (Bitbake rev: 77ed4bb3468d5d256f08329fd307df5a219ae242) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Hob: fix '!= None' and '== None' in the codeShane Wang2012-03-201-6/+6
| | | | | | | | | | | | | | This patch is to fix the following: if foo != None -----> if foo if foo == None -----> if not foo (From Poky rev: d771343b1726f166ed8d75543ba68bd2a20aee7b) (Bitbake rev: 23c140a4d00293d922cbd34b6b837493cac2e93a) 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: fix a bug that the image size is shown incorrectly in the image details ↵Shane Wang2012-03-011-8/+24
| | | | | | | | | | | | page. Originally, the image size shows the last item in the image tree view in the image details page. That is not correct. We need to show the size of the image which the user chooses. (Bitbake rev: 01c18a24252b35959a4cc01088678f93cb2f95e5) 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-12/+53
| | | | | | | | | | | | | | | 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/+294
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>