diff options
author | Mattias Backman <mattias.backman@linaro.org> | 2011-09-22 22:46:55 +0200 |
---|---|---|
committer | Mattias Backman <mattias.backman@linaro.org> | 2011-09-22 22:46:55 +0200 |
commit | 0657c92c48cc854b7246f74466e2c8ee6d355cf8 (patch) | |
tree | 8ab1b00f342a74b343a583a5ae370428a45672a7 | |
parent | c7081499ba59581bc72dd0f333d88fbcfd0072cd (diff) | |
parent | e4002078a939b95a1050bcfedd4f605322a04242 (diff) |
Add hwpack info dialog to fetch-image-ui.
-rwxr-xr-x | linaro-fetch-image-ui | 31 | ||||
-rw-r--r-- | linaro_image_tools/fetch_image_settings.yaml | 12 |
2 files changed, 43 insertions, 0 deletions
diff --git a/linaro-fetch-image-ui b/linaro-fetch-image-ui index f554436..0bf66a1 100755 --- a/linaro-fetch-image-ui +++ b/linaro-fetch-image-ui @@ -21,6 +21,7 @@ # USA. import wx +import wx.html import wx.wizard import wx.wizard as wiz import sys @@ -987,6 +988,14 @@ class LMC_settings(wiz.WizardPageSimple): 0, wx.ALIGN_LEFT | wx.LEFT | wx.RIGHT | wx.TOP, 5) + desc_link = wx.HyperlinkCtrl( + pane, id=-1, url="", + label="Hardware pack descriptions") + self.Bind(wx.EVT_HYPERLINK, self.event_hwpack_link, desc_link) + grid1.Add(desc_link, + 0, + wx.ALIGN_LEFT | wx.LEFT | wx.RIGHT | wx.TOP, + 5) self.box.Add(grid1, 0, alignment, 0) pane.SetSizer(self.box) @@ -1078,6 +1087,19 @@ class LMC_settings(wiz.WizardPageSimple): def event_combo_box_rootfs(self, evt): self.settings['rootfs'] = evt.GetString().encode('ascii').lower() + def event_hwpack_link(self, event): + hw_desc = self.settings['UI']['hwpack-descriptions'] + body = "<h3>%s</h3><ul>" % self.settings['hardware'] + for hwpack in self.cb_hwpacks.GetItems(): + desc = '' + if hw_desc.has_key(hwpack): + desc = " - %s" % hw_desc[hwpack] + body += "<li><b>%s</b><i>%s</i></li>" % (hwpack, desc) + body += "</ul>" + HtmlDialog( event.GetEventObject().GetParent(), + "Hardware Pack Descriptions: %s", + body) + def event_radio_button_select(self, event): """Search the label of the button that has been selected to work out what we are writing to.""" @@ -1120,6 +1142,15 @@ class LMC_settings(wiz.WizardPageSimple): def event_swap_size(self, event): self.settings['swap_file'] = str(self.image_size_spinner.GetValue()) +class HtmlDialog(wx.Dialog): + def __init__(self, parent, title, content): + wx.Dialog.__init__(self, parent, -1, title) + html = wx.html.HtmlWindow(self) + + html.SetPage(content) + self.SetSize(wx.Size(500,450)) + self.ShowModal() + self.Destroy() class DevChoser(wx.Dialog): def __init__(self, parent, id, title, settings): diff --git a/linaro_image_tools/fetch_image_settings.yaml b/linaro_image_tools/fetch_image_settings.yaml index cad6dc0..c7f6544 100644 --- a/linaro_image_tools/fetch_image_settings.yaml +++ b/linaro_image_tools/fetch_image_settings.yaml @@ -16,6 +16,18 @@ UI: ubuntu-desktop: 'LEB: Linaro Ubuntu Desktop' ubuntu-desktop::long: Linux for humans on low power machines ubuntu-desktop::release_note: Shiny! + hwpack-descriptions: + omap3: Basic support for Beagle boards + omap3-x11-base: Includes support for 3D acceleration + overo: Same kernel as omap3. + panda: Basic support for Panda from linux-linaro-3.0 + panda-x11-base: Basic support for Panda from linux-linaro-3.0 plus support for 3D acceleration + bsp-omap4: (DEPRECATED) - Used in Maverick release + lt-panda: TI Landing Team kernel (kernel-tilt.git) + lt-panda-x11-base-natty: TI Landing Team kernel (kernel-tilt.git) plus support for 3D acceleration + s5pv310: Basic support from linux-linaro-3.0 + lt-s5pv310: Samsung Landing Team kernel + help: latest snapshot: Latest Snapshot help text release: Release help text |