WebPTranslator: style fixes only
This commit is contained in:
@@ -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,13 +110,14 @@ const uint32 kNumDefaultSettings = sizeof(sDefaultSettings) /
|
|||||||
|
|
||||||
|
|
||||||
WebPTranslator::WebPTranslator()
|
WebPTranslator::WebPTranslator()
|
||||||
: BaseTranslator(B_TRANSLATE("WebP images"),
|
:
|
||||||
B_TRANSLATE("WebP image translator"),
|
BaseTranslator(B_TRANSLATE("WebP images"),
|
||||||
WEBP_TRANSLATOR_VERSION,
|
B_TRANSLATE("WebP image translator"),
|
||||||
sInputFormats, kNumInputFormats,
|
WEBP_TRANSLATOR_VERSION,
|
||||||
sOutputFormats, kNumOutputFormats,
|
sInputFormats, kNumInputFormats,
|
||||||
"WebPTranslator_Settings", sDefaultSettings, kNumDefaultSettings,
|
sOutputFormats, kNumOutputFormats,
|
||||||
B_TRANSLATOR_BITMAP, WEBP_IMAGE_FORMAT)
|
"WebPTranslator_Settings", sDefaultSettings, kNumDefaultSettings,
|
||||||
|
B_TRANSLATOR_BITMAP, WEBP_IMAGE_FORMAT)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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
|
||||||
@@ -186,7 +187,7 @@ WebPTranslator::NewConfigView(TranslatorSettings* settings)
|
|||||||
|
|
||||||
status_t
|
status_t
|
||||||
WebPTranslator::_TranslateFromBits(BPositionIO* stream, BMessage* ioExtension,
|
WebPTranslator::_TranslateFromBits(BPositionIO* stream, BMessage* ioExtension,
|
||||||
uint32 outType, BPositionIO* target)
|
uint32 outType, BPositionIO* target)
|
||||||
{
|
{
|
||||||
if (!outType)
|
if (!outType)
|
||||||
outType = WEBP_IMAGE_FORMAT;
|
outType = WEBP_IMAGE_FORMAT;
|
||||||
@@ -309,7 +310,7 @@ WebPTranslator::_TranslateFromBits(BPositionIO* stream, BMessage* ioExtension,
|
|||||||
|
|
||||||
status_t
|
status_t
|
||||||
WebPTranslator::_TranslateFromWebP(BPositionIO* stream, BMessage* ioExtension,
|
WebPTranslator::_TranslateFromWebP(BPositionIO* stream, BMessage* ioExtension,
|
||||||
uint32 outType, BPositionIO* target)
|
uint32 outType, BPositionIO* target)
|
||||||
{
|
{
|
||||||
if (!outType)
|
if (!outType)
|
||||||
outType = B_TRANSLATOR_BITMAP;
|
outType = B_TRANSLATOR_BITMAP;
|
||||||
|
|||||||
Reference in New Issue
Block a user