16 #ifndef QGSCOMPOUNDCOLORWIDGET_H
17 #define QGSCOMPOUNDCOLORWIDGET_H
22 #include "ui_qgscompoundcolorwidget.h"
69 void setAllowOpacity(
bool allowOpacity );
129 void setColor(
const QColor &color );
135 void setPreviousColor(
const QColor &color );
139 void hideEvent( QHideEvent *e )
override;
141 void mousePressEvent( QMouseEvent *e )
override;
143 void mouseMoveEvent( QMouseEvent *e )
override;
145 void mouseReleaseEvent( QMouseEvent *e )
override;
151 void mHueRadio_toggled(
bool checked );
152 void mSaturationRadio_toggled(
bool checked );
153 void mValueRadio_toggled(
bool checked );
154 void mRedRadio_toggled(
bool checked );
155 void mGreenRadio_toggled(
bool checked );
156 void mBlueRadio_toggled(
bool checked );
158 void mAddColorToSchemeButton_clicked();
160 void importPalette();
161 void removePalette();
164 void schemeIndexChanged(
int index );
165 void listSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
167 void mAddCustomColorButton_clicked();
169 void mSampleButton_clicked();
170 void mTabWidget_currentChanged(
int index );
174 void mActionShowInButtons_toggled(
bool state );
178 static QScreen *findScreenAt( QPoint pos );
180 bool mAllowAlpha =
true;
182 int mLastCustomColorIndex = 0;
184 bool mPickingColor =
false;
186 bool mDiscarded =
false;
199 void stopPicking( QPoint eventPos,
bool takeSample =
true );
206 QColor averageColor(
const QImage &image )
const;
213 QColor sampleColor( QPoint point )
const;
218 void refreshSchemeComboBox();
223 static QString gplFilePath();
226 void updateActionsForCurrentScheme();
229 #endif // QGSCOMPOUNDCOLORWIDGET_H