[haiku-commits] r38953 - haiku/trunk/src/tests/kits/interface/look

  • From: yourpalal2@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 12 Oct 2010 10:49:18 +0200 (CEST)

Author: yourpalal
Date: 2010-10-12 10:49:18 +0200 (Tue, 12 Oct 2010)
New Revision: 38953
Changeset: http://dev.haiku-os.org/changeset/38953
Ticket: http://dev.haiku-os.org/ticket/6648

Modified:
   haiku/trunk/src/tests/kits/interface/look/Look.cpp
Log:
Layout update for LookTest, fixes #6648.


Modified: haiku/trunk/src/tests/kits/interface/look/Look.cpp
===================================================================
--- haiku/trunk/src/tests/kits/interface/look/Look.cpp  2010-10-12 00:20:53 UTC 
(rev 38952)
+++ haiku/trunk/src/tests/kits/interface/look/Look.cpp  2010-10-12 08:49:18 UTC 
(rev 38953)
@@ -13,8 +13,7 @@
 #include <ColumnTypes.h>
 #include <ControlLook.h>
 #include <FilePanel.h>
-#include <GridLayoutBuilder.h>
-#include <GroupLayoutBuilder.h>
+#include <LayoutBuilder.h>
 #include <ListView.h>
 #include <MenuBar.h>
 #include <MenuField.h>
@@ -317,7 +316,8 @@
        layout->AddView(colorControl, 0, row, 4);
 
        BTabView* tabView = new BTabView("tab view", B_WIDTH_FROM_WIDEST);
-       BView* content = BGroupLayoutBuilder(B_VERTICAL, kInset)
+       BGroupView* content = new BGroupView(B_VERTICAL, kInset);
+       BLayoutBuilder::Group<>(content)
                .Add(scrollView)
                .Add(columnListView)
                .Add(controls)
@@ -362,19 +362,16 @@
 
        BButton* okButton = new BButton("OK", new BMessage(B_QUIT_REQUESTED));
 
-       window->AddChild(BGroupLayoutBuilder(B_VERTICAL)
+       BLayoutBuilder::Group<>(window, B_VERTICAL, 0)
                .Add(menuBar)
-               .Add(BGroupLayoutBuilder(B_VERTICAL, kInset)
+               .AddGroup(B_VERTICAL, kInset)
+                       .SetInsets(kInset, kInset, kInset, kInset)
                        .Add(tabView)
-                       .Add(BGroupLayoutBuilder(B_HORIZONTAL, kInset)
+                       .AddGroup(B_HORIZONTAL, kInset)
                                .Add(new BButton("Revert", new 
BMessage(MSG_TOGGLE_LOOK)))
-                               .Add(BSpaceLayoutItem::CreateGlue())
+                               .AddGlue()
                                .Add(new BButton("Cancel", NULL))
-                               .Add(okButton)
-                       )
-                       .SetInsets(kInset, kInset, kInset, kInset)
-               )
-       );
+                               .Add(okButton);
 
        window->SetDefaultButton(okButton);
 


Other related posts:

  • » [haiku-commits] r38953 - haiku/trunk/src/tests/kits/interface/look - yourpalal2