Ticket #7275: shortcuts-about-update.patch
File shortcuts-about-update.patch, 2.3 KB (added by , 13 years ago) |
---|
-
src/preferences/shortcuts/ShortcutsApp.cpp
12 12 13 13 #include <Alert.h> 14 14 #include <Catalog.h> 15 #include < Locale.h>15 #include <TextView.h> 16 16 17 17 #include "ShortcutsWindow.h" 18 18 … … 46 46 void 47 47 ShortcutsApp::AboutRequested() 48 48 { 49 BAlert* alert = new BAlert(B_TRANSLATE("About Shortcuts"), 50 B_TRANSLATE("Shortcuts\n\n" 51 "Based on SpicyKeys for BeOS made by Jeremy Friesner."), 52 B_TRANSLATE("OK")); 49 BString aboutText(B_TRANSLATE("Shortcuts")); 50 int32 titleLength = aboutText.Length(); 51 aboutText << "\n\n"; 52 aboutText << B_TRANSLATE("Based on SpicyKeys for BeOS made by Jeremy " 53 "Friesner.\n"); 54 BAlert* alert = new BAlert(B_TRANSLATE("About Shortcuts"), 55 aboutText.String(), B_TRANSLATE("OK")); 56 BTextView* view = alert->TextView(); 57 BFont font; 58 59 view->SetStylable(true); 60 61 view->GetFont(&font); 62 font.SetSize(18); 63 font.SetFace(B_BOLD_FACE); 64 view->SetFontAndColor(0, titleLength, &font); 53 65 alert->Go(); 54 66 } 55 67 -
src/preferences/shortcuts/main.cpp
7 7 */ 8 8 9 9 10 #include <Catalog.h>11 #include <Locale.h>12 13 10 #include "KeyInfos.h" 14 11 #include "ShortcutsApp.h" 15 12 -
src/preferences/shortcuts/ShortcutsWindow.cpp
20 20 #include <File.h> 21 21 #include <FindDirectory.h> 22 22 #include <Input.h> 23 #include <Locale.h>24 23 #include <Menu.h> 25 24 #include <MenuBar.h> 26 25 #include <MenuItem.h> -
src/preferences/shortcuts/ShortcutsSpec.cpp
15 15 #include <Beep.h> 16 16 #include <Catalog.h> 17 17 #include <Directory.h> 18 #include <Locale.h>19 18 #include <NodeInfo.h> 20 19 #include <Path.h> 21 20 #include <Region.h>