WebPTranslator: style fixes only

This commit is contained in:
John Scipione 2016-03-24 15:04:33 -07:00
parent e465dcb609
commit abfb31b6d0
2 changed files with 16 additions and 14 deletions

View File

@ -52,7 +52,8 @@ static const struct preset_name {
ConfigView::ConfigView(TranslatorSettings* settings)
: BGroupView(B_TRANSLATE("WebPTranslator Settings"), B_VERTICAL),
:
BGroupView(B_TRANSLATE("WebPTranslator Settings"), B_VERTICAL),
fSettings(settings)
{
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
@ -140,8 +141,8 @@ ConfigView::ConfigView(TranslatorSettings* settings)
BFont font;
GetFont(&font);
SetExplicitPreferredSize(BSize((font.Size() * 250)/12, (font.Size() * 350)/12));
SetExplicitPreferredSize(BSize((font.Size() * 250) / 12,
(font.Size() * 350) / 12));
}

View File

@ -110,13 +110,14 @@ const uint32 kNumDefaultSettings = sizeof(sDefaultSettings) /
WebPTranslator::WebPTranslator()
: BaseTranslator(B_TRANSLATE("WebP images"),
B_TRANSLATE("WebP image translator"),
WEBP_TRANSLATOR_VERSION,
sInputFormats, kNumInputFormats,
sOutputFormats, kNumOutputFormats,
"WebPTranslator_Settings", sDefaultSettings, kNumDefaultSettings,
B_TRANSLATOR_BITMAP, WEBP_IMAGE_FORMAT)
:
BaseTranslator(B_TRANSLATE("WebP images"),
B_TRANSLATE("WebP image translator"),
WEBP_TRANSLATOR_VERSION,
sInputFormats, kNumInputFormats,
sOutputFormats, kNumOutputFormats,
"WebPTranslator_Settings", sDefaultSettings, kNumDefaultSettings,
B_TRANSLATOR_BITMAP, WEBP_IMAGE_FORMAT)
{
}
@ -161,8 +162,8 @@ WebPTranslator::DerivedIdentify(BPositionIO* stream,
status_t
WebPTranslator::DerivedTranslate(BPositionIO* stream,
const translator_info* info, BMessage* ioExtension,
uint32 outType, BPositionIO* target, int32 baseType)
const translator_info* info, BMessage* ioExtension, uint32 outType,
BPositionIO* target, int32 baseType)
{
if (baseType == 1)
// if stream is in bits format
@ -186,7 +187,7 @@ WebPTranslator::NewConfigView(TranslatorSettings* settings)
status_t
WebPTranslator::_TranslateFromBits(BPositionIO* stream, BMessage* ioExtension,
uint32 outType, BPositionIO* target)
uint32 outType, BPositionIO* target)
{
if (!outType)
outType = WEBP_IMAGE_FORMAT;
@ -309,7 +310,7 @@ WebPTranslator::_TranslateFromBits(BPositionIO* stream, BMessage* ioExtension,
status_t
WebPTranslator::_TranslateFromWebP(BPositionIO* stream, BMessage* ioExtension,
uint32 outType, BPositionIO* target)
uint32 outType, BPositionIO* target)
{
if (!outType)
outType = B_TRANSLATOR_BITMAP;