aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobwidget.py
AgeCommit message (Collapse)Author
2012-04-11Hob: Add the tooltips for recipe view page as requestLiming An
[YOCTO #2229] (Bitbake rev: 37c969164a6ef9adcaa743a3909102b005a55163) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-04-11Hob: add fadeout display effection for package view include pageLiming An
[YOCTO #2100] (Bitbake rev: c0c81647dc5e72fe3abb1fb3b65a978aa4b226a5) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-04-11Hob: add fadeout display effection for recipe view include pageLiming An
As UI request, in recipes selection page, if user exclude a item, the related depends recipes will be excluded together,so the view clearly to add it. [YOCTO #2100] (Bitbake rev: c9eed04c6275ef2c694f89e047f85c7de76f89b6) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-04-11lib/bb/ui/crumbs/[recipe|package]selectionpage: fixed width Included colJoshua Lock
Set the expand property on all columns other than the 'Included' column so that the included column remains at the max size set. (Bitbake rev: e1406d75c0643a2e65bb61649958e05e730fb332) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-04-11lib/bb/ui/crumbs: only display one 'Brought in by' item in Hob treesJoshua Lock
The design calls for a single 'Brought in by' item to be shown in the tree views with any extra items to be shown in the tooltip. (Bitbake rev: 6866271da738237d3a119e291ac8f9d2c517e124) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-04-11lib/bb/ui/crumbs/hobwidget: replace new APIJoshua Lock
The gtk.Widget.get_sensitive() convenience method is only available in Gtk+ 2.22 or later, instead use the sensitive property of the gobject to determine whether the widget is sensitive or not. (Bitbake rev: 82ea0619e9ecf9107b75692385bcf1434ea8a307) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-04-05Hob: add the "info" indication icon for "information" in the dialogs.Shane Wang
Previously we reused the info display file which is for indication of tooltips. But it is too small, when it is shown on the dialog as the dialog indication icon, it becomes unclear after being stretched out. So, we replace it with a larger icon. (Bitbake rev: 87282847f1ba56420b0c6dbf04bea6e518962398) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-30Hob: tweak font sizes and layoutJoshua Lock
Switch to proportional font sizes and tweak padding and layout based on feedback from design team. (Bitbake rev: 356f190bb3f0ee9a15df900714edcb85593d6989) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-29Hob: fixed the 'error' icon source picture and adjusted corresponding showed ↵Liming An
icon size The error source picture is not right, so fixed it and adjusted its size. [YOCTO #2097] (Bitbake rev: ce680f10037b42831179a4598a69fb39688fb238) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-29Hob: some color style changes to make HobTabBar more close to visual designShane Wang
The change includes: - remove the colors which are not used - change the background of indicators to deep red - change the color style of the texts on HobTabBar, i.e., the tab text and the indicator background are gray when the tab is the current tab; the tab text is white and the indicator background is deep red when the tab is not the current tab. (Bitbake rev: 95acecbf50cee906dca4abd5ce758701e5761668) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-29lib/bb/ui/crumbs/hobwidget: change text sizes in HobImageButtonJoshua Lock
(Bitbake rev: 4301cc1e859a68d93eba3122be099bfaa90fbdfb) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-29lib/bb/ui/crumbs/hobwidget: add padding to HobImageButtonJoshua Lock
Add more padding between the icon and the text (Bitbake rev: a81f6a33cf1fa9fe869ac617f2d14d66e07009ff) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-28Hob: fixed some not compatible places for make runningbuild.py can be reused ↵Liming An
by another application The runningbuild.py has been shared by different applications, not only hob, so fixed the some not compatibled codes (From Poky rev: 99fa7388500fa97fe4629456daa50bb5637e51e6) (Bitbake rev: 23c13560fa76442c798058700863bd91491ca826) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-28Hob: fixed visually differentiate warnings and errors icon in building logLiming An
fixed the bug of 'error' and 'warning' icon is not constaintly with hob ui design [YOCTO #2097] (From Poky rev: 5b4f379b5341222e2678043f078b3d33c0556a86) (Bitbake rev: 3807a95cd48a01486b3ecd5360a59ddfc3a3b6d6) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-28Hob: add refresh icon as ui request in building logLiming An
add a refresh icon to indicator the running task, for avoid add more heavy to bitbake building process, increased the timer interval counter, and decreased the refresh icon render size. (From Poky rev: cf76d2cef0905a442e61769560173b2e6a58fb62) (Bitbake rev: d5923a484f80bc1577f78035152c2d0728e4a1f3) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-25lib/bb/ui/crumbs/hobwidget: convert button styling logic to static methodsJoshua Lock
The design calls for all buttons to match the style of either the HobButton or HobAltButton classes, therefore implement the styling logic as static methods of the implementing classes so that we can more easily set styles for the buttons created by a gtk.Dialog (or subclass) without having to modify too much of the dialog instantiation code. (Bitbake rev: ccb8f5cd52ee7833129583b9201c65d93cb87d56) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-25lib/bb/ui/crumbs/hobwidget: HobAltButton different visual when insensitiveJoshua Lock
Use an alternative, grey, colour when the button is insensitive so that the insensitivity is easily noticed. (Bitbake rev: 53af6a962aa2f6b4d68d59792be9c7f33cf887b4) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-25Hob: Add a supported image type "vmdk"Dongxiao Xu
(Bitbake rev: 1ebc1f68c90890bbc79c801baf0de349eb56e7cb) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-23Hob: reset the policy to forbid the horizontal scrolling for building logLiming An
This patch is not to show the horizontal scroll bar for building log, and add CellRendererText class to wrap the text. [Yocto #2091] (Bitbake rev: 7c5e1297c1af2edd46315e3dec4516f850d5e222) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-23lib/bb/ui/crumbs/hobwidget: add HobButton widget for the primary actionJoshua Lock
The design uses a big, bold labelled, orange button for the primary action on each dialogue. The HobButton implements this design as a reusable widget. HobButton makes use of Pango Markup to use a relative size, x-large, for the button text to ensure it's relative to the system configured font sizes. (Bitbake rev: 9aa477f7bd16d3e360bf9b51c1f9d5032a6c5288) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-23lib/bb/ui/crumbs: add colour for HobAltButton per visual designJoshua Lock
The visual design calls for the alternative button to have a pale blue colour. (Bitbake rev: c9f61765216a013c7ebc02157ea47c3478252e7c) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-23lib/bb/ui/crumbs: replace HobXpmLabelButtonBox with HobImageButtonJoshua Lock
HobImageButton is an gtk.Button subclass, and therefore behaves like a button with prelight and focus states, with an icon and two lines of text - primary and secondary. The secondary text is displayed in a lighter colour using a new module method, soften_color(), per the design. (Bitbake rev: b91cc96c4ff4195ac26fdfd1fb0c2ff8db06aff8) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-22lib/bb/ui/crumbs: add icons for use in the layer dialogueJoshua Lock
(From Poky rev: 5e5b488952ef2a0dd886fd67993411760855fcee) (Bitbake rev: e68c37cee0c9fb1b88479888656eae43bfd144d7) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-22lib/bb/ui/crumbs: Add HobAltButton and use itJoshua Lock
This adds a gtk.Button subclass for secondary actions which unsets the relief so that the user is aware that the button is clickable and yet it is more subtle than the primary action (such that the primary action is the most obvious one) - this is per the interaction design. Further we replace all uses of gtk.LinkButton with the new HobAltButton Partially addresses [YOCTO #2105], a follow on patch will theme the button so that it matches the visual design. (From Poky rev: c3f17fed243180678264168968333463b203bfa0) (Bitbake rev: 601521c2d7f5568d94529a77b2cbe19fef7cbf48) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-22ui/crumbs/hobwidget: add clear icon to search entries in HobNotebookJoshua Lock
It's a common pattern on Gtk+ desktops to be able to clear a search/filter entry using an icon in that entry. (From Poky rev: 6394283522ef2f259397d8bd294291fb20354c8b) (Bitbake rev: f55372d542995fd0797b11f42dcfdbe57858449a) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-20Hob: fixed the tabbar search entry retaining focus when user has clicked off ↵Liming An
it issue Add reset focus code to fixed the search entry retaining focus issue (From Poky rev: 75969f92af4b0aae25dcaa3321f835dd729f4bf9) (Bitbake rev: 0531730b255f41b2804bcd322e10c52cbf13537a) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-20Hob: fix static variable "self.search" to parameter "search" in signal ↵Liming An
callback function To fix the signal callback function code, and make the temp parameter to replaced the static global variable, as required. (From Poky rev: a95b61d48bf92948ff5a21896e71ed3cb323ab38) (Bitbake rev: 76f63e70c7b2d6291f8b11bc5baebda510a276d7) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-20Hob: change HobNoteBook tab edge color from green to grayLiming An
To change the notebook tab pressed edge color from green to gray. (From Poky rev: 8e454749e7f535cf43544eeb167c90632e89cfb0) (Bitbake rev: 8e4e868e6183fbd52fa455937bb824a52ef15ab5) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-20Hob: add auto adjust background area function for long issue textLiming An
To add auto expand the background area function for long issue text input. (From Poky rev: f1822f0961bd719de0827e361f7e6fa3bf872746) (Bitbake rev: f406b0a11b021f8492ed0b083d9ff89de4a14653) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-20Hob: Fixed the hobwidget code and make it like a pythonistaLiming An
fixed the 'for..in..' range dance code, and use the 'iterator' approach to replaced the index for quote the 'children' list (From Poky rev: 74e7286a4e875eda5e8abeb5db1015031d21c35f) (Bitbake rev: 3dc443663b97515a54b70c9047a9b22c6b8a0c14) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-20Hob: remove the invalid code in hobwidget.pyLiming An
To delete some code which is not used (From Poky rev: a8f5a72d36e9a55ec7a2296e1c9623e177a95a74) (Bitbake rev: 27e77f6c196e313b5b941238e54b74fc746a0230) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-20Hob: fix '!= None' and '== None' in the codeShane Wang
This patch is to fix the following: if foo != None -----> if foo if foo == None -----> if not foo (From Poky rev: d771343b1726f166ed8d75543ba68bd2a20aee7b) (Bitbake rev: 23c140a4d00293d922cbd34b6b837493cac2e93a) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-20Hob: change the code style to enumerate a list in a for-loopShane Wang
We use the more common style to enumerate a list in a for-loop (http://docs.python.org/library/functions.html#enumerate), that is: try to use for item in mylist, and try to use for i, item in enumerate(list) rather than for i in range(len(mylist)) (From Poky rev: 33c21bc60bd1542f81d33c328f116dec424728cd) (Bitbake rev: 9b168239a5d9693573438eb6514938b81de85af3) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-20Hob: show indicators on the tabs of the Hob notebookShane Wang
This patch is to show the indicators (e.g., the number of the issues) in the build details page to highlight. (From Poky rev: 2e08a8e6818b8f1df7eaac499ebc3a5854efe7be) (Bitbake rev: f2eead1bc20c48b2f36e880a879a5a50e6e6567b) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-20Hob: implement a self-defined notebook visual component for HobShane Wang
In recipe selection page, package selection page, and build details page, etc, there is a notebook component which is not gtk.Notebook in the design video. We implement the visual component with a drawing area, and use it to replace the old notebook in recipe selection page and package selection page. The reasons why we do it are: 1) General speaking, gtk.Notebook doesn't look like the designer worked out. (see https://wiki.yoctoproject.org/wiki/File:Hob1.2-screencast2.mov) 2) And the designer version looks better, for example, there is an indicator to show how many recipes or packages are included, and how many issues happened when building? Very straightforward. But technically, gtk.Notebook can't implement that, as far as we know. 3) Moreover, there is an entry for "search recipes", and "search packages". How to make it horizontal to the tabs is a problem to us. Regarding those, we give up gtk.Notebook and use our own. (From Poky rev: e4ebac226cc5e4589bcecd8bada9fde462e925cc) (Bitbake rev: b0c2ca3f600694c6d37924006de3f9474b2a9a8e) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-12ui/crumbs/hobwidget: implement HobInfoButton per Hob interaction designJoshua Lock
This button-like widget will display a persistent tooltip with the supplied Pango Markup when it is clicked by the user. This widget features prominently in the interaction design to offer help in a more prominent manner. (Bitbake rev: 43f33dcd6b7d1a08651cdf0715c2c2a9d488b103) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-01Hob: include hddimg and iso into image types.Shane Wang
For image types, so far we don't include hddimg and iso. Then those files can not be deployed because they are filtered out in the image selection dialog. This patch is to include hddimg and iso (which are "live" in image types). Again, we have a TODO in the code for the future, that is to retrieve image types from the bitbake server instead of to use the walkaround. (Bitbake rev: d565507940be73fb5ea3ae7048d8d143c44c2a95) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-01Hob: cleanup those class methods in HobWidgetShane Wang
Some dialogs like advanced settings dialog, and layer selection dialog are using the class methods in HobWidget to create widgets for themselves, which is not a good design for OO. Clean up the code, and split the functions into the separate classes which use them actually. Finally, remove the class HobWidget. (Bitbake rev: f9cccea4d1c52ae2173fd94d5b07ceba7e5c0851) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-01Hob: fixed the issue in the brought-in-by dialog.Shane Wang
When typing any thing in the search entry, the brough-in-by dialog will be shown. That is because we call back "selection-changed" signal to pop up the dialog, which is not correct. This patch is to fix the problem by using "row-activated" signal. (Bitbake rev: ea56ae787153460166697bbcae92f51a77ca1571) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-01Hob: make HobViewTable more general in hob and make the image selection ↵Shane Wang
dialog and the image details page reuse it. This patch is to make the class HobViewTable more general as a tree view in Hob. Now the recipe selection page and the package selection page are using it. And we have tree views in the image selection dialog and the image details page, which used the class methods in HobWidget to create the tree views. That is not good in OO. So, make them reuse HobViewTable to create its instances. (Bitbake rev: 3c900211e8bc0311542873480d79b347d7449f59) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-24Hob: A new implemetation (v2)Dongxiao Xu
This commit implements a new design for hob Some of the new features: - Friendly new designed GUI. Quick response to user actions. - Two step builds support package generation and image generation. - Support running GUI seprarately from bitbake server. - Recipe/package selection and deselection. - Accurate customization for image contents and size. - Progress bars showing the parsing and build status. - Load/save user configurations from/into templates. (Bitbake rev: 4dacd29f9c957d20f4583330b51e5420f9c3338d) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Fengxia Hua <fengxia.hua@intel.com> Designed-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>