class KScanDialog


Table of contents
Modules
kio Classes
All Classes
Module kio
Namespace global
Class KScanDialog
Inherits KPageDialog

This is a base class for scanning dialogs. You can derive from this class and implement your own dialog. An implementation is available in kdegraphics/libkscan.

Application developers that wish to add scanning support to their program can use the static method KScanDialog.getScanDialog() to get an instance of the user's preferred scanning dialog.

Typical usage looks like this (e.g. in a slotShowScanDialog() method):

if ( !m_scanDialog ) {
m_scanDialog = KScanDialog.getScanDialog( this );
if ( !m_scanDialog ) // no scanning support installed?
return;

connect( m_scanDialog, SIGNAL( finalImage( const QImage&, int )), SLOT( slotScanned( const QImage&, int ) )); }

if ( m_scanDialog->setup() ) // only if scanner configured/available m_scanDialog->show();

This will create and show a non-modal scanning dialog. Connect to more signals if you like.

If you implement an own scan-dialog, you also have to implement a KScanDialogFactory.

A baseclass and accessor for Scanning Dialogs Author Carsten Pfeiffer



methods