summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-03-13 15:06:25 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-15 10:35:16 +0000
commitc1cc10d013e41900743adbe5538583874cb0ac5f (patch)
treed2fa90fcc4ce79880b43c49dfd9bd6ec94a3a337 /bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
parent0fa748e348b30c0da359ea21883e7078fae41871 (diff)
downloadpoky-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>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py14
1 files changed, 13 insertions, 1 deletions
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):