KSane
ksanewidget.cpp
43 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::scannedImageReady, d, &KSaneWidgetPrivate::imageReady);
44 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::scanFinished, d, &KSaneWidgetPrivate::scanDone);
45 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::userMessage, d, &KSaneWidgetPrivate::alertUser);
46 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::scanProgress, d, &KSaneWidgetPrivate::updateProgress);
47 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::batchModeCountDown, d, &KSaneWidgetPrivate::updateCountDown);
48 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::availableDevices, d, &KSaneWidgetPrivate::signalDevListUpdate);
49 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::buttonPressed, this, &KSaneWidget::buttonPressed);
111 connect(d->m_clearSelBtn, &QToolButton::clicked, d->m_previewViewer, &KSaneViewer::clearSelections);
121 d->m_prevBtn->setToolTip(i18n("Scan Preview Image (%1)", prevShortcut->key().toString(QKeySequence::NativeText)));
127 d->m_scanBtn->setToolTip(i18n("Scan Final Image (%1)", scanShortcut->key().toString(QKeySequence::NativeText)));
227 connect(d->m_ksaneCoreInterface, &KSaneCore::Interface::availableDevices, sel, &KSaneDeviceDialog::updateDevicesList);
228 connect(sel, &KSaneDeviceDialog::requestReloadList, d->m_ksaneCoreInterface, &KSaneCore::Interface::reloadDevicesList);
262 dlg = new KPasswordDialog(this, KPasswordDialog::ShowUsernameLine | KPasswordDialog::ShowKeepPassword);
293 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 availableDevices(const QList< DeviceInformation * > &deviceList)
void scanFinished(KSaneCore::Interface::ScanStatus status, const QString &strStatus)
OpenStatus
void batchModeCountDown(int remainingSeconds)
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:240
bool getOptionValue(const QString &option, QString &value)
This function reads one parameter value into a string.
Definition ksanewidget.cpp:378
void cancelScan()
This method can be used to cancel a scan or prevent an automatic new scan.
Definition ksanewidget.cpp:361
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:324
bool setOptionValue(const QString &option, const QString &value)
This function writes one parameter value into a string.
Definition ksanewidget.cpp:419
QString selectDevice(QWidget *parent=nullptr)
This helper method displays a dialog for selecting a scanner.
Definition ksanewidget.cpp:223
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:372
QString deviceVendor() const
This method returns the vendor name of the currently opened scanner.
Definition ksanewidget.cpp:213
int setOptionValues(const QMap< QString, QString > &options)
This method can be used to write many parameter values at once.
Definition ksanewidget.cpp:392
void startPreviewScan()
This method can be used to start a preview scan.
Definition ksanewidget.cpp:350
void setPreviewResolution(float dpi)
This function is used to set the preferred resolution for scanning the preview.
Definition ksanewidget.cpp:367
QString deviceName() const
This method returns the internal device name of the currently opened scanner.
Definition ksanewidget.cpp:208
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:339
void enableAutoSelect(bool enable)
This function can be used to enable/disable automatic selections on previews.
Definition ksanewidget.cpp:456
float scanAreaHeight()
This method returns the scan area's height in mm.
Definition ksanewidget.cpp:483
void setSelection(QPointF topLeft, QPointF bottomRight)
This method sets the selection according to the given points.
Definition ksanewidget.cpp:505
QString deviceModel() const
This method returns the model of the currently opened scanner.
Definition ksanewidget.cpp:218
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 Mon Nov 18 2024 12:18:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.