LibreOffice Module extensions (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SaneDlg Class Reference

#include <sanedlg.hxx>

Inheritance diagram for SaneDlg:
[legend]
Collaboration diagram for SaneDlg:
[legend]

Public Member Functions

 SaneDlg (weld::Window *, Sane &, bool)
 
virtual ~SaneDlg () override
 
virtual short run () override
 
void UpdateScanArea (bool)
 
bool getDoScan () const
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 DECL_LINK (ClickBtnHdl, weld::Button &, void)
 
 DECL_LINK (ToggleBtnHdl, weld::Toggleable &, void)
 
 DECL_LINK (SelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (ModifyHdl, weld::Entry &, void)
 
 DECL_LINK (MetricValueModifyHdl, weld::MetricSpinButton &, void)
 
 DECL_LINK (ValueModifyHdl, weld::ComboBox &, void)
 
 DECL_LINK (ReloadSaneOptionsHdl, Sane &, void)
 
 DECL_LINK (OptionsBoxSelectHdl, weld::TreeView &, void)
 
void SaveState ()
 
bool LoadState ()
 
void InitDevices ()
 
void InitFields ()
 
void AcquirePreview ()
 
void DisableOption ()
 
void EstablishBoolOption ()
 
void EstablishStringOption ()
 
void EstablishStringRange ()
 
void EstablishQuantumRange ()
 
void EstablishNumericOption ()
 
void EstablishButtonOption ()
 
bool SetAdjustedNumericalValue (const char *pOption, double fValue, int nElement=0)
 

Private Attributes

weld::WindowmpParent
 
SanemrSane
 
bool mbScanEnabled
 
Link< Sane &, void > maOldLink
 
int mnCurrentOption
 
int mnCurrentElement
 
std::unique_ptr< double[]> mpRange
 
double mfMin
 
double mfMax
 
bool doScan
 
std::unique_ptr< weld::ButtonmxCancelButton
 
std::unique_ptr< weld::ButtonmxDeviceInfoButton
 
std::unique_ptr< weld::ButtonmxPreviewButton
 
std::unique_ptr< weld::ButtonmxScanButton
 
std::unique_ptr< weld::ButtonmxButtonOption
 
std::unique_ptr< weld::LabelmxOptionTitle
 
std::unique_ptr< weld::LabelmxOptionDescTxt
 
std::unique_ptr< weld::LabelmxVectorTxt
 
std::unique_ptr< weld::MetricSpinButtonmxLeftField
 
std::unique_ptr< weld::MetricSpinButtonmxTopField
 
std::unique_ptr< weld::MetricSpinButtonmxRightField
 
std::unique_ptr< weld::MetricSpinButtonmxBottomField
 
std::unique_ptr< weld::ComboBoxmxDeviceBox
 
std::unique_ptr< weld::ComboBoxmxReslBox
 
std::unique_ptr< weld::CheckButtonmxAdvancedBox
 
std::unique_ptr< weld::SpinButtonmxVectorBox
 
std::unique_ptr< weld::ComboBoxmxQuantumRangeBox
 
std::unique_ptr< weld::ComboBoxmxStringRangeBox
 
std::unique_ptr< weld::CheckButtonmxBoolCheckBox
 
std::unique_ptr< weld::EntrymxStringEdit
 
std::unique_ptr< weld::EntrymxNumericEdit
 
std::unique_ptr< weld::TreeViewmxOptionBox
 
std::unique_ptr< ScanPreviewmxPreview
 
std::unique_ptr< weld::CustomWeldmxPreviewWnd
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 28 of file sanedlg.hxx.

Constructor & Destructor Documentation

◆ SaneDlg()

SaneDlg::SaneDlg ( weld::Window pParent,
Sane rSane,
bool  bScanEnabled 
)

◆ ~SaneDlg()

SaneDlg::~SaneDlg ( )
overridevirtual

Definition at line 291 of file sanedlg.cxx.

References maOldLink, mrSane, and Sane::SetReloadOptionsHdl().

Member Function Documentation

◆ AcquirePreview()

void SaneDlg::AcquirePreview ( )
private

◆ DECL_LINK() [1/8]

SaneDlg::DECL_LINK ( ClickBtnHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/8]

SaneDlg::DECL_LINK ( MetricValueModifyHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [3/8]

SaneDlg::DECL_LINK ( ModifyHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [4/8]

SaneDlg::DECL_LINK ( OptionsBoxSelectHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [5/8]

SaneDlg::DECL_LINK ( ReloadSaneOptionsHdl  ,
Sane ,
void   
)
private

◆ DECL_LINK() [6/8]

SaneDlg::DECL_LINK ( SelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [7/8]

SaneDlg::DECL_LINK ( ToggleBtnHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [8/8]

SaneDlg::DECL_LINK ( ValueModifyHdl  ,
weld::ComboBox ,
void   
)
private

◆ DisableOption()

void SaneDlg::DisableOption ( )
private

◆ EstablishBoolOption()

void SaneDlg::EstablishBoolOption ( )
private

◆ EstablishButtonOption()

void SaneDlg::EstablishButtonOption ( )
private

◆ EstablishNumericOption()

void SaneDlg::EstablishNumericOption ( )
private

◆ EstablishQuantumRange()

void SaneDlg::EstablishQuantumRange ( )
private

◆ EstablishStringOption()

void SaneDlg::EstablishStringOption ( )
private

◆ EstablishStringRange()

void SaneDlg::EstablishStringRange ( )
private

◆ getDoScan()

bool SaneDlg::getDoScan ( ) const
inline

Definition at line 108 of file sanedlg.hxx.

References doScan.

Referenced by ScannerManager::configureScannerAndScan().

◆ InitDevices()

void SaneDlg::InitDevices ( )
private

◆ InitFields()

void SaneDlg::InitFields ( )
private

◆ LoadState()

bool SaneDlg::LoadState ( )
private

◆ run()

short SaneDlg::run ( )
overridevirtual

◆ SaveState()

void SaneDlg::SaveState ( )
private

◆ SetAdjustedNumericalValue()

bool SaneDlg::SetAdjustedNumericalValue ( const char *  pOption,
double  fValue,
int  nElement = 0 
)
private

◆ UpdateScanArea()

void SaneDlg::UpdateScanArea ( bool  bSend)

Member Data Documentation

◆ doScan

bool SaneDlg::doScan
private

Definition at line 42 of file sanedlg.hxx.

Referenced by getDoScan().

◆ maOldLink

Link<Sane&,void> SaneDlg::maOldLink
private

Definition at line 35 of file sanedlg.hxx.

Referenced by SaneDlg(), and ~SaneDlg().

◆ mbScanEnabled

bool SaneDlg::mbScanEnabled
private

Definition at line 33 of file sanedlg.hxx.

Referenced by InitFields().

◆ mfMax

double SaneDlg::mfMax
private

Definition at line 40 of file sanedlg.hxx.

Referenced by EstablishNumericOption(), and EstablishQuantumRange().

◆ mfMin

double SaneDlg::mfMin
private

Definition at line 40 of file sanedlg.hxx.

Referenced by EstablishNumericOption(), and EstablishQuantumRange().

◆ mnCurrentElement

int SaneDlg::mnCurrentElement
private

Definition at line 38 of file sanedlg.hxx.

Referenced by EstablishQuantumRange().

◆ mnCurrentOption

int SaneDlg::mnCurrentOption
private

◆ mpParent

weld::Window* SaneDlg::mpParent
private

Definition at line 31 of file sanedlg.hxx.

Referenced by run().

◆ mpRange

std::unique_ptr<double[]> SaneDlg::mpRange
private

Definition at line 39 of file sanedlg.hxx.

Referenced by EstablishQuantumRange().

◆ mrSane

Sane& SaneDlg::mrSane
private

◆ mxAdvancedBox

std::unique_ptr<weld::CheckButton> SaneDlg::mxAdvancedBox
private

Definition at line 61 of file sanedlg.hxx.

Referenced by InitFields(), and SaneDlg().

◆ mxBoolCheckBox

std::unique_ptr<weld::CheckButton> SaneDlg::mxBoolCheckBox
private

Definition at line 67 of file sanedlg.hxx.

Referenced by DisableOption(), EstablishBoolOption(), and SaneDlg().

◆ mxBottomField

std::unique_ptr<weld::MetricSpinButton> SaneDlg::mxBottomField
private

Definition at line 57 of file sanedlg.hxx.

Referenced by InitFields(), SaneDlg(), and UpdateScanArea().

◆ mxButtonOption

std::unique_ptr<weld::Button> SaneDlg::mxButtonOption
private

Definition at line 48 of file sanedlg.hxx.

Referenced by DisableOption(), EstablishButtonOption(), and SaneDlg().

◆ mxCancelButton

std::unique_ptr<weld::Button> SaneDlg::mxCancelButton
private

Definition at line 44 of file sanedlg.hxx.

Referenced by SaneDlg().

◆ mxDeviceBox

std::unique_ptr<weld::ComboBox> SaneDlg::mxDeviceBox
private

Definition at line 59 of file sanedlg.hxx.

Referenced by InitDevices(), SaneDlg(), and SaveState().

◆ mxDeviceInfoButton

std::unique_ptr<weld::Button> SaneDlg::mxDeviceInfoButton
private

Definition at line 45 of file sanedlg.hxx.

Referenced by SaneDlg().

◆ mxLeftField

std::unique_ptr<weld::MetricSpinButton> SaneDlg::mxLeftField
private

Definition at line 54 of file sanedlg.hxx.

Referenced by InitFields(), SaneDlg(), and UpdateScanArea().

◆ mxNumericEdit

std::unique_ptr<weld::Entry> SaneDlg::mxNumericEdit
private

Definition at line 70 of file sanedlg.hxx.

Referenced by DisableOption(), EstablishNumericOption(), and SaneDlg().

◆ mxOptionBox

std::unique_ptr<weld::TreeView> SaneDlg::mxOptionBox
private

Definition at line 72 of file sanedlg.hxx.

Referenced by InitFields(), and SaneDlg().

◆ mxOptionDescTxt

std::unique_ptr<weld::Label> SaneDlg::mxOptionDescTxt
private

◆ mxOptionTitle

std::unique_ptr<weld::Label> SaneDlg::mxOptionTitle
private

Definition at line 50 of file sanedlg.hxx.

Referenced by SaneDlg().

◆ mxPreview

std::unique_ptr<ScanPreview> SaneDlg::mxPreview
private

Definition at line 74 of file sanedlg.hxx.

Referenced by AcquirePreview(), InitFields(), SaneDlg(), and UpdateScanArea().

◆ mxPreviewButton

std::unique_ptr<weld::Button> SaneDlg::mxPreviewButton
private

Definition at line 46 of file sanedlg.hxx.

Referenced by SaneDlg().

◆ mxPreviewWnd

std::unique_ptr<weld::CustomWeld> SaneDlg::mxPreviewWnd
private

Definition at line 75 of file sanedlg.hxx.

◆ mxQuantumRangeBox

std::unique_ptr<weld::ComboBox> SaneDlg::mxQuantumRangeBox
private

Definition at line 64 of file sanedlg.hxx.

Referenced by DisableOption(), EstablishQuantumRange(), and SaneDlg().

◆ mxReslBox

std::unique_ptr<weld::ComboBox> SaneDlg::mxReslBox
private

Definition at line 60 of file sanedlg.hxx.

Referenced by AcquirePreview(), InitFields(), and SaneDlg().

◆ mxRightField

std::unique_ptr<weld::MetricSpinButton> SaneDlg::mxRightField
private

Definition at line 56 of file sanedlg.hxx.

Referenced by InitFields(), SaneDlg(), and UpdateScanArea().

◆ mxScanButton

std::unique_ptr<weld::Button> SaneDlg::mxScanButton
private

Definition at line 47 of file sanedlg.hxx.

Referenced by InitFields(), and SaneDlg().

◆ mxStringEdit

std::unique_ptr<weld::Entry> SaneDlg::mxStringEdit
private

Definition at line 69 of file sanedlg.hxx.

Referenced by DisableOption(), EstablishStringOption(), and SaneDlg().

◆ mxStringRangeBox

std::unique_ptr<weld::ComboBox> SaneDlg::mxStringRangeBox
private

Definition at line 65 of file sanedlg.hxx.

Referenced by DisableOption(), EstablishStringRange(), and SaneDlg().

◆ mxTopField

std::unique_ptr<weld::MetricSpinButton> SaneDlg::mxTopField
private

Definition at line 55 of file sanedlg.hxx.

Referenced by InitFields(), SaneDlg(), and UpdateScanArea().

◆ mxVectorBox

std::unique_ptr<weld::SpinButton> SaneDlg::mxVectorBox
private

Definition at line 63 of file sanedlg.hxx.

Referenced by DisableOption(), and SaneDlg().

◆ mxVectorTxt

std::unique_ptr<weld::Label> SaneDlg::mxVectorTxt
private

Definition at line 52 of file sanedlg.hxx.

Referenced by DisableOption().


The documentation for this class was generated from the following files: