diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2012-08-21 18:21:23 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-22 13:59:55 +0100 |
commit | 164083d31f7b8d1ea96b31ed3c13bddcc42961f6 (patch) | |
tree | c953d6dba3126da2f4f7047aedf24e2dcbf30284 /bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | |
parent | 2a6818eea1d73a66204e4a903300c9794f277efe (diff) | |
download | poky-164083d31f7b8d1ea96b31ed3c13bddcc42961f6.tar.gz |
bitbake: Hob wizard-like reorganization
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>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/recipeselectionpage.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py index af68f2a751..d8e71b0979 100755 --- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | |||
@@ -124,18 +124,22 @@ class RecipeSelectionPage (HobPage): | |||
124 | }] | 124 | }] |
125 | } | 125 | } |
126 | ] | 126 | ] |
127 | |||
128 | (INCLUDED, | ||
129 | ALL, | ||
130 | TASKS) = range(3) | ||
127 | 131 | ||
128 | def __init__(self, builder = None): | 132 | def __init__(self, builder = None): |
129 | super(RecipeSelectionPage, self).__init__(builder, "Recipes") | 133 | super(RecipeSelectionPage, self).__init__(builder, "Edit recipes") |
130 | 134 | ||
131 | # set invisiable members | 135 | # set invisible members |
132 | self.recipe_model = self.builder.recipe_model | 136 | self.recipe_model = self.builder.recipe_model |
133 | 137 | ||
134 | # create visual elements | 138 | # create visual elements |
135 | self.create_visual_elements() | 139 | self.create_visual_elements() |
136 | 140 | ||
137 | def included_clicked_cb(self, button): | 141 | def included_clicked_cb(self, button): |
138 | self.ins.set_current_page(0) | 142 | self.ins.set_current_page(self.INCLUDED) |
139 | 143 | ||
140 | def create_visual_elements(self): | 144 | def create_visual_elements(self): |
141 | self.eventbox = self.add_onto_top_bar(None, 73) | 145 | self.eventbox = self.add_onto_top_bar(None, 73) |
@@ -180,7 +184,7 @@ class RecipeSelectionPage (HobPage): | |||
180 | self.build_packages_button.connect("clicked", self.build_packages_clicked_cb) | 184 | self.build_packages_button.connect("clicked", self.build_packages_clicked_cb) |
181 | button_box.pack_end(self.build_packages_button, expand=False, fill=False) | 185 | button_box.pack_end(self.build_packages_button, expand=False, fill=False) |
182 | 186 | ||
183 | self.back_button = HobAltButton("<< Back to image configuration") | 187 | self.back_button = HobAltButton('<< Back') |
184 | self.back_button.connect("clicked", self.back_button_clicked_cb) | 188 | self.back_button.connect("clicked", self.back_button_clicked_cb) |
185 | button_box.pack_start(self.back_button, expand=False, fill=False) | 189 | button_box.pack_start(self.back_button, expand=False, fill=False) |
186 | 190 | ||
@@ -261,3 +265,6 @@ class RecipeSelectionPage (HobPage): | |||
261 | 265 | ||
262 | def after_fadeout_checkin_include(self, table, ctrl, cell, tree): | 266 | def after_fadeout_checkin_include(self, table, ctrl, cell, tree): |
263 | tree.set_model(self.recipe_model.tree_model(self.pages[0]['filter'])) | 267 | tree.set_model(self.recipe_model.tree_model(self.pages[0]['filter'])) |
268 | |||
269 | def set_recipe_curr_tab(self, curr_page): | ||
270 | self.ins.set_current_page(curr_page) | ||