17 #ifndef QGSCOLORDIALOG_H 18 #define QGSCOLORDIALOG_H 20 #include <QColorDialog> 22 #include "ui_qgscolordialog.h" 48 static QColor getLiveColor(
const QColor& initialColor,
QObject* updateObject,
const char* updateSlot,
87 void setTitle(
const QString& title );
93 void setAllowAlpha(
const bool allowAlpha );
105 static QColor getLiveColor(
const QColor& initialColor,
QObject* updateObject,
const char* updateSlot,
108 const bool allowAlpha =
true );
119 const bool allowAlpha =
false );
126 void currentColorChanged(
const QColor &color );
133 void setColor(
const QColor &color );
149 void on_mHueRadio_toggled(
bool checked );
150 void on_mSaturationRadio_toggled(
bool checked );
151 void on_mValueRadio_toggled(
bool checked );
152 void on_mRedRadio_toggled(
bool checked );
153 void on_mGreenRadio_toggled(
bool checked );
154 void on_mBlueRadio_toggled(
bool checked );
156 void on_mButtonBox_accepted();
157 void on_mButtonBox_rejected();
159 void on_mAddColorToSchemeButton_clicked();
163 void importPalette();
164 void removePalette();
167 void schemeIndexChanged(
int index );
170 void on_mAddCustomColorButton_clicked();
172 void on_mSampleButton_clicked();
173 void on_mTabWidget_currentChanged(
int index );
181 int mLastCustomColorIndex;
194 void stopPicking(
QPoint eventPos,
const bool takeSample =
true );
210 void refreshSchemeComboBox();
217 #endif // #ifndef QGSCOLORDIALOG_H static const Qt::WindowFlags ModalDialogFlags
virtual void closeEvent(QCloseEvent *e)
A custom QGIS dialog for selecting a color.
typedef ColorDialogOptions
A native operating system dialog for selecting a color.
virtual void keyPressEvent(QKeyEvent *e)