16#ifndef QGSCOMPOUNDCOLORWIDGET_H
17#define QGSCOMPOUNDCOLORWIDGET_H
21#include "ui_qgscompoundcolorwidget.h"
70 void setAllowOpacity(
bool allowOpacity );
130 void setColor(
const QColor &color );
136 void setPreviousColor(
const QColor &color );
140 void hideEvent( QHideEvent *e )
override;
142 void mousePressEvent( QMouseEvent *e )
override;
144 void mouseMoveEvent( QMouseEvent *e )
override;
146 void mouseReleaseEvent( QMouseEvent *e )
override;
152 void mHueRadio_toggled(
bool checked );
153 void mSaturationRadio_toggled(
bool checked );
154 void mValueRadio_toggled(
bool checked );
155 void mRedRadio_toggled(
bool checked );
156 void mGreenRadio_toggled(
bool checked );
157 void mBlueRadio_toggled(
bool checked );
159 void mAddColorToSchemeButton_clicked();
161 void importPalette();
162 void removePalette();
165 void schemeIndexChanged(
int index );
166 void listSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected );
168 void mAddCustomColorButton_clicked();
170 void mSampleButton_clicked();
171 void mTabWidget_currentChanged(
int index );
175 void mActionShowInButtons_toggled(
bool state );
179 static QScreen *findScreenAt( QPoint pos );
183 bool mAllowAlpha =
true;
185 int mLastCustomColorIndex = 0;
187 bool mPickingColor =
false;
189 bool mDiscarded =
false;
202 void stopPicking( QPoint eventPos,
bool takeSample =
true );
209 QColor averageColor(
const QImage &image )
const;
216 QColor sampleColor( QPoint point )
const;
221 void refreshSchemeComboBox();
226 static QString gplFilePath();
229 void updateActionsForCurrentScheme();
A utility class for dynamic handling of changes to screen properties.
A color scheme which stores its colors in a gpl palette file within the "palettes" subfolder off the ...