27 #ifndef DIGIKAM_DFONT_PROPERTIES_H
28 #define DIGIKAM_DFONT_PROPERTIES_H
35 #include <QStringList>
49 Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontSelected USER
true)
50 Q_PROPERTY(QColor color READ color WRITE setColor)
51 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
52 Q_PROPERTY(Qt::CheckState sizeIsRelative READ sizeIsRelative WRITE setSizeIsRelative)
53 Q_PROPERTY(QString sampleText READ sampleText WRITE setSampleText)
80 AllFontDiffs = FontDiffFamily | FontDiffStyle | FontDiffSize
82 Q_DECLARE_FLAGS(FontDiffFlags, FontDiff)
96 Q_DECLARE_FLAGS(DisplayFlags, DisplayFlag)
111 FixedWidthFonts = 0x01,
112 ScalableFonts = 0x02,
113 SmoothScalableFonts = 0x04
137 const DisplayFlags& flags = DisplayFrame,
138 const QStringList& fontList = QStringList(),
139 int visibleListSize = 8,
140 Qt::CheckState*
const sizeIsRelativeState =
nullptr);
158 void enableColumn(
int column,
bool state);
171 void makeColumnVisible(
int column,
bool state);
182 void setFont(
const QFont& font,
bool onlyFixed =
false);
188 FontDiffFlags fontDiffFlags()
const;
198 void setColor(
const QColor& col);
204 QColor color()
const;
209 void setBackgroundColor(
const QColor& col);
215 QColor backgroundColor()
const;
223 void setSizeIsRelative(Qt::CheckState relative);
229 Qt::CheckState sizeIsRelative()
const;
234 QString sampleText()
const;
246 void setSampleText(
const QString& text);
253 void setSampleBoxVisible(
bool visible);
262 static void getFontList(QStringList& list, uint fontListCriteria);
267 QSize sizeHint(
void)
const override;
283 Q_PRIVATE_SLOT(d,
void _d_toggled_checkbox())
284 Q_PRIVATE_SLOT(d,
void _d_family_chosen_slot(const QString&))
285 Q_PRIVATE_SLOT(d,
void _d_size_chosen_slot(const QString&))
286 Q_PRIVATE_SLOT(d,
void _d_style_chosen_slot(const QString&))
287 Q_PRIVATE_SLOT(d,
void _d_displaySample(const QFont& font))
288 Q_PRIVATE_SLOT(d,
void _d_size_value_slot(
double))
Definition: dfontproperties.h:47
FontColumn
Definition: dfontproperties.h:63
void fontSelected(const QFont &font)
FontListCriteria
Definition: dfontproperties.h:110
FontDiff
Definition: dfontproperties.h:75
DisplayFlag
Definition: dfontproperties.h:90
Definition: datefolderview.cpp:43