#include <color_dialog.hpp>
Definition at line 35 of file color_dialog.hpp.
◆ ButtonMode
◆ ColorDialog()
color_widgets::ColorDialog::ColorDialog |
( |
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
f = 0 |
|
) |
| |
|
explicit |
◆ alphaEnabled()
bool color_widgets::ColorDialog::alphaEnabled |
( |
| ) |
const |
◆ alphaEnabledChanged
void color_widgets::ColorDialog::alphaEnabledChanged |
( |
bool |
alphaEnabled | ) |
|
|
signal |
◆ buttonMode()
ButtonMode color_widgets::ColorDialog::buttonMode |
( |
| ) |
const |
◆ color()
QColor color_widgets::ColorDialog::color |
( |
| ) |
const |
Get currently selected color
◆ colorChanged
void color_widgets::ColorDialog::colorChanged |
( |
QColor |
| ) |
|
|
signal |
The current color was changed
◆ colorSelected
void color_widgets::ColorDialog::colorSelected |
( |
QColor |
| ) |
|
|
signal |
The user selected the new color by pressing Ok/Apply
◆ dragEnterEvent()
void color_widgets::ColorDialog::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protected |
◆ dropEvent()
void color_widgets::ColorDialog::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protected |
◆ mouseMoveEvent()
void color_widgets::ColorDialog::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
◆ mouseReleaseEvent()
void color_widgets::ColorDialog::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
◆ on_buttonBox_clicked
void color_widgets::ColorDialog::on_buttonBox_clicked |
( |
QAbstractButton * |
| ) |
|
|
privateslot |
◆ previewDisplayMode()
Get the color preview diplay mode
◆ set_hsv
void color_widgets::ColorDialog::set_hsv |
( |
| ) |
|
|
privateslot |
◆ set_rgb
void color_widgets::ColorDialog::set_rgb |
( |
| ) |
|
|
privateslot |
◆ setButtonMode()
void color_widgets::ColorDialog::setButtonMode |
( |
ButtonMode |
mode | ) |
|
Select which dialog buttons to show
There are three predefined modes: OkCancel - this is useful when the dialog is modal and we just want to return a color OkCancelApply - this is for non-modal dialogs Close - for non-modal dialogs with direct color updates via colorChanged signal
◆ setColor
void color_widgets::ColorDialog::setColor |
( |
const QColor & |
c | ) |
|
|
slot |
◆ setColorInternal()
void color_widgets::ColorDialog::setColorInternal |
( |
const QColor & |
color | ) |
|
|
private |
◆ setPreviewDisplayMode()
Set the display mode for the color preview
◆ setWheelFlags
void color_widgets::ColorDialog::setWheelFlags |
( |
ColorWheel::DisplayFlags |
flags | ) |
|
|
slot |
◆ showColor
void color_widgets::ColorDialog::showColor |
( |
const QColor & |
oldcolor | ) |
|
|
slot |
Set the current color and show the dialog
◆ sizeHint()
QSize color_widgets::ColorDialog::sizeHint |
( |
| ) |
const |
◆ update_widgets
void color_widgets::ColorDialog::update_widgets |
( |
| ) |
|
|
privateslot |
Update all the Ui elements to match the selected color.
◆ wheelFlags()
ColorWheel::DisplayFlags color_widgets::ColorDialog::wheelFlags |
( |
| ) |
const |
◆ wheelFlagsChanged
void color_widgets::ColorDialog::wheelFlagsChanged |
( |
ColorWheel::DisplayFlags |
flags | ) |
|
|
signal |
Private* const color_widgets::ColorDialog::p |
|
private |
◆ color
QColor color_widgets::ColorDialog::color |
|
readwrite |
◆ wheelFlags
ColorWheel::DisplayFlags color_widgets::ColorDialog::wheelFlags |
|
readwrite |
The documentation for this class was generated from the following file: