KSeExpr
4.0.4.0
|
#include <ExprColorSwatch.h>
Signals | |
void | selValChangedSignal (KSeExpr::Vec3d value) |
void | swatchChanged (QColor color) |
void | deleteSwatch (ExprColorFrame *swatch) |
Public Member Functions | |
ExprColorFrame (KSeExpr::Vec3d value, QWidget *parent=nullptr) | |
~ExprColorFrame () override=default | |
void | setValue (const KSeExpr::Vec3d &value) |
KSeExpr::Vec3d | getValue () const |
bool | selected () const |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) override |
void | mouseReleaseEvent (QMouseEvent *event) override |
Private Slots | |
void | deleteSwatchMenu (const QPoint &pos) |
Private Attributes | |
KSeExpr::Vec3d | _value {} |
QColor | _color {} |
bool | _selected {} |
Definition at line 16 of file ExprColorSwatch.h.
ExprColorFrame::ExprColorFrame | ( | KSeExpr::Vec3d | value, |
QWidget * | parent = nullptr |
||
) |
Definition at line 25 of file ExprColorSwatch.cpp.
References _value, and setValue().
|
overridedefault |
|
signal |
Referenced by deleteSwatchMenu().
|
privateslot |
Definition at line 74 of file ExprColorSwatch.cpp.
References deleteSwatch().
Referenced by mouseReleaseEvent().
KSeExpr::Vec3d ExprColorFrame::getValue | ( | ) | const |
Definition at line 44 of file ExprColorSwatch.cpp.
References _value.
Referenced by ExprColorSwatchWidget::getSwatchColor().
|
overrideprotected |
Definition at line 55 of file ExprColorSwatch.cpp.
References _color, _value, deleteSwatchMenu(), selValChangedSignal(), and swatchChanged().
|
overrideprotected |
Definition at line 49 of file ExprColorSwatch.cpp.
|
inline |
Definition at line 25 of file ExprColorSwatch.h.
References _selected.
|
signal |
Referenced by mouseReleaseEvent().
void ExprColorFrame::setValue | ( | const KSeExpr::Vec3d & | value | ) |
Definition at line 37 of file ExprColorSwatch.cpp.
References _color, and _value.
Referenced by ExprColorFrame().
|
signal |
Referenced by mouseReleaseEvent().
|
private |
Definition at line 44 of file ExprColorSwatch.h.
Referenced by mouseReleaseEvent(), paintEvent(), and setValue().
|
private |
Definition at line 45 of file ExprColorSwatch.h.
Referenced by selected().
|
private |
Definition at line 43 of file ExprColorSwatch.h.
Referenced by ExprColorFrame(), getValue(), mouseReleaseEvent(), and setValue().