21 explicit VariableItem(
const QString &variable);
22 virtual ~VariableItem() =
default;
26 void setHelpText(
const QString &text);
28 bool isActive()
const;
29 void setActive(
bool active);
31 virtual void setValueByString(
const QString &value) = 0;
32 virtual QString valueAsString()
const = 0;
34 virtual VariableEditor *createEditor(
QWidget *parent) = 0;
38 VariableItem(
const VariableItem ©);
39 VariableItem &operator=(
const VariableItem &other);
52class VariableIntItem :
public VariableItem
55 explicit VariableIntItem(
const QString &variable,
int value);
58 void setValue(
int newValue);
59 void setRange(
int minValue,
int maxValue);
64 void setValueByString(
const QString &value)
override;
65 QString valueAsString()
const override;
66 VariableEditor *createEditor(
QWidget *parent)
override;
76class VariableStringListItem :
public VariableItem
84 void setValue(
const QString &newValue);
87 void setValueByString(
const QString &value)
override;
88 QString valueAsString()
const override;
89 VariableEditor *createEditor(
QWidget *parent)
override;
98class VariableBoolItem :
public VariableItem
101 explicit VariableBoolItem(
const QString &variable,
bool value);
104 void setValue(
bool enabled);
107 void setValueByString(
const QString &value)
override;
108 QString valueAsString()
const override;
109 VariableEditor *createEditor(
QWidget *parent)
override;
117class VariableColorItem :
public VariableItem
120 explicit VariableColorItem(
const QString &variable,
const QColor &value);
123 void setValue(
const QColor &color);
126 void setValueByString(
const QString &value)
override;
127 QString valueAsString()
const override;
128 VariableEditor *createEditor(
QWidget *parent)
override;
136class VariableFontItem :
public VariableItem
139 explicit VariableFontItem(
const QString &variable,
const QFont &value);
142 void setValue(
const QFont &value);
145 void setValueByString(
const QString &value)
override;
146 QString valueAsString()
const override;
147 VariableEditor *createEditor(
QWidget *parent)
override;
155class VariableStringItem :
public VariableItem
158 explicit VariableStringItem(
const QString &variable,
const QString &value);
161 void setValue(
const QString &value);
164 void setValueByString(
const QString &value)
override;
165 QString valueAsString()
const override;
166 VariableEditor *createEditor(
QWidget *parent)
override;
175class VariableSpellCheckItem :
public VariableItem
178 explicit VariableSpellCheckItem(
const QString &variable,
const QString &value);
181 void setValue(
const QString &value);
184 void setValueByString(
const QString &value)
override;
185 QString valueAsString()
const override;
186 VariableEditor *createEditor(
QWidget *parent)
override;
194class VariableRemoveSpacesItem :
public VariableItem
197 explicit VariableRemoveSpacesItem(
const QString &variable,
int value);
200 void setValue(
int value);
203 void setValueByString(
const QString &value)
override;
204 QString valueAsString()
const override;
205 VariableEditor *createEditor(
QWidget *parent)
override;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:56 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.