[haiku-bugs] [Haiku] #6257: Implement basic archiving for BLayout and BLayoutItem classes.

  • From: "yourpalal" <trac@xxxxxxxxxxxx>
  • Date: Fri, 02 Jul 2010 22:01:04 -0000

#6257: Implement basic archiving for BLayout and BLayoutItem classes.
--------------------------------+-------------------------------------------
 Reporter:  yourpalal           |       Owner:  axeld         
     Type:  enhancement         |      Status:  new           
 Priority:  normal              |   Milestone:  R1            
Component:  Kits/Interface Kit  |     Version:  R1/Development
 Keywords:                      |   Blockedby:                
    Patch:  0                   |    Platform:  All           
 Blocking:  5525                |  
--------------------------------+-------------------------------------------
 To beat ticket #5525, we must have a method for archiving a layout
 hierarchy alongside a BView hierarchy. To do this, both BLayout and
 BLayoutItem must inherit from BArchivable. In addition to this, I've added
 two new methods to BLayout: ArchiveLayoutData() and RestoreItemAndData(),
 the first is called during archiving to allow a BLayout to add any extra
 data for an item into its archive (the data stored in
 BLayoutItem::fLayoutData, for instance). BLayout::RestoreItemAndData() is
 called in BLayoutItem::AllUnarchived(), and implementations of this method
 will add the item in question to the layout, using the data that was
 stored in ArchiveLayoutData().

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6257>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: