Changeset View
Changeset View
Standalone View
Standalone View
src/dcc/whiteboardcolorchooser.h
Show All 30 Lines | 26 | { | |||
---|---|---|---|---|---|
31 | public: | 31 | public: | ||
32 | enum ColorLayer | 32 | enum ColorLayer | ||
33 | { | 33 | { | ||
34 | None, | 34 | None, | ||
35 | ForegroundColor, | 35 | ForegroundColor, | ||
36 | BackgroundColor | 36 | BackgroundColor | ||
37 | }; | 37 | }; | ||
38 | 38 | | |||
39 | explicit WhiteBoardColorChooser(QWidget* parent = 0); | 39 | explicit WhiteBoardColorChooser(QWidget* parent = nullptr); | ||
40 | ~WhiteBoardColorChooser(); | 40 | ~WhiteBoardColorChooser() override; | ||
41 | 41 | | |||
42 | QColor color(const ColorLayer& layer) const; | 42 | QColor color(const ColorLayer& layer) const; | ||
43 | QColor foregroundColor() const; | 43 | QColor foregroundColor() const; | ||
44 | QColor backgroundColor() const; | 44 | QColor backgroundColor() const; | ||
45 | 45 | | |||
46 | public Q_SLOTS: | 46 | public Q_SLOTS: | ||
47 | void setColor(ColorLayer layer, const QColor& color); | 47 | void setColor(ColorLayer layer, const QColor& color); | ||
48 | void setForegroundColor(const QColor& color); | 48 | void setForegroundColor(const QColor& color); | ||
Show All 30 Lines |