KSane
ksanewidget.cpp
43 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::scannedImageReady, this, &KSaneWidget::scannedImageReady);
44 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::scanFinished, d, &KSaneWidgetPrivate::oneFinalScanDone);
45 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::previewScanFinished, d, &KSaneWidgetPrivate::previewScanDone);
46 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::userMessage, d, &KSaneWidgetPrivate::alertUser);
47 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::scanProgress, d, &KSaneWidgetPrivate::updateProgress);
48 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::previewProgress, d, &KSaneWidgetPrivate::updatePreviewProgress);
49 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::batchModeCountDown, d, &KSaneWidgetPrivate::updateCountDown);
50 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::availableDevices, d, &KSaneWidgetPrivate::signalDevListUpdate);
51 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::buttonPressed, this, &KSaneWidget::buttonPressed);
113 connect(d->m_clearSelBtn, &QToolButton::clicked, d->m_previewViewer, &KSaneViewer::clearSelections);
123 d->m_prevBtn->setToolTip(i18n("Scan Preview Image (%1)", prevShortcut->key().toString(QKeySequence::NativeText)));
129 d->m_scanBtn->setToolTip(i18n("Scan Final Image (%1)", scanShortcut->key().toString(QKeySequence::NativeText)));
229 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::availableDevices, sel, &KSaneDeviceDialog::updateDevicesList);
230 connect(sel, &KSaneDeviceDialog::requestReloadList, d->m_ksaneCoreInterface, &KSaneCore::Interface::reloadDevicesList);
264 dlg = new KPasswordDialog(this, KPasswordDialog::ShowUsernameLine | KPasswordDialog::ShowKeepPassword);
295 status = d->m_ksaneCoreInterface->openRestrictedDevice(deviceName, dlg->username(), dlg->password());
void setKeepPassword(bool b)
ShowKeepPassword
ShowUsernameLine
QString password() const
void setUsername(const QString &)
void setPrompt(const QString &prompt)
void setPassword(const QString &password)
bool keepPassword() const
QString username() const
bool reloadDevicesList(DeviceType type=AllDevices)
void scannedImageReady(const QImage &scannedImage)
void previewScanFinished(KSaneCore::Interface::ScanStatus status, const QString &strStatus)
void availableDevices(const QList< DeviceInformation * > &deviceList)
void scanFinished(KSaneCore::Interface::ScanStatus status, const QString &strStatus)
OpenStatus
void batchModeCountDown(int remainingSeconds)
void previewProgress(int percent)
void userMessage(KSaneCore::Interface::ScanStatus status, const QString &strStatus)
void scanProgress(int percent)
void buttonPressed(const QString &optionName, const QString &optionLabel, bool pressed)
bool openDevice(const QString &device_name)
This method opens the specified scanner device and adds the scan options to the KSane widget.
Definition ksanewidget.cpp:242
bool getOptionValue(const QString &option, QString &value)
This function reads one parameter value into a string.
Definition ksanewidget.cpp:380
void cancelScan()
This method can be used to cancel a scan or prevent an automatic new scan.
Definition ksanewidget.cpp:363
void scanDone(int status, const QString &strStatus)
This signal is emitted when the scanning has ended.
bool closeDevice()
This method closes the currently open scanner device.
Definition ksanewidget.cpp:326
bool setOptionValue(const QString &option, const QString &value)
This function writes one parameter value into a string.
Definition ksanewidget.cpp:421
QString selectDevice(QWidget *parent=nullptr)
This helper method displays a dialog for selecting a scanner.
Definition ksanewidget.cpp:225
void getOptionValues(QMap< QString, QString > &options)
This method reads the available parameters and their values and returns them in a QMap (Name,...
Definition ksanewidget.cpp:374
QString deviceVendor() const
This method returns the vendor name of the currently opened scanner.
Definition ksanewidget.cpp:215
int setOptionValues(const QMap< QString, QString > &options)
This method can be used to write many parameter values at once.
Definition ksanewidget.cpp:394
void startPreviewScan()
This method can be used to start a preview scan.
Definition ksanewidget.cpp:352
void scannedImageReady(const QImage &scannedImage)
This signal is emitted when a final scan is ready.
void setPreviewResolution(float dpi)
This function is used to set the preferred resolution for scanning the preview.
Definition ksanewidget.cpp:369
QString deviceName() const
This method returns the internal device name of the currently opened scanner.
Definition ksanewidget.cpp:210
KSaneWidget(QWidget *parent=nullptr)
This constructor initializes the private class variables, but the widget is left empty.
Definition ksanewidget.cpp:38
void startScan()
This method can be used to start a scan (if no GUI is needed).
Definition ksanewidget.cpp:341
void enableAutoSelect(bool enable)
This function can be used to enable/disable automatic selections on previews.
Definition ksanewidget.cpp:458
float scanAreaHeight()
This method returns the scan area's height in mm.
Definition ksanewidget.cpp:485
void setSelection(QPointF topLeft, QPointF bottomRight)
This method sets the selection according to the given points.
Definition ksanewidget.cpp:507
QString deviceModel() const
This method returns the model of the currently opened scanner.
Definition ksanewidget.cpp:220
void buttonPressed(const QString &optionName, const QString &optionLabel, bool pressed)
This Signal is emitted when a hardware button is pressed.
A button which appears on the side of a splitter handle and allows easy collapsing of the widget on t...
Definition splittercollapser.h:26
virtual bool createFolder(const QString &f)
virtual bool hasFolder(const QString &f)
virtual int readMap(const QString &key, QMap< QString, QString > &value)
static const QString LocalWallet()
static Wallet * openWallet(const QString &name, WId w, OpenType ot=Synchronous)
virtual bool setFolder(const QString &f)
virtual int writeMap(const QString &key, const QMap< QString, QString > &value)
Q_SCRIPTABLE CaptureState status()
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
Definition hiderectitem.cpp:12
void clicked(bool checked)
void addStretch(int stretch)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
Accepted
virtual int exec()
NoFrame
QIcon fromTheme(const QString &name)
NativeText
void setContentsMargins(const QMargins &margins)
void clear()
bool empty() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
qreal x() const const
qreal y() const const
void activated()
bool isEmpty() const const
AlignCenter
OtherFocusReason
singleShot
QWidget(QWidget *parent, Qt::WindowFlags f)
void setFocusProxy(QWidget *w)
WId winId() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.