Changeset View
Changeset View
Standalone View
Standalone View
app/kookaview.cpp
Show First 20 Lines • Show All 483 Lines • ▼ Show 20 Line(s) | 479 | QString msg = xi18nc("@info", | |||
---|---|---|---|---|---|
484 | "<nl/><nl/>" | 484 | "<nl/><nl/>" | ||
485 | "Trying to use scanner device: <icode>%3</icode><nl/>" | 485 | "Trying to use scanner device: <icode>%3</icode><nl/>" | ||
486 | "libkookascan reported error: <emphasis>%2</emphasis><nl/>" | 486 | "libkookascan reported error: <emphasis>%2</emphasis><nl/>" | ||
487 | "SANE reported error: <emphasis>%1</emphasis>", | 487 | "SANE reported error: <emphasis>%1</emphasis>", | ||
488 | mScanDevice->lastSaneErrorMessage(), | 488 | mScanDevice->lastSaneErrorMessage(), | ||
489 | KScanDevice::statusMessage(stat), | 489 | KScanDevice::statusMessage(stat), | ||
490 | selDevice.constData()); | 490 | selDevice.constData()); | ||
491 | 491 | | |||
492 | int tryAgain = KMessageBox::warningContinueCancel(mMainWindow, msg, QString::null, | 492 | int tryAgain = KMessageBox::warningContinueCancel(mMainWindow, msg, QString(), | ||
493 | KGuiItem("Retry")); | 493 | KGuiItem("Retry")); | ||
494 | if (tryAgain == KMessageBox::Cancel) { | 494 | if (tryAgain == KMessageBox::Cancel) { | ||
495 | break; | 495 | break; | ||
496 | } | 496 | } | ||
497 | } | 497 | } | ||
498 | } | 498 | } | ||
499 | 499 | | |||
500 | if (haveConnection) { // scanner connected OK | 500 | if (haveConnection) { // scanner connected OK | ||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 556 | xi18nc("@info", | |||
558 | "<nl/><nl/>" | 558 | "<nl/><nl/>" | ||
559 | "If your scanner is a type that can be auto-detected by SANE, " | 559 | "If your scanner is a type that can be auto-detected by SANE, " | ||
560 | "check that it is connected, switched on and configured correctly." | 560 | "check that it is connected, switched on and configured correctly." | ||
561 | "<nl/><nl/>" | 561 | "<nl/><nl/>" | ||
562 | "If the scanner cannot be auto-detected by SANE (this includes some network scanners), " | 562 | "If the scanner cannot be auto-detected by SANE (this includes some network scanners), " | ||
563 | "you need to specify the device to use. " | 563 | "you need to specify the device to use. " | ||
564 | "Use the <interface>Add Scan Device</interface> option to enter the backend name and parameters, " | 564 | "Use the <interface>Add Scan Device</interface> option to enter the backend name and parameters, " | ||
565 | "or see that dialog for more information."), | 565 | "or see that dialog for more information."), | ||
566 | QString::null, | 566 | QString(), | ||
567 | KGuiItem(i18n("Add Scan Device..."))) != KMessageBox::Continue) | 567 | KGuiItem(i18n("Add Scan Device..."))) != KMessageBox::Continue) | ||
568 | { | 568 | { | ||
569 | return (""); | 569 | return (""); | ||
570 | } | 570 | } | ||
571 | 571 | | |||
572 | slotAddDevice(); | 572 | slotAddDevice(); | ||
573 | backends = ScanDevices::self()->allDevices(); // refresh the list | 573 | backends = ScanDevices::self()->allDevices(); // refresh the list | ||
574 | if (backends.count() == 0) { | 574 | if (backends.count() == 0) { | ||
▲ Show 20 Lines • Show All 689 Lines • Show Last 20 Lines |