WebPTranslator: style fixes only
This commit is contained in:
parent
e465dcb609
commit
abfb31b6d0
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user