7#ifndef KSANE_PAGESIZE_OPTION_H
8#define KSANE_PAGESIZE_OPTION_H
12#include "baseoption.h"
17static const QString PageSizeOptionName = QStringLiteral(
"KSane::PageSize");
19class PageSizeOption :
public BaseOption
24 PageSizeOption(BaseOption *optionTopLeftX,
25 BaseOption *optionTopLeftY,
26 BaseOption *optionBottomRightX,
27 BaseOption *optionBottomRightY,
28 BaseOption *optionResolution,
29 BaseOption *optionPageWidth,
30 BaseOption *optionPageHeight);
33 QString valueAsString()
const override;
38 QString description()
const override;
39 QVariantList valueList()
const override;
42 bool setValue(
const QVariant &value)
override;
45 void optionTopLeftXUpdated();
46 void optionTopLeftYUpdated();
47 void optionBottomRightXUpdated();
48 void optionBottomRightYUpdated();
51 double ensureMilliMeter(BaseOption *option,
double value);
53 BaseOption *m_optionTopLeftX;
54 BaseOption *m_optionTopLeftY;
55 BaseOption *m_optionBottomRightX;
56 BaseOption *m_optionBottomRightY;
57 BaseOption *m_optionResolution;
58 BaseOption *m_optionPageWidth;
59 BaseOption *m_optionPageHeight;
60 int m_currentIndex = -1;
62 QVariantList m_availableSizesListNames;
OptionState
This enumeration describes the current statue of the value of the option, indicating if this option s...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:57:02 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.