From: Joshua Lock <josh@linux.intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 08/11] Hob: Show recipe/package editing button after base image is selected
Date: Wed, 14 Mar 2012 12:37:36 -0700 [thread overview]
Message-ID: <4F60F380.60906@linux.intel.com> (raw)
In-Reply-To: <c72914d2a03cc95f1224e422c93efb8674350c5e.1331716896.git.dongxiao.xu@intel.com>
On 14/03/12 02:26, Dongxiao Xu wrote:
> Only show recipe and package editing button after base image is selected.
>
> Signed-off-by: Dongxiao Xu<dongxiao.xu@intel.com>
Signed-off-by: Joshua Lock <josh@linux.intel.com>
> ---
> lib/bb/ui/crumbs/builder.py | 9 +++++++--
> lib/bb/ui/crumbs/imageconfigurationpage.py | 14 +++++++++++++-
> 2 files changed, 20 insertions(+), 3 deletions(-)
>
> diff --git a/lib/bb/ui/crumbs/builder.py b/lib/bb/ui/crumbs/builder.py
> index c6b1a3d..f52b475 100755
> --- a/lib/bb/ui/crumbs/builder.py
> +++ b/lib/bb/ui/crumbs/builder.py
> @@ -136,6 +136,7 @@ class Builder(gtk.Window):
> LAYER_CHANGED,
> RCPPKGINFO_POPULATING,
> RCPPKGINFO_POPULATED,
> + BASEIMG_SELECTED,
> RECIPE_SELECTION,
> PACKAGE_GENERATING,
> PACKAGE_GENERATED,
> @@ -145,7 +146,7 @@ class Builder(gtk.Window):
> IMAGE_GENERATED,
> MY_IMAGE_OPENED,
> BACK,
> - END_NOOP) = range(14)
> + END_NOOP) = range(15)
>
> (IMAGE_CONFIGURATION,
> RECIPE_DETAILS,
> @@ -159,6 +160,7 @@ class Builder(gtk.Window):
> LAYER_CHANGED : IMAGE_CONFIGURATION,
> RCPPKGINFO_POPULATING : IMAGE_CONFIGURATION,
> RCPPKGINFO_POPULATED : IMAGE_CONFIGURATION,
> + BASEIMG_SELECTED : IMAGE_CONFIGURATION,
> RECIPE_SELECTION : RECIPE_DETAILS,
> PACKAGE_GENERATING : BUILD_DETAILS,
> PACKAGE_GENERATED : PACKAGE_DETAILS,
> @@ -309,6 +311,9 @@ class Builder(gtk.Window):
> elif next_step == self.RCPPKGINFO_POPULATED:
> self.image_configuration_page.show_info_populated()
>
> + elif next_step == self.BASEIMG_SELECTED:
> + self.image_configuration_page.show_baseimg_selected()
> +
> elif next_step == self.RECIPE_SELECTION:
> pass
>
> @@ -828,7 +833,7 @@ class Builder(gtk.Window):
> self.switch_page(self.MACHINE_SELECTION)
>
> def show_configuration(self):
> - self.switch_page(self.RCPPKGINFO_POPULATED)
> + self.switch_page(self.BASEIMG_SELECTED)
>
> def stop_build(self):
> if self.stopping:
> diff --git a/lib/bb/ui/crumbs/imageconfigurationpage.py b/lib/bb/ui/crumbs/imageconfigurationpage.py
> index 3b1201e..f386281 100644
> --- a/lib/bb/ui/crumbs/imageconfigurationpage.py
> +++ b/lib/bb/ui/crumbs/imageconfigurationpage.py
> @@ -109,9 +109,17 @@ class ImageConfigurationPage (HobPage):
>
> def show_info_populated(self):
> self.progress_bar.reset()
> + self._pack_components(pack_config_build_button = False)
> + self.set_config_machine_layout(show_progress_bar = False)
> + self.set_config_baseimg_layout()
> + self.show_all()
> +
> + def show_baseimg_selected(self):
> + self.progress_bar.reset()
> self._pack_components(pack_config_build_button = True)
> self.set_config_machine_layout(show_progress_bar = False)
> self.set_config_baseimg_layout()
> + self.set_rcppkg_layout()
> self.show_all()
>
> def create_config_machine(self):
> @@ -196,9 +204,11 @@ class ImageConfigurationPage (HobPage):
> self.gtable.attach(self.image_title_desc, 0, 40, 17, 22)
> self.gtable.attach(self.image_combo, 0, 12, 22, 25)
> self.gtable.attach(self.image_desc, 14, 38, 22, 27)
> + self.gtable.attach(self.image_separator, 0, 40, 35, 36)
> +
> + def set_rcppkg_layout(self):
> self.gtable.attach(self.view_recipes_button, 0, 20, 28, 32)
> self.gtable.attach(self.view_packages_button, 20, 40, 28, 32)
> - self.gtable.attach(self.image_separator, 0, 40, 35, 36)
>
> def create_config_build_button(self):
> # Create the "Build packages" and "Just bake" buttons at the bottom
> @@ -280,6 +290,8 @@ class ImageConfigurationPage (HobPage):
> self.builder.recipe_model.reset()
> self.builder.package_model.reset()
>
> + self.show_baseimg_selected()
> +
> glib.idle_add(self.image_combo_changed_idle_cb, selected_image, selected_recipes, selected_packages)
>
> def _image_combo_connect_signal(self):
--
Joshua '贾詡' Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
next prev parent reply other threads:[~2012-03-14 19:47 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 9:26 [PATCH 00/11][PULL] Hob: Functionality and GUI fixes Dongxiao Xu
2012-03-14 9:26 ` [PATCH 01/11] Hob: add "Close" button to "BinbDialog" Dongxiao Xu
2012-03-14 19:38 ` Joshua Lock
2012-03-14 9:26 ` [PATCH 02/11] Hob: Disable the handling of "NoProvider" event Dongxiao Xu
2012-03-14 19:37 ` Joshua Lock
2012-03-15 8:31 ` Xu, Dongxiao
2012-03-15 22:35 ` Joshua Lock
2012-03-14 9:26 ` [PATCH 03/11] cooker: add package rdepends and rrecommends info Dongxiao Xu
2012-03-14 19:37 ` Joshua Lock
2012-03-14 9:26 ` [PATCH 04/11] Hob: Fix the image installation dependency Dongxiao Xu
2012-03-14 19:37 ` Joshua Lock
2012-03-15 6:02 ` Xu, Dongxiao
2012-03-15 17:47 ` Joshua Lock
2012-03-14 9:26 ` [PATCH 05/11] Hob: Remove the reset button in recipe/package selection page Dongxiao Xu
2012-03-14 19:37 ` Joshua Lock
2012-03-14 9:26 ` [PATCH 06/11] Hob: Remove the indication in machine/base image combobox Dongxiao Xu
2012-03-14 19:37 ` Joshua Lock
2012-03-14 9:26 ` [PATCH 07/11] Hob: Remove the recipe/package populated signal Dongxiao Xu
2012-03-14 19:37 ` Joshua Lock
2012-03-14 9:26 ` [PATCH 08/11] Hob: Show recipe/package editing button after base image is selected Dongxiao Xu
2012-03-14 19:37 ` Joshua Lock [this message]
2012-03-14 9:26 ` [PATCH 09/11] Hob: Emit command-failed signal even if error msg is None Dongxiao Xu
2012-03-14 19:37 ` Joshua Lock
2012-03-14 9:26 ` [PATCH 10/11] Hob: Add stop button for parsing progress Dongxiao Xu
2012-03-14 19:37 ` Joshua Lock
2012-03-15 0:44 ` Xu, Dongxiao
2012-03-14 9:26 ` [PATCH 11/11] Hob: improve recipe/package selection performance Dongxiao Xu
2012-03-14 19:37 ` Joshua Lock
2012-03-14 23:54 ` Xu, Dongxiao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F60F380.60906@linux.intel.com \
--to=josh@linux.intel.com \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox