A customized QtColorPicker used for color selection. More...
#include <ColorButton.h>
Signals | |
void | colorChanged () |
Public Member Functions | |
QColor | color () |
Get the current color. | |
ColorButton (QWidget *parent=0) | |
Constructor. | |
void | setColor (const QColor &c) |
Set the current color to be displayed. |
A customized QtColorPicker used for color selection.
ColorButton::ColorButton | ( | QWidget * | parent = 0 |
) |
Constructor.
parent | parent widget (only affects placement of the widget) |
References ColorBox::color(), colorChanged(), ColorBox::colorNames(), QtColorPicker::insertColor(), and ColorBox::numPredefinedColors().
QColor ColorButton::color | ( | ) | [inline] |
Get the current color.
References QtColorPicker::currentColor().
Referenced by PlotDialog::acceptParams(), TextDialog::apply(), LineDialog::apply(), ConfigDialog::apply(), AxesDialog::applyAxisFormatToLayer(), AxesDialog::applyCanvasFormatTo(), PlotDialog::applyErrorBarFormatToCurve(), PlotDialog::applyFormatToLayer(), PlotDialog::applySymbolsFormatToCurve(), PlotDialog::changePlotType(), TextDialog::formatLayerLabels(), PlotDialog::pickErrorBarsColor(), ConfigDialog::rehighlight(), LineDialog::setDefaultValues(), EnrichmentDialog::setFrameDefaultValues(), AxesDialog::setFrameDefaultValues(), EnrichmentDialog::setFrameTo(), AxesDialog::setLabelsNumericFormat(), PlotDialog::setLayerDefaultValues(), EnrichmentDialog::setPatternTo(), EnrichmentDialog::setRectangleDefaultValues(), EnrichmentDialog::setTextDefaultValues(), EnrichmentDialog::setTextFormatTo(), AxesDialog::showAxis(), ContourLinesEditor::updatePen(), Plot3DDialog::updatePlot(), AxesDialog::updatePlot(), and AxesDialog::updateTickLabelsList().
void ColorButton::colorChanged | ( | ) | [signal] |
Referenced by ColorButton().
void ColorButton::setColor | ( | const QColor & | c | ) | [inline] |
Set the current color to be displayed.
References QtColorPicker::setCurrentColor().
Referenced by ConfigDialog::initAppPage(), ConfigDialog::initNotesPage(), ConfigDialog::initPlots3DPage(), ConfigDialog::initPlotsPage(), ConfigDialog::initTablesPage(), LineDialog::LineDialog(), PlotDialog::setActiveCurve(), PlotDialog::setActiveLayer(), TextDialog::setGraph(), AxesDialog::setGraph(), Plot3DDialog::setPlot(), EnrichmentDialog::setWidget(), ContourLinesEditor::showPenDialog(), MultiLayer::showWaterfallFillDialog(), and AxesDialog::updateAxisColor().