tilde~
Puredata Qt-based GUI
|
#include <color_selector.hpp>
Classes | |
class | Private |
Public Types | |
enum | Update_Mode { Confirm, Continuous } |
Public Types inherited from Color_Preview | |
enum | Display_Mode { NoAlpha, AllAlpha, SplitAlpha, SplitColor } |
Public Slots | |
void | showDialog () |
void | setWheelFlags (Color_Wheel::Display_Flags flags) |
Public Slots inherited from Color_Preview | |
void | setColor (const QColor &c) |
Set current color. More... | |
void | setComparisonColor (const QColor &c) |
Set the comparison color. More... | |
Signals | |
void | wheelFlagsChanged (Color_Wheel::Display_Flags flags) |
Signals inherited from Color_Preview | |
void | clicked () |
Emitted when the user clicks on the widget. More... | |
void | colorChanged (QColor) |
Emitted on setColor. More... | |
Public Member Functions | |
Color_Selector (QWidget *parent=0) | |
~Color_Selector () | |
void | setUpdateMode (Update_Mode m) |
Update_Mode | updateMode () const |
Qt::WindowModality | dialogModality () const |
void | setDialogModality (Qt::WindowModality m) |
Color_Wheel::Display_Flags | wheelFlags () const |
Public Member Functions inherited from Color_Preview | |
Color_Preview (QWidget *parent=0) | |
~Color_Preview () | |
QBrush | background () const |
Get the background visible under transparent colors. More... | |
void | setBackground (const QBrush &bk) |
Change the background visible under transparent colors. More... | |
Display_Mode | displayMode () const |
Get color display mode. More... | |
void | setDisplayMode (Display_Mode dm) |
Set how transparent colors are handled. More... | |
QColor | color () const |
Get current color. More... | |
QColor | comparisonColor () const |
Get the comparison color. More... | |
QSize | sizeHint () const |
void | paint (QPainter &painter, QRect rect) const |
Protected Member Functions | |
void | dragEnterEvent (QDragEnterEvent *event) |
void | dropEvent (QDropEvent *event) |
Protected Member Functions inherited from Color_Preview | |
void | paintEvent (QPaintEvent *) |
void | resizeEvent (QResizeEvent *) |
void | mouseReleaseEvent (QMouseEvent *ev) |
void | mouseMoveEvent (QMouseEvent *ev) |
Properties | |
Update_Mode | updateMode |
Qt::WindowModality | dialogModality |
Color_Wheel::Display_Flags | wheelFlags |
Properties inherited from Color_Preview | |
QColor | color |
QColor | comparisonColor |
Display_Mode | display_mode |
QBrush | background |
Copyright (C) 2013-2015 Mattia Basaglia This software is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Color Widgets. If not, see <http://www.gnu.org/licenses/>.
Color preview that opens a color dialog
|
explicit |
Color_Selector::~Color_Selector | ( | ) |
Qt::WindowModality Color_Selector::dialogModality | ( | ) | const |
|
protected |
|
protected |
void Color_Selector::setDialogModality | ( | Qt::WindowModality | m | ) |
void Color_Selector::setUpdateMode | ( | Update_Mode | m | ) |
|
slot |
|
slot |
Update_Mode Color_Selector::updateMode | ( | ) | const |
Color_Wheel::Display_Flags Color_Selector::wheelFlags | ( | ) | const |
|
signal |
|
readwrite |
|
readwrite |
|
readwrite |