diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-03-13 15:06:25 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-15 10:35:16 +0000 |
commit | c1cc10d013e41900743adbe5538583874cb0ac5f (patch) | |
tree | d2fa90fcc4ce79880b43c49dfd9bd6ec94a3a337 | |
parent | 0fa748e348b30c0da359ea21883e7078fae41871 (diff) | |
download | poky-c1cc10d013e41900743adbe5538583874cb0ac5f.tar.gz |
Hob: Show recipe/package editing button after base image is selected
Only show recipe and package editing button after base image is selected.
(Bitbake rev: 5290d99f4d0f36076c59ec0b59e3f69b04d69ebf)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 9 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 14 |
2 files changed, 20 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index c6b1a3df5b..f52b475ea9 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -136,6 +136,7 @@ class Builder(gtk.Window): | |||
136 | LAYER_CHANGED, | 136 | LAYER_CHANGED, |
137 | RCPPKGINFO_POPULATING, | 137 | RCPPKGINFO_POPULATING, |
138 | RCPPKGINFO_POPULATED, | 138 | RCPPKGINFO_POPULATED, |
139 | BASEIMG_SELECTED, | ||
139 | RECIPE_SELECTION, | 140 | RECIPE_SELECTION, |
140 | PACKAGE_GENERATING, | 141 | PACKAGE_GENERATING, |
141 | PACKAGE_GENERATED, | 142 | PACKAGE_GENERATED, |
@@ -145,7 +146,7 @@ class Builder(gtk.Window): | |||
145 | IMAGE_GENERATED, | 146 | IMAGE_GENERATED, |
146 | MY_IMAGE_OPENED, | 147 | MY_IMAGE_OPENED, |
147 | BACK, | 148 | BACK, |
148 | END_NOOP) = range(14) | 149 | END_NOOP) = range(15) |
149 | 150 | ||
150 | (IMAGE_CONFIGURATION, | 151 | (IMAGE_CONFIGURATION, |
151 | RECIPE_DETAILS, | 152 | RECIPE_DETAILS, |
@@ -159,6 +160,7 @@ class Builder(gtk.Window): | |||
159 | LAYER_CHANGED : IMAGE_CONFIGURATION, | 160 | LAYER_CHANGED : IMAGE_CONFIGURATION, |
160 | RCPPKGINFO_POPULATING : IMAGE_CONFIGURATION, | 161 | RCPPKGINFO_POPULATING : IMAGE_CONFIGURATION, |
161 | RCPPKGINFO_POPULATED : IMAGE_CONFIGURATION, | 162 | RCPPKGINFO_POPULATED : IMAGE_CONFIGURATION, |
163 | BASEIMG_SELECTED : IMAGE_CONFIGURATION, | ||
162 | RECIPE_SELECTION : RECIPE_DETAILS, | 164 | RECIPE_SELECTION : RECIPE_DETAILS, |
163 | PACKAGE_GENERATING : BUILD_DETAILS, | 165 | PACKAGE_GENERATING : BUILD_DETAILS, |
164 | PACKAGE_GENERATED : PACKAGE_DETAILS, | 166 | PACKAGE_GENERATED : PACKAGE_DETAILS, |
@@ -309,6 +311,9 @@ class Builder(gtk.Window): | |||
309 | elif next_step == self.RCPPKGINFO_POPULATED: | 311 | elif next_step == self.RCPPKGINFO_POPULATED: |
310 | self.image_configuration_page.show_info_populated() | 312 | self.image_configuration_page.show_info_populated() |
311 | 313 | ||
314 | elif next_step == self.BASEIMG_SELECTED: | ||
315 | self.image_configuration_page.show_baseimg_selected() | ||
316 | |||
312 | elif next_step == self.RECIPE_SELECTION: | 317 | elif next_step == self.RECIPE_SELECTION: |
313 | pass | 318 | pass |
314 | 319 | ||
@@ -828,7 +833,7 @@ class Builder(gtk.Window): | |||
828 | self.switch_page(self.MACHINE_SELECTION) | 833 | self.switch_page(self.MACHINE_SELECTION) |
829 | 834 | ||
830 | def show_configuration(self): | 835 | def show_configuration(self): |
831 | self.switch_page(self.RCPPKGINFO_POPULATED) | 836 | self.switch_page(self.BASEIMG_SELECTED) |
832 | 837 | ||
833 | def stop_build(self): | 838 | def stop_build(self): |
834 | if self.stopping: | 839 | if self.stopping: |
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py index 3b1201e908..f386281947 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | |||
@@ -109,9 +109,17 @@ class ImageConfigurationPage (HobPage): | |||
109 | 109 | ||
110 | def show_info_populated(self): | 110 | def show_info_populated(self): |
111 | self.progress_bar.reset() | 111 | self.progress_bar.reset() |
112 | self._pack_components(pack_config_build_button = False) | ||
113 | self.set_config_machine_layout(show_progress_bar = False) | ||
114 | self.set_config_baseimg_layout() | ||
115 | self.show_all() | ||
116 | |||
117 | def show_baseimg_selected(self): | ||
118 | self.progress_bar.reset() | ||
112 | self._pack_components(pack_config_build_button = True) | 119 | self._pack_components(pack_config_build_button = True) |
113 | self.set_config_machine_layout(show_progress_bar = False) | 120 | self.set_config_machine_layout(show_progress_bar = False) |
114 | self.set_config_baseimg_layout() | 121 | self.set_config_baseimg_layout() |
122 | self.set_rcppkg_layout() | ||
115 | self.show_all() | 123 | self.show_all() |
116 | 124 | ||
117 | def create_config_machine(self): | 125 | def create_config_machine(self): |
@@ -196,9 +204,11 @@ class ImageConfigurationPage (HobPage): | |||
196 | self.gtable.attach(self.image_title_desc, 0, 40, 17, 22) | 204 | self.gtable.attach(self.image_title_desc, 0, 40, 17, 22) |
197 | self.gtable.attach(self.image_combo, 0, 12, 22, 25) | 205 | self.gtable.attach(self.image_combo, 0, 12, 22, 25) |
198 | self.gtable.attach(self.image_desc, 14, 38, 22, 27) | 206 | self.gtable.attach(self.image_desc, 14, 38, 22, 27) |
207 | self.gtable.attach(self.image_separator, 0, 40, 35, 36) | ||
208 | |||
209 | def set_rcppkg_layout(self): | ||
199 | self.gtable.attach(self.view_recipes_button, 0, 20, 28, 32) | 210 | self.gtable.attach(self.view_recipes_button, 0, 20, 28, 32) |
200 | self.gtable.attach(self.view_packages_button, 20, 40, 28, 32) | 211 | self.gtable.attach(self.view_packages_button, 20, 40, 28, 32) |
201 | self.gtable.attach(self.image_separator, 0, 40, 35, 36) | ||
202 | 212 | ||
203 | def create_config_build_button(self): | 213 | def create_config_build_button(self): |
204 | # Create the "Build packages" and "Just bake" buttons at the bottom | 214 | # Create the "Build packages" and "Just bake" buttons at the bottom |
@@ -280,6 +290,8 @@ class ImageConfigurationPage (HobPage): | |||
280 | self.builder.recipe_model.reset() | 290 | self.builder.recipe_model.reset() |
281 | self.builder.package_model.reset() | 291 | self.builder.package_model.reset() |
282 | 292 | ||
293 | self.show_baseimg_selected() | ||
294 | |||
283 | glib.idle_add(self.image_combo_changed_idle_cb, selected_image, selected_recipes, selected_packages) | 295 | glib.idle_add(self.image_combo_changed_idle_cb, selected_image, selected_recipes, selected_packages) |
284 | 296 | ||
285 | def _image_combo_connect_signal(self): | 297 | def _image_combo_connect_signal(self): |