summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-04-09 14:13:48 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-10 23:05:22 (GMT)
commit793058e6f21ab569bb8a0d2d72981b8e41e5e8c1 (patch)
tree37b01443846f67dc8ec7222145b4ebf3c8623228
parent0043ed8fa68844003e0ec7833cadce96df6d07d2 (diff)
downloadpoky-793058e6f21ab569bb8a0d2d72981b8e41e5e8c1.tar.gz
Hob: add tooltips into image details screen
[Yocto #2243] (Bitbake rev: 543e81b87b48de9c5285b81c856376c9f52d7902) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index be112d4..b4fc15c 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -126,19 +126,19 @@ class ImageDetailsPage (HobPage):
126 "Templates", 126 "Templates",
127 hic.ICON_TEMPLATES_DISPLAY_FILE, 127 hic.ICON_TEMPLATES_DISPLAY_FILE,
128 hic.ICON_TEMPLATES_HOVER_FILE, 128 hic.ICON_TEMPLATES_HOVER_FILE,
129 "Load a hob building template saved before", 129 "Load a previously saved template",
130 self.template_button_clicked_cb) 130 self.template_button_clicked_cb)
131 my_images_button = self.append_toolbar_button(self.toolbar, 131 my_images_button = self.append_toolbar_button(self.toolbar,
132 "My images", 132 "Images",
133 hic.ICON_IMAGES_DISPLAY_FILE, 133 hic.ICON_IMAGES_DISPLAY_FILE,
134 hic.ICON_IMAGES_HOVER_FILE, 134 hic.ICON_IMAGES_HOVER_FILE,
135 "Open images built out previously for running or deployment", 135 "Open previously built images",
136 self.my_images_button_clicked_cb) 136 self.my_images_button_clicked_cb)
137 settings_button = self.append_toolbar_button(self.toolbar, 137 settings_button = self.append_toolbar_button(self.toolbar,
138 "Settings", 138 "Settings",
139 hic.ICON_SETTINGS_DISPLAY_FILE, 139 hic.ICON_SETTINGS_DISPLAY_FILE,
140 hic.ICON_SETTINGS_HOVER_FILE, 140 hic.ICON_SETTINGS_HOVER_FILE,
141 "Other advanced settings for build", 141 "View additional build settings",
142 self.settings_button_clicked_cb) 142 self.settings_button_clicked_cb)
143 143
144 self.details_top_buttons = self.add_onto_top_bar(self.toolbar) 144 self.details_top_buttons = self.add_onto_top_bar(self.toolbar)
@@ -206,6 +206,7 @@ class ImageDetailsPage (HobPage):
206 image_table.connect("toggled", self.toggled_cb) 206 image_table.connect("toggled", self.toggled_cb)
207 view_files_button = HobAltButton("View files") 207 view_files_button = HobAltButton("View files")
208 view_files_button.connect("clicked", self.view_files_clicked_cb, image_addr) 208 view_files_button.connect("clicked", self.view_files_clicked_cb, image_addr)
209 view_files_button.set_tooltip_text("Open the directory containing the image files")
209 self.box_group_area.pack_start(self.DetailBox(widget=image_table, button=view_files_button), expand=True, fill=True) 210 self.box_group_area.pack_start(self.DetailBox(widget=image_table, button=view_files_button), expand=True, fill=True)
210 211
211 # Machine, Base image and Layers 212 # Machine, Base image and Layers
@@ -233,6 +234,7 @@ class ImageDetailsPage (HobPage):
233 i += 1 234 i += 1
234 235
235 edit_config_button = HobAltButton("Edit configuration") 236 edit_config_button = HobAltButton("Edit configuration")
237 edit_config_button.set_tooltip_text("Edit machine, base image and recipes")
236 edit_config_button.connect("clicked", self.edit_config_button_clicked_cb) 238 edit_config_button.connect("clicked", self.edit_config_button_clicked_cb)
237 setting_detail = self.DetailBox(varlist=varlist, vallist=vallist, button=edit_config_button) 239 setting_detail = self.DetailBox(varlist=varlist, vallist=vallist, button=edit_config_button)
238 self.box_group_area.pack_start(setting_detail, expand=False, fill=False) 240 self.box_group_area.pack_start(setting_detail, expand=False, fill=False)
@@ -244,6 +246,7 @@ class ImageDetailsPage (HobPage):
244 vallist.append(default_image_size) 246 vallist.append(default_image_size)
245 if build_succeeded: 247 if build_succeeded:
246 edit_packages_button = HobAltButton("Edit packages") 248 edit_packages_button = HobAltButton("Edit packages")
249 edit_packages_button.set_tooltip_text("Edit the packages included in your image")
247 edit_packages_button.connect("clicked", self.edit_packages_button_clicked_cb) 250 edit_packages_button.connect("clicked", self.edit_packages_button_clicked_cb)
248 else: # get to this page from "My images" 251 else: # get to this page from "My images"
249 edit_packages_button = None 252 edit_packages_button = None
@@ -315,7 +318,7 @@ class ImageDetailsPage (HobPage):
315 if name in buttonlist: 318 if name in buttonlist:
316 self.deploy_button = HobButton('Deploy image') 319 self.deploy_button = HobButton('Deploy image')
317 self.deploy_button.set_size_request(205, 49) 320 self.deploy_button.set_size_request(205, 49)
318 self.deploy_button.set_tooltip_text("Deploy image to get your target board") 321 self.deploy_button.set_tooltip_text("Burn a live image to a USB drive or flash memory")
319 self.deploy_button.set_flags(gtk.CAN_DEFAULT) 322 self.deploy_button.set_flags(gtk.CAN_DEFAULT)
320 self.deploy_button.connect("clicked", self.deploy_button_clicked_cb) 323 self.deploy_button.connect("clicked", self.deploy_button_clicked_cb)
321 bottom_buttons.pack_end(self.deploy_button, expand=False, fill=False) 324 bottom_buttons.pack_end(self.deploy_button, expand=False, fill=False)
@@ -330,6 +333,7 @@ class ImageDetailsPage (HobPage):
330 333
331 # create button "Run image" 334 # create button "Run image"
332 self.run_button = HobAltButton("Run image") 335 self.run_button = HobAltButton("Run image")
336 self.run_button.set_tooltip_text("Start up an image with qemu emulator")
333 self.run_button.connect("clicked", self.run_button_clicked_cb) 337 self.run_button.connect("clicked", self.run_button_clicked_cb)
334 bottom_buttons.pack_end(self.run_button, expand=False, fill=False) 338 bottom_buttons.pack_end(self.run_button, expand=False, fill=False)
335 created = True 339 created = True
@@ -343,6 +347,7 @@ class ImageDetailsPage (HobPage):
343 347
344 # create button "Save as template" 348 # create button "Save as template"
345 save_button = HobAltButton("Save as template") 349 save_button = HobAltButton("Save as template")
350 save_button.set_tooltip_text("Save the image configuration for reuse")
346 save_button.connect("clicked", self.save_button_clicked_cb) 351 save_button.connect("clicked", self.save_button_clicked_cb)
347 bottom_buttons.pack_end(save_button, expand=False, fill=False) 352 bottom_buttons.pack_end(save_button, expand=False, fill=False)
348 create = True 353 create = True
@@ -351,6 +356,7 @@ class ImageDetailsPage (HobPage):
351 if name in buttonlist: 356 if name in buttonlist:
352 # create button "Build new image" 357 # create button "Build new image"
353 build_new_button = HobAltButton("Build new image") 358 build_new_button = HobAltButton("Build new image")
359 build_new_button.set_tooltip_text("Create a new image from scratch")
354 build_new_button.connect("clicked", self.build_new_button_clicked_cb) 360 build_new_button.connect("clicked", self.build_new_button_clicked_cb)
355 bottom_buttons.pack_start(build_new_button, expand=False, fill=False) 361 bottom_buttons.pack_start(build_new_button, expand=False, fill=False)
356 362