69 void setAllowOpacity(
bool allowOpacity );
77 void setColorModelEditable(
bool colorModelEditable );
136 void setColor(
const QColor &color );
142 void setPreviousColor(
const QColor &color );
146 void hideEvent( QHideEvent *e )
override;
148 void mousePressEvent( QMouseEvent *e )
override;
150 void mouseMoveEvent( QMouseEvent *e )
override;
152 void mouseReleaseEvent( QMouseEvent *e )
override;
158 void onColorButtonGroupToggled(
int,
bool checked );
160 void mAddColorToSchemeButton_clicked();
162 void importPalette();
163 void removePalette();
166 void schemeIndexChanged(
int index );
167 void listSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
169 void mAddCustomColorButton_clicked();
171 void mSampleButton_clicked();
172 void mTabWidget_currentChanged(
int index );
174 void mActionShowInButtons_toggled(
bool state );
180 void _setColor(
const QColor &color );
184 static QScreen *findScreenAt( QPoint pos );
190 void updateComponent();
194 bool mAllowAlpha =
true;
196 int mLastCustomColorIndex = 0;
198 bool mPickingColor =
false;
200 bool mDiscarded =
false;
202 QList<QPair<QRadioButton *, QgsColorWidget::ColorComponent>> mRgbRadios;
203 QList<QPair<QRadioButton *, QgsColorWidget::ColorComponent>> mCmykRadios;
204 QButtonGroup *mCmykGroup =
nullptr;
205 QButtonGroup *mRgbGroup =
nullptr;
218 void stopPicking( QPoint eventPos,
bool takeSample =
true );
225 QColor averageColor(
const QImage &image )
const;
232 QColor sampleColor( QPoint point )
const;
237 void refreshSchemeComboBox();
242 static QString gplFilePath();
245 void updateActionsForCurrentScheme();
247 friend class TestQgsCompoundColorWidget;