Patch by Humdiner:

Changed strings in add-ons to sentence case. This is case-add-ons.diff
from #5169.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35046 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-01-13 11:48:15 +00:00
parent ab496a4be8
commit fcc3e627e1
54 changed files with 452 additions and 451 deletions
@@ -186,7 +186,7 @@ LaunchCommandActuator::KeyEventAsync(const BMessage* keyMsg,
if (be_roster) { if (be_roster) {
status_t err = B_OK; status_t err = B_OK;
BString str; BString str;
BString str1("Shortcuts Launcher Error"); BString str1("Shortcuts launcher error");
if (fArgc < 1) if (fArgc < 1)
str << "You didn't specify a command for this hotkey."; str << "You didn't specify a command for this hotkey.";
else if ((err = LaunchCommand(fArgv, fArgc)) != B_NO_ERROR) { else if ((err = LaunchCommand(fArgv, fArgc)) != B_NO_ERROR) {
@@ -196,7 +196,7 @@ LaunchCommandActuator::KeyEventAsync(const BMessage* keyMsg,
} }
if (fArgc < 1 || err != B_NO_ERROR) if (fArgc < 1 || err != B_NO_ERROR)
(new BAlert(str1.String(), str.String(), "Ok"))->Go(NULL); (new BAlert(str1.String(), str.String(), "OK"))->Go(NULL);
} }
} }
@@ -1007,13 +1007,13 @@ MIMEHandlerCommandActuator::KeyEventAsync(const BMessage* keyMsg,
{ {
if (be_roster) { if (be_roster) {
BString str; BString str;
BString str1("Shortcuts MIME Launcher Error"); BString str1("Shortcuts MIME launcher error");
status_t ret = be_roster->Launch(fMimeType.String()); status_t ret = be_roster->Launch(fMimeType.String());
if ((ret != B_NO_ERROR) && (ret != B_ALREADY_RUNNING)) { if ((ret != B_NO_ERROR) && (ret != B_ALREADY_RUNNING)) {
str << "Can't launch handler for "; str << "Can't launch handler for ";
str << ", no such MIME type exists. Please check your Shortcuts"; str << ", no such MIME type exists. Please check your Shortcuts";
str << " settings. Please check your Shortcuts settings."; str << " settings.";
(new BAlert(str1.String(), str.String(), "Ok"))->Go(NULL); (new BAlert(str1.String(), str.String(), "OK"))->Go(NULL);
} }
} }
} }
@@ -1688,10 +1688,10 @@ SendMessageCommandActuator::KeyEventAsync(const BMessage* keyMsg,
{ {
if (be_roster) { if (be_roster) {
BString str; BString str;
BString str1("Shortcuts SendMessage Error"); BString str1("Shortcuts SendMessage error");
if (fSignature.Length() == 0) { if (fSignature.Length() == 0) {
str << "SendMessage: Target App Signature not specified"; str << "SendMessage: Target application signature not specified";
(new BAlert(str1.String(), str.String(), "Ok"))->Go(NULL); (new BAlert(str1.String(), str.String(), "OK"))->Go(NULL);
} else { } else {
status_t error = B_OK; status_t error = B_OK;
BMessenger msngr(fSignature.String(), -1, &error); BMessenger msngr(fSignature.String(), -1, &error);
@@ -51,7 +51,7 @@ PenInputServerMethod::PenInputServerMethod()
PRINT(("%s\n", __FUNCTION__)); PRINT(("%s\n", __FUNCTION__));
#if DEBUG #if DEBUG
//fDebugFile.SetTo("/tmp/PenInputMethodMessages.txt", B_READ_WRITE|B_CREATE_FILE); //fDebugFile.SetTo("/tmp/PenInputMethodMessages.txt", B_READ_WRITE|B_CREATE_FILE);
fDebugAlert = new BAlert("PenInput Debug", "Plip \n\n\n\n\n\n\n\n\n\n\n\n\n", "Ok"); fDebugAlert = new BAlert("PenInput Debug", "Plip \n\n\n\n\n\n\n\n\n\n\n\n\n", "OK");
fDebugAlert->SetLook(B_TITLED_WINDOW_LOOK); fDebugAlert->SetLook(B_TITLED_WINDOW_LOOK);
fDebugAlert->TextView()->MakeSelectable(); fDebugAlert->TextView()->MakeSelectable();
fDebugAlert->TextView()->SelectAll(); fDebugAlert->TextView()->SelectAll();
@@ -6,7 +6,7 @@ tagfile=/tmp/dokillinputserver
tmout=$((30)) tmout=$((30))
touch $tagfile touch $tagfile
(alert "All is fine" "Ok"; rm $tagfile) & (alert "All is fine." "OK"; rm $tagfile) &
sleep $tmout sleep $tmout
@@ -94,16 +94,16 @@ T9InputServerMethod::T9InputServerMethod()
BMessage *msg = new BMessage('SetM'); BMessage *msg = new BMessage('SetM');
msg->AddInt32("t9mode", WordMode); msg->AddInt32("t9mode", WordMode);
BMenuItem *item; BMenuItem *item;
item = new BMenuItem(_T("Word Mode"), msg); item = new BMenuItem(_T("Word mode"), msg);
item->SetMarked(true); item->SetMarked(true);
fDeskbarMenu->AddItem(item); fDeskbarMenu->AddItem(item);
msg = new BMessage('SetM'); msg = new BMessage('SetM');
msg->AddInt32("t9mode", CharMode); msg->AddInt32("t9mode", CharMode);
item = new BMenuItem(_T("Character Mode"), msg); item = new BMenuItem(_T("Character mode"), msg);
fDeskbarMenu->AddItem(item); fDeskbarMenu->AddItem(item);
msg = new BMessage('SetM'); msg = new BMessage('SetM');
msg->AddInt32("t9mode", NumMode); msg->AddInt32("t9mode", NumMode);
item = new BMenuItem(_T("Numeric Mode"), msg); item = new BMenuItem(_T("Numeric mode"), msg);
fDeskbarMenu->AddItem(item); fDeskbarMenu->AddItem(item);
fDeskbarMenu->SetFont(be_plain_font); fDeskbarMenu->SetFont(be_plain_font);
// doesn't seem to work here // doesn't seem to work here
@@ -177,7 +177,7 @@ void T9InputServerMethod::MessageReceived(BMessage *message)
s << (long) fDeskbarMenu->FindMarked(); s << (long) fDeskbarMenu->FindMarked();
s << " - "; s << " - ";
s << (long) fDeskbarMenu->ItemAt(v); s << (long) fDeskbarMenu->ItemAt(v);
BAlert *a = new BAlert("Plop", s.String(), "Ok"); BAlert *a = new BAlert("Plop", s.String(), "OK");
a->Go(NULL); a->Go(NULL);
}*/ }*/
break; break;
@@ -94,16 +94,16 @@ T9InputServerMethod::T9InputServerMethod()
BMessage *msg = new BMessage('SetM'); BMessage *msg = new BMessage('SetM');
msg->AddInt32("t9mode", WordMode); msg->AddInt32("t9mode", WordMode);
BMenuItem *item; BMenuItem *item;
item = new BMenuItem(_T("Word Mode"), msg); item = new BMenuItem(_T("Word mode"), msg);
item->SetMarked(true); item->SetMarked(true);
fDeskbarMenu->AddItem(item); fDeskbarMenu->AddItem(item);
msg = new BMessage('SetM'); msg = new BMessage('SetM');
msg->AddInt32("t9mode", CharMode); msg->AddInt32("t9mode", CharMode);
item = new BMenuItem(_T("Character Mode"), msg); item = new BMenuItem(_T("Character mode"), msg);
fDeskbarMenu->AddItem(item); fDeskbarMenu->AddItem(item);
msg = new BMessage('SetM'); msg = new BMessage('SetM');
msg->AddInt32("t9mode", NumMode); msg->AddInt32("t9mode", NumMode);
item = new BMenuItem(_T("Numeric Mode"), msg); item = new BMenuItem(_T("Numeric mode"), msg);
fDeskbarMenu->AddItem(item); fDeskbarMenu->AddItem(item);
fDeskbarMenu->SetFont(be_plain_font); fDeskbarMenu->SetFont(be_plain_font);
// doesn't seem to work here // doesn't seem to work here
@@ -177,7 +177,7 @@ void T9InputServerMethod::MessageReceived(BMessage *message)
s << (long) fDeskbarMenu->FindMarked(); s << (long) fDeskbarMenu->FindMarked();
s << " - "; s << " - ";
s << (long) fDeskbarMenu->ItemAt(v); s << (long) fDeskbarMenu->ItemAt(v);
BAlert *a = new BAlert("Plop", s.String(), "Ok"); BAlert *a = new BAlert("Plop", s.String(), "OK");
a->Go(NULL); a->Go(NULL);
}*/ }*/
break; break;
@@ -56,13 +56,13 @@ RuleFilterConfig::RuleFilterConfig(BMessage *settings) : BView(BRect(0,0,260,85)
regex->SetText(settings->FindString("regex")); regex->SetText(settings->FindString("regex"));
AddChild(regex); AddChild(regex);
arg = new BFileControl(BRect(5,55,255,80),"arg",NULL,MDR_DIALECT_CHOICE ("this field is based on the Action","ここは動作によって意味が変わります")); arg = new BFileControl(BRect(5,55,255,80),"arg",NULL,MDR_DIALECT_CHOICE ("this field is based on the action","ここは動作によって意味が変わります"));
if (BControl *control = (BControl *)arg->FindView("select_file")) if (BControl *control = (BControl *)arg->FindView("select_file"))
control->SetEnabled(false); control->SetEnabled(false);
if (settings->HasString("argument")) if (settings->HasString("argument"))
arg->SetText(settings->FindString("argument")); arg->SetText(settings->FindString("argument"));
outbound = new BPopUpMenu(MDR_DIALECT_CHOICE ("<Choose Account>","<アカウントを選択>")); outbound = new BPopUpMenu(MDR_DIALECT_CHOICE ("<Choose account>","<アカウントを選択>"));
BList list; BList list;
GetOutboundMailChains(&list); GetOutboundMailChains(&list);
if (settings->HasInt32("do_what")) if (settings->HasInt32("do_what"))
@@ -89,12 +89,12 @@ void RuleFilterConfig::AttachedToWindow() {
if (menu != NULL) if (menu != NULL)
return; // We switched back from another tab return; // We switched back from another tab
menu = new BPopUpMenu(MDR_DIALECT_CHOICE ("<Choose Action>","<動作を選択>")); menu = new BPopUpMenu(MDR_DIALECT_CHOICE ("<Choose action>","<動作を選択>"));
menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Move To","移動する"), new BMessage(kMsgActionMoveTo))); menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Move to","移動する"), new BMessage(kMsgActionMoveTo)));
menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Set Flags To","フラグを指定する"), new BMessage(kMsgActionSetTo))); menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Set flags to","フラグを指定する"), new BMessage(kMsgActionSetTo)));
menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Delete Message","削除する"), new BMessage(kMsgActionDelete))); menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Delete message","削除する"), new BMessage(kMsgActionDelete)));
menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Reply With","返事を書く"), new BMessage(kMsgActionReplyWith))); menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Reply with","返事を書く"), new BMessage(kMsgActionReplyWith)));
menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Set As Read","既読にする"), new BMessage(kMsgActionSetRead))); menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Set as read","既読にする"), new BMessage(kMsgActionSetRead)));
menu->SetTargetForItems(this); menu->SetTargetForItems(this);
BMenuField *field = new BMenuField(BRect(5,30,210,50),"do_what",MDR_DIALECT_CHOICE ("Then","ならば"),menu); BMenuField *field = new BMenuField(BRect(5,30,210,50),"do_what",MDR_DIALECT_CHOICE ("Then","ならば"),menu);
@@ -486,7 +486,7 @@ descriptive_name (
sprintf (buffer, "Spam >= %05.3f", (double) cutoffRatio); sprintf (buffer, "Spam >= %05.3f", (double) cutoffRatio);
if (addMarker) if (addMarker)
strcat (buffer, ", Mark Subject"); strcat (buffer, ", Mark subject");
if (autoTraining) if (autoTraining)
strcat (buffer, ", Self-training"); strcat (buffer, ", Self-training");
strcat (buffer, "."); strcat (buffer, ".");
@@ -178,7 +178,7 @@ void AGMSBayesianSpamFilterConfig::AttachedToWindow ()
fAddSpamToSubjectCheckBoxPntr = new BCheckBox ( fAddSpamToSubjectCheckBoxPntr = new BCheckBox (
tempRect, tempRect,
"AddToSubject", "AddToSubject",
"Add spam rating to start of Subject", "Add spam rating to start of subject",
new BMessage (kAddSpamToSubjectPressed)); new BMessage (kAddSpamToSubjectPressed));
AddChild (fAddSpamToSubjectCheckBoxPntr); AddChild (fAddSpamToSubjectCheckBoxPntr);
fAddSpamToSubjectCheckBoxPntr->ResizeToPreferred (); fAddSpamToSubjectCheckBoxPntr->ResizeToPreferred ();
@@ -194,7 +194,7 @@ void AGMSBayesianSpamFilterConfig::AttachedToWindow ()
fNoWordsMeansSpamCheckBoxPntr = new BCheckBox ( fNoWordsMeansSpamCheckBoxPntr = new BCheckBox (
tempRect, tempRect,
"NoWordsMeansSpam", "NoWordsMeansSpam",
"or empty E-mail", "or empty e-mail",
new BMessage (kNoWordsMeansSpam)); new BMessage (kNoWordsMeansSpam));
AddChild (fNoWordsMeansSpamCheckBoxPntr); AddChild (fNoWordsMeansSpamCheckBoxPntr);
fNoWordsMeansSpamCheckBoxPntr->ResizeToPreferred (); fNoWordsMeansSpamCheckBoxPntr->ResizeToPreferred ();
@@ -250,7 +250,7 @@ void AGMSBayesianSpamFilterConfig::AttachedToWindow ()
fAutoTrainingCheckBoxPntr = new BCheckBox ( fAutoTrainingCheckBoxPntr = new BCheckBox (
tempRect, tempRect,
"autoTraining", "autoTraining",
"Learn from all incoming E-mail", "Learn from all incoming e-mail",
new BMessage (kAutoTrainingPressed)); new BMessage (kAutoTrainingPressed));
AddChild (fAutoTrainingCheckBoxPntr); AddChild (fAutoTrainingCheckBoxPntr);
fAutoTrainingCheckBoxPntr->ResizeToPreferred (); fAutoTrainingCheckBoxPntr->ResizeToPreferred ();
@@ -1,5 +1,5 @@
/* /*
* Copyright 2007-2008, Haiku Inc. All Rights Reserved. * Copyright 2007-2009, Haiku, Inc. All rights reserved.
* Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved. * Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved.
* *
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
@@ -34,7 +34,7 @@ IMAPConfig::IMAPConfig(BMessage *archive)
) )
{ {
#ifdef USE_SSL #ifdef USE_SSL
AddFlavor("No Encryption"); AddFlavor("No encryption");
AddFlavor("SSL"); AddFlavor("SSL");
#endif #endif
@@ -53,8 +53,8 @@ IMAPConfig::IMAPConfig(BMessage *archive)
/*frame.top += 10; /*frame.top += 10;
frame.bottom += 10;*/ frame.bottom += 10;*/
BTextControl *folder = new BTextControl(frame,"root","Top Mailbox Folder: ","",NULL); BTextControl *folder = new BTextControl(frame,"root","Top mailbox folder: ","",NULL);
folder->SetDivider(be_plain_font->StringWidth("Top Mailbox Folder: ")); folder->SetDivider(be_plain_font->StringWidth("Top mailbox folder: "));
if (archive->HasString("root")) if (archive->HasString("root"))
folder->SetText(archive->FindString("root")); folder->SetText(archive->FindString("root"));
@@ -1,5 +1,5 @@
/* /*
* Copyright 2007-2008, Haiku Inc. All Rights Reserved. * Copyright 2007-2009, Haiku, Inc. All rights reserved.
* Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved. * Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved.
* *
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
@@ -85,7 +85,7 @@ POP3Protocol::~POP3Protocol()
status_t status_t
POP3Protocol::Open(const char *server, int port, int) POP3Protocol::Open(const char *server, int port, int)
{ {
runner->ReportProgress(0, 0, MDR_DIALECT_CHOICE("Connecting to POP3 Server...", runner->ReportProgress(0, 0, MDR_DIALECT_CHOICE("Connecting to POP3 server...",
"POP3サーバに接続しています...")); "POP3サーバに接続しています..."));
if (port <= 0) { if (port <= 0) {
@@ -169,7 +169,7 @@ POP3Protocol::Open(const char *server, int port, int)
<< settings->FindString("server"); << settings->FindString("server");
if (port != 995) if (port != 995)
error << ":" << port; error << ":" << port;
error << ". (SSL Connection Error)"; error << ". (SSL connection error)";
runner->ShowError(error.String()); runner->ShowError(error.String());
SSL_CTX_free(fSSLContext); SSL_CTX_free(fSSLContext);
#ifndef HAIKU_TARGET_PLATFORM_BEOS #ifndef HAIKU_TARGET_PLATFORM_BEOS
@@ -765,11 +765,11 @@ instantiate_config_panel(BMessage *settings, BMessage *)
| B_MAIL_PROTOCOL_HAS_FLAVORS | B_MAIL_PROTOCOL_HAS_FLAVORS
#endif #endif
); );
view->AddAuthMethod("Plain Text"); view->AddAuthMethod("Plain text");
view->AddAuthMethod("APOP"); view->AddAuthMethod("APOP");
#if USE_SSL #if USE_SSL
view->AddFlavor("No Encryption"); view->AddFlavor("No encryption");
view->AddFlavor("SSL"); view->AddFlavor("SSL");
#endif #endif
@@ -27,12 +27,12 @@ ConfigView::ConfigView()
BRect rect(5,4,250,25); BRect rect(5,4,250,25);
rect.bottom = rect.top - 2 + itemHeight; rect.bottom = rect.top - 2 + itemHeight;
BMailFileConfigView *fview = new BMailFileConfigView(MDR_DIALECT_CHOICE ("Fortune File:","予言ファイル:"),"fortune_file",false,"",B_FILE_NODE); BMailFileConfigView *fview = new BMailFileConfigView(MDR_DIALECT_CHOICE ("Fortune file:","予言ファイル:"),"fortune_file",false,"",B_FILE_NODE);
AddChild(fview); AddChild(fview);
rect.top = rect.bottom + 8; rect.top = rect.bottom + 8;
rect.bottom = rect.top - 2 + itemHeight; rect.bottom = rect.top - 2 + itemHeight;
BTextControl * control = new BTextControl(rect,"tag_line",MDR_DIALECT_CHOICE ("Tag Line:","見出し:"),NULL,NULL); BTextControl * control = new BTextControl(rect,"tag_line",MDR_DIALECT_CHOICE ("Tag line:","見出し:"),NULL,NULL);
control->SetDivider(control->StringWidth(control->Label()) + 6); control->SetDivider(control->StringWidth(control->Label()) + 6);
AddChild(control); AddChild(control);
@@ -47,7 +47,7 @@ void ConfigView::SetTo(BMessage *archive)
BString path = archive->FindString("tag_line"); BString path = archive->FindString("tag_line");
if (!archive->HasString("tag_line")) if (!archive->HasString("tag_line"))
path = "Fortune Cookie Says:\n\n"; path = "Fortune cookie says:\n\n";
path.Truncate(path.Length() - 2); path.Truncate(path.Length() - 2);
if (BTextControl *control = (BTextControl *)FindView("tag_line")) if (BTextControl *control = (BTextControl *)FindView("tag_line"))
@@ -1,5 +1,5 @@
/* /*
* Copyright 2007-2008, Haiku Inc. All Rights Reserved. * Copyright 2007-2009, Haiku, Inc. All rights reserved.
* Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved. * Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved.
* *
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
@@ -257,7 +257,7 @@ SMTPProtocol::SMTPProtocol(BMessage *message, BMailChainRunner *run)
// to the SMTP server first... // to the SMTP server first...
fStatus = POP3Authentification(); fStatus = POP3Authentification();
if (fStatus < B_OK) { if (fStatus < B_OK) {
error_msg << MDR_DIALECT_CHOICE ("POP3 authentification failed. The server said:\n","POP3認証に失敗しました\n") << fLog; error_msg << MDR_DIALECT_CHOICE ("POP3 authentication failed. The server said:\n","POP3認証に失敗しました\n") << fLog;
runner->ShowError(error_msg.String()); runner->ShowError(error_msg.String());
runner->Stop(true); runner->Stop(true);
return; return;
@@ -423,7 +423,7 @@ SMTPProtocol::Open(const char *address, int port, bool esmtp)
error << "Could not connect to SMTP server " << fSettings->FindString("server"); error << "Could not connect to SMTP server " << fSettings->FindString("server");
if (port != 465) if (port != 465)
error << ":" << port; error << ":" << port;
error << ". (SSL Connection Error)"; error << ". (SSL connection error)";
runner->ShowError(error.String()); runner->ShowError(error.String());
SSL_CTX_free(ctx); SSL_CTX_free(ctx);
#ifndef HAIKU_TARGET_PLATFORM_BEOS #ifndef HAIKU_TARGET_PLATFORM_BEOS
@@ -1118,7 +1118,7 @@ instantiate_config_panel(BMessage *settings, BMessage *)
view->AddAuthMethod(MDR_DIALECT_CHOICE ("POP3 before SMTP","送信前に受信する"), false); view->AddAuthMethod(MDR_DIALECT_CHOICE ("POP3 before SMTP","送信前に受信する"), false);
BTextControl *control = (BTextControl *)(view->FindView("host")); BTextControl *control = (BTextControl *)(view->FindView("host"));
control->SetLabel(MDR_DIALECT_CHOICE ("SMTP Server: ","SMTPサーバ: ")); control->SetLabel(MDR_DIALECT_CHOICE ("SMTP server: ","SMTPサーバ: "));
// Reset the dividers after changing one // Reset the dividers after changing one
float widestLabel=0; float widestLabel=0;
@@ -37,8 +37,8 @@ ConfigView::ConfigView()
MDR_DIALECT_CHOICE ("Beep",""), MDR_DIALECT_CHOICE ("Beep",""),
MDR_DIALECT_CHOICE ("Alert","窓(メール毎)"), MDR_DIALECT_CHOICE ("Alert","窓(メール毎)"),
MDR_DIALECT_CHOICE ("Keyboard LEDs","キーボードLED"), MDR_DIALECT_CHOICE ("Keyboard LEDs","キーボードLED"),
MDR_DIALECT_CHOICE ("Central Alert","窓(一括)"), MDR_DIALECT_CHOICE ("Central alert","窓(一括)"),
"Central Beep","Log Window"}; "Central beep","Log window"};
for (int32 i = 0,j = 1;i < 6;i++,j *= 2) for (int32 i = 0,j = 1;i < 6;i++,j *= 2)
menu->AddItem(new BMenuItem(notifyMethods[i],new BMessage(kMsgNotifyMethod))); menu->AddItem(new BMenuItem(notifyMethods[i],new BMessage(kMsgNotifyMethod)));
@@ -107,7 +107,7 @@ void NotifyCallback::Callback(status_t result) {
text << chainrunner->Chain()->Name() << "より\n" << num_messages << " 通のメッセージが届きました"); text << chainrunner->Chain()->Name() << "より\n" << num_messages << " 通のメッセージが届きました");
BAlert *alert = new BAlert(MDR_DIALECT_CHOICE ("New Messages","新着メッセージ"), text.String(), "OK", NULL, NULL, B_WIDTH_AS_USUAL); BAlert *alert = new BAlert(MDR_DIALECT_CHOICE ("New messages","新着メッセージ"), text.String(), "OK", NULL, NULL, B_WIDTH_AS_USUAL);
alert->SetFeel(B_NORMAL_WINDOW_FEEL); alert->SetFeel(B_NORMAL_WINDOW_FEEL);
alert->Go(NULL); alert->Go(NULL);
} }
+1 -1
View File
@@ -76,7 +76,7 @@ IFSSaver::StartConfig(BView *view)
// the additive check box // the additive check box
fSpeedS = new BSlider(frame, "speed setting", fSpeedS = new BSlider(frame, "speed setting",
"Morphing Speed:", "Morphing speed:",
new BMessage(MSG_SET_SPEED), new BMessage(MSG_SET_SPEED),
1, 12, B_BLOCK_THUMB, 1, 12, B_BLOCK_THUMB,
B_FOLLOW_LEFT_RIGHT | B_FOLLOW_BOTTOM); B_FOLLOW_LEFT_RIGHT | B_FOLLOW_BOTTOM);
@@ -68,7 +68,7 @@ SlideShowConfigView::SlideShowConfigView(const BRect &frame, const char *name,
// Show Caption checkbox // Show Caption checkbox
pMsg = new BMessage(CHANGE_CAPTION); pMsg = new BMessage(CHANGE_CAPTION);
fShowCaption = new BCheckBox(BRect(10, 45, 180, 62), fShowCaption = new BCheckBox(BRect(10, 45, 180, 62),
"Show Caption", "Show Caption", pMsg); "Show caption", "Show caption", pMsg);
val = (fSettings->SetGetBool(SAVER_SETTING_CAPTION)) ? 1 : 0; val = (fSettings->SetGetBool(SAVER_SETTING_CAPTION)) ? 1 : 0;
fShowCaption->SetValue(val); fShowCaption->SetValue(val);
fShowCaption->SetViewColor(ViewColor()); fShowCaption->SetViewColor(ViewColor());
@@ -77,7 +77,7 @@ SlideShowConfigView::SlideShowConfigView(const BRect &frame, const char *name,
// Change Border checkbox // Change Border checkbox
pMsg = new BMessage(CHANGE_BORDER); pMsg = new BMessage(CHANGE_BORDER);
fShowBorder = new BCheckBox(BRect(10, 70, 180, 87), fShowBorder = new BCheckBox(BRect(10, 70, 180, 87),
"Show Border", "Show Border", pMsg); "Show border", "Show border", pMsg);
val = (fSettings->SetGetBool(SAVER_SETTING_BORDER)) ? 1 : 0; val = (fSettings->SetGetBool(SAVER_SETTING_BORDER)) ? 1 : 0;
fShowBorder->SetValue(val); fShowBorder->SetValue(val);
fShowBorder->SetViewColor(ViewColor()); fShowBorder->SetViewColor(ViewColor());
@@ -86,13 +86,13 @@ SlideShowConfigView::SlideShowConfigView(const BRect &frame, const char *name,
// Delay Menu // Delay Menu
// setup PNG interlace options menu // setup PNG interlace options menu
int32 currentDelay = fSettings->SetGetInt32(SAVER_SETTING_DELAY) / 1000; int32 currentDelay = fSettings->SetGetInt32(SAVER_SETTING_DELAY) / 1000;
fDelayMenu = new BPopUpMenu("Delay Menu"); fDelayMenu = new BPopUpMenu("Delay menu");
struct DelayItem { struct DelayItem {
const char *name; const char *name;
int32 delay; int32 delay;
}; };
DelayItem items[] = { DelayItem items[] = {
{"No Delay", 0}, {"No delay", 0},
{"1 second", 1}, {"1 second", 1},
{"2 seconds", 2}, {"2 seconds", 2},
{"3 seconds", 3}, {"3 seconds", 3},
@@ -128,7 +128,7 @@ SlideShowConfigView::SlideShowConfigView(const BRect &frame, const char *name,
// Choose Image Folder button // Choose Image Folder button
pMsg = new BMessage(CHOOSE_DIRECTORY); pMsg = new BMessage(CHOOSE_DIRECTORY);
fChooseFolder = new BButton(BRect(50, 160, 180, 180), fChooseFolder = new BButton(BRect(50, 160, 180, 180),
"Choose Folder", "Choose Image Folder" B_UTF8_ELLIPSIS, pMsg); "Choose Folder", "Choose image folder" B_UTF8_ELLIPSIS, pMsg);
AddChild(fChooseFolder); AddChild(fChooseFolder);
// Setup choose folder file panel // Setup choose folder file panel
@@ -317,6 +317,6 @@ SlideShowConfigView::Draw(BRect area)
// Draw current folder // Draw current folder
BString strFolder; BString strFolder;
fSettings->GetString(SAVER_SETTING_DIRECTORY, strFolder); fSettings->GetString(SAVER_SETTING_DIRECTORY, strFolder);
strFolder.Prepend("Image Folder: "); strFolder.Prepend("Image folder: ");
DrawString(strFolder.String(), BPoint(10, yplain * 9 + ybold)); DrawString(strFolder.String(), BPoint(10, yplain * 9 + ybold));
} }
@@ -1,5 +1,5 @@
/* /*
* Copyright 2007, Haiku Inc. All rights reserved. * Copyright 2007-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Authors: * Authors:
@@ -353,7 +353,7 @@ SpiderView::SpiderView(BRect frame, SpiderSaver* saver,
frame.top = 10.0; frame.top = 10.0;
frame.bottom = frame.top + viewHeight; frame.bottom = frame.top + viewHeight;
frame.OffsetBy(0.0, viewHeight); frame.OffsetBy(0.0, viewHeight);
fQueueNumberS = new BSlider(frame, "queue number", "Max Polygon Count", fQueueNumberS = new BSlider(frame, "queue number", "Max. polygon count",
new BMessage(MSG_QUEUE_NUMBER), new BMessage(MSG_QUEUE_NUMBER),
1, MAX_QUEUE_NUMBER); 1, MAX_QUEUE_NUMBER);
fQueueNumberS->SetHashMarks(B_HASH_MARKS_BOTTOM); fQueueNumberS->SetHashMarks(B_HASH_MARKS_BOTTOM);
@@ -361,7 +361,7 @@ SpiderView::SpiderView(BRect frame, SpiderSaver* saver,
fQueueNumberS->SetValue(queueNumber); fQueueNumberS->SetValue(queueNumber);
AddChild(fQueueNumberS); AddChild(fQueueNumberS);
frame.OffsetBy(0.0, viewHeight); frame.OffsetBy(0.0, viewHeight);
fPolyNumberS = new BSlider(frame, "poly points", "Max Points per Polygon", fPolyNumberS = new BSlider(frame, "poly points", "Max. points per polygon",
new BMessage(MSG_POLY_NUMBER), new BMessage(MSG_POLY_NUMBER),
MIN_POLY_POINTS, MAX_POLY_POINTS); MIN_POLY_POINTS, MAX_POLY_POINTS);
fPolyNumberS->SetHashMarks(B_HASH_MARKS_BOTTOM); fPolyNumberS->SetHashMarks(B_HASH_MARKS_BOTTOM);
@@ -369,7 +369,7 @@ SpiderView::SpiderView(BRect frame, SpiderSaver* saver,
fPolyNumberS->SetValue(maxPolyPoints); fPolyNumberS->SetValue(maxPolyPoints);
AddChild(fPolyNumberS); AddChild(fPolyNumberS);
frame.OffsetBy(0.0, viewHeight); frame.OffsetBy(0.0, viewHeight);
fQueueDepthS = new BSlider(frame, "queue depth", "Trail Depth", fQueueDepthS = new BSlider(frame, "queue depth", "Trail depth",
new BMessage(MSG_QUEUE_DEPTH), new BMessage(MSG_QUEUE_DEPTH),
MIN_QUEUE_DEPTH, MAX_QUEUE_DEPTH); MIN_QUEUE_DEPTH, MAX_QUEUE_DEPTH);
fQueueDepthS->SetHashMarks(B_HASH_MARKS_BOTTOM); fQueueDepthS->SetHashMarks(B_HASH_MARKS_BOTTOM);
+2 -2
View File
@@ -17,7 +17,7 @@ static void Error(BView *view, status_t status, bool unlock=false)
if (view && unlock) if (view && unlock)
view->UnlockLooper(); view->UnlockLooper();
BString s(strerror(status)); BString s(strerror(status));
alert = new BAlert("Error", s.String(), "Ok"); alert = new BAlert("Error", s.String(), "OK");
alert->Go(); alert->Go();
} }
@@ -80,7 +80,7 @@ process_refs(entry_ref dir, BMessage* refs, void* /*reserved*/)
alert = new BAlert("Error", "IconVader:\nClick on the icons to get points.\nAvoid symlinks!", "Ok"); alert = new BAlert("Error", "IconVader:\nClick on the icons to get points.\nAvoid symlinks!", "OK");
alert->Go(); alert->Go();
@@ -40,7 +40,7 @@ process_refs(entry_ref directoryRef, BMessage *msg, void *)
|| targetEntry.GetParent(&targetEntry) != B_OK) { || targetEntry.GetParent(&targetEntry) != B_OK) {
(new BAlert("Open Target Folder", (new BAlert("Open Target Folder",
"Cannot open target folder. Maybe this link is broken?", "Cannot open target folder. Maybe this link is broken?",
"Ok", NULL, NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT))->Go(NULL); "OK", NULL, NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT))->Go(NULL);
continue; continue;
} }
@@ -62,7 +62,7 @@ process_refs(entry_ref directoryRef, BMessage *msg, void *)
(new BAlert("Open Target Folder", (new BAlert("Open Target Folder",
"This add-on can only be used on symbolic links.\n" "This add-on can only be used on symbolic links.\n"
"It opens the folder of the link target in Tracker.", "It opens the folder of the link target in Tracker.",
"Ok"))->Go(NULL); "OK"))->Go(NULL);
} }
} }
@@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2006, Haiku. * Copyright 2002-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Authors: * Authors:
@@ -116,7 +116,7 @@ make_nth_translator(int32 n, image_id you, uint32 flags, ...)
// Returns: // Returns:
// --------------------------------------------------------------- // ---------------------------------------------------------------
BMPTranslator::BMPTranslator() BMPTranslator::BMPTranslator()
: BaseTranslator("BMP Images", "BMP image translator", : BaseTranslator("BMP images", "BMP image translator",
BMP_TRANSLATOR_VERSION, BMP_TRANSLATOR_VERSION,
gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), gInputFormats, sizeof(gInputFormats) / sizeof(translation_format),
gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format),
+2 -2
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2006, Haiku, Inc. * Copyright 2002-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT license. * Distributed under the terms of the MIT license.
* *
* Authors: * Authors:
@@ -30,7 +30,7 @@ BMPView::BMPView(const BRect &frame, const char *name, uint32 resizeMode,
float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading;
BRect rect(10, 10, 200, 10 + height); BRect rect(10, 10, 200, 10 + height);
BStringView *stringView = new BStringView(rect, "title", "BMP Image Translator"); BStringView *stringView = new BStringView(rect, "title", "BMP image translator");
stringView->SetFont(be_bold_font); stringView->SetFont(be_bold_font);
stringView->ResizeToPreferred(); stringView->ResizeToPreferred();
AddChild(stringView); AddChild(stringView);
+1 -1
View File
@@ -25,7 +25,7 @@ ConfigView::ConfigView(const BRect &frame, uint32 resize, uint32 flags)
float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading;
BRect rect(10, 10, 200, 10 + height); BRect rect(10, 10, 200, 10 + height);
BStringView *stringView = new BStringView(rect, "title", "EXR Images"); BStringView *stringView = new BStringView(rect, "title", "EXR images");
stringView->SetFont(be_bold_font); stringView->SetFont(be_bold_font);
stringView->ResizeToPreferred(); stringView->ResizeToPreferred();
AddChild(stringView); AddChild(stringView);
@@ -56,7 +56,7 @@ const uint32 kNumDefaultSettings = sizeof(sDefaultSettings) / sizeof(TranSetting
EXRTranslator::EXRTranslator() EXRTranslator::EXRTranslator()
: BaseTranslator("EXR Images", "EXR Image Translator", : BaseTranslator("EXR Images", "EXR image translator",
EXR_TRANSLATOR_VERSION, EXR_TRANSLATOR_VERSION,
sInputFormats, kNumInputFormats, sInputFormats, kNumInputFormats,
sOutputFormats, kNumOutputFormats, sOutputFormats, kNumOutputFormats,
@@ -40,7 +40,7 @@ bool DetermineType(BPositionIO *source, bool *is_gif);
status_t GetBitmap(BPositionIO *in, BBitmap **out); status_t GetBitmap(BPositionIO *in, BBitmap **out);
/* Required data */ /* Required data */
char translatorName[] = "GIF Images"; char translatorName[] = "GIF images";
char translatorInfo[] = "GIF image translator v1.4"; char translatorInfo[] = "GIF image translator v1.4";
int32 translatorVersion = 0x140; int32 translatorVersion = 0x140;
+5 -5
View File
@@ -68,7 +68,7 @@ GIFView::GIFView(BRect rect, const char *name)
// menu fields (Palette & Colors) // menu fields (Palette & Colors)
fWebSafeMI = new BMenuItem("Websafe", new BMessage(GV_WEB_SAFE), 0, 0); fWebSafeMI = new BMenuItem("Websafe", new BMessage(GV_WEB_SAFE), 0, 0);
fBeOSSystemMI = new BMenuItem("BeOS System", new BMessage(GV_BEOS_SYSTEM), 0, 0); fBeOSSystemMI = new BMenuItem("BeOS system", new BMessage(GV_BEOS_SYSTEM), 0, 0);
fGreyScaleMI = new BMenuItem("Greyscale", new BMessage(GV_GREYSCALE), 0, 0); fGreyScaleMI = new BMenuItem("Greyscale", new BMessage(GV_GREYSCALE), 0, 0);
fOptimalMI = new BMenuItem("Optimal", new BMessage(GV_OPTIMAL), 0, 0); fOptimalMI = new BMenuItem("Optimal", new BMessage(GV_OPTIMAL), 0, 0);
fPaletteM = new BPopUpMenu("PalettePopUpMenu", true, true, B_ITEMS_IN_COLUMN); fPaletteM = new BPopUpMenu("PalettePopUpMenu", true, true, B_ITEMS_IN_COLUMN);
@@ -92,19 +92,19 @@ GIFView::GIFView(BRect rect, const char *name)
r.top = r.bottom + 14; r.top = r.bottom + 14;
r.bottom = r.top + 24; r.bottom = r.top + 24;
fPaletteMF = new BMenuField(r, "PaletteMenuField", "Palette", fPaletteMF = new BMenuField(r, "PaletteMenuField", "Palette: ",
fPaletteM, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_NAVIGABLE); fPaletteM, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_NAVIGABLE);
AddChild(fPaletteMF); AddChild(fPaletteMF);
r.top = r.bottom + 5; r.top = r.bottom + 5;
r.bottom = r.top + 24; r.bottom = r.top + 24;
fColorCountMF = new BMenuField(r, "ColorCountMenuField", "Colors", fColorCountMF = new BMenuField(r, "ColorCountMenuField", "Colors: ",
fColorCountM, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_NAVIGABLE); fColorCountM, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_NAVIGABLE);
AddChild(fColorCountMF); AddChild(fColorCountMF);
// align menu fields // align menu fields
float maxLabelWidth = ceilf(max_c(be_plain_font->StringWidth("Colors"), float maxLabelWidth = ceilf(max_c(be_plain_font->StringWidth("Colors: "),
be_plain_font->StringWidth("Palette"))); be_plain_font->StringWidth("Palette: ")));
fPaletteMF->SetDivider(maxLabelWidth + 7); fPaletteMF->SetDivider(maxLabelWidth + 7);
fColorCountMF->SetDivider(maxLabelWidth + 7); fColorCountMF->SetDivider(maxLabelWidth + 7);
+1 -1
View File
@@ -25,7 +25,7 @@ ConfigView::ConfigView(const BRect &frame, uint32 resize, uint32 flags)
float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading;
BRect rect(10, 10, 200, 10 + height); BRect rect(10, 10, 200, 10 + height);
BStringView *stringView = new BStringView(rect, "title", "HPGS Images"); BStringView *stringView = new BStringView(rect, "title", "HPGS images");
stringView->SetFont(be_bold_font); stringView->SetFont(be_bold_font);
stringView->ResizeToPreferred(); stringView->ResizeToPreferred();
AddChild(stringView); AddChild(stringView);
@@ -80,7 +80,7 @@ const uint32 kNumDefaultSettings = sizeof(sDefaultSettings) / sizeof(TranSetting
HPGSTranslator::HPGSTranslator() HPGSTranslator::HPGSTranslator()
: BaseTranslator("HPGS Images", "HPGS Image Translator", : BaseTranslator("HPGS images", "HPGS image translator",
HPGS_TRANSLATOR_VERSION, HPGS_TRANSLATOR_VERSION,
sInputFormats, kNumInputFormats, sInputFormats, kNumInputFormats,
sOutputFormats, kNumOutputFormats, sOutputFormats, kNumOutputFormats,
@@ -60,7 +60,7 @@ make_nth_translator(int32 n, image_id image, uint32 flags, ...)
HVIFTranslator::HVIFTranslator() HVIFTranslator::HVIFTranslator()
: BaseTranslator("HVIF Icons", "Native Haiku vector icon translator", : BaseTranslator("HVIF icons", "Native Haiku vector icon translator",
HVIF_TRANSLATOR_VERSION, sInputFormats, HVIF_TRANSLATOR_VERSION, sInputFormats,
sizeof(sInputFormats) / sizeof(sInputFormats[0]), sOutputFormats, sizeof(sInputFormats) / sizeof(sInputFormats[0]), sOutputFormats,
sizeof(sOutputFormats) / sizeof(sOutputFormats[0]), sizeof(sOutputFormats) / sizeof(sOutputFormats[0]),
+3 -3
View File
@@ -30,7 +30,7 @@ HVIFView::HVIFView(const BRect &frame, const char *name, uint32 resizeMode,
BRect rect(10, 10, 200, 10 + height); BRect rect(10, 10, 200, 10 + height);
BStringView *stringView = new BStringView(rect, "title", BStringView *stringView = new BStringView(rect, "title",
"Native Haiku Icon Format Translator"); "Native Haiku icon format translator");
stringView->SetFont(be_bold_font); stringView->SetFont(be_bold_font);
stringView->ResizeToPreferred(); stringView->ResizeToPreferred();
AddChild(stringView); AddChild(stringView);
@@ -57,7 +57,7 @@ HVIFView::HVIFView(const BRect &frame, const char *name, uint32 resizeMode,
rect.OffsetBy(0, height + 5); rect.OffsetBy(0, height + 5);
int32 renderSize = fSettings->SetGetInt32(HVIF_SETTING_RENDER_SIZE); int32 renderSize = fSettings->SetGetInt32(HVIF_SETTING_RENDER_SIZE);
BString label = "Render Size: "; BString label = "Render size: ";
label << renderSize; label << renderSize;
fRenderSize = new BSlider(rect, "renderSize", label.String(), NULL, 1, 32); fRenderSize = new BSlider(rect, "renderSize", label.String(), NULL, 1, 32);
@@ -92,7 +92,7 @@ HVIFView::MessageReceived(BMessage *message)
fSettings->SetGetInt32(HVIF_SETTING_RENDER_SIZE, &value); fSettings->SetGetInt32(HVIF_SETTING_RENDER_SIZE, &value);
fSettings->SaveSettings(); fSettings->SaveSettings();
BString newLabel = "Render Size: "; BString newLabel = "Render size: ";
newLabel << value; newLabel << value;
fRenderSize->SetLabel(newLabel.String()); fRenderSize->SetLabel(newLabel.String());
return; return;
+1 -1
View File
@@ -24,7 +24,7 @@ ConfigView::ConfigView(const BRect &frame, uint32 resize, uint32 flags)
float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading;
BRect rect(10, 10, 200, 10 + height); BRect rect(10, 10, 200, 10 + height);
BStringView *stringView = new BStringView(rect, "title", "Windows Icon Images"); BStringView *stringView = new BStringView(rect, "title", "Windows icon images");
stringView->SetFont(be_bold_font); stringView->SetFont(be_bold_font);
stringView->ResizeToPreferred(); stringView->ResizeToPreferred();
AddChild(stringView); AddChild(stringView);
@@ -72,7 +72,7 @@ const uint32 kNumDefaultSettings = sizeof(sDefaultSettings) / sizeof(TranSetting
ICOTranslator::ICOTranslator() ICOTranslator::ICOTranslator()
: BaseTranslator("Windows Icon Images", "Windows Icon Translator", : BaseTranslator("Windows icon images", "Windows icon translator",
ICO_TRANSLATOR_VERSION, ICO_TRANSLATOR_VERSION,
sInputFormats, kNumInputFormats, sInputFormats, kNumInputFormats,
sOutputFormats, kNumOutputFormats, sOutputFormats, kNumOutputFormats,
@@ -50,14 +50,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define B_TRANSLATOR_BITMAP_DESCRIPTION "Be Bitmap Format (JPEGTranslator)" #define B_TRANSLATOR_BITMAP_DESCRIPTION "Be Bitmap Format (JPEGTranslator)"
// Translation Kit required globals // Translation Kit required globals
char translatorName[] = "JPEG Images"; char translatorName[] = "JPEG images";
char translatorInfo[] = char translatorInfo[] =
"©2002-2003, Marcin Konicki\n" "©2002-2003, Marcin Konicki\n"
"©2005-2007, Haiku\n" "©2005-2007, Haiku\n"
"\n" "\n"
"Based on IJG library © 1991-1998, Thomas G. Lane\n" "Based on IJG library © 1991-1998, Thomas G. Lane\n"
" http://www.ijg.org/files/\n" " http://www.ijg.org/files/\n"
"with \"Lossless\" encoding support patch by Ken Murchison\n" "with \"lossless\" encoding support patch by Ken Murchison\n"
" http://www.oceana.com/ftp/ljpeg/\n" " http://www.oceana.com/ftp/ljpeg/\n"
"\n" "\n"
"With some colorspace conversion routines by Magnus Hellman\n" "With some colorspace conversion routines by Magnus Hellman\n"
@@ -71,8 +71,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define VIEW_LABEL_PROGRESSIVE "Use progressive compression" #define VIEW_LABEL_PROGRESSIVE "Use progressive compression"
#define VIEW_LABEL_OPTIMIZECOLORS "Prevent colors 'washing out'" #define VIEW_LABEL_OPTIMIZECOLORS "Prevent colors 'washing out'"
#define VIEW_LABEL_SMALLERFILE "Make file smaller (sligthtly worse quality)" #define VIEW_LABEL_SMALLERFILE "Make file smaller (sligthtly worse quality)"
#define VIEW_LABEL_GRAY1ASRGB24 "Write Black&White images as RGB24" #define VIEW_LABEL_GRAY1ASRGB24 "Write black-and-white images as RGB24"
#define VIEW_LABEL_ALWAYSRGB32 "Read Greyscale images as RGB32" #define VIEW_LABEL_ALWAYSRGB32 "Read greyscale images as RGB32"
#define VIEW_LABEL_PHOTOSHOPCMYK "Use CMYK code with 0 for 100% ink coverage" #define VIEW_LABEL_PHOTOSHOPCMYK "Use CMYK code with 0 for 100% ink coverage"
#define VIEW_LABEL_SHOWREADERRORBOX "Show warning messages" #define VIEW_LABEL_SHOWREADERRORBOX "Show warning messages"
@@ -48,7 +48,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define B_TRANSLATOR_BITMAP_DESCRIPTION "Be Bitmap Format (JPEG2000Translator)" #define B_TRANSLATOR_BITMAP_DESCRIPTION "Be Bitmap Format (JPEG2000Translator)"
// Translation Kit required globals // Translation Kit required globals
char translatorName[] = "JPEG2000 Images"; char translatorName[] = "JPEG2000 images";
char translatorInfo[] = "©2002-2003, Shard\n" char translatorInfo[] = "©2002-2003, Shard\n"
"©2005-2006, Haiku\n" "©2005-2006, Haiku\n"
"\n" "\n"
@@ -62,9 +62,9 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// View labels // View labels
#define VIEW_LABEL_QUALITY "Output quality" #define VIEW_LABEL_QUALITY "Output quality"
#define VIEW_LABEL_GRAY1ASRGB24 "Write Black&White images as RGB24" #define VIEW_LABEL_GRAY1ASRGB24 "Write black-and-white images as RGB24"
#define VIEW_LABEL_JPC "Output only codestream (.jpc)" #define VIEW_LABEL_JPC "Output only codestream (.jpc)"
#define VIEW_LABEL_GRAYASRGB32 "Read Greyscale images as RGB32" #define VIEW_LABEL_GRAYASRGB32 "Read greyscale images as RGB32"
//! Settings storage structure //! Settings storage structure
+1 -1
View File
@@ -25,7 +25,7 @@ ConfigView::ConfigView(const BRect &frame, uint32 resize, uint32 flags)
float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading;
BRect rect(10, 10, 200, 10 + height); BRect rect(10, 10, 200, 10 + height);
BStringView *stringView = new BStringView(rect, "title", "PCX Images"); BStringView *stringView = new BStringView(rect, "title", "PCX images");
stringView->SetFont(be_bold_font); stringView->SetFont(be_bold_font);
stringView->ResizeToPreferred(); stringView->ResizeToPreferred();
AddChild(stringView); AddChild(stringView);
@@ -69,7 +69,7 @@ const uint32 kNumDefaultSettings = sizeof(sDefaultSettings) / sizeof(TranSetting
PCXTranslator::PCXTranslator() PCXTranslator::PCXTranslator()
: BaseTranslator("PCX Images", "PCX Translator", : BaseTranslator("PCX images", "PCX translator",
PCX_TRANSLATOR_VERSION, PCX_TRANSLATOR_VERSION,
sInputFormats, kNumInputFormats, sInputFormats, kNumInputFormats,
sOutputFormats, kNumOutputFormats, sOutputFormats, kNumOutputFormats,
@@ -8,7 +8,8 @@
// PNG images. // PNG images.
// //
// //
// Copyright (c) 2003 OpenBeOS Project // Copyright (c) 2003, OpenBeOS Project
// Copyright (c) 2009, Haiku, Inc. All rights reserved.
// //
// Permission is hereby granted, free of charge, to any person obtaining a // Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"), // copy of this software and associated documentation files (the "Software"),
@@ -178,7 +179,7 @@ pngcb_flush_data(png_structp ppng)
// Returns: // Returns:
// --------------------------------------------------------------- // ---------------------------------------------------------------
PNGTranslator::PNGTranslator() PNGTranslator::PNGTranslator()
: BaseTranslator("PNG Images", "PNG image translator", : BaseTranslator("PNG images", "PNG image translator",
PNG_TRANSLATOR_VERSION, PNG_TRANSLATOR_VERSION,
gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), gInputFormats, sizeof(gInputFormats) / sizeof(translation_format),
gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format),
+3 -3
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2003-2006, Haiku, Inc. * Copyright 2003-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT license. * Distributed under the terms of the MIT license.
* *
* Authors: * Authors:
@@ -34,7 +34,7 @@ PNGView::PNGView(const BRect &frame, const char *name, uint32 resizeMode,
float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading;
BRect rect(10, 10, 200, 10 + height); BRect rect(10, 10, 200, 10 + height);
BStringView *stringView = new BStringView(rect, "title", "PNG Image Translator"); BStringView *stringView = new BStringView(rect, "title", "PNG image translator");
stringView->SetFont(be_bold_font); stringView->SetFont(be_bold_font);
stringView->ResizeToPreferred(); stringView->ResizeToPreferred();
AddChild(stringView); AddChild(stringView);
@@ -78,7 +78,7 @@ PNGView::PNGView(const BRect &frame, const char *name, uint32 resizeMode,
rect.OffsetBy(0, stringView->Frame().Height() + 20.0f); rect.OffsetBy(0, stringView->Frame().Height() + 20.0f);
BMenuField* menuField = new BMenuField(rect, "PNG Interlace Menu", BMenuField* menuField = new BMenuField(rect, "PNG Interlace Menu",
"Interlacing Type:", fInterlaceMenu); "Interlacing type:", fInterlaceMenu);
menuField->SetDivider(menuField->StringWidth(menuField->Label()) + 7.0f); menuField->SetDivider(menuField->StringWidth(menuField->Label()) + 7.0f);
menuField->ResizeToPreferred(); menuField->ResizeToPreferred();
AddChild(menuField); AddChild(menuField);
@@ -47,7 +47,7 @@
#define PPM_TRANSLATOR_VERSION 0x100 #define PPM_TRANSLATOR_VERSION 0x100
/* These three data items are exported by every translator. */ /* These three data items are exported by every translator. */
char translatorName[] = "PPM Images"; char translatorName[] = "PPM images";
char translatorInfo[] = "PPM image translator v1.0.0, " __DATE__; char translatorInfo[] = "PPM image translator v1.0.0, " __DATE__;
int32 translatorVersion = PPM_TRANSLATOR_VERSION; int32 translatorVersion = PPM_TRANSLATOR_VERSION;
// Revision: lowest 4 bits // Revision: lowest 4 bits
@@ -445,7 +445,7 @@ public:
mMenu->AddItem(new BMenuItem("RGB 5:5:5 16 bits", CSMessage(B_RGB15))); mMenu->AddItem(new BMenuItem("RGB 5:5:5 16 bits", CSMessage(B_RGB15)));
mMenu->AddItem(new BMenuItem("RGBA 5:5:5:1 16 bits", CSMessage(B_RGBA15))); mMenu->AddItem(new BMenuItem("RGBA 5:5:5:1 16 bits", CSMessage(B_RGBA15)));
mMenu->AddItem(new BMenuItem("RGB 5:6:5 16 bits", CSMessage(B_RGB16))); mMenu->AddItem(new BMenuItem("RGB 5:6:5 16 bits", CSMessage(B_RGB16)));
mMenu->AddItem(new BMenuItem("System Palette 8 bits", CSMessage(B_CMAP8))); mMenu->AddItem(new BMenuItem("System palette 8 bits", CSMessage(B_CMAP8)));
mMenu->AddSeparatorItem(); mMenu->AddSeparatorItem();
mMenu->AddItem(new BMenuItem("Grayscale 8 bits", CSMessage(B_GRAY8))); mMenu->AddItem(new BMenuItem("Grayscale 8 bits", CSMessage(B_GRAY8)));
mMenu->AddItem(new BMenuItem("Bitmap 1 bit", CSMessage(B_GRAY1))); mMenu->AddItem(new BMenuItem("Bitmap 1 bit", CSMessage(B_GRAY1)));
@@ -458,7 +458,7 @@ public:
mMenu->AddItem(new BMenuItem("RGB 5:5:5 16 bits big-endian", CSMessage(B_RGB15_BIG))); mMenu->AddItem(new BMenuItem("RGB 5:5:5 16 bits big-endian", CSMessage(B_RGB15_BIG)));
mMenu->AddItem(new BMenuItem("RGBA 5:5:5:1 16 bits big-endian", CSMessage(B_RGBA15_BIG))); mMenu->AddItem(new BMenuItem("RGBA 5:5:5:1 16 bits big-endian", CSMessage(B_RGBA15_BIG)));
mMenu->AddItem(new BMenuItem("RGB 5:6:5 16 bits big-endian", CSMessage(B_RGB16))); mMenu->AddItem(new BMenuItem("RGB 5:6:5 16 bits big-endian", CSMessage(B_RGB16)));
mField = new BMenuField(BRect(10,110,190,130), "Color Space Field", "Input Color Space", mMenu); mField = new BMenuField(BRect(10,110,190,130), "Color Space Field", "Input color space", mMenu);
mField->SetDivider(mField->StringWidth(mField->Label()) + 7); mField->SetDivider(mField->StringWidth(mField->Label()) + 7);
mField->SetViewColor(ViewColor()); mField->SetViewColor(ViewColor());
AddChild(mField); AddChild(mField);
@@ -491,7 +491,7 @@ virtual void Draw(
xbold = fh.descent + 1; xbold = fh.descent + 1;
ybold = fh.ascent + fh.descent * 2 + fh.leading; ybold = fh.ascent + fh.descent * 2 + fh.leading;
char title[] = "PPM Image Translator"; char title[] = "PPM image translator";
DrawString(title, BPoint(xbold, ybold)); DrawString(title, BPoint(xbold, ybold));
SetFont(be_plain_font); SetFont(be_plain_font);
+1 -1
View File
@@ -24,7 +24,7 @@ ConfigView::ConfigView(const BRect &frame, uint32 resize, uint32 flags)
float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading;
BRect rect(10, 10, 200, 10 + height); BRect rect(10, 10, 200, 10 + height);
BStringView *stringView = new BStringView(rect, "title", "RAW Images"); BStringView *stringView = new BStringView(rect, "title", "RAW images");
stringView->SetFont(be_bold_font); stringView->SetFont(be_bold_font);
stringView->ResizeToPreferred(); stringView->ResizeToPreferred();
AddChild(stringView); AddChild(stringView);
@@ -92,7 +92,7 @@ const uint32 kNumDefaultSettings = sizeof(sDefaultSettings) / sizeof(TranSetting
RAWTranslator::RAWTranslator() RAWTranslator::RAWTranslator()
: BaseTranslator("RAW Images", "RAW Image Translator", : BaseTranslator("RAW images", "RAW image translator",
RAW_TRANSLATOR_VERSION, RAW_TRANSLATOR_VERSION,
sInputFormats, kNumInputFormats, sInputFormats, kNumInputFormats,
sOutputFormats, kNumOutputFormats, sOutputFormats, kNumOutputFormats,
+1 -1
View File
@@ -22,7 +22,7 @@ ConfigView::ConfigView(const BRect &frame, uint32 resize, uint32 flags)
float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading;
BRect rect(10, 10, 200, 10 + height); BRect rect(10, 10, 200, 10 + height);
BStringView *stringView = new BStringView(rect, "title", "Rich Text Format (RTF) Files"); BStringView *stringView = new BStringView(rect, "title", "Rich Text Format (RTF) files");
stringView->SetFont(be_bold_font); stringView->SetFont(be_bold_font);
stringView->ResizeToPreferred(); stringView->ResizeToPreferred();
AddChild(stringView); AddChild(stringView);
@@ -54,7 +54,7 @@ translation_format sOutputFormats[] = {
RTFTranslator::RTFTranslator() RTFTranslator::RTFTranslator()
{ {
char info[256]; char info[256];
sprintf(info, "Rich Text Format Translator v%d.%d.%d %s", sprintf(info, "Rich Text Format translator v%d.%d.%d %s",
int(B_TRANSLATION_MAJOR_VERSION(RTF_TRANSLATOR_VERSION)), int(B_TRANSLATION_MAJOR_VERSION(RTF_TRANSLATOR_VERSION)),
int(B_TRANSLATION_MINOR_VERSION(RTF_TRANSLATOR_VERSION)), int(B_TRANSLATION_MINOR_VERSION(RTF_TRANSLATOR_VERSION)),
int(B_TRANSLATION_REVISION_VERSION(RTF_TRANSLATOR_VERSION)), int(B_TRANSLATION_REVISION_VERSION(RTF_TRANSLATOR_VERSION)),
@@ -73,7 +73,7 @@ RTFTranslator::~RTFTranslator()
const char * const char *
RTFTranslator::TranslatorName() const RTFTranslator::TranslatorName() const
{ {
return "RTF Text Files"; return "RTF text files";
} }
@@ -10,7 +10,7 @@
// SGI images. // SGI images.
// //
// //
// Copyright (c) 2003-2006 Haiku Project // Copyright (c) 2003-2009 Haiku, Inc. All rights reserved.
// //
// Permission is hereby granted, free of charge, to any person obtaining a // Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"), // copy of this software and associated documentation files (the "Software"),
@@ -146,7 +146,7 @@ make_nth_translator(int32 n, image_id you, uint32 flags, ...)
// Returns: // Returns:
// --------------------------------------------------------------- // ---------------------------------------------------------------
SGITranslator::SGITranslator() SGITranslator::SGITranslator()
: BaseTranslator("SGI Images", "SGI image translator", : BaseTranslator("SGI images", "SGI image translator",
SGI_TRANSLATOR_VERSION, SGI_TRANSLATOR_VERSION,
gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), gInputFormats, sizeof(gInputFormats) / sizeof(translation_format),
gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format),
+2 -2
View File
@@ -99,7 +99,7 @@ SGIView::SGIView(const BRect &frame, const char *name,
BRect menuFrame = Bounds(); BRect menuFrame = Bounds();
menuFrame.bottom = menuFrame.top + menu->Bounds().Height(); menuFrame.bottom = menuFrame.top + menu->Bounds().Height();
fCompressionMF = new BMenuField(menuFrame, "compression", fCompressionMF = new BMenuField(menuFrame, "compression",
"Use Compression:", menu, true/*, "Use compression:", menu, true/*,
B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP*/); B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP*/);
if (fCompressionMF->MenuBar()) if (fCompressionMF->MenuBar())
fCompressionMF->MenuBar()->ResizeToPreferred(); fCompressionMF->MenuBar()->ResizeToPreferred();
@@ -271,7 +271,7 @@ SGIView::Draw(BRect area)
xbold = fh.descent + 1; xbold = fh.descent + 1;
ybold = fh.ascent + fh.descent * 2 + fh.leading; ybold = fh.ascent + fh.descent * 2 + fh.leading;
const char* text = "SGI Image Translator"; const char* text = "SGI image translator";
DrawString(text, BPoint(xbold, ybold)); DrawString(text, BPoint(xbold, ybold));
SetFont(be_plain_font); SetFont(be_plain_font);
@@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008, Haiku, Inc. All Rights Reserved. * Copyright 2002-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Authors: * Authors:
@@ -1329,7 +1329,7 @@ translate_from_text(BPositionIO* source, const char* encoding, bool forceEncodin
STXTTranslator::STXTTranslator() STXTTranslator::STXTTranslator()
: BaseTranslator("StyledEdit Files", "StyledEdit files translator", : BaseTranslator("StyledEdit files", "StyledEdit files translator",
STXT_TRANSLATOR_VERSION, STXT_TRANSLATOR_VERSION,
gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), gInputFormats, sizeof(gInputFormats) / sizeof(translation_format),
gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format),
+2 -2
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2006, Haiku, Inc. * Copyright 2002-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT license. * Distributed under the terms of the MIT license.
* *
* Authors: * Authors:
@@ -30,7 +30,7 @@ STXTView::STXTView(const BRect &frame, const char *name, uint32 resizeMode,
float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading;
BRect rect(10, 10, 200, 10 + height); BRect rect(10, 10, 200, 10 + height);
BStringView *stringView = new BStringView(rect, "title", "StyledEdit Files Translator"); BStringView *stringView = new BStringView(rect, "title", "StyledEdit files translator");
stringView->SetFont(be_bold_font); stringView->SetFont(be_bold_font);
stringView->ResizeToPreferred(); stringView->ResizeToPreferred();
AddChild(stringView); AddChild(stringView);
@@ -7,7 +7,7 @@
// This BTranslator based object is for opening and writing TGA files. // This BTranslator based object is for opening and writing TGA files.
// //
// //
// Copyright (c) 2002 Haiku, Inc. // Copyright (c) 2002-2009, Haiku, Inc. All rights reserved.
// //
// Permission is hereby granted, free of charge, to any person obtaining a // Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"), // copy of this software and associated documentation files (the "Software"),
@@ -131,7 +131,7 @@ make_nth_translator(int32 n, image_id you, uint32 flags, ...)
// Returns: // Returns:
// --------------------------------------------------------------- // ---------------------------------------------------------------
TGATranslator::TGATranslator() TGATranslator::TGATranslator()
: BaseTranslator("TGA Images", "TGA image translator", : BaseTranslator("TGA images", "TGA image translator",
TGA_TRANSLATOR_VERSION, TGA_TRANSLATOR_VERSION,
gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), gInputFormats, sizeof(gInputFormats) / sizeof(translation_format),
gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format),
+3 -3
View File
@@ -55,7 +55,7 @@ TGAView::TGAView(const BRect& frame, const char* name, uint32 resize,
fpchkIgnoreAlpha->ResizeToPreferred(); fpchkIgnoreAlpha->ResizeToPreferred();
fpchkRLE = new BCheckBox(BRect(10, 67, 180, 84), fpchkRLE = new BCheckBox(BRect(10, 67, 180, 84),
"Save with RLE Compression", "Save with RLE Compression", "Save with RLE compression", "Save with RLE compression",
new BMessage(CHANGE_RLE)); new BMessage(CHANGE_RLE));
val = (fSettings->SetGetBool(TGA_SETTING_RLE)) ? 1 : 0; val = (fSettings->SetGetBool(TGA_SETTING_RLE)) ? 1 : 0;
fpchkRLE->SetValue(val); fpchkRLE->SetValue(val);
@@ -114,7 +114,7 @@ TGAView::Draw(BRect area)
xbold = fh.descent + 1; xbold = fh.descent + 1;
ybold = fh.ascent + fh.descent * 2 + fh.leading; ybold = fh.ascent + fh.descent * 2 + fh.leading;
DrawString("TGA Image Translator", BPoint(xbold, ybold)); DrawString("TGA image translator", BPoint(xbold, ybold));
SetFont(be_plain_font); SetFont(be_plain_font);
font_height plainh; font_height plainh;
@@ -130,6 +130,6 @@ TGAView::Draw(BRect area)
__DATE__); __DATE__);
DrawString(detail, BPoint(xbold, yplain + ybold)); DrawString(detail, BPoint(xbold, yplain + ybold));
DrawString("Written by the Haiku Translation Kit Team", DrawString("Written by the Haiku Translation Kit team",
BPoint(xbold, yplain * 7 + ybold)); BPoint(xbold, yplain * 7 + ybold));
} }
@@ -1,5 +1,5 @@
/* /*
* Copyright 2003-2007, Haiku, Inc. All Rights Reserved. * Copyright 2003-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Authors: * Authors:
@@ -591,7 +591,7 @@ write_tif_stream(TIFF* tif, BPositionIO* inSource, color_space format,
TIFFTranslator::TIFFTranslator() TIFFTranslator::TIFFTranslator()
: BaseTranslator("TIFF Images", "TIFF image translator", : BaseTranslator("TIFF images", "TIFF image translator",
TIFF_TRANSLATOR_VERSION, TIFF_TRANSLATOR_VERSION,
gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), gInputFormats, sizeof(gInputFormats) / sizeof(translation_format),
gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format),
+3 -3
View File
@@ -99,7 +99,7 @@ TIFFView::TIFFView(const BRect &frame, const char *name,
// add_menu_item(menu, COMPRESSION_JP2000, "JPEG2000", currentCompression); // add_menu_item(menu, COMPRESSION_JP2000, "JPEG2000", currentCompression);
fCompressionMF = new BMenuField(BRect(20, 50, 215, 70), "compression", fCompressionMF = new BMenuField(BRect(20, 50, 215, 70), "compression",
"Use Compression:", menu, true); "Use compression:", menu, true);
fCompressionMF->ResizeToPreferred(); fCompressionMF->ResizeToPreferred();
fCompressionMF->SetDivider( fCompressionMF->SetDivider(
fCompressionMF->StringWidth(fCompressionMF->Label()) + 7); fCompressionMF->StringWidth(fCompressionMF->Label()) + 7);
@@ -201,7 +201,7 @@ TIFFView::Draw(BRect area)
xbold = fh.descent + 1; xbold = fh.descent + 1;
ybold = fh.ascent + fh.descent * 2 + fh.leading; ybold = fh.ascent + fh.descent * 2 + fh.leading;
char title[] = "TIFF Image Translator"; char title[] = "TIFF image translator";
DrawString(title, BPoint(xbold, ybold)); DrawString(title, BPoint(xbold, ybold));
SetFont(be_plain_font); SetFont(be_plain_font);
@@ -219,7 +219,7 @@ TIFFView::Draw(BRect area)
DrawString(detail, BPoint(xbold, yplain + ybold)); DrawString(detail, BPoint(xbold, yplain + ybold));
int32 lineno = 6; int32 lineno = 6;
DrawString("TIFF Library:", BPoint(xbold, yplain * lineno + ybold)); DrawString("TIFF library:", BPoint(xbold, yplain * lineno + ybold));
lineno += 2; lineno += 2;
char libtiff[] = TIFFLIB_VERSION_STR; char libtiff[] = TIFFLIB_VERSION_STR;
@@ -1,5 +1,5 @@
/* /*
* Copyright 2006, Haiku. All rights reserved. * Copyright 2006-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Authors: * Authors:
@@ -81,7 +81,7 @@ make_nth_translator(int32 n, image_id you, uint32 flags, ...)
WonderBrushTranslator::WonderBrushTranslator() WonderBrushTranslator::WonderBrushTranslator()
: BaseTranslator("WonderBrush Images", "WonderBrush image translator", : BaseTranslator("WonderBrush images", "WonderBrush image translator",
WBI_TRANSLATOR_VERSION, WBI_TRANSLATOR_VERSION,
gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), gInputFormats, sizeof(gInputFormats) / sizeof(translation_format),
gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format),
@@ -1,5 +1,5 @@
/* /*
* Copyright 2006, Haiku. All rights reserved. * Copyright 2006-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Authors: * Authors:
@@ -129,7 +129,7 @@ WonderBrushView::Draw(BRect area)
BPoint offset(xbold, ybold); BPoint offset(xbold, ybold);
const char* text = "WonderBrush Image Translator"; const char* text = "WonderBrush image translator";
DrawString(text, offset); DrawString(text, offset);
SetFont(be_plain_font); SetFont(be_plain_font);