diff options
author | Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2013-03-05 17:36:27 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-19 13:51:24 +0000 |
commit | a43792c933189fa11c121f4dea91d113a5740781 (patch) | |
tree | f7cefe3ed83e92c18da4978f88b959d3325f5f9d /bitbake/lib | |
parent | 0e175284fec0d394ef4b4d478e6235891662fc9d (diff) | |
download | poky-a43792c933189fa11c121f4dea91d113a5740781.tar.gz |
bitbake: crumbs/hoblistmodel: added information columns needed for prop dialogs
in order to display all the information gathered in the
backend, new columns needed to be added in the hoblistmodel.
(Bitbake rev: 0942f05a1196513c6d163f28cf297728aed6ee22)
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hoblistmodel.py | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py index 06c90d38f7..0f37a068c6 100644 --- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py +++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py | |||
@@ -381,7 +381,8 @@ class RecipeListModel(gtk.ListStore): | |||
381 | providing convenience functions to access gtk.TreeModel subclasses which | 381 | providing convenience functions to access gtk.TreeModel subclasses which |
382 | provide filtered views of the data. | 382 | provide filtered views of the data. |
383 | """ | 383 | """ |
384 | (COL_NAME, COL_DESC, COL_LIC, COL_GROUP, COL_DEPS, COL_BINB, COL_TYPE, COL_INC, COL_IMG, COL_INSTALL, COL_PN, COL_FADE_INC) = range(12) | 384 | (COL_NAME, COL_DESC, COL_LIC, COL_GROUP, COL_DEPS, COL_BINB, COL_TYPE, COL_INC, COL_IMG, COL_INSTALL, COL_PN, COL_FADE_INC, COL_SUMMARY, COL_VERSION, |
385 | COL_REVISION, COL_HOMEPAGE, COL_BUGTRACKER) = range(17) | ||
385 | 386 | ||
386 | __custom_image__ = "Create your own image" | 387 | __custom_image__ = "Create your own image" |
387 | 388 | ||
@@ -406,7 +407,12 @@ class RecipeListModel(gtk.ListStore): | |||
406 | gobject.TYPE_BOOLEAN, | 407 | gobject.TYPE_BOOLEAN, |
407 | gobject.TYPE_STRING, | 408 | gobject.TYPE_STRING, |
408 | gobject.TYPE_STRING, | 409 | gobject.TYPE_STRING, |
409 | gobject.TYPE_BOOLEAN) | 410 | gobject.TYPE_BOOLEAN, |
411 | gobject.TYPE_STRING, | ||
412 | gobject.TYPE_STRING, | ||
413 | gobject.TYPE_STRING, | ||
414 | gobject.TYPE_STRING, | ||
415 | gobject.TYPE_STRING) | ||
410 | 416 | ||
411 | """ | 417 | """ |
412 | Find the model path for the item_name | 418 | Find the model path for the item_name |
@@ -505,7 +511,9 @@ class RecipeListModel(gtk.ListStore): | |||
505 | self.COL_LIC, "", self.COL_GROUP, "", | 511 | self.COL_LIC, "", self.COL_GROUP, "", |
506 | self.COL_DEPS, "", self.COL_BINB, "", | 512 | self.COL_DEPS, "", self.COL_BINB, "", |
507 | self.COL_TYPE, "image", self.COL_INC, False, | 513 | self.COL_TYPE, "image", self.COL_INC, False, |
508 | self.COL_IMG, False, self.COL_INSTALL, "", self.COL_PN, self.__custom_image__) | 514 | self.COL_IMG, False, self.COL_INSTALL, "", self.COL_PN, self.__custom_image__, |
515 | self.COL_SUMMARY, "", self.COL_VERSION, "", self.COL_REVISION, "", | ||
516 | self.COL_HOMEPAGE, "", self.COL_BUGTRACKER, "") | ||
509 | 517 | ||
510 | for item in event_model["pn"]: | 518 | for item in event_model["pn"]: |
511 | name = item | 519 | name = item |
@@ -513,6 +521,11 @@ class RecipeListModel(gtk.ListStore): | |||
513 | lic = event_model["pn"][item]["license"] | 521 | lic = event_model["pn"][item]["license"] |
514 | group = event_model["pn"][item]["section"] | 522 | group = event_model["pn"][item]["section"] |
515 | inherits = event_model["pn"][item]["inherits"] | 523 | inherits = event_model["pn"][item]["inherits"] |
524 | summary = event_model["pn"][item]["summary"] | ||
525 | version = event_model["pn"][item]["version"] | ||
526 | revision = event_model["pn"][item]["revision"] | ||
527 | homepage = event_model["pn"][item]["homepage"] | ||
528 | bugtracker = event_model["pn"][item]["bugtracker"] | ||
516 | install = [] | 529 | install = [] |
517 | 530 | ||
518 | depends = event_model["depends"].get(item, []) + event_model["rdepends-pn"].get(item, []) | 531 | depends = event_model["depends"].get(item, []) + event_model["rdepends-pn"].get(item, []) |
@@ -534,7 +547,9 @@ class RecipeListModel(gtk.ListStore): | |||
534 | self.COL_LIC, lic, self.COL_GROUP, group, | 547 | self.COL_LIC, lic, self.COL_GROUP, group, |
535 | self.COL_DEPS, " ".join(depends), self.COL_BINB, "", | 548 | self.COL_DEPS, " ".join(depends), self.COL_BINB, "", |
536 | self.COL_TYPE, atype, self.COL_INC, False, | 549 | self.COL_TYPE, atype, self.COL_INC, False, |
537 | self.COL_IMG, False, self.COL_INSTALL, " ".join(install), self.COL_PN, item) | 550 | self.COL_IMG, False, self.COL_INSTALL, " ".join(install), self.COL_PN, item, |
551 | self.COL_SUMMARY, summary, self.COL_VERSION, version, self.COL_REVISION, revision, | ||
552 | self.COL_HOMEPAGE, homepage, self.COL_BUGTRACKER, bugtracker) | ||
538 | 553 | ||
539 | self.pn_path = {} | 554 | self.pn_path = {} |
540 | it = self.get_iter_first() | 555 | it = self.get_iter_first() |