diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/recipeselectionpage.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py index 18690077f5..693a449bcf 100755 --- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | |||
@@ -33,7 +33,7 @@ from bb.ui.crumbs.hobpages import HobPage | |||
33 | class RecipeSelectionPage (HobPage): | 33 | class RecipeSelectionPage (HobPage): |
34 | pages = [ | 34 | pages = [ |
35 | { | 35 | { |
36 | 'name' : 'Included', | 36 | 'name' : 'Included recipes', |
37 | 'tooltip' : 'The recipes currently included for your image', | 37 | 'tooltip' : 'The recipes currently included for your image', |
38 | 'filter' : { RecipeListModel.COL_INC : [True], | 38 | 'filter' : { RecipeListModel.COL_INC : [True], |
39 | RecipeListModel.COL_TYPE : ['recipe', 'task'] }, | 39 | RecipeListModel.COL_TYPE : ['recipe', 'task'] }, |
@@ -45,13 +45,6 @@ class RecipeSelectionPage (HobPage): | |||
45 | 'col_max' : 400, | 45 | 'col_max' : 400, |
46 | 'expand' : 'True' | 46 | 'expand' : 'True' |
47 | }, { | 47 | }, { |
48 | 'col_name' : 'Brought in by', | ||
49 | 'col_id' : RecipeListModel.COL_BINB, | ||
50 | 'col_style': 'binb', | ||
51 | 'col_min' : 100, | ||
52 | 'col_max' : 500, | ||
53 | 'expand' : 'True' | ||
54 | }, { | ||
55 | 'col_name' : 'Group', | 48 | 'col_name' : 'Group', |
56 | 'col_id' : RecipeListModel.COL_GROUP, | 49 | 'col_id' : RecipeListModel.COL_GROUP, |
57 | 'col_style': 'text', | 50 | 'col_style': 'text', |
@@ -59,6 +52,13 @@ class RecipeSelectionPage (HobPage): | |||
59 | 'col_max' : 300, | 52 | 'col_max' : 300, |
60 | 'expand' : 'True' | 53 | 'expand' : 'True' |
61 | }, { | 54 | }, { |
55 | 'col_name' : 'Brought in by', | ||
56 | 'col_id' : RecipeListModel.COL_BINB, | ||
57 | 'col_style': 'binb', | ||
58 | 'col_min' : 100, | ||
59 | 'col_max' : 500, | ||
60 | 'expand' : 'True' | ||
61 | }, { | ||
62 | 'col_name' : 'Included', | 62 | 'col_name' : 'Included', |
63 | 'col_id' : RecipeListModel.COL_INC, | 63 | 'col_id' : RecipeListModel.COL_INC, |
64 | 'col_style': 'check toggle', | 64 | 'col_style': 'check toggle', |
@@ -77,15 +77,15 @@ class RecipeSelectionPage (HobPage): | |||
77 | 'col_max' : 400, | 77 | 'col_max' : 400, |
78 | 'expand' : 'True' | 78 | 'expand' : 'True' |
79 | }, { | 79 | }, { |
80 | 'col_name' : 'License', | 80 | 'col_name' : 'Group', |
81 | 'col_id' : RecipeListModel.COL_LIC, | 81 | 'col_id' : RecipeListModel.COL_GROUP, |
82 | 'col_style': 'text', | 82 | 'col_style': 'text', |
83 | 'col_min' : 100, | 83 | 'col_min' : 100, |
84 | 'col_max' : 400, | 84 | 'col_max' : 400, |
85 | 'expand' : 'True' | 85 | 'expand' : 'True' |
86 | }, { | 86 | }, { |
87 | 'col_name' : 'Group', | 87 | 'col_name' : 'License', |
88 | 'col_id' : RecipeListModel.COL_GROUP, | 88 | 'col_id' : RecipeListModel.COL_LIC, |
89 | 'col_style': 'text', | 89 | 'col_style': 'text', |
90 | 'col_min' : 100, | 90 | 'col_min' : 100, |
91 | 'col_max' : 400, | 91 | 'col_max' : 400, |
@@ -109,13 +109,6 @@ class RecipeSelectionPage (HobPage): | |||
109 | 'col_max' : 400, | 109 | 'col_max' : 400, |
110 | 'expand' : 'True' | 110 | 'expand' : 'True' |
111 | }, { | 111 | }, { |
112 | 'col_name' : 'Description', | ||
113 | 'col_id' : RecipeListModel.COL_DESC, | ||
114 | 'col_style': 'text', | ||
115 | 'col_min' : 100, | ||
116 | 'col_max' : 400, | ||
117 | 'expand' : 'True' | ||
118 | }, { | ||
119 | 'col_name' : 'Included', | 112 | 'col_name' : 'Included', |
120 | 'col_id' : RecipeListModel.COL_INC, | 113 | 'col_id' : RecipeListModel.COL_INC, |
121 | 'col_style': 'check toggle', | 114 | 'col_style': 'check toggle', |
@@ -156,7 +149,7 @@ class RecipeSelectionPage (HobPage): | |||
156 | filter = page['filter'] | 149 | filter = page['filter'] |
157 | tab.set_model(self.recipe_model.tree_model(filter)) | 150 | tab.set_model(self.recipe_model.tree_model(filter)) |
158 | tab.connect("toggled", self.table_toggled_cb, page['name']) | 151 | tab.connect("toggled", self.table_toggled_cb, page['name']) |
159 | if page['name'] == "Included": | 152 | if page['name'] == "Included recipes": |
160 | tab.connect("button-release-event", self.button_click_cb) | 153 | tab.connect("button-release-event", self.button_click_cb) |
161 | tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include) | 154 | tab.connect("cell-fadeinout-stopped", self.after_fadeout_checkin_include) |
162 | self.ins.append_page(tab, page['name'], page['tooltip']) | 155 | self.ins.append_page(tab, page['name'], page['tooltip']) |
@@ -205,13 +198,13 @@ class RecipeSelectionPage (HobPage): | |||
205 | def refresh_selection(self): | 198 | def refresh_selection(self): |
206 | self.builder.configuration.selected_image = self.recipe_model.get_selected_image() | 199 | self.builder.configuration.selected_image = self.recipe_model.get_selected_image() |
207 | _, self.builder.configuration.selected_recipes = self.recipe_model.get_selected_recipes() | 200 | _, self.builder.configuration.selected_recipes = self.recipe_model.get_selected_recipes() |
208 | self.ins.show_indicator_icon("Included", len(self.builder.configuration.selected_recipes)) | 201 | self.ins.show_indicator_icon("Included recipes", len(self.builder.configuration.selected_recipes)) |
209 | 202 | ||
210 | def toggle_item_idle_cb(self, path, view_tree, cell, pagename): | 203 | def toggle_item_idle_cb(self, path, view_tree, cell, pagename): |
211 | if not self.recipe_model.path_included(path): | 204 | if not self.recipe_model.path_included(path): |
212 | self.recipe_model.include_item(item_path=path, binb="User Selected", image_contents=False) | 205 | self.recipe_model.include_item(item_path=path, binb="User Selected", image_contents=False) |
213 | else: | 206 | else: |
214 | if pagename == "Included": | 207 | if pagename == "Included recipes": |
215 | self.pre_fadeout_checkout_include(view_tree) | 208 | self.pre_fadeout_checkout_include(view_tree) |
216 | self.recipe_model.exclude_item(item_path=path) | 209 | self.recipe_model.exclude_item(item_path=path) |
217 | self.render_fadeout(view_tree, cell) | 210 | self.render_fadeout(view_tree, cell) |