DataTranslations: use layout, standard format.

* Small fix.
* Partialy fixes #11999.
This commit is contained in:
Janus 2015-04-23 08:25:16 +00:00
parent d312a25031
commit 2d00a953c7
5 changed files with 10 additions and 4 deletions

View File

@ -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));
}

View File

@ -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)

View File

@ -82,7 +82,7 @@ ConfigView::ConfigView(TranslatorSettings *settings)
.Add(copyright2View);
//SetExplicitPreferredSize(GroupLayout()->MinSize());
SetExplicitPreferredSize(GroupLayout()->MinSize());
}

View File

@ -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<int>(B_TRANSLATION_MAJOR_VERSION(TGA_TRANSLATOR_VERSION)),
static_cast<int>(B_TRANSLATION_MINOR_VERSION(TGA_TRANSLATOR_VERSION)),
static_cast<int>(B_TRANSLATION_REVISION_VERSION(

View File

@ -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));
}