WebPTranslator: style fixes only

This commit is contained in:
John Scipione
2016-03-30 14:41:51 -07:00
parent e465dcb609
commit abfb31b6d0
2 changed files with 16 additions and 14 deletions
+4 -3
View File
@@ -52,7 +52,8 @@ static const struct preset_name {
ConfigView::ConfigView(TranslatorSettings* settings) ConfigView::ConfigView(TranslatorSettings* settings)
: BGroupView(B_TRANSLATE("WebPTranslator Settings"), B_VERTICAL), :
BGroupView(B_TRANSLATE("WebPTranslator Settings"), B_VERTICAL),
fSettings(settings) fSettings(settings)
{ {
SetViewUIColor(B_PANEL_BACKGROUND_COLOR); SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
@@ -140,8 +141,8 @@ ConfigView::ConfigView(TranslatorSettings* settings)
BFont font; BFont font;
GetFont(&font); GetFont(&font);
SetExplicitPreferredSize(BSize((font.Size() * 250)/12, (font.Size() * 350)/12)); SetExplicitPreferredSize(BSize((font.Size() * 250) / 12,
(font.Size() * 350) / 12));
} }
@@ -110,7 +110,8 @@ const uint32 kNumDefaultSettings = sizeof(sDefaultSettings) /
WebPTranslator::WebPTranslator() WebPTranslator::WebPTranslator()
: BaseTranslator(B_TRANSLATE("WebP images"), :
BaseTranslator(B_TRANSLATE("WebP images"),
B_TRANSLATE("WebP image translator"), B_TRANSLATE("WebP image translator"),
WEBP_TRANSLATOR_VERSION, WEBP_TRANSLATOR_VERSION,
sInputFormats, kNumInputFormats, sInputFormats, kNumInputFormats,
@@ -161,8 +162,8 @@ WebPTranslator::DerivedIdentify(BPositionIO* stream,
status_t status_t
WebPTranslator::DerivedTranslate(BPositionIO* stream, WebPTranslator::DerivedTranslate(BPositionIO* stream,
const translator_info* info, BMessage* ioExtension, const translator_info* info, BMessage* ioExtension, uint32 outType,
uint32 outType, BPositionIO* target, int32 baseType) BPositionIO* target, int32 baseType)
{ {
if (baseType == 1) if (baseType == 1)
// if stream is in bits format // if stream is in bits format