[haiku-commits] r36713 - in haiku/trunk: headers/os/interface src/kits/interface

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 7 May 2010 13:24:25 +0200 (CEST)

Author: axeld
Date: 2010-05-07 13:24:25 +0200 (Fri, 07 May 2010)
New Revision: 36713
Changeset: http://dev.haiku-os.org/changeset/36713/haiku

Modified:
   haiku/trunk/headers/os/interface/ListItem.h
   haiku/trunk/src/kits/interface/ListItem.cpp
Log:
* Added BListItem::SetOutlineLevel() method.


Modified: haiku/trunk/headers/os/interface/ListItem.h
===================================================================
--- haiku/trunk/headers/os/interface/ListItem.h 2010-05-07 11:16:50 UTC (rev 
36712)
+++ haiku/trunk/headers/os/interface/ListItem.h 2010-05-07 11:24:25 UTC (rev 
36713)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2006-2009, Haiku, Inc. All rights reserved.
+ * Copyright 2006-2010, Haiku, Inc. All rights reserved.
  * Distributed under the terms of the MIT License.
  */
 #ifndef _LIST_ITEM_H
@@ -9,6 +9,7 @@
 #include <Archivable.h>
 #include <Rect.h>
 
+
 class BFont;
 class BList;
 class BMessage;
@@ -44,6 +45,7 @@
                        bool                            IsExpanded() const;
                        void                            SetExpanded(bool 
expanded);
                        uint32                          OutlineLevel() const;
+                       void                            SetOutlineLevel(uint32 
level);
 
        virtual status_t                        Perform(perform_code code, 
void* arg);
 
@@ -83,7 +85,7 @@
 
 
 inline float
-BListItem::Top(void) const 
+BListItem::Top(void) const
 {
        return fTop;
 }
@@ -99,4 +101,5 @@
 #include <StringItem.h>
        // to maintain source compatibility
 
+
 #endif // _LIST_ITEM_H

Modified: haiku/trunk/src/kits/interface/ListItem.cpp
===================================================================
--- haiku/trunk/src/kits/interface/ListItem.cpp 2010-05-07 11:16:50 UTC (rev 
36712)
+++ haiku/trunk/src/kits/interface/ListItem.cpp 2010-05-07 11:24:25 UTC (rev 
36713)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2001-2009, Haiku, Inc. All Rights Reserved.
+ * Copyright 2001-2010, Haiku, Inc. All Rights Reserved.
  * Distributed under the terms of the MIT License.
  *
  * Authors:
@@ -8,6 +8,7 @@
  *             Rene Gollent
  */
 
+
 #include <ListItem.h>
 
 #include <Message.h>
@@ -65,7 +66,7 @@
        status_t status = BArchivable::Archive(archive, deep);
        if (status == B_OK && fSelected)
                status = archive->AddBool("_sel", true);
-       
+
        if (status == B_OK && !fEnabled)
                status = archive->AddBool("_disable", true);
 
@@ -181,6 +182,13 @@
 }
 
 
+void
+BListItem::SetOutlineLevel(uint32 level)
+{
+       fLevel = level;
+}
+
+
 bool
 BListItem::HasSubitems() const
 {


Other related posts:

  • » [haiku-commits] r36713 - in haiku/trunk: headers/os/interface src/kits/interface - axeld