Update layout building code in translators
update layout builder code to new api in: * src/add-ons/translators/raw * src/add-ons/translators/exr * src/add-ons/translators/hvif * src/add-ons/translators/tga * src/add-ons/translators/webp * src/add-ons/translators/gif * src/add-ons/translators/sgi * src/add-ons/translators/tiff * src/add-ons/translators/jpeg * src/add-ons/translators/jpeg2000 * src/add-ons/translators/ppm Signed-off-by: Alex Wilson <[email protected]>
This commit is contained in:
committed by
Alex Wilson
parent
0673619349
commit
7d48219b47
@@ -11,9 +11,7 @@
|
||||
|
||||
#include <Catalog.h>
|
||||
#include <CheckBox.h>
|
||||
#include <GroupLayout.h>
|
||||
#include <GroupLayoutBuilder.h>
|
||||
#include <SpaceLayoutItem.h>
|
||||
#include <LayoutBuilder.h>
|
||||
#include <StringView.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -52,10 +50,9 @@ ConfigView::ConfigView(uint32 flags)
|
||||
B_TRANSLATE("a division of Lucasfilm Entertainment Company Ltd"));
|
||||
|
||||
// Build the layout
|
||||
SetLayout(new BGroupLayout(B_HORIZONTAL));
|
||||
|
||||
AddChild(BGroupLayoutBuilder(B_VERTICAL, 7)
|
||||
.Add(fTitle)
|
||||
BLayoutBuilder::Group<>(this, B_VERTICAL, 7)
|
||||
.SetInsets(5)
|
||||
.Add(fTitle)
|
||||
.Add(fVersion)
|
||||
.AddGlue()
|
||||
.Add(fCopyright)
|
||||
@@ -63,9 +60,7 @@ ConfigView::ConfigView(uint32 flags)
|
||||
.AddGlue()
|
||||
.Add(fCopyright3)
|
||||
.Add(fCopyright4)
|
||||
.AddGlue()
|
||||
.SetInsets(5, 5, 5, 5)
|
||||
);
|
||||
.AddGlue();
|
||||
|
||||
BFont font;
|
||||
GetFont(&font);
|
||||
|
||||
Reference in New Issue
Block a user