24 #include <QPushButton>
26 #include <tulip/tulipconf.h>
27 #include <tulip/Color.h>
28 #include <tulip/TulipMetaTypes.h>
32 class TLP_QT_SCOPE ChooseColorButton :
public QPushButton {
34 Q_PROPERTY(QColor color READ color WRITE setColor)
35 Q_PROPERTY(Color tulipColor READ tulipColor WRITE setTulipColor)
38 explicit ChooseColorButton(QWidget *parent = NULL);
41 Color tulipColor()
const;
43 void setDialogParent(QWidget* w);
47 QWidget* _dialogParent;
50 void colorChanged(QColor);
51 void tulipColorChanged(Color);
54 void setColor(
const QColor&);
55 void setTulipColor(
const Color&);
61 class TLP_QT_SCOPE ColorButton :
public ChooseColorButton {
65 explicit ColorButton(QWidget *parent = NULL): ChooseColorButton(parent) {}
67 void paintEvent(QPaintEvent *);
72 #endif // COLORBUTTON_H