Ticket #5169: case-add-ons.diff
File case-add-ons.diff, 58.8 KB (added by , 14 years ago) |
---|
-
src/add-ons/input_server/methods/pen/RestartInputServer.sh
6 6 tmout=$((30)) 7 7 8 8 touch $tagfile 9 (alert "All is fine " "Ok"; rm $tagfile) &9 (alert "All is fine." "OK"; rm $tagfile) & 10 10 11 11 sleep $tmout 12 12 -
src/add-ons/input_server/methods/pen/PenInputServerMethod.cpp
1 1 /* 2 Copyright 2007 , Francois Revol. All Rights Reserved.2 Copyright 2007-2009, Francois Revol. All Rights Reserved. 3 3 This file may be used under the terms of the Be Sample Code License. 4 4 */ 5 5 … … 51 51 PRINT(("%s\n", __FUNCTION__)); 52 52 #if DEBUG 53 53 //fDebugFile.SetTo("/tmp/PenInputMethodMessages.txt", B_READ_WRITE|B_CREATE_FILE); 54 fDebugAlert = new BAlert("PenInput Debug", "Plip \n\n\n\n\n\n\n\n\n\n\n\n\n", "O k");54 fDebugAlert = new BAlert("PenInput Debug", "Plip \n\n\n\n\n\n\n\n\n\n\n\n\n", "OK"); 55 55 fDebugAlert->SetLook(B_TITLED_WINDOW_LOOK); 56 56 fDebugAlert->TextView()->MakeSelectable(); 57 57 fDebugAlert->TextView()->SelectAll(); -
src/add-ons/input_server/methods/t9/T9InputServerMethod.cpp
1 1 /* 2 Copyright 2005 , Francois Revol. All Rights Reserved.2 Copyright 2005-2009, Francois Revol. All Rights Reserved. 3 3 This file may be used under the terms of the Be Sample Code License. 4 4 */ 5 5 … … 94 94 BMessage *msg = new BMessage('SetM'); 95 95 msg->AddInt32("t9mode", WordMode); 96 96 BMenuItem *item; 97 item = new BMenuItem(_T("Word Mode"), msg);97 item = new BMenuItem(_T("Word mode"), msg); 98 98 item->SetMarked(true); 99 99 fDeskbarMenu->AddItem(item); 100 100 msg = new BMessage('SetM'); 101 101 msg->AddInt32("t9mode", CharMode); 102 item = new BMenuItem(_T("Character Mode"), msg);102 item = new BMenuItem(_T("Character mode"), msg); 103 103 fDeskbarMenu->AddItem(item); 104 104 msg = new BMessage('SetM'); 105 105 msg->AddInt32("t9mode", NumMode); 106 item = new BMenuItem(_T("Numeric Mode"), msg);106 item = new BMenuItem(_T("Numeric mode"), msg); 107 107 fDeskbarMenu->AddItem(item); 108 108 fDeskbarMenu->SetFont(be_plain_font); 109 109 // doesn't seem to work here … … 177 177 s << (long) fDeskbarMenu->FindMarked(); 178 178 s << " - "; 179 179 s << (long) fDeskbarMenu->ItemAt(v); 180 BAlert *a = new BAlert("Plop", s.String(), "O k");180 BAlert *a = new BAlert("Plop", s.String(), "OK"); 181 181 a->Go(NULL); 182 182 }*/ 183 183 break; -
src/add-ons/input_server/methods/t9/DictionaryInputServerMethod.cpp
1 1 /* 2 Copyright 2005 , Francois Revol. All Rights Reserved.2 Copyright 2005-2009, Francois Revol. All Rights Reserved. 3 3 This file may be used under the terms of the Be Sample Code License. 4 4 */ 5 5 … … 94 94 BMessage *msg = new BMessage('SetM'); 95 95 msg->AddInt32("t9mode", WordMode); 96 96 BMenuItem *item; 97 item = new BMenuItem(_T("Word Mode"), msg);97 item = new BMenuItem(_T("Word mode"), msg); 98 98 item->SetMarked(true); 99 99 fDeskbarMenu->AddItem(item); 100 100 msg = new BMessage('SetM'); 101 101 msg->AddInt32("t9mode", CharMode); 102 item = new BMenuItem(_T("Character Mode"), msg);102 item = new BMenuItem(_T("Character mode"), msg); 103 103 fDeskbarMenu->AddItem(item); 104 104 msg = new BMessage('SetM'); 105 105 msg->AddInt32("t9mode", NumMode); 106 item = new BMenuItem(_T("Numeric Mode"), msg);106 item = new BMenuItem(_T("Numeric mode"), msg); 107 107 fDeskbarMenu->AddItem(item); 108 108 fDeskbarMenu->SetFont(be_plain_font); 109 109 // doesn't seem to work here … … 177 177 s << (long) fDeskbarMenu->FindMarked(); 178 178 s << " - "; 179 179 s << (long) fDeskbarMenu->ItemAt(v); 180 BAlert *a = new BAlert("Plop", s.String(), "O k");180 BAlert *a = new BAlert("Plop", s.String(), "OK"); 181 181 a->Go(NULL); 182 182 }*/ 183 183 break; -
src/add-ons/input_server/filters/shortcut_catcher/CommandActuators.cpp
186 186 if (be_roster) { 187 187 status_t err = B_OK; 188 188 BString str; 189 BString str1("Shortcuts Launcher Error");189 BString str1("Shortcuts launcher error"); 190 190 if (fArgc < 1) 191 191 str << "You didn't specify a command for this hotkey."; 192 192 else if ((err = LaunchCommand(fArgv, fArgc)) != B_NO_ERROR) { … … 196 196 } 197 197 198 198 if (fArgc < 1 || err != B_NO_ERROR) 199 (new BAlert(str1.String(), str.String(), "O k"))->Go(NULL);199 (new BAlert(str1.String(), str.String(), "OK"))->Go(NULL); 200 200 } 201 201 } 202 202 … … 1007 1007 { 1008 1008 if (be_roster) { 1009 1009 BString str; 1010 BString str1("Shortcuts MIME Launcher Error");1010 BString str1("Shortcuts MIME launcher error"); 1011 1011 status_t ret = be_roster->Launch(fMimeType.String()); 1012 1012 if ((ret != B_NO_ERROR) && (ret != B_ALREADY_RUNNING)) { 1013 1013 str << "Can't launch handler for "; 1014 str << ", no such MIME type exists. Please check your Shortcuts";1015 str << " settings. Please check your Shortcuts settings.";1016 (new BAlert(str1.String(), str.String(), "O k"))->Go(NULL);1014 str << ", no such MIME type exists. Please check your Shortcuts"; 1015 str << " settings."; 1016 (new BAlert(str1.String(), str.String(), "OK"))->Go(NULL); 1017 1017 } 1018 1018 } 1019 1019 } … … 1688 1688 { 1689 1689 if (be_roster) { 1690 1690 BString str; 1691 BString str1("Shortcuts SendMessage Error");1691 BString str1("Shortcuts SendMessage error"); 1692 1692 if (fSignature.Length() == 0) { 1693 str << "SendMessage: Target App Signature not specified";1694 (new BAlert(str1.String(), str.String(), "O k"))->Go(NULL);1693 str << "SendMessage: Target application signature not specified"; 1694 (new BAlert(str1.String(), str.String(), "OK"))->Go(NULL); 1695 1695 } else { 1696 1696 status_t error = B_OK; 1697 1697 BMessenger msngr(fSignature.String(), -1, &error); -
src/add-ons/tracker/opentargetfolder/opentargetfolder.cpp
1 1 /* 2 * Copyright 2003-200 8, Axel Dörfler, axeld@pinc-software.de.2 * Copyright 2003-2009, Axel Dörfler, axeld@pinc-software.de. 3 3 * Distributed under the terms of the MIT License. 4 4 */ 5 5 … … 40 40 || targetEntry.GetParent(&targetEntry) != B_OK) { 41 41 (new BAlert("Open Target Folder", 42 42 "Cannot open target folder. Maybe this link is broken?", 43 "O k", NULL, NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT))->Go(NULL);43 "OK", NULL, NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT))->Go(NULL); 44 44 continue; 45 45 } 46 46 … … 62 62 (new BAlert("Open Target Folder", 63 63 "This add-on can only be used on symbolic links.\n" 64 64 "It opens the folder of the link target in Tracker.", 65 "O k"))->Go(NULL);65 "OK"))->Go(NULL); 66 66 } 67 67 } 68 68 -
src/add-ons/tracker/iconvader/IconVader.cpp
1 1 /* 2 * Copyright 2006 , Axel Dörfler, axeld@pinc-software.de. All rights reserved.2 * Copyright 2006-2009, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 */ 5 5 … … 17 17 if (view && unlock) 18 18 view->UnlockLooper(); 19 19 BString s(strerror(status)); 20 alert = new BAlert("Error", s.String(), "O k");20 alert = new BAlert("Error", s.String(), "OK"); 21 21 alert->Go(); 22 22 } 23 23 … … 80 80 81 81 82 82 83 alert = new BAlert("Error", "IconVader:\nClick on the icons to get points.\nAvoid symlinks!", "O k");83 alert = new BAlert("Error", "IconVader:\nClick on the icons to get points.\nAvoid symlinks!", "OK"); 84 84 alert->Go(); 85 85 86 86 -
src/add-ons/screen_savers/ifs/IFSSaver.cpp
76 76 77 77 // the additive check box 78 78 fSpeedS = new BSlider(frame, "speed setting", 79 "Morphing Speed:",79 "Morphing speed:", 80 80 new BMessage(MSG_SET_SPEED), 81 81 1, 12, B_BLOCK_THUMB, 82 82 B_FOLLOW_LEFT_RIGHT | B_FOLLOW_BOTTOM); -
src/add-ons/screen_savers/slideshowsaver/SlideShowConfigView.cpp
68 68 // Show Caption checkbox 69 69 pMsg = new BMessage(CHANGE_CAPTION); 70 70 fShowCaption = new BCheckBox(BRect(10, 45, 180, 62), 71 "Show Caption", "Show Caption", pMsg);71 "Show caption", "Show caption", pMsg); 72 72 val = (fSettings->SetGetBool(SAVER_SETTING_CAPTION)) ? 1 : 0; 73 73 fShowCaption->SetValue(val); 74 74 fShowCaption->SetViewColor(ViewColor()); … … 77 77 // Change Border checkbox 78 78 pMsg = new BMessage(CHANGE_BORDER); 79 79 fShowBorder = new BCheckBox(BRect(10, 70, 180, 87), 80 "Show Border", "Show Border", pMsg);80 "Show border", "Show border", pMsg); 81 81 val = (fSettings->SetGetBool(SAVER_SETTING_BORDER)) ? 1 : 0; 82 82 fShowBorder->SetValue(val); 83 83 fShowBorder->SetViewColor(ViewColor()); … … 86 86 // Delay Menu 87 87 // setup PNG interlace options menu 88 88 int32 currentDelay = fSettings->SetGetInt32(SAVER_SETTING_DELAY) / 1000; 89 fDelayMenu = new BPopUpMenu("Delay Menu");89 fDelayMenu = new BPopUpMenu("Delay menu"); 90 90 struct DelayItem { 91 91 const char *name; 92 92 int32 delay; 93 93 }; 94 94 DelayItem items[] = { 95 {"No Delay", 0},95 {"No delay", 0}, 96 96 {"1 second", 1}, 97 97 {"2 seconds", 2}, 98 98 {"3 seconds", 3}, … … 128 128 // Choose Image Folder button 129 129 pMsg = new BMessage(CHOOSE_DIRECTORY); 130 130 fChooseFolder = new BButton(BRect(50, 160, 180, 180), 131 "Choose Folder", "Choose Image Folder" B_UTF8_ELLIPSIS, pMsg);131 "Choose Folder", "Choose image folder" B_UTF8_ELLIPSIS, pMsg); 132 132 AddChild(fChooseFolder); 133 133 134 134 // Setup choose folder file panel … … 317 317 // Draw current folder 318 318 BString strFolder; 319 319 fSettings->GetString(SAVER_SETTING_DIRECTORY, strFolder); 320 strFolder.Prepend("Image Folder: ");320 strFolder.Prepend("Image folder: "); 321 321 DrawString(strFolder.String(), BPoint(10, yplain * 9 + ybold)); 322 322 } -
src/add-ons/screen_savers/spider/SpiderSaver.cpp
1 1 /* 2 * Copyright 2007 , Haiku Inc. All rights reserved.2 * Copyright 2007-2009, Haiku Inc. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 * 5 5 * Authors: … … 353 353 frame.top = 10.0; 354 354 frame.bottom = frame.top + viewHeight; 355 355 frame.OffsetBy(0.0, viewHeight); 356 fQueueNumberS = new BSlider(frame, "queue number", "Max Polygon Count",356 fQueueNumberS = new BSlider(frame, "queue number", "Max. polygon count", 357 357 new BMessage(MSG_QUEUE_NUMBER), 358 358 1, MAX_QUEUE_NUMBER); 359 359 fQueueNumberS->SetHashMarks(B_HASH_MARKS_BOTTOM); … … 361 361 fQueueNumberS->SetValue(queueNumber); 362 362 AddChild(fQueueNumberS); 363 363 frame.OffsetBy(0.0, viewHeight); 364 fPolyNumberS = new BSlider(frame, "poly points", "Max Points per Polygon",364 fPolyNumberS = new BSlider(frame, "poly points", "Max. points per polygon", 365 365 new BMessage(MSG_POLY_NUMBER), 366 366 MIN_POLY_POINTS, MAX_POLY_POINTS); 367 367 fPolyNumberS->SetHashMarks(B_HASH_MARKS_BOTTOM); … … 369 369 fPolyNumberS->SetValue(maxPolyPoints); 370 370 AddChild(fPolyNumberS); 371 371 frame.OffsetBy(0.0, viewHeight); 372 fQueueDepthS = new BSlider(frame, "queue depth", "Trail Depth",372 fQueueDepthS = new BSlider(frame, "queue depth", "Trail depth", 373 373 new BMessage(MSG_QUEUE_DEPTH), 374 374 MIN_QUEUE_DEPTH, MAX_QUEUE_DEPTH); 375 375 fQueueDepthS->SetHashMarks(B_HASH_MARKS_BOTTOM); -
src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp
1 1 /* 2 * Copyright 2007-200 8, Haiku Inc. All Rights Reserved.2 * Copyright 2007-2009, Haiku, Inc. All rights reserved. 3 3 * Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved. 4 4 * 5 5 * Distributed under the terms of the MIT License. … … 85 85 status_t 86 86 POP3Protocol::Open(const char *server, int port, int) 87 87 { 88 runner->ReportProgress(0, 0, MDR_DIALECT_CHOICE("Connecting to POP3 Server...",88 runner->ReportProgress(0, 0, MDR_DIALECT_CHOICE("Connecting to POP3 server...", 89 89 "POP3サーバに接続しています...")); 90 90 91 91 if (port <= 0) { … … 169 169 << settings->FindString("server"); 170 170 if (port != 995) 171 171 error << ":" << port; 172 error << ". (SSL Connection Error)";172 error << ". (SSL connection error)"; 173 173 runner->ShowError(error.String()); 174 174 SSL_CTX_free(fSSLContext); 175 175 #ifndef HAIKU_TARGET_PLATFORM_BEOS … … 765 765 | B_MAIL_PROTOCOL_HAS_FLAVORS 766 766 #endif 767 767 ); 768 view->AddAuthMethod("Plain Text");768 view->AddAuthMethod("Plain text"); 769 769 view->AddAuthMethod("APOP"); 770 770 771 771 #if USE_SSL 772 view->AddFlavor("No Encryption");772 view->AddFlavor("No encryption"); 773 773 view->AddFlavor("SSL"); 774 774 #endif 775 775 -
src/add-ons/mail_daemon/inbound_protocols/imap/imap_config.cpp
1 1 /* 2 * Copyright 2007-200 8, Haiku Inc. All Rights Reserved.2 * Copyright 2007-2009, Haiku, Inc. All rights reserved. 3 3 * Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved. 4 4 * 5 5 * Distributed under the terms of the MIT License. … … 34 34 ) 35 35 { 36 36 #ifdef USE_SSL 37 AddFlavor("No Encryption");37 AddFlavor("No encryption"); 38 38 AddFlavor("SSL"); 39 39 #endif 40 40 … … 53 53 /*frame.top += 10; 54 54 frame.bottom += 10;*/ 55 55 56 BTextControl *folder = new BTextControl(frame,"root","Top Mailbox Folder: ","",NULL);57 folder->SetDivider(be_plain_font->StringWidth("Top Mailbox Folder: "));56 BTextControl *folder = new BTextControl(frame,"root","Top mailbox folder: ","",NULL); 57 folder->SetDivider(be_plain_font->StringWidth("Top mailbox folder: ")); 58 58 59 59 if (archive->HasString("root")) 60 60 folder->SetText(archive->FindString("root")); -
src/add-ons/mail_daemon/outbound_protocols/smtp/smtp.cpp
1 1 /* 2 * Copyright 2007-200 8, Haiku Inc. All Rights Reserved.2 * Copyright 2007-2009, Haiku, Inc. All rights reserved. 3 3 * Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved. 4 4 * 5 5 * Distributed under the terms of the MIT License. … … 257 257 // to the SMTP server first... 258 258 fStatus = POP3Authentification(); 259 259 if (fStatus < B_OK) { 260 error_msg << MDR_DIALECT_CHOICE ("POP3 authenti fication failed. The server said:\n","POP3認証に失敗しました\n") << fLog;260 error_msg << MDR_DIALECT_CHOICE ("POP3 authentication failed. The server said:\n","POP3認証に失敗しました\n") << fLog; 261 261 runner->ShowError(error_msg.String()); 262 262 runner->Stop(true); 263 263 return; … … 423 423 error << "Could not connect to SMTP server " << fSettings->FindString("server"); 424 424 if (port != 465) 425 425 error << ":" << port; 426 error << ". (SSL Connection Error)";426 error << ". (SSL connection error)"; 427 427 runner->ShowError(error.String()); 428 428 SSL_CTX_free(ctx); 429 429 #ifndef HAIKU_TARGET_PLATFORM_BEOS … … 1118 1118 view->AddAuthMethod(MDR_DIALECT_CHOICE ("POP3 before SMTP","送信前に受信する"), false); 1119 1119 1120 1120 BTextControl *control = (BTextControl *)(view->FindView("host")); 1121 control->SetLabel(MDR_DIALECT_CHOICE ("SMTP Server: ","SMTPサーバ: "));1121 control->SetLabel(MDR_DIALECT_CHOICE ("SMTP server: ","SMTPサーバ: ")); 1122 1122 1123 1123 // Reset the dividers after changing one 1124 1124 float widestLabel=0; -
src/add-ons/mail_daemon/inbound_filters/match_header/ConfigView.cpp
1 1 /* RuleFilter's config view - performs action depending on matching a header value 2 2 ** 3 ** Copyright 2001 Dr. Zoidberg Enterprises. All rights reserved. 3 ** Copyright 2001, Dr. Zoidberg Enterprises. All rights reserved. 4 ** Copyright 2009, Haiku, Inc. All rights reserved. 4 5 */ 5 6 6 7 … … 56 57 regex->SetText(settings->FindString("regex")); 57 58 AddChild(regex); 58 59 59 arg = new BFileControl(BRect(5,55,255,80),"arg",NULL,MDR_DIALECT_CHOICE ("this field is based on the Action","ここは動作によって意味が変わります"));60 arg = new BFileControl(BRect(5,55,255,80),"arg",NULL,MDR_DIALECT_CHOICE ("this field is based on the action","ここは動作によって意味が変わります")); 60 61 if (BControl *control = (BControl *)arg->FindView("select_file")) 61 62 control->SetEnabled(false); 62 63 if (settings->HasString("argument")) 63 64 arg->SetText(settings->FindString("argument")); 64 65 65 outbound = new BPopUpMenu(MDR_DIALECT_CHOICE ("<Choose Account>","<アカウントを選択>"));66 outbound = new BPopUpMenu(MDR_DIALECT_CHOICE ("<Choose account>","<アカウントを選択>")); 66 67 BList list; 67 68 GetOutboundMailChains(&list); 68 69 if (settings->HasInt32("do_what")) … … 89 90 if (menu != NULL) 90 91 return; // We switched back from another tab 91 92 92 menu = new BPopUpMenu(MDR_DIALECT_CHOICE ("<Choose Action>","<動作を選択>"));93 menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Move To","移動する"), new BMessage(kMsgActionMoveTo)));94 menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Set Flags To","フラグを指定する"), new BMessage(kMsgActionSetTo)));95 menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Delete Message","削除する"), new BMessage(kMsgActionDelete)));96 menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Reply With","返事を書く"), new BMessage(kMsgActionReplyWith)));97 menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Set As Read","既読にする"), new BMessage(kMsgActionSetRead)));93 menu = new BPopUpMenu(MDR_DIALECT_CHOICE ("<Choose action>","<動作を選択>")); 94 menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Move to","移動する"), new BMessage(kMsgActionMoveTo))); 95 menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Set flags to","フラグを指定する"), new BMessage(kMsgActionSetTo))); 96 menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Delete message","削除する"), new BMessage(kMsgActionDelete))); 97 menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Reply with","返事を書く"), new BMessage(kMsgActionReplyWith))); 98 menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE ("Set as Read","既読にする"), new BMessage(kMsgActionSetRead))); 98 99 menu->SetTargetForItems(this); 99 100 100 101 BMenuField *field = new BMenuField(BRect(5,30,210,50),"do_what",MDR_DIALECT_CHOICE ("Then","ならば"),menu); -
src/add-ons/mail_daemon/inbound_filters/spam_filter/SpamFilter.cpp
486 486 487 487 sprintf (buffer, "Spam >= %05.3f", (double) cutoffRatio); 488 488 if (addMarker) 489 strcat (buffer, ", Mark Subject");489 strcat (buffer, ", Mark subject"); 490 490 if (autoTraining) 491 491 strcat (buffer, ", Self-training"); 492 492 strcat (buffer, "."); -
src/add-ons/mail_daemon/inbound_filters/spam_filter/SpamFilterConfig.cpp
178 178 fAddSpamToSubjectCheckBoxPntr = new BCheckBox ( 179 179 tempRect, 180 180 "AddToSubject", 181 "Add spam rating to start of Subject",181 "Add spam rating to start of subject", 182 182 new BMessage (kAddSpamToSubjectPressed)); 183 183 AddChild (fAddSpamToSubjectCheckBoxPntr); 184 184 fAddSpamToSubjectCheckBoxPntr->ResizeToPreferred (); … … 194 194 fNoWordsMeansSpamCheckBoxPntr = new BCheckBox ( 195 195 tempRect, 196 196 "NoWordsMeansSpam", 197 "or empty E-mail",197 "or empty e-mail", 198 198 new BMessage (kNoWordsMeansSpam)); 199 199 AddChild (fNoWordsMeansSpamCheckBoxPntr); 200 200 fNoWordsMeansSpamCheckBoxPntr->ResizeToPreferred (); … … 250 250 fAutoTrainingCheckBoxPntr = new BCheckBox ( 251 251 tempRect, 252 252 "autoTraining", 253 "Learn from all incoming E-mail",253 "Learn from all incoming e-mail", 254 254 new BMessage (kAutoTrainingPressed)); 255 255 AddChild (fAutoTrainingCheckBoxPntr); 256 256 fAutoTrainingCheckBoxPntr->ResizeToPreferred (); -
src/add-ons/mail_daemon/outbound_filters/fortune/ConfigView.cpp
1 1 /* ConfigView - the configuration view for the Fortune filter 2 2 ** 3 3 ** Copyright 2001 Dr. Zoidberg Enterprises. All rights reserved. 4 ** Copyright 2009, Haiku, Inc. All rights reserved. 4 5 */ 5 6 6 7 … … 27 28 28 29 BRect rect(5,4,250,25); 29 30 rect.bottom = rect.top - 2 + itemHeight; 30 BMailFileConfigView *fview = new BMailFileConfigView(MDR_DIALECT_CHOICE ("Fortune File:","予言ファイル:"),"fortune_file",false,"",B_FILE_NODE);31 BMailFileConfigView *fview = new BMailFileConfigView(MDR_DIALECT_CHOICE ("Fortune file:","予言ファイル:"),"fortune_file",false,"",B_FILE_NODE); 31 32 AddChild(fview); 32 33 33 34 rect.top = rect.bottom + 8; 34 35 rect.bottom = rect.top - 2 + itemHeight; 35 BTextControl * control = new BTextControl(rect,"tag_line",MDR_DIALECT_CHOICE ("Tag Line:","見出し:"),NULL,NULL);36 BTextControl * control = new BTextControl(rect,"tag_line",MDR_DIALECT_CHOICE ("Tag line:","見出し:"),NULL,NULL); 36 37 control->SetDivider(control->StringWidth(control->Label()) + 6); 37 38 AddChild(control); 38 39 … … 47 48 48 49 BString path = archive->FindString("tag_line"); 49 50 if (!archive->HasString("tag_line")) 50 path = "Fortune Cookie Says:\n\n";51 path = "Fortune cookie says:\n\n"; 51 52 52 53 path.Truncate(path.Length() - 2); 53 54 if (BTextControl *control = (BTextControl *)FindView("tag_line")) -
src/add-ons/mail_daemon/system_filters/notifier/ConfigView.cpp
1 1 /* ConfigView - the configuration view for the Notifier filter 2 2 ** 3 3 ** Copyright 2001 Dr. Zoidberg Enterprises. All rights reserved. 4 ** Copyright 2009, Haiku, Inc. All rights reserved. 4 5 */ 5 6 6 7 … … 37 38 MDR_DIALECT_CHOICE ("Beep","音"), 38 39 MDR_DIALECT_CHOICE ("Alert","窓(メール毎)"), 39 40 MDR_DIALECT_CHOICE ("Keyboard LEDs","キーボードLED"), 40 MDR_DIALECT_CHOICE ("Central Alert","窓(一括)"),41 "Central Beep","Log Window"};41 MDR_DIALECT_CHOICE ("Central alert","窓(一括)"), 42 "Central beep","Log window"}; 42 43 for (int32 i = 0,j = 1;i < 6;i++,j *= 2) 43 44 menu->AddItem(new BMenuItem(notifyMethods[i],new BMessage(kMsgNotifyMethod))); 44 45 -
src/add-ons/mail_daemon/system_filters/notifier/filter.cpp
107 107 108 108 text << chainrunner->Chain()->Name() << "より\n" << num_messages << " 通のメッセージが届きました"); 109 109 110 BAlert *alert = new BAlert(MDR_DIALECT_CHOICE ("New Messages","新着メッセージ"), text.String(), "OK", NULL, NULL, B_WIDTH_AS_USUAL);110 BAlert *alert = new BAlert(MDR_DIALECT_CHOICE ("New messages","新着メッセージ"), text.String(), "OK", NULL, NULL, B_WIDTH_AS_USUAL); 111 111 alert->SetFeel(B_NORMAL_WINDOW_FEEL); 112 112 alert->Go(NULL); 113 113 } -
src/add-ons/translators/sgi/SGITranslator.cpp
10 10 // SGI images. 11 11 // 12 12 // 13 // Copyright (c) 2003-200 6 Haiku Project13 // Copyright (c) 2003-2009 Haiku, Inc. All rights reserved. 14 14 // 15 15 // Permission is hereby granted, free of charge, to any person obtaining a 16 16 // copy of this software and associated documentation files (the "Software"), … … 146 146 // Returns: 147 147 // --------------------------------------------------------------- 148 148 SGITranslator::SGITranslator() 149 : BaseTranslator("SGI Images", "SGI image translator",149 : BaseTranslator("SGI images", "SGI image translator", 150 150 SGI_TRANSLATOR_VERSION, 151 151 gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), 152 152 gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), -
src/add-ons/translators/sgi/SGIView.cpp
9 9 // This BView based object displays information about the SGITranslator. 10 10 // 11 11 // 12 // Copyright (c) 2003 OpenBeOS Project 12 // Copyright (c) 2003, OpenBeOS Project 13 // Copyright (c) 2009, Haiku, Inc. 13 14 // 14 15 // Permission is hereby granted, free of charge, to any person obtaining a 15 16 // copy of this software and associated documentation files (the "Software"), … … 99 100 BRect menuFrame = Bounds(); 100 101 menuFrame.bottom = menuFrame.top + menu->Bounds().Height(); 101 102 fCompressionMF = new BMenuField(menuFrame, "compression", 102 "Use Compression:", menu, true/*,103 "Use compression: ", menu, true/*, 103 104 B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP*/); 104 105 if (fCompressionMF->MenuBar()) 105 106 fCompressionMF->MenuBar()->ResizeToPreferred(); … … 271 272 xbold = fh.descent + 1; 272 273 ybold = fh.ascent + fh.descent * 2 + fh.leading; 273 274 274 const char* text = "SGI Image Translator";275 const char* text = "SGI image translator"; 275 276 DrawString(text, BPoint(xbold, ybold)); 276 277 277 278 SetFont(be_plain_font); -
src/add-ons/translators/png/PNGTranslator.cpp
8 8 // PNG images. 9 9 // 10 10 // 11 // Copyright (c) 2003 OpenBeOS Project 11 // Copyright (c) 2003, OpenBeOS Project 12 // Copyright (c) 2009, Haiku, Inc. All rights reserved. 12 13 // 13 14 // Permission is hereby granted, free of charge, to any person obtaining a 14 15 // copy of this software and associated documentation files (the "Software"), … … 178 179 // Returns: 179 180 // --------------------------------------------------------------- 180 181 PNGTranslator::PNGTranslator() 181 : BaseTranslator("PNG Images", "PNG image translator",182 : BaseTranslator("PNG images", "PNG image translator", 182 183 PNG_TRANSLATOR_VERSION, 183 184 gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), 184 185 gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), -
src/add-ons/translators/png/PNGView.cpp
1 1 /* 2 * Copyright 2003-200 6, Haiku, Inc.2 * Copyright 2003-2009, Haiku, Inc. All rights reserved. 3 3 * Distributed under the terms of the MIT license. 4 4 * 5 5 * Authors: … … 34 34 float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; 35 35 36 36 BRect rect(10, 10, 200, 10 + height); 37 BStringView *stringView = new BStringView(rect, "title", "PNG Image Translator");37 BStringView *stringView = new BStringView(rect, "title", "PNG image translator"); 38 38 stringView->SetFont(be_bold_font); 39 39 stringView->ResizeToPreferred(); 40 40 AddChild(stringView); … … 78 78 79 79 rect.OffsetBy(0, stringView->Frame().Height() + 20.0f); 80 80 BMenuField* menuField = new BMenuField(rect, "PNG Interlace Menu", 81 "Interlacing Type:", fInterlaceMenu);81 "Interlacing type:", fInterlaceMenu); 82 82 menuField->SetDivider(menuField->StringWidth(menuField->Label()) + 7.0f); 83 83 menuField->ResizeToPreferred(); 84 84 AddChild(menuField); -
src/add-ons/translators/jpeg/JPEGTranslator.cpp
1 1 /* 2 2 3 3 Copyright (c) 2002-2003, Marcin 'Shard' Konicki 4 Copyright (c) 2009, Haiku, Inc. All rights reserved. 4 5 All rights reserved. 5 6 6 7 Redistribution and use in source and binary forms, with or without … … 50 51 #define B_TRANSLATOR_BITMAP_DESCRIPTION "Be Bitmap Format (JPEGTranslator)" 51 52 52 53 // Translation Kit required globals 53 char translatorName[] = "JPEG Images";54 char translatorName[] = "JPEG images"; 54 55 char translatorInfo[] = 55 56 "©2002-2003, Marcin Konicki\n" 56 57 "©2005-2007, Haiku\n" 57 58 "\n" 58 59 "Based on IJG library © 1991-1998, Thomas G. Lane\n" 59 60 " http://www.ijg.org/files/\n" 60 "with \" Lossless\" encoding support patch by Ken Murchison\n"61 "with \"lossless\" encoding support patch by Ken Murchison\n" 61 62 " http://www.oceana.com/ftp/ljpeg/\n" 62 63 "\n" 63 64 "With some colorspace conversion routines by Magnus Hellman\n" -
src/add-ons/translators/jpeg/JPEGTranslator.h
1 1 /* 2 2 3 3 Copyright (c) 2002-2003, Marcin 'Shard' Konicki 4 Copyright (c) 2009, Haiku, Inc. All rights reserved. 4 5 All rights reserved. 5 6 6 7 Redistribution and use in source and binary forms, with or without … … 71 72 #define VIEW_LABEL_PROGRESSIVE "Use progressive compression" 72 73 #define VIEW_LABEL_OPTIMIZECOLORS "Prevent colors 'washing out'" 73 74 #define VIEW_LABEL_SMALLERFILE "Make file smaller (sligthtly worse quality)" 74 #define VIEW_LABEL_GRAY1ASRGB24 "Write Black&White images as RGB24"75 #define VIEW_LABEL_ALWAYSRGB32 "Read Greyscale images as RGB32"75 #define VIEW_LABEL_GRAY1ASRGB24 "Write black-and-white images as RGB24" 76 #define VIEW_LABEL_ALWAYSRGB32 "Read greyscale images as RGB32" 76 77 #define VIEW_LABEL_PHOTOSHOPCMYK "Use CMYK code with 0 for 100% ink coverage" 77 78 #define VIEW_LABEL_SHOWREADERRORBOX "Show warning messages" 78 79 -
src/add-ons/translators/jpeg2000/JPEG2000Translator.cpp
1 1 /* 2 2 3 3 Copyright (c) 2003, Marcin 'Shard' Konicki 4 Copyright (c) 2009, Haiku, Inc. All rights reserved. 4 5 All rights reserved. 5 6 6 7 Redistribution and use in source and binary forms, with or without … … 48 49 #define B_TRANSLATOR_BITMAP_DESCRIPTION "Be Bitmap Format (JPEG2000Translator)" 49 50 50 51 // Translation Kit required globals 51 char translatorName[] = "JPEG2000 Images";52 char translatorName[] = "JPEG2000 images"; 52 53 char translatorInfo[] = "©2002-2003, Shard\n" 53 54 "©2005-2006, Haiku\n" 54 55 "\n" -
src/add-ons/translators/jpeg2000/JPEG2000Translator.h
1 1 /* 2 2 3 3 Copyright (c) 2003, Marcin 'Shard' Konicki 4 Copyright (c) 2009, Haiku, Inc. All rights reserved. 4 5 All rights reserved. 5 6 6 7 Redistribution and use in source and binary forms, with or without … … 62 63 63 64 // View labels 64 65 #define VIEW_LABEL_QUALITY "Output quality" 65 #define VIEW_LABEL_GRAY1ASRGB24 "Write Black&White images as RGB24"66 #define VIEW_LABEL_GRAY1ASRGB24 "Write black-and-white images as RGB24" 66 67 #define VIEW_LABEL_JPC "Output only codestream (.jpc)" 67 #define VIEW_LABEL_GRAYASRGB32 "Read Greyscale images as RGB32"68 #define VIEW_LABEL_GRAYASRGB32 "Read greyscale images as RGB32" 68 69 69 70 70 71 //! Settings storage structure -
src/add-ons/translators/tiff/TIFFTranslator.cpp
1 1 /* 2 * Copyright 2003-200 7, Haiku, Inc. All Rights Reserved.2 * Copyright 2003-2009, Haiku, Inc. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 * 5 5 * Authors: … … 591 591 592 592 593 593 TIFFTranslator::TIFFTranslator() 594 : BaseTranslator("TIFF Images", "TIFF image translator",594 : BaseTranslator("TIFF images", "TIFF image translator", 595 595 TIFF_TRANSLATOR_VERSION, 596 596 gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), 597 597 gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), -
src/add-ons/translators/tiff/TIFFView.cpp
8 8 // This BView based object displays information about the TIFFTranslator. 9 9 // 10 10 // 11 // Copyright (c) 2003 OpenBeOS Project 11 // Copyright (c) 2003, OpenBeOS Project 12 // Copyright (c) 2009, Haiku, Inc. All rights reserved. 12 13 // 13 14 // Permission is hereby granted, free of charge, to any person obtaining a 14 15 // copy of this software and associated documentation files (the "Software"), … … 201 202 xbold = fh.descent + 1; 202 203 ybold = fh.ascent + fh.descent * 2 + fh.leading; 203 204 204 char title[] = "TIFF Image Translator";205 char title[] = "TIFF image translator"; 205 206 DrawString(title, BPoint(xbold, ybold)); 206 207 207 208 SetFont(be_plain_font); … … 219 220 DrawString(detail, BPoint(xbold, yplain + ybold)); 220 221 221 222 int32 lineno = 6; 222 DrawString("TIFF Library:", BPoint(xbold, yplain * lineno + ybold));223 DrawString("TIFF library:", BPoint(xbold, yplain * lineno + ybold)); 223 224 lineno += 2; 224 225 225 226 char libtiff[] = TIFFLIB_VERSION_STR; -
src/add-ons/translators/raw/ConfigView.cpp
1 1 /* 2 * Copyright 2005-200 7, Axel Dörfler, axeld@pinc-software.de. All rights reserved.2 * Copyright 2005-2009, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 */ 5 5 … … 24 24 float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; 25 25 26 26 BRect rect(10, 10, 200, 10 + height); 27 BStringView *stringView = new BStringView(rect, "title", "RAW Images");27 BStringView *stringView = new BStringView(rect, "title", "RAW images"); 28 28 stringView->SetFont(be_bold_font); 29 29 stringView->ResizeToPreferred(); 30 30 AddChild(stringView); -
src/add-ons/translators/raw/RAWTranslator.cpp
1 1 /* 2 * Copyright 2007-200 8, Axel Dörfler, axeld@pinc-software.de.2 * Copyright 2007-2009, Axel Dörfler, axeld@pinc-software.de. 3 3 * Distributed under the terms of the MIT License. 4 4 */ 5 5 … … 92 92 93 93 94 94 RAWTranslator::RAWTranslator() 95 : BaseTranslator("RAW Images", "RAW Image Translator",95 : BaseTranslator("RAW images", "RAW image translator", 96 96 RAW_TRANSLATOR_VERSION, 97 97 sInputFormats, kNumInputFormats, 98 98 sOutputFormats, kNumOutputFormats, -
src/add-ons/translators/pcx/ConfigView.cpp
1 1 /* 2 * Copyright 2008 , Jérôme Duval, korli@users.berlios.de. All rights reserved.2 * Copyright 2008-2009, Jérôme Duval, korli@users.berlios.de. All rights reserved. 3 3 * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 4 4 * Distributed under the terms of the MIT License. 5 5 */ … … 25 25 float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; 26 26 27 27 BRect rect(10, 10, 200, 10 + height); 28 BStringView *stringView = new BStringView(rect, "title", "PCX Images");28 BStringView *stringView = new BStringView(rect, "title", "PCX images"); 29 29 stringView->SetFont(be_bold_font); 30 30 stringView->ResizeToPreferred(); 31 31 AddChild(stringView); -
src/add-ons/translators/pcx/PCXTranslator.cpp
1 1 /* 2 * Copyright 2008 , Jérôme Duval, korli@users.berlios.de. All rights reserved.2 * Copyright 2008-2009, Jérôme Duval, korli@users.berlios.de. All rights reserved. 3 3 * Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 4 4 * Distributed under the terms of the MIT License. 5 5 */ … … 69 69 70 70 71 71 PCXTranslator::PCXTranslator() 72 : BaseTranslator("PCX Images", "PCX Translator",72 : BaseTranslator("PCX images", "PCX translator", 73 73 PCX_TRANSLATOR_VERSION, 74 74 sInputFormats, kNumInputFormats, 75 75 sOutputFormats, kNumOutputFormats, -
src/add-ons/translators/rtf/ConfigView.cpp
1 1 /* 2 * Copyright 2004-200 6, Axel Dörfler, axeld@pinc-software.de. All rights reserved.2 * Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 */ 5 5 … … 22 22 float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; 23 23 24 24 BRect rect(10, 10, 200, 10 + height); 25 BStringView *stringView = new BStringView(rect, "title", "Rich Text Format (RTF) Files");25 BStringView *stringView = new BStringView(rect, "title", "Rich Text Format (RTF) files"); 26 26 stringView->SetFont(be_bold_font); 27 27 stringView->ResizeToPreferred(); 28 28 AddChild(stringView); -
src/add-ons/translators/rtf/RTFTranslator.cpp
1 1 /* 2 * Copyright 2004-200 5, Axel Dörfler, axeld@pinc-software.de. All rights reserved.2 * Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 */ 5 5 … … 54 54 RTFTranslator::RTFTranslator() 55 55 { 56 56 char info[256]; 57 sprintf(info, "Rich Text Format Translator v%d.%d.%d %s",57 sprintf(info, "Rich Text Format translator v%d.%d.%d %s", 58 58 int(B_TRANSLATION_MAJOR_VERSION(RTF_TRANSLATOR_VERSION)), 59 59 int(B_TRANSLATION_MINOR_VERSION(RTF_TRANSLATOR_VERSION)), 60 60 int(B_TRANSLATION_REVISION_VERSION(RTF_TRANSLATOR_VERSION)), … … 73 73 const char * 74 74 RTFTranslator::TranslatorName() const 75 75 { 76 return "RTF Text Files";76 return "RTF text files"; 77 77 } 78 78 79 79 -
src/add-ons/translators/ppm/PPMTranslator.cpp
1 1 /* 2 2 Copyright 1999, Be Incorporated. All Rights Reserved. 3 Copyright 2009, Haiku, Inc. All rights reserved. 3 4 This file may be used under the terms of the Be Sample Code License. 4 5 */ 5 6 … … 47 48 #define PPM_TRANSLATOR_VERSION 0x100 48 49 49 50 /* These three data items are exported by every translator. */ 50 char translatorName[] = "PPM Images";51 char translatorName[] = "PPM images"; 51 52 char translatorInfo[] = "PPM image translator v1.0.0, " __DATE__; 52 53 int32 translatorVersion = PPM_TRANSLATOR_VERSION; 53 54 // Revision: lowest 4 bits … … 445 446 mMenu->AddItem(new BMenuItem("RGB 5:5:5 16 bits", CSMessage(B_RGB15))); 446 447 mMenu->AddItem(new BMenuItem("RGBA 5:5:5:1 16 bits", CSMessage(B_RGBA15))); 447 448 mMenu->AddItem(new BMenuItem("RGB 5:6:5 16 bits", CSMessage(B_RGB16))); 448 mMenu->AddItem(new BMenuItem("System Palette 8 bits", CSMessage(B_CMAP8)));449 mMenu->AddItem(new BMenuItem("System palette 8 bits", CSMessage(B_CMAP8))); 449 450 mMenu->AddSeparatorItem(); 450 451 mMenu->AddItem(new BMenuItem("Grayscale 8 bits", CSMessage(B_GRAY8))); 451 452 mMenu->AddItem(new BMenuItem("Bitmap 1 bit", CSMessage(B_GRAY1))); … … 458 459 mMenu->AddItem(new BMenuItem("RGB 5:5:5 16 bits big-endian", CSMessage(B_RGB15_BIG))); 459 460 mMenu->AddItem(new BMenuItem("RGBA 5:5:5:1 16 bits big-endian", CSMessage(B_RGBA15_BIG))); 460 461 mMenu->AddItem(new BMenuItem("RGB 5:6:5 16 bits big-endian", CSMessage(B_RGB16))); 461 mField = new BMenuField(BRect(10,110,190,130), "Color Space Field", "Input Color Space", mMenu);462 mField = new BMenuField(BRect(10,110,190,130), "Color Space Field", "Input color space: ", mMenu); 462 463 mField->SetDivider(mField->StringWidth(mField->Label()) + 7); 463 464 mField->SetViewColor(ViewColor()); 464 465 AddChild(mField); … … 491 492 xbold = fh.descent + 1; 492 493 ybold = fh.ascent + fh.descent * 2 + fh.leading; 493 494 494 char title[] = "PPM Image Translator";495 char title[] = "PPM image translator"; 495 496 DrawString(title, BPoint(xbold, ybold)); 496 497 497 498 SetFont(be_plain_font); -
src/add-ons/translators/hvif/HVIFTranslator.cpp
60 60 61 61 62 62 HVIFTranslator::HVIFTranslator() 63 : BaseTranslator("HVIF Icons", "Native Haiku vector icon translator",63 : BaseTranslator("HVIF icons", "Native Haiku vector icon translator", 64 64 HVIF_TRANSLATOR_VERSION, sInputFormats, 65 65 sizeof(sInputFormats) / sizeof(sInputFormats[0]), sOutputFormats, 66 66 sizeof(sOutputFormats) / sizeof(sOutputFormats[0]), -
src/add-ons/translators/hvif/HVIFView.cpp
30 30 31 31 BRect rect(10, 10, 200, 10 + height); 32 32 BStringView *stringView = new BStringView(rect, "title", 33 "Native Haiku Icon Format Translator");33 "Native Haiku icon format translator"); 34 34 stringView->SetFont(be_bold_font); 35 35 stringView->ResizeToPreferred(); 36 36 AddChild(stringView); … … 57 57 58 58 rect.OffsetBy(0, height + 5); 59 59 int32 renderSize = fSettings->SetGetInt32(HVIF_SETTING_RENDER_SIZE); 60 BString label = "Render Size: ";60 BString label = "Render size: "; 61 61 label << renderSize; 62 62 fRenderSize = new BSlider(rect, "renderSize", label.String(), NULL, 1, 32); 63 63 … … 92 92 fSettings->SetGetInt32(HVIF_SETTING_RENDER_SIZE, &value); 93 93 fSettings->SaveSettings(); 94 94 95 BString newLabel = "Render Size: ";95 BString newLabel = "Render size: "; 96 96 newLabel << value; 97 97 fRenderSize->SetLabel(newLabel.String()); 98 98 return; -
src/add-ons/translators/exr/ConfigView.cpp
1 1 /* 2 * Copyright 2008 , Jérôme Duval. All rights reserved.2 * Copyright 2008-2009, Jérôme Duval. All rights reserved. 3 3 * Copyright 2005-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 4 4 * Distributed under the terms of the MIT License. 5 5 */ … … 25 25 float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; 26 26 27 27 BRect rect(10, 10, 200, 10 + height); 28 BStringView *stringView = new BStringView(rect, "title", "EXR Images");28 BStringView *stringView = new BStringView(rect, "title", "EXR images"); 29 29 stringView->SetFont(be_bold_font); 30 30 stringView->ResizeToPreferred(); 31 31 AddChild(stringView); -
src/add-ons/translators/exr/EXRTranslator.cpp
1 1 /* 2 * Copyright 2008 , Jérôme Duval. All rights reserved.2 * Copyright 2008-2009, Jérôme Duval. All rights reserved. 3 3 * Copyright (c) 2004, Industrial Light & Magic, a division of Lucas 4 4 * Digital Ltd. LLC 5 5 * Distributed under the terms of the MIT License. … … 56 56 57 57 58 58 EXRTranslator::EXRTranslator() 59 : BaseTranslator("EXR Images", "EXR Image Translator",59 : BaseTranslator("EXR Images", "EXR image translator", 60 60 EXR_TRANSLATOR_VERSION, 61 61 sInputFormats, kNumInputFormats, 62 62 sOutputFormats, kNumOutputFormats, -
src/add-ons/translators/hpgs/ConfigView.cpp
1 1 /* 2 * Copyright 2007 , Jérôme Duval. All rights reserved.2 * Copyright 2007-2009, Jérôme Duval. All rights reserved. 3 3 * Copyright 2005-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 4 4 * Distributed under the terms of the MIT License. 5 5 */ … … 25 25 float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; 26 26 27 27 BRect rect(10, 10, 200, 10 + height); 28 BStringView *stringView = new BStringView(rect, "title", "HPGS Images");28 BStringView *stringView = new BStringView(rect, "title", "HPGS images"); 29 29 stringView->SetFont(be_bold_font); 30 30 stringView->ResizeToPreferred(); 31 31 AddChild(stringView); -
src/add-ons/translators/hpgs/HPGSTranslator.cpp
1 1 /* 2 * Copyright 2007 , Jérôme Duval. All rights reserved.2 * Copyright 2007-2009, Jérôme Duval. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 */ 5 5 … … 80 80 81 81 82 82 HPGSTranslator::HPGSTranslator() 83 : BaseTranslator("HPGS Images", "HPGS Image Translator",83 : BaseTranslator("HPGS images", "HPGS image translator", 84 84 HPGS_TRANSLATOR_VERSION, 85 85 sInputFormats, kNumInputFormats, 86 86 sOutputFormats, kNumOutputFormats, -
src/add-ons/translators/stxt/STXTTranslator.cpp
1 1 /* 2 * Copyright 2002-200 8, Haiku, Inc. All Rights Reserved.2 * Copyright 2002-2009, Haiku, Inc. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 * 5 5 * Authors: … … 1329 1329 1330 1330 1331 1331 STXTTranslator::STXTTranslator() 1332 : BaseTranslator("StyledEdit Files", "StyledEdit files translator",1332 : BaseTranslator("StyledEdit files", "StyledEdit files translator", 1333 1333 STXT_TRANSLATOR_VERSION, 1334 1334 gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), 1335 1335 gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), -
src/add-ons/translators/stxt/STXTView.cpp
1 1 /* 2 * Copyright 2002-200 6, Haiku, Inc.2 * Copyright 2002-2009, Haiku, Inc. All rights reserved. 3 3 * Distributed under the terms of the MIT license. 4 4 * 5 5 * Authors: … … 30 30 float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; 31 31 32 32 BRect rect(10, 10, 200, 10 + height); 33 BStringView *stringView = new BStringView(rect, "title", "StyledEdit Files Translator");33 BStringView *stringView = new BStringView(rect, "title", "StyledEdit files translator"); 34 34 stringView->SetFont(be_bold_font); 35 35 stringView->ResizeToPreferred(); 36 36 AddChild(stringView); -
src/add-ons/translators/wonderbrush/WonderBrushTranslator.cpp
1 1 /* 2 * Copyright 2006 , Haiku. All rights reserved.2 * Copyright 2006-2009, Haiku, Inc. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 * 5 5 * Authors: … … 81 81 82 82 83 83 WonderBrushTranslator::WonderBrushTranslator() 84 : BaseTranslator("WonderBrush Images", "WonderBrush image translator",84 : BaseTranslator("WonderBrush images", "WonderBrush image translator", 85 85 WBI_TRANSLATOR_VERSION, 86 86 gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), 87 87 gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), -
src/add-ons/translators/wonderbrush/WonderBrushView.cpp
1 1 /* 2 * Copyright 2006 , Haiku. All rights reserved.2 * Copyright 2006-2009, Haiku, Inc. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 * 5 5 * Authors: … … 129 129 130 130 BPoint offset(xbold, ybold); 131 131 132 const char* text = "WonderBrush Image Translator";132 const char* text = "WonderBrush image translator"; 133 133 DrawString(text, offset); 134 134 135 135 SetFont(be_plain_font); -
src/add-ons/translators/gif/GIFView.cpp
68 68 69 69 // menu fields (Palette & Colors) 70 70 fWebSafeMI = new BMenuItem("Websafe", new BMessage(GV_WEB_SAFE), 0, 0); 71 fBeOSSystemMI = new BMenuItem("BeOS System", new BMessage(GV_BEOS_SYSTEM), 0, 0);71 fBeOSSystemMI = new BMenuItem("BeOS system", new BMessage(GV_BEOS_SYSTEM), 0, 0); 72 72 fGreyScaleMI = new BMenuItem("Greyscale", new BMessage(GV_GREYSCALE), 0, 0); 73 73 fOptimalMI = new BMenuItem("Optimal", new BMessage(GV_OPTIMAL), 0, 0); 74 74 fPaletteM = new BPopUpMenu("PalettePopUpMenu", true, true, B_ITEMS_IN_COLUMN); … … 92 92 93 93 r.top = r.bottom + 14; 94 94 r.bottom = r.top + 24; 95 fPaletteMF = new BMenuField(r, "PaletteMenuField", "Palette ",95 fPaletteMF = new BMenuField(r, "PaletteMenuField", "Palette: ", 96 96 fPaletteM, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_NAVIGABLE); 97 97 AddChild(fPaletteMF); 98 98 99 99 r.top = r.bottom + 5; 100 100 r.bottom = r.top + 24; 101 fColorCountMF = new BMenuField(r, "ColorCountMenuField", "Colors ",101 fColorCountMF = new BMenuField(r, "ColorCountMenuField", "Colors: ", 102 102 fColorCountM, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_NAVIGABLE); 103 103 AddChild(fColorCountMF); 104 104 105 105 // align menu fields 106 float maxLabelWidth = ceilf(max_c(be_plain_font->StringWidth("Colors "),107 be_plain_font->StringWidth("Palette ")));106 float maxLabelWidth = ceilf(max_c(be_plain_font->StringWidth("Colors: "), 107 be_plain_font->StringWidth("Palette: "))); 108 108 fPaletteMF->SetDivider(maxLabelWidth + 7); 109 109 fColorCountMF->SetDivider(maxLabelWidth + 7); 110 110 -
src/add-ons/translators/gif/GIFTranslator.cpp
40 40 status_t GetBitmap(BPositionIO *in, BBitmap **out); 41 41 42 42 /* Required data */ 43 char translatorName[] = "GIF Images";43 char translatorName[] = "GIF images"; 44 44 char translatorInfo[] = "GIF image translator v1.4"; 45 45 int32 translatorVersion = 0x140; 46 46 -
src/add-ons/translators/ico/ConfigView.cpp
1 1 /* 2 * Copyright 2005 , Axel Dörfler, axeld@pinc-software.de. All rights reserved.2 * Copyright 2005-2009, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 */ 5 5 … … 24 24 float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; 25 25 26 26 BRect rect(10, 10, 200, 10 + height); 27 BStringView *stringView = new BStringView(rect, "title", "Windows Icon Images");27 BStringView *stringView = new BStringView(rect, "title", "Windows icon images"); 28 28 stringView->SetFont(be_bold_font); 29 29 stringView->ResizeToPreferred(); 30 30 AddChild(stringView); -
src/add-ons/translators/ico/ICOTranslator.cpp
1 1 /* 2 * Copyright 2005-200 6, Axel Dörfler, axeld@pinc-software.de. All rights reserved.2 * Copyright 2005-2009, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 */ 5 5 … … 72 72 73 73 74 74 ICOTranslator::ICOTranslator() 75 : BaseTranslator("Windows Icon Images", "Windows Icon Translator",75 : BaseTranslator("Windows icon images", "Windows icon translator", 76 76 ICO_TRANSLATOR_VERSION, 77 77 sInputFormats, kNumInputFormats, 78 78 sOutputFormats, kNumOutputFormats, -
src/add-ons/translators/tga/TGATranslator.cpp
7 7 // This BTranslator based object is for opening and writing TGA files. 8 8 // 9 9 // 10 // Copyright (c) 2002 Haiku, Inc.10 // Copyright (c) 2002-2009, Haiku, Inc. All rights reserved. 11 11 // 12 12 // Permission is hereby granted, free of charge, to any person obtaining a 13 13 // copy of this software and associated documentation files (the "Software"), … … 131 131 // Returns: 132 132 // --------------------------------------------------------------- 133 133 TGATranslator::TGATranslator() 134 : BaseTranslator("TGA Images", "TGA image translator",134 : BaseTranslator("TGA images", "TGA image translator", 135 135 TGA_TRANSLATOR_VERSION, 136 136 gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), 137 137 gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), -
src/add-ons/translators/tga/TGAView.cpp
7 7 // This BView based object displays information about the TGATranslator. 8 8 // 9 9 // 10 // Copyright (c) 2002 OpenBeOS Project 10 // Copyright (c) 2002, OpenBeOS Project 11 // Copyright (c) 2009, Haiku, Inc. All rights reserved. 11 12 // 12 13 // Permission is hereby granted, free of charge, to any person obtaining a 13 14 // copy of this software and associated documentation files (the "Software"), … … 69 70 70 71 pmsg = new BMessage(CHANGE_RLE); 71 72 fpchkRLE = new BCheckBox(BRect(10, 67, 180, 84), 72 "Save with RLE Compression",73 "Save with RLE Compression", pmsg);73 "Save with RLE compression", 74 "Save with RLE compression", pmsg); 74 75 val = (fSettings->SetGetBool(TGA_SETTING_RLE)) ? 1 : 0; 75 76 fpchkRLE->SetValue(val); 76 77 fpchkRLE->SetViewColor(ViewColor()); … … 181 182 xbold = fh.descent + 1; 182 183 ybold = fh.ascent + fh.descent * 2 + fh.leading; 183 184 184 char title[] = "TGA Image Translator";185 char title[] = "TGA image translator"; 185 186 DrawString(title, BPoint(xbold, ybold)); 186 187 187 188 SetFont(be_plain_font); … … 200 201 /* char copyright[] = "© 2002 Haiku Project"; 201 202 DrawString(copyright, BPoint(xbold, yplain * 2 + ybold)); 202 203 */ 203 char writtenby[] = "Written by the Haiku Translation Kit Team";204 char writtenby[] = "Written by the Haiku translation kit team."; 204 205 DrawString(writtenby, BPoint(xbold, yplain * 7 + ybold)); 205 206 } -
src/add-ons/translators/bmp/BMPTranslator.cpp
1 1 /* 2 * Copyright 2002-200 6, Haiku.2 * Copyright 2002-2009, Haiku, Inc. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 * 5 5 * Authors: … … 116 116 // Returns: 117 117 // --------------------------------------------------------------- 118 118 BMPTranslator::BMPTranslator() 119 : BaseTranslator("BMP Images", "BMP image translator",119 : BaseTranslator("BMP images", "BMP image translator", 120 120 BMP_TRANSLATOR_VERSION, 121 121 gInputFormats, sizeof(gInputFormats) / sizeof(translation_format), 122 122 gOutputFormats, sizeof(gOutputFormats) / sizeof(translation_format), -
src/add-ons/translators/bmp/BMPView.cpp
1 1 /* 2 * Copyright 2002-200 6, Haiku, Inc.2 * Copyright 2002-2009, Haiku, Inc. All rights reserved. 3 3 * Distributed under the terms of the MIT license. 4 4 * 5 5 * Authors: … … 30 30 float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; 31 31 32 32 BRect rect(10, 10, 200, 10 + height); 33 BStringView *stringView = new BStringView(rect, "title", "BMP Image Translator");33 BStringView *stringView = new BStringView(rect, "title", "BMP image translator"); 34 34 stringView->SetFont(be_bold_font); 35 35 stringView->ResizeToPreferred(); 36 36 AddChild(stringView);