Ticket #5169: case-print-drivers.diff
File case-print-drivers.diff, 7.0 KB (added by , 14 years ago) |
---|
-
src/add-ons/print/drivers/preview/PageSetupWindow.cpp
1 1 /* 2 * Copyright 2003-200 8, Haiku. 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: … … 90 90 91 91 92 92 PageSetupWindow::PageSetupWindow(BMessage *msg, const char *printerName) 93 : BlockingWindow(BRect(0,0,400,220), "Page Setup", B_TITLED_WINDOW_LOOK,93 : BlockingWindow(BRect(0,0,400,220), "Page setup", B_TITLED_WINDOW_LOOK, 94 94 B_MODAL_APP_WINDOW_FEEL, B_NOT_RESIZABLE | B_NOT_MINIMIZABLE | 95 95 B_NOT_ZOOMABLE), 96 96 fSetupMsg(msg), 97 97 fPrinterDirName(printerName) 98 98 { 99 99 if (printerName) 100 SetTitle(BString(printerName).Append(" Page Setup").String());100 SetTitle(BString(printerName).Append(" Page setup").String()); 101 101 102 102 // load orientation 103 103 if (fSetupMsg->FindInt32("orientation", &fCurrentOrientation) != B_OK) … … 147 147 panel->AddChild(fMarginView); 148 148 fMarginView->SetResizingMode(B_FOLLOW_NONE); 149 149 150 BPopUpMenu* m = new BPopUpMenu("Page Size");150 BPopUpMenu* m = new BPopUpMenu("Page size"); 151 151 m->SetRadioMode(true); 152 152 153 153 bounds.OffsetBy(bounds.Width() + 10.0, 5.0); 154 154 float divider = be_plain_font->StringWidth("Orientation: "); 155 fPageSizeMenu = new BMenuField(bounds, "page_size", "Page Size:", m);155 fPageSizeMenu = new BMenuField(bounds, "page_size", "Page size:", m); 156 156 panel->AddChild(fPageSizeMenu); 157 157 fPageSizeMenu->ResizeToPreferred(); 158 158 fPageSizeMenu->SetDivider(divider); -
src/add-ons/print/drivers/pcl5/PCL5Entry.cpp
1 1 /* 2 2 * PCL5Entry.cpp 3 3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved. 4 * Copyright 2003 Michael Pfeiffer.4 * Copyright 2003-2009 Michael Pfeiffer. 5 5 */ 6 6 7 7 #include "PCL5.h" … … 20 20 21 21 const char* GetDriverName() const 22 22 { 23 return "PCL5 Compatible";23 return "PCL5 compatible"; 24 24 } 25 25 26 26 const char* GetVersion() const -
src/add-ons/print/drivers/pcl6/PCL6Entry.cpp
1 1 /* 2 2 * PCL6Entry.cpp 3 3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved. 4 * Copyright 2003 Michael Pfeiffer.4 * Copyright 2003-2009 Michael Pfeiffer. 5 5 */ 6 6 7 7 #include "PCL6.h" … … 20 20 21 21 const char* GetDriverName() const 22 22 { 23 return "PCL6 Compatible";23 return "PCL6 compatible"; 24 24 } 25 25 26 26 const char* GetVersion() const -
src/add-ons/print/drivers/canon_lips/lips3/Lips3Entry.cpp
1 1 /* 2 2 * Lips3Entry.cpp 3 3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved. 4 * Copyright 2009, Haiku, Inc. All rights reserved. 4 5 */ 5 6 6 7 #include "Lips3.h" … … 19 20 20 21 const char* GetDriverName() const 21 22 { 22 return "Canon LIPS3 Compatible";23 return "Canon LIPS3 compatible"; 23 24 } 24 25 25 26 const char* GetVersion() const -
src/add-ons/print/drivers/canon_lips/lips4/Lips4Entry.cpp
1 1 /* 2 2 * Lips4Entry.cpp 3 3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved. 4 * Copyright 2009, Haiku, Inc. All rights reserved. 4 5 */ 5 6 6 7 #include "Lips4.h" … … 19 20 20 21 const char* GetDriverName() const 21 22 { 22 return "Canon LIPS4 Compatible";23 return "Canon LIPS4 compatible"; 23 24 } 24 25 25 26 const char* GetVersion() const -
src/add-ons/print/drivers/pdf/source/PageSetupWindow.cpp
4 4 5 5 Version: 12.19.2000 6 6 7 Copyright (c) 2001 OpenBeOS. 7 Copyright (c) 2001, OpenBeOS. 8 Copyright (c) 2009, Haiku, Inc. All rights reserved. 8 9 9 10 Authors: 10 11 Philippe Houdoin … … 92 93 93 94 94 95 PageSetupWindow::PageSetupWindow(BMessage *msg, const char *printerName) 95 : HWindow(BRect(0,0,400,220), "Page Setup", B_TITLED_WINDOW_LOOK,96 : HWindow(BRect(0,0,400,220), "Page setup", B_TITLED_WINDOW_LOOK, 96 97 B_MODAL_APP_WINDOW_FEEL, B_NOT_RESIZABLE | B_NOT_MINIMIZABLE | 97 98 B_NOT_ZOOMABLE), 98 99 fResult(B_ERROR), … … 103 104 fExitSem = create_sem(0, "PageSetup"); 104 105 105 106 if (printerName) 106 SetTitle(BString(printerName).Append(" Page Setup").String());107 SetTitle(BString(printerName).Append(" Page setup").String()); 107 108 108 109 if (fSetupMsg->FindInt32("orientation", &fCurrentOrientation) != B_OK) 109 110 fCurrentOrientation = PrinterDriver::PORTRAIT_ORIENTATION; … … 165 166 panel->AddChild(fMarginView); 166 167 fMarginView->SetResizingMode(B_FOLLOW_NONE); 167 168 168 BPopUpMenu* m = new BPopUpMenu("Page Size");169 BPopUpMenu* m = new BPopUpMenu("Page size"); 169 170 m->SetRadioMode(true); 170 171 171 172 bounds.OffsetBy(bounds.Width() + 10.0, 5.0); 172 float divider = be_plain_font->StringWidth("PDF Compatibility: ");173 fPageSizeMenu = new BMenuField(bounds, "page_size", "Page Size:", m);173 float divider = be_plain_font->StringWidth("PDF compatibility: "); 174 fPageSizeMenu = new BMenuField(bounds, "page_size", "Page size:", m); 174 175 panel->AddChild(fPageSizeMenu); 175 176 fPageSizeMenu->ResizeToPreferred(); 176 177 fPageSizeMenu->SetDivider(divider); … … 207 208 item->SetMarked(true); 208 209 } 209 210 210 m = new BPopUpMenu("PDF Compatibility");211 m = new BPopUpMenu("PDF compatibility"); 211 212 m->SetRadioMode(true); 212 213 213 214 bounds.OffsetBy(0.0, fOrientationMenu->Bounds().Height() + 10.0); 214 215 fPDFCompatibilityMenu = new BMenuField(bounds, "pdf_compatibility", 215 "PDF Compatibility:", m);216 "PDF compatibility:", m); 216 217 panel->AddChild(fPDFCompatibilityMenu); 217 218 fPDFCompatibilityMenu->ResizeToPreferred(); 218 219 fPDFCompatibilityMenu->SetDivider(divider); -
src/add-ons/print/drivers/postscript/PSEntry.cpp
1 1 /* 2 2 * PSEntry.cpp 3 3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved. 4 * Copyright 2003 Michael Pfeiffer.4 * Copyright 2003-2009 Michael Pfeiffer. 5 5 */ 6 6 7 7 #include "PS.h" … … 20 20 21 21 const char* GetDriverName() const 22 22 { 23 return "PS Compatible";23 return "PS compatible"; 24 24 } 25 25 26 26 const char* GetVersion() const