[haiku-bugs] Re: [Haiku] #11563: HaikuDepot should have an advanced tab while opening package files directly

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Fri, 19 Dec 2014 20:58:09 -0000

#11563: HaikuDepot should have an advanced tab while opening package files 
directly
---------------------------------------+----------------------------
   Reporter:  kallisti5                |      Owner:  stippi
       Type:  enhancement              |     Status:  new
   Priority:  normal                   |  Milestone:  R1
  Component:  Applications/HaikuDepot  |    Version:  R1/Development
 Resolution:                           |   Keywords:
 Blocked By:                           |   Blocking:
Has a Patch:  0                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by stippi):

 Replying to [comment:2 TigerKid001]:
 > I'd like to work on this enhancement. Just one question, should it be a
 checkbox option below the package-info or a tab in the package-info view.

 Thanks for your interest in working on this! I had plans to do it myself,
 but I'll gladly step back and offer myself as a mentor, if you need me to.

 I would propose a tab "Contents" which shows for installed packages or
 locale package files. There is already code in place which iterates
 package contents via the Package Kit APIs to find a Deskbar link in a
 given package. See http://cgit.haiku-
 os.org/haiku/tree/src/apps/haikudepot/model/PackageManager.cpp#n351 and
 how it's called from here http://cgit.haiku-
 os.org/haiku/tree/src/apps/haikudepot/model/PackageManager.cpp#n511

 I would use similar code to populate a BOutlineListView on the contents
 page which matches the entries in the package with list items structured
 in a tree. These can even have icons (from entry icon attributes or entry
 mime types) and columns for entry size, modified date and so on. This
 should not be complicated to write (by which I mean you should approach
 this with confidence :-). If you get stuck, please don't hesitate to ask!
 And sorry for any delay in replying or reviewing patches upfront!

--
Ticket URL: <https://dev.haiku-os.org/ticket/11563#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: