SciDAVis
1.D4
|
A button used for color selection. More...
#include <ColorButton.h>
Signals | |
void | clicked () |
Signal clicked: This is emitted when the selection button is clicked. |
Public Member Functions | |
QColor | color () const |
Get the color of the display part. | |
ColorButton (QWidget *parent=0) | |
Constructor. | |
void | setColor (const QColor &c) |
Set the color of the display part. | |
QSize | sizeHint () const |
Protected Member Functions | |
void | init () |
Initialize the widget (called from constructor) |
Private Attributes | |
int | btn_size |
QFrame * | display |
QPushButton * | selectButton |
A button used for color selection.
This button contains two widgets: 1) A frame reflecting the current color 2) A button showing a color wheel to select the color
ColorButton::ColorButton | ( | QWidget * | parent = 0 | ) |
Constructor.
References init().
|
signal |
Signal clicked: This is emitted when the selection button is clicked.
Referenced by init().
QColor ColorButton::color | ( | ) | const |
Get the color of the display part.
References display.
Referenced by PlotDialog::acceptParams(), LineDialog::apply(), ConfigDialog::apply(), TextDialog::apply(), AxesDialog::changeBaselineDist(), PlotDialog::changeErrorBarsMinus(), PlotDialog::changeErrorBarsPlus(), PlotDialog::changeErrorBarsThrough(), PlotDialog::changeErrorBarsType(), AxesDialog::drawFrame(), AxesDialog::pickAxisColor(), AxesDialog::pickAxisNumColor(), TextDialog::pickBackgroundColor(), PlotDialog::pickBackgroundColor(), ConfigDialog::pickBgColor(), PlotDialog::pickBorderColor(), PlotDialog::pickCanvasColor(), AxesDialog::pickCanvasFrameColor(), LineDialog::pickColor(), PlotDialog::pickContourLinesColor(), PlotDialog::pickErrorBarsColor(), ConfigDialog::pickHeaderColor(), ConfigDialog::pickPanelsColor(), ConfigDialog::pickPanelsTextColor(), ConfigDialog::pickTextColor(), TextDialog::pickTextColor(), ConfigDialog::pickWorkspaceColor(), LineDialog::setDefaultValues(), TextDialog::setDefaultValues(), AxesDialog::setLabelsNumericFormat(), AxesDialog::showAxis(), PlotDialog::updateBackgroundTransparency(), PlotDialog::updateBorder(), PlotDialog::updateCanvasTransparency(), AxesDialog::updateFrame(), AxesDialog::updateMajTicksType(), AxesDialog::updateMinTicksType(), AxesDialog::updatePlot(), and AxesDialog::updateTickLabelsList().
|
protected |
Initialize the widget (called from constructor)
References btn_size, clicked(), display, selectButton, and setColor().
Referenced by ColorButton().
void ColorButton::setColor | ( | const QColor & | c | ) |
Set the color of the display part.
References display.
Referenced by init(), ConfigDialog::initAppPage(), ConfigDialog::initTablesPage(), LineDialog::LineDialog(), AxesDialog::pickAxisColor(), AxesDialog::pickAxisNumColor(), TextDialog::pickBackgroundColor(), PlotDialog::pickBackgroundColor(), ConfigDialog::pickBgColor(), PlotDialog::pickBorderColor(), PlotDialog::pickCanvasColor(), AxesDialog::pickCanvasFrameColor(), LineDialog::pickColor(), PlotDialog::pickContourLinesColor(), PlotDialog::pickErrorBarsColor(), ConfigDialog::pickHeaderColor(), ConfigDialog::pickPanelsColor(), ConfigDialog::pickPanelsTextColor(), ConfigDialog::pickTextColor(), TextDialog::pickTextColor(), ConfigDialog::pickWorkspaceColor(), PlotDialog::setActiveCurve(), PlotDialog::setActiveLayer(), TextDialog::setBackgroundColor(), AxesDialog::setGraph(), TextDialog::setTextColor(), and AxesDialog::updateAxisColor().
QSize ColorButton::sizeHint | ( | ) | const |
References btn_size.
|
private |
Referenced by init(), and sizeHint().
|
private |
Referenced by color(), init(), and setColor().
|
private |
Referenced by init().