67 void setAllowOpacity(
bool allowOpacity );
75 void setColorModelEditable(
bool colorModelEditable );
134 void setColor(
const QColor &color );
140 void setPreviousColor(
const QColor &color );
143 void hideEvent( QHideEvent *e )
override;
145 void mousePressEvent( QMouseEvent *e )
override;
147 void mouseMoveEvent( QMouseEvent *e )
override;
149 void mouseReleaseEvent( QMouseEvent *e )
override;
155 void onColorButtonGroupToggled(
int,
bool checked );
157 void mAddColorToSchemeButton_clicked();
159 void importPalette();
160 void removePalette();
163 void schemeIndexChanged(
int index );
164 void listSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
166 void mAddCustomColorButton_clicked();
168 void mSampleButton_clicked();
169 void mTabWidget_currentChanged(
int index );
171 void mActionShowInButtons_toggled(
bool state );
177 void _setColor(
const QColor &color );
180 static QScreen *findScreenAt( QPoint pos );
186 void updateComponent();
190 bool mAllowAlpha =
true;
192 int mLastCustomColorIndex = 0;
194 bool mPickingColor =
false;
196 bool mDiscarded =
false;
198 QList<QPair<QRadioButton *, QgsColorWidget::ColorComponent>> mRgbRadios;
199 QList<QPair<QRadioButton *, QgsColorWidget::ColorComponent>> mCmykRadios;
200 QButtonGroup *mCmykGroup =
nullptr;
201 QButtonGroup *mRgbGroup =
nullptr;
214 void stopPicking( QPoint eventPos,
bool takeSample =
true );
221 QColor averageColor(
const QImage &image )
const;
228 QColor sampleColor( QPoint point )
const;
233 void refreshSchemeComboBox();
238 static QString gplFilePath();
241 void updateActionsForCurrentScheme();
243 friend class TestQgsCompoundColorWidget;