16 #ifndef QGSCOMPOUNDCOLORWIDGET_H 17 #define QGSCOMPOUNDCOLORWIDGET_H 22 #include "ui_qgscompoundcolorwidget.h" 69 void setAllowOpacity(
const bool allowOpacity );
85 void currentColorChanged(
const QColor &color );
93 void setColor(
const QColor &color );
99 void setPreviousColor(
const QColor &color );
103 void mousePressEvent( QMouseEvent *e )
override;
105 void mouseMoveEvent( QMouseEvent *e )
override;
107 void mouseReleaseEvent( QMouseEvent *e )
override;
113 void mHueRadio_toggled(
bool checked );
114 void mSaturationRadio_toggled(
bool checked );
115 void mValueRadio_toggled(
bool checked );
116 void mRedRadio_toggled(
bool checked );
117 void mGreenRadio_toggled(
bool checked );
118 void mBlueRadio_toggled(
bool checked );
120 void mAddColorToSchemeButton_clicked();
122 void importPalette();
123 void removePalette();
126 void schemeIndexChanged(
int index );
127 void listSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
129 void mAddCustomColorButton_clicked();
131 void mSampleButton_clicked();
132 void mTabWidget_currentChanged(
int index );
136 void mActionShowInButtons_toggled(
bool state );
140 static QScreen *findScreenAt( QPoint pos );
142 bool mAllowAlpha =
true;
144 int mLastCustomColorIndex = 0;
146 bool mPickingColor =
false;
148 bool mDiscarded =
false;
161 void stopPicking( QPoint eventPos,
const bool takeSample =
true );
168 QColor averageColor(
const QImage &image )
const;
175 QColor sampleColor( QPoint point )
const;
180 void refreshSchemeComboBox();
185 QString gplFilePath();
188 void updateActionsForCurrentScheme();
191 #endif // QGSCOMPOUNDCOLORWIDGET_H