Localized Printers preferences application.
Added German translation. Feel free to improve it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35631 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
1 german application/x-vnd.Be-PRNT 403433619
|
||||||
|
Add printer AddPrinterDialog Drucker anlegen
|
||||||
|
Printer name: AddPrinterDialog Druckername:
|
||||||
|
<pick one> AddPrinterDialog <auswählen>
|
||||||
|
Printer type: AddPrinterDialog Druckertyp:
|
||||||
|
Connected to: AddPrinterDialog Verbunden mit:
|
||||||
|
Add AddPrinterDialog Hinzufügen
|
||||||
|
Cancel AddPrinterDialog Abbrechen
|
||||||
|
page JobListView Seite
|
||||||
|
pages JobListView Seiten
|
||||||
|
%.2f KB JobListView %.2f KB
|
||||||
|
Waiting JobListView Warten
|
||||||
|
Processing JobListView In Bearbeitung
|
||||||
|
Failed JobListView Fehlgeschlagen
|
||||||
|
Completed JobListView Abgeschlossen
|
||||||
|
Unknown status JobListView Unbekannter Zustand
|
||||||
|
Default Printer PrinterListView Standard Drucker
|
||||||
|
No pending jobs. PrinterListView Keine ausstehenden Aufträge.
|
||||||
|
1 pending job. PrinterListView Ein ausstehender Auftrag.
|
||||||
|
pending jobs. PrinterListView ausstehende Aufträge.
|
||||||
|
Printers PrintersWindow Drucker
|
||||||
|
Print jobs for PrintersWindow Druckaufträge für
|
||||||
|
Print jobs: No printer selected PrintersWindow Druckaufträge: Kein Drucker ausgewählt
|
||||||
|
Add … PrintersWindow Hinzufügen …
|
||||||
|
Remove PrintersWindow Entfernen
|
||||||
|
Make default PrintersWindow Als Standard
|
||||||
|
Cancel job PrintersWindow Auftrag abbrechen
|
||||||
|
Restart job PrintersWindow Auftrag neustarten
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
#include <Box.h>
|
#include <Box.h>
|
||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
|
#include <Catalog.h>
|
||||||
#include <TextControl.h>
|
#include <TextControl.h>
|
||||||
#include <MenuField.h>
|
#include <MenuField.h>
|
||||||
#include <MenuItem.h>
|
#include <MenuItem.h>
|
||||||
@@ -33,9 +34,14 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
|
#undef TR_CONTEXT
|
||||||
|
#define TR_CONTEXT "AddPrinterDialog"
|
||||||
|
|
||||||
|
|
||||||
AddPrinterDialog::AddPrinterDialog(BWindow *parent)
|
AddPrinterDialog::AddPrinterDialog(BWindow *parent)
|
||||||
:
|
:
|
||||||
Inherited(BRect(78.0, 71.0, 400, 300), "Add printer",
|
Inherited(BRect(78.0, 71.0, 400, 300), TR("Add printer"),
|
||||||
B_TITLED_WINDOW_LOOK, B_MODAL_APP_WINDOW_FEEL,
|
B_TITLED_WINDOW_LOOK, B_MODAL_APP_WINDOW_FEEL,
|
||||||
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS),
|
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS),
|
||||||
fPrintersPrefletMessenger(parent)
|
fPrintersPrefletMessenger(parent)
|
||||||
@@ -171,32 +177,32 @@ void
|
|||||||
AddPrinterDialog::BuildGUI(int stage)
|
AddPrinterDialog::BuildGUI(int stage)
|
||||||
{
|
{
|
||||||
// add a "printer name" input field
|
// add a "printer name" input field
|
||||||
fName = new BTextControl("printer_name", "Printer name:", B_EMPTY_STRING,
|
fName = new BTextControl("printer_name", TR("Printer name:"), B_EMPTY_STRING,
|
||||||
NULL);
|
NULL);
|
||||||
fName->SetFont(be_bold_font);
|
fName->SetFont(be_bold_font);
|
||||||
fName->SetAlignment(B_ALIGN_RIGHT, B_ALIGN_LEFT);
|
fName->SetAlignment(B_ALIGN_RIGHT, B_ALIGN_LEFT);
|
||||||
fName->SetModificationMessage(new BMessage(kNameChangedMsg));
|
fName->SetModificationMessage(new BMessage(kNameChangedMsg));
|
||||||
|
|
||||||
// add a "driver" popup menu field
|
// add a "driver" popup menu field
|
||||||
fPrinter = new BPopUpMenu("<pick one>");
|
fPrinter = new BPopUpMenu(TR("<pick one>"));
|
||||||
BMenuField *printerMenuField = new BMenuField("drivers_list",
|
BMenuField *printerMenuField = new BMenuField("drivers_list",
|
||||||
"Printer type:", fPrinter);
|
TR("Printer type:"), fPrinter);
|
||||||
printerMenuField->SetAlignment(B_ALIGN_RIGHT);
|
printerMenuField->SetAlignment(B_ALIGN_RIGHT);
|
||||||
FillMenu(fPrinter, "Print", kPrinterSelectedMsg);
|
FillMenu(fPrinter, "Print", kPrinterSelectedMsg);
|
||||||
|
|
||||||
// add a "connected to" (aka transports list) menu field
|
// add a "connected to" (aka transports list) menu field
|
||||||
fTransport = new BPopUpMenu("<pick one>");
|
fTransport = new BPopUpMenu(TR("<pick one>"));
|
||||||
BMenuField *transportMenuField = new BMenuField("transports_list",
|
BMenuField *transportMenuField = new BMenuField("transports_list",
|
||||||
"Connected to:", fTransport);
|
TR("Connected to:"), fTransport);
|
||||||
transportMenuField->SetAlignment(B_ALIGN_RIGHT);
|
transportMenuField->SetAlignment(B_ALIGN_RIGHT);
|
||||||
FillTransportMenu(fTransport);
|
FillTransportMenu(fTransport);
|
||||||
|
|
||||||
// add a "OK" button
|
// add a "OK" button
|
||||||
fOk = new BButton(NULL, "Add", new BMessage((uint32)B_OK),
|
fOk = new BButton(NULL, TR("Add"), new BMessage((uint32)B_OK),
|
||||||
B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM);
|
B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM);
|
||||||
|
|
||||||
// add a "Cancel button
|
// add a "Cancel button
|
||||||
BButton *cancel = new BButton(NULL, "Cancel", new BMessage(B_CANCEL));
|
BButton *cancel = new BButton(NULL, TR("Cancel"), new BMessage(B_CANCEL));
|
||||||
|
|
||||||
SetLayout(new BGridLayout());
|
SetLayout(new BGridLayout());
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,21 @@ Preference Printers :
|
|||||||
translation
|
translation
|
||||||
libprintutils.a
|
libprintutils.a
|
||||||
$(TARGET_LIBSUPC++)
|
$(TARGET_LIBSUPC++)
|
||||||
|
liblocale.so
|
||||||
:
|
:
|
||||||
Printers.rdef
|
Printers.rdef
|
||||||
;
|
;
|
||||||
|
|
||||||
|
DoCatalogs Printers :
|
||||||
|
x-vnd.Be-PRNT
|
||||||
|
:
|
||||||
|
AddPrinterDialog.cpp
|
||||||
|
JobListView.cpp
|
||||||
|
PrinterListView.cpp
|
||||||
|
PrintersWindow.cpp
|
||||||
|
:
|
||||||
|
en.catalog
|
||||||
|
:
|
||||||
|
de.catkeys
|
||||||
|
;
|
||||||
|
|
||||||
@@ -38,11 +38,16 @@
|
|||||||
|
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <Bitmap.h>
|
#include <Bitmap.h>
|
||||||
|
#include <Catalog.h>
|
||||||
#include <Messenger.h>
|
#include <Messenger.h>
|
||||||
#include <Mime.h>
|
#include <Mime.h>
|
||||||
#include <Roster.h>
|
#include <Roster.h>
|
||||||
|
|
||||||
|
|
||||||
|
#undef TR_CONTEXT
|
||||||
|
#define TR_CONTEXT "JobListView"
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark -- JobListView
|
// #pragma mark -- JobListView
|
||||||
|
|
||||||
|
|
||||||
@@ -218,41 +223,41 @@ JobItem::Update()
|
|||||||
B_INT32_TYPE, 0, &pages, sizeof(pages)) == sizeof(pages)) {
|
B_INT32_TYPE, 0, &pages, sizeof(pages)) == sizeof(pages)) {
|
||||||
fPages << pages;
|
fPages << pages;
|
||||||
if (pages > 1)
|
if (pages > 1)
|
||||||
fPages << " pages.";
|
fPages << " " << TR("pages") << ".";
|
||||||
else
|
else
|
||||||
fPages << " page.";
|
fPages << " " << TR("page") << ".";
|
||||||
} else {
|
} else {
|
||||||
fPages = "??? pages.";
|
fPages << "??? " << TR("pages") << ".";
|
||||||
}
|
}
|
||||||
|
|
||||||
fSize = "";
|
fSize = "";
|
||||||
off_t size;
|
off_t size;
|
||||||
if (node.GetSize(&size) == B_OK) {
|
if (node.GetSize(&size) == B_OK) {
|
||||||
char buffer[80];
|
char buffer[80];
|
||||||
sprintf(buffer, "%.2f KB", size / 1024.0);
|
sprintf(buffer, TR("%.2f KB"), size / 1024.0);
|
||||||
fSize = buffer;
|
fSize = buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
fStatus = "";
|
fStatus = "";
|
||||||
switch (fJob->Status()) {
|
switch (fJob->Status()) {
|
||||||
case kWaiting:
|
case kWaiting:
|
||||||
fStatus = "Waiting";
|
fStatus = TR("Waiting");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kProcessing:
|
case kProcessing:
|
||||||
fStatus = "Processing";
|
fStatus = TR("Processing");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kFailed:
|
case kFailed:
|
||||||
fStatus = "Failed";
|
fStatus = TR("Failed");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kCompleted:
|
case kCompleted:
|
||||||
fStatus = "Completed";
|
fStatus = TR("Completed");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fStatus = "Unkown status";
|
fStatus = TR("Unknown status");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,12 +36,17 @@
|
|||||||
|
|
||||||
#include <Messenger.h>
|
#include <Messenger.h>
|
||||||
#include <Bitmap.h>
|
#include <Bitmap.h>
|
||||||
|
#include <Catalog.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <Mime.h>
|
#include <Mime.h>
|
||||||
#include <StorageKit.h>
|
#include <StorageKit.h>
|
||||||
|
|
||||||
|
|
||||||
|
#undef TR_CONTEXT
|
||||||
|
#define TR_CONTEXT "PrinterListView"
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark -- PrinterListView
|
// #pragma mark -- PrinterListView
|
||||||
|
|
||||||
|
|
||||||
@@ -372,7 +377,7 @@ void PrinterItem::DrawItem(BView *owner, BRect /*bounds*/, bool complete)
|
|||||||
BPoint driverPt(iconPt + BPoint(x, fntheight * 2.0));
|
BPoint driverPt(iconPt + BPoint(x, fntheight * 2.0));
|
||||||
BPoint defaultPt(iconPt + BPoint(x, fntheight * 3.0));
|
BPoint defaultPt(iconPt + BPoint(x, fntheight * 3.0));
|
||||||
|
|
||||||
float width = owner->StringWidth("No pending jobs.");
|
float width = owner->StringWidth(TR("No pending jobs."));
|
||||||
BPoint pendingPt(bounds.right - width - 8.0, namePt.y);
|
BPoint pendingPt(bounds.right - width - 8.0, namePt.y);
|
||||||
BPoint transportPt(bounds.right - width - 8.0, driverPt.y);
|
BPoint transportPt(bounds.right - width - 8.0, driverPt.y);
|
||||||
BPoint commentPt(bounds.right - width - 8.0, defaultPt.y);
|
BPoint commentPt(bounds.right - width - 8.0, defaultPt.y);
|
||||||
@@ -388,7 +393,7 @@ void PrinterItem::DrawItem(BView *owner, BRect /*bounds*/, bool complete)
|
|||||||
if (sSelectedIcon && sSelectedIcon->IsValid())
|
if (sSelectedIcon && sSelectedIcon->IsValid())
|
||||||
owner->DrawBitmap(sSelectedIcon, iconPt);
|
owner->DrawBitmap(sSelectedIcon, iconPt);
|
||||||
else
|
else
|
||||||
owner->DrawString("Default Printer", defaultPt);
|
owner->DrawString(TR("Default Printer"), defaultPt);
|
||||||
} else {
|
} else {
|
||||||
if (sIcon && sIcon->IsValid())
|
if (sIcon && sIcon->IsValid())
|
||||||
owner->DrawBitmap(sIcon, iconPt);
|
owner->DrawBitmap(sIcon, iconPt);
|
||||||
@@ -401,7 +406,7 @@ void PrinterItem::DrawItem(BView *owner, BRect /*bounds*/, bool complete)
|
|||||||
owner->DrawString(fDriverName.String(), fDriverName.Length(), driverPt);
|
owner->DrawString(fDriverName.String(), fDriverName.Length(), driverPt);
|
||||||
|
|
||||||
// right of item
|
// right of item
|
||||||
owner->DrawString(fPendingJobs.String(), 16, pendingPt);
|
owner->DrawString(fPendingJobs.String(), fPendingJobs.Length(), pendingPt);
|
||||||
owner->DrawString(fTransport.String(), fTransport.Length(), transportPt);
|
owner->DrawString(fTransport.String(), fTransport.Length(), transportPt);
|
||||||
owner->DrawString(fComments.String(), fComments.Length(), commentPt);
|
owner->DrawString(fComments.String(), fComments.Length(), commentPt);
|
||||||
|
|
||||||
@@ -444,12 +449,12 @@ PrinterItem::UpdatePendingJobs()
|
|||||||
if (fFolder) {
|
if (fFolder) {
|
||||||
uint32 pendingJobs = fFolder->CountJobs();
|
uint32 pendingJobs = fFolder->CountJobs();
|
||||||
if (pendingJobs == 1) {
|
if (pendingJobs == 1) {
|
||||||
fPendingJobs = "1 pending job.";
|
fPendingJobs = TR("1 pending job.");
|
||||||
return;
|
return;
|
||||||
} else if (pendingJobs > 1) {
|
} else if (pendingJobs > 1) {
|
||||||
fPendingJobs << pendingJobs << " pending jobs.";
|
fPendingJobs << pendingJobs << TR(" pending jobs.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fPendingJobs = "No pending jobs.";
|
fPendingJobs = TR("No pending jobs.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,8 @@
|
|||||||
#include "Messages.h"
|
#include "Messages.h"
|
||||||
#include "PrintersWindow.h"
|
#include "PrintersWindow.h"
|
||||||
|
|
||||||
|
#include <Locale.h>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
PrintersApp app;
|
PrintersApp app;
|
||||||
@@ -42,6 +44,7 @@ int main()
|
|||||||
PrintersApp::PrintersApp()
|
PrintersApp::PrintersApp()
|
||||||
: Inherited(PRINTERS_SIGNATURE)
|
: Inherited(PRINTERS_SIGNATURE)
|
||||||
{
|
{
|
||||||
|
be_locale->GetAppCatalog(&fCatalog);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintersApp::ReadyToRun()
|
void PrintersApp::ReadyToRun()
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
class PrintersApp;
|
class PrintersApp;
|
||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
|
#include <Catalog.h>
|
||||||
|
|
||||||
#define PRINTERS_SIGNATURE "application/x-vnd.Be-PRNT"
|
#define PRINTERS_SIGNATURE "application/x-vnd.Be-PRNT"
|
||||||
|
|
||||||
@@ -42,6 +43,9 @@ public:
|
|||||||
PrintersApp();
|
PrintersApp();
|
||||||
void ReadyToRun();
|
void ReadyToRun();
|
||||||
void MessageReceived(BMessage* msg);
|
void MessageReceived(BMessage* msg);
|
||||||
|
|
||||||
|
private:
|
||||||
|
BCatalog fCatalog;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ resource app_version {
|
|||||||
internal = 0,
|
internal = 0,
|
||||||
|
|
||||||
short_info = "Printers",
|
short_info = "Printers",
|
||||||
long_info = "Printers ©2001-2009 Haiku"
|
long_info = "Printers ©2001-2010 Haiku"
|
||||||
};
|
};
|
||||||
|
|
||||||
resource vector_icon {
|
resource vector_icon {
|
||||||
|
|||||||
@@ -39,15 +39,20 @@
|
|||||||
// BeOS API
|
// BeOS API
|
||||||
#include <Box.h>
|
#include <Box.h>
|
||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
|
#include <Catalog.h>
|
||||||
#include <ListView.h>
|
#include <ListView.h>
|
||||||
#include <ScrollView.h>
|
#include <ScrollView.h>
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <FindDirectory.h>
|
#include <FindDirectory.h>
|
||||||
|
|
||||||
|
|
||||||
|
#undef TR_CONTEXT
|
||||||
|
#define TR_CONTEXT "PrintersWindow"
|
||||||
|
|
||||||
|
|
||||||
PrintersWindow::PrintersWindow(BRect frame)
|
PrintersWindow::PrintersWindow(BRect frame)
|
||||||
:
|
:
|
||||||
Inherited(BRect(78.0, 71.0, 561.0, 409.0), "Printers", B_TITLED_WINDOW, 0),
|
Inherited(BRect(78.0, 71.0, 561.0, 409.0), TR("Printers"), B_TITLED_WINDOW, 0),
|
||||||
fSelectedPrinter(NULL),
|
fSelectedPrinter(NULL),
|
||||||
fAddingPrinter(false)
|
fAddingPrinter(false)
|
||||||
{
|
{
|
||||||
@@ -77,14 +82,14 @@ PrintersWindow::MessageReceived(BMessage* msg)
|
|||||||
fSelectedPrinter = fPrinterListView->SelectedItem();
|
fSelectedPrinter = fPrinterListView->SelectedItem();
|
||||||
if (fSelectedPrinter)
|
if (fSelectedPrinter)
|
||||||
{
|
{
|
||||||
fJobsBox->SetLabel((BString("Print jobs for ") << fSelectedPrinter->Name()).String());
|
fJobsBox->SetLabel((BString(TR("Print jobs for ")) << fSelectedPrinter->Name()).String());
|
||||||
fMakeDefault->SetEnabled(true);
|
fMakeDefault->SetEnabled(true);
|
||||||
fRemove->SetEnabled(true);
|
fRemove->SetEnabled(true);
|
||||||
fJobListView->SetSpoolFolder(fSelectedPrinter->Folder());
|
fJobListView->SetSpoolFolder(fSelectedPrinter->Folder());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fJobsBox->SetLabel("Print jobs: No printer selected");
|
fJobsBox->SetLabel(TR("Print jobs: No printer selected"));
|
||||||
fMakeDefault->SetEnabled(false);
|
fMakeDefault->SetEnabled(false);
|
||||||
fRemove->SetEnabled(false);
|
fRemove->SetEnabled(false);
|
||||||
fSelectedPrinter = NULL;
|
fSelectedPrinter = NULL;
|
||||||
@@ -178,21 +183,21 @@ PrintersWindow::BuildGUI()
|
|||||||
BBox* printersBox = new BBox(BRect(boxInset, boxInset, r.Width()-boxInset, (r.Height()/2) - (boxInset/2)),
|
BBox* printersBox = new BBox(BRect(boxInset, boxInset, r.Width()-boxInset, (r.Height()/2) - (boxInset/2)),
|
||||||
"printersBox", B_FOLLOW_ALL);
|
"printersBox", B_FOLLOW_ALL);
|
||||||
printersBox->SetFont(be_bold_font);
|
printersBox->SetFont(be_bold_font);
|
||||||
printersBox->SetLabel("Printers:");
|
printersBox->SetLabel(TR("Printers"));
|
||||||
backdrop->AddChild(printersBox);
|
backdrop->AddChild(printersBox);
|
||||||
|
|
||||||
// Width of largest button
|
// Width of largest button
|
||||||
float maxWidth = 0;
|
float maxWidth = 0;
|
||||||
|
|
||||||
// Add Button
|
// Add Button
|
||||||
BButton* addButton = new BButton(BRect(5,5,5,5), "add", "Add " B_UTF8_ELLIPSIS, new BMessage(kMsgAddPrinter), B_FOLLOW_RIGHT);
|
BButton* addButton = new BButton(BRect(5,5,5,5), "add", TR("Add …"), new BMessage(kMsgAddPrinter), B_FOLLOW_RIGHT);
|
||||||
printersBox->AddChild(addButton);
|
printersBox->AddChild(addButton);
|
||||||
addButton->ResizeToPreferred();
|
addButton->ResizeToPreferred();
|
||||||
|
|
||||||
maxWidth = addButton->Bounds().Width();
|
maxWidth = addButton->Bounds().Width();
|
||||||
|
|
||||||
// Remove button
|
// Remove button
|
||||||
fRemove = new BButton(BRect(5,30,5,30), "remove", "Remove", new BMessage(kMsgRemovePrinter), B_FOLLOW_RIGHT);
|
fRemove = new BButton(BRect(5,30,5,30), "remove", TR("Remove"), new BMessage(kMsgRemovePrinter), B_FOLLOW_RIGHT);
|
||||||
printersBox->AddChild(fRemove);
|
printersBox->AddChild(fRemove);
|
||||||
fRemove->ResizeToPreferred();
|
fRemove->ResizeToPreferred();
|
||||||
|
|
||||||
@@ -200,7 +205,7 @@ PrintersWindow::BuildGUI()
|
|||||||
maxWidth = fRemove->Bounds().Width();
|
maxWidth = fRemove->Bounds().Width();
|
||||||
|
|
||||||
// Make Default button
|
// Make Default button
|
||||||
fMakeDefault = new BButton(BRect(5,60,5,60), "default", "Make default", new BMessage(kMsgMakeDefaultPrinter), B_FOLLOW_RIGHT);
|
fMakeDefault = new BButton(BRect(5,60,5,60), "default", TR("Make default"), new BMessage(kMsgMakeDefaultPrinter), B_FOLLOW_RIGHT);
|
||||||
printersBox->AddChild(fMakeDefault);
|
printersBox->AddChild(fMakeDefault);
|
||||||
fMakeDefault->ResizeToPreferred();
|
fMakeDefault->ResizeToPreferred();
|
||||||
|
|
||||||
@@ -236,11 +241,11 @@ PrintersWindow::BuildGUI()
|
|||||||
fJobsBox = new BBox(BRect(boxInset, (r.Height()/2)+(boxInset/2), Bounds().Width()-10, Bounds().Height() - boxInset),
|
fJobsBox = new BBox(BRect(boxInset, (r.Height()/2)+(boxInset/2), Bounds().Width()-10, Bounds().Height() - boxInset),
|
||||||
"jobsBox", B_FOLLOW_LEFT_RIGHT+B_FOLLOW_BOTTOM);
|
"jobsBox", B_FOLLOW_LEFT_RIGHT+B_FOLLOW_BOTTOM);
|
||||||
fJobsBox->SetFont(be_bold_font);
|
fJobsBox->SetFont(be_bold_font);
|
||||||
fJobsBox->SetLabel("Print Jobs: No printer selected");
|
fJobsBox->SetLabel(TR("Print jobs: No printer selected"));
|
||||||
backdrop->AddChild(fJobsBox);
|
backdrop->AddChild(fJobsBox);
|
||||||
|
|
||||||
// Cancel Job Button
|
// Cancel Job Button
|
||||||
BButton* cancelButton = new BButton(BRect(5,5,5,5), "cancel", "Cancel job", new BMessage(kMsgCancelJob), B_FOLLOW_RIGHT+B_FOLLOW_TOP);
|
BButton* cancelButton = new BButton(BRect(5,5,5,5), "cancel", TR("Cancel job"), new BMessage(kMsgCancelJob), B_FOLLOW_RIGHT+B_FOLLOW_TOP);
|
||||||
fJobsBox->AddChild(cancelButton);
|
fJobsBox->AddChild(cancelButton);
|
||||||
cancelButton->ResizeToPreferred();
|
cancelButton->ResizeToPreferred();
|
||||||
fCancel = cancelButton;
|
fCancel = cancelButton;
|
||||||
@@ -248,7 +253,7 @@ PrintersWindow::BuildGUI()
|
|||||||
maxWidth = cancelButton->Bounds().Width();
|
maxWidth = cancelButton->Bounds().Width();
|
||||||
|
|
||||||
// Restart Job button
|
// Restart Job button
|
||||||
BButton* restartButton = new BButton(BRect(5,30,5,30), "restart", "Restart job", new BMessage(kMsgRestartJob), B_FOLLOW_RIGHT+B_FOLLOW_TOP);
|
BButton* restartButton = new BButton(BRect(5,30,5,30), "restart", TR("Restart job"), new BMessage(kMsgRestartJob), B_FOLLOW_RIGHT+B_FOLLOW_TOP);
|
||||||
fJobsBox->AddChild(restartButton);
|
fJobsBox->AddChild(restartButton);
|
||||||
restartButton->ResizeToPreferred();
|
restartButton->ResizeToPreferred();
|
||||||
fRestart = restartButton;
|
fRestart = restartButton;
|
||||||
|
|||||||
Reference in New Issue
Block a user