15 #ifndef QGSCOLORBUTTON_H
16 #define QGSCOLORBUTTON_H
18 #include <QColorDialog>
19 #include <QPushButton>
20 #include <QTemporaryFile>
43 QgsColorButton( QWidget *parent = 0, QString cdt =
"", QColorDialog::ColorDialogOptions cdo = 0 );
52 void setColor(
const QColor &color );
67 void setColorDialogOptions( QColorDialog::ColorDialogOptions cdo );
75 QColorDialog::ColorDialogOptions colorDialogOptions();
83 void setColorDialogTitle( QString cdt );
91 QString colorDialogTitle();
117 void setButtonBackground();
127 void colorChanged(
const QColor &color );
130 void changeEvent( QEvent* e );
131 #if 0 // causes too many cyclical updates, but may be needed on some platforms
132 void paintEvent( QPaintEvent* e );
134 void showEvent( QShowEvent* e );
135 static const QPixmap& transpBkgrd();
145 void onButtonClicked();
152 void setValidColor(
const QColor& newColor );