DataTranslations: use layout, standard format.
* Fix bmp, exr, pcx, raw. * Partialy fixes #11999.
This commit is contained in:
@@ -26,9 +26,9 @@ ConfigView::ConfigView(uint32 flags)
|
||||
{
|
||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||
|
||||
BStringView *fTitle = new BStringView("title",
|
||||
BStringView *titleView = new BStringView("title",
|
||||
B_TRANSLATE("EXR image translator"));
|
||||
fTitle->SetFont(be_bold_font);
|
||||
titleView->SetFont(be_bold_font);
|
||||
|
||||
char version[256];
|
||||
sprintf(version, B_TRANSLATE("Version %d.%d.%d, %s"),
|
||||
@@ -36,32 +36,30 @@ ConfigView::ConfigView(uint32 flags)
|
||||
int(B_TRANSLATION_MINOR_VERSION(EXR_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_REVISION_VERSION(EXR_TRANSLATOR_VERSION)),
|
||||
__DATE__);
|
||||
BStringView *fVersion = new BStringView("version", version);
|
||||
BStringView *versionView = new BStringView("version", version);
|
||||
|
||||
BStringView *fCopyright = new BStringView("copyright",
|
||||
BStringView *copyrightView = new BStringView("copyright",
|
||||
B_UTF8_COPYRIGHT "2008 Haiku Inc.");
|
||||
|
||||
BStringView *fCopyright2 = new BStringView("copyright2",
|
||||
BStringView *copyrightView2 = new BStringView("copyright2",
|
||||
B_TRANSLATE("Based on OpenEXR (http://www.openexr.com)"));
|
||||
|
||||
BStringView *fCopyright3 = new BStringView("copyright3",
|
||||
BStringView *copyrightView3 = new BStringView("copyright3",
|
||||
B_UTF8_COPYRIGHT "2006, Industrial Light & Magic,");
|
||||
|
||||
BStringView *fCopyright4 = new BStringView("copyright4",
|
||||
BStringView *copyrightView4 = new BStringView("copyright4",
|
||||
B_TRANSLATE("a division of Lucasfilm Entertainment Company Ltd"));
|
||||
|
||||
// Build the layout
|
||||
BLayoutBuilder::Group<>(this, B_VERTICAL, 7)
|
||||
.SetInsets(5)
|
||||
.Add(fTitle)
|
||||
.Add(fVersion)
|
||||
BLayoutBuilder::Group<>(this, B_VERTICAL, 0)
|
||||
.SetInsets(B_USE_DEFAULT_SPACING)
|
||||
.Add(titleView)
|
||||
.Add(versionView)
|
||||
.Add(copyrightView)
|
||||
.AddGlue()
|
||||
.Add(fCopyright)
|
||||
.Add(fCopyright2)
|
||||
.AddGlue()
|
||||
.Add(fCopyright3)
|
||||
.Add(fCopyright4)
|
||||
.AddGlue();
|
||||
.Add(copyrightView2)
|
||||
.Add(copyrightView3)
|
||||
.Add(copyrightView4);
|
||||
|
||||
BFont font;
|
||||
GetFont(&font);
|
||||
|
||||
Reference in New Issue
Block a user