From 2d00a953c7d3bd29d114df4858195371101f366b Mon Sep 17 00:00:00 2001 From: Janus Date: Thu, 23 Apr 2015 08:25:16 +0000 Subject: [PATCH] DataTranslations: use layout, standard format. * Small fix. * Partialy fixes #11999. --- src/add-ons/translators/bmp/BMPView.cpp | 5 +++++ src/add-ons/translators/gif/GIFView.cpp | 3 ++- src/add-ons/translators/psd/ConfigView.cpp | 2 +- src/add-ons/translators/tga/TGAView.cpp | 2 +- src/add-ons/translators/webp/ConfigView.cpp | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/add-ons/translators/bmp/BMPView.cpp b/src/add-ons/translators/bmp/BMPView.cpp index a0881d33f0..d6eeadc023 100644 --- a/src/add-ons/translators/bmp/BMPView.cpp +++ b/src/add-ons/translators/bmp/BMPView.cpp @@ -49,6 +49,11 @@ BMPView::BMPView(const BRect &frame, const char *name, uint32 resizeMode, .Add(versionView) .Add(copyrightView) .AddGlue(); + + BFont font; + GetFont(&font); + SetExplicitPreferredSize(BSize((font.Size() * 300)/12, + (font.Size() * 100)/12)); } diff --git a/src/add-ons/translators/gif/GIFView.cpp b/src/add-ons/translators/gif/GIFView.cpp index 88cfdb02e3..029b989fc2 100644 --- a/src/add-ons/translators/gif/GIFView.cpp +++ b/src/add-ons/translators/gif/GIFView.cpp @@ -56,7 +56,7 @@ GIFView::GIFView(TranslatorSettings* settings) char version_string[100]; snprintf(version_string, sizeof(version_string), - B_TRANSLATE("v%d.%d.%d %s"), + B_TRANSLATE("v%d.%d.%d, %s"), int(B_TRANSLATION_MAJOR_VERSION(GIF_TRANSLATOR_VERSION)), int(B_TRANSLATION_MINOR_VERSION(GIF_TRANSLATOR_VERSION)), int(B_TRANSLATION_REVISION_VERSION(GIF_TRANSLATOR_VERSION)), @@ -167,6 +167,7 @@ GIFView::GIFView(TranslatorSettings* settings) .Add(fColorCountMF->CreateLabelLayoutItem(), 0, 1) .Add(fColorCountMF->CreateMenuBarLayoutItem(), 1, 1) .End() + .AddStrut(B_USE_SMALL_SPACING) .Add(fDitheringBox) .Add(fInterlacedBox) .Add(fTransparentBox) diff --git a/src/add-ons/translators/psd/ConfigView.cpp b/src/add-ons/translators/psd/ConfigView.cpp index 15508bf4d8..570dabc553 100644 --- a/src/add-ons/translators/psd/ConfigView.cpp +++ b/src/add-ons/translators/psd/ConfigView.cpp @@ -82,7 +82,7 @@ ConfigView::ConfigView(TranslatorSettings *settings) .Add(copyright2View); - //SetExplicitPreferredSize(GroupLayout()->MinSize()); + SetExplicitPreferredSize(GroupLayout()->MinSize()); } diff --git a/src/add-ons/translators/tga/TGAView.cpp b/src/add-ons/translators/tga/TGAView.cpp index e9754495d5..0f2ea195a0 100644 --- a/src/add-ons/translators/tga/TGAView.cpp +++ b/src/add-ons/translators/tga/TGAView.cpp @@ -53,7 +53,7 @@ TGAView::TGAView(const char *name, uint32 flags, TranslatorSettings *settings) fTitle->SetFont(be_bold_font); char detail[100]; - sprintf(detail, B_TRANSLATE("Version %d.%d.%d %s"), + sprintf(detail, B_TRANSLATE("Version %d.%d.%d, %s"), static_cast(B_TRANSLATION_MAJOR_VERSION(TGA_TRANSLATOR_VERSION)), static_cast(B_TRANSLATION_MINOR_VERSION(TGA_TRANSLATOR_VERSION)), static_cast(B_TRANSLATION_REVISION_VERSION( diff --git a/src/add-ons/translators/webp/ConfigView.cpp b/src/add-ons/translators/webp/ConfigView.cpp index 0a88722eff..a638801fdf 100644 --- a/src/add-ons/translators/webp/ConfigView.cpp +++ b/src/add-ons/translators/webp/ConfigView.cpp @@ -134,7 +134,7 @@ ConfigView::ConfigView(TranslatorSettings* settings) BFont font; GetFont(&font); - SetExplicitPreferredSize(BSize((font.Size() * 1433)/12, (font.Size() * 200)/12)); + SetExplicitPreferredSize(BSize((font.Size() * 433)/12, (font.Size() * 200)/12)); }