tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
Color_Selector Class Reference

#include <color_selector.hpp>

Inheritance diagram for Color_Selector:
Color_Preview Bound_Color_Selector

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
 

Detailed Description

Author
Mattia Basaglia

License

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

Member Enumeration Documentation

Enumerator
Confirm 

Update color only after the dialog has been accepted.

Continuous 

Update color as it's being modified in the dialog.

Constructor & Destructor Documentation

Color_Selector::Color_Selector ( QWidget *  parent = 0)
explicit
Color_Selector::~Color_Selector ( )

Member Function Documentation

Qt::WindowModality Color_Selector::dialogModality ( ) const
void Color_Selector::dragEnterEvent ( QDragEnterEvent *  event)
protected
void Color_Selector::dropEvent ( QDropEvent *  event)
protected
void Color_Selector::setDialogModality ( Qt::WindowModality  m)
void Color_Selector::setUpdateMode ( Update_Mode  m)
void Color_Selector::setWheelFlags ( Color_Wheel::Display_Flags  flags)
slot
void Color_Selector::showDialog ( )
slot
Update_Mode Color_Selector::updateMode ( ) const
Color_Wheel::Display_Flags Color_Selector::wheelFlags ( ) const
void Color_Selector::wheelFlagsChanged ( Color_Wheel::Display_Flags  flags)
signal

Property Documentation

Qt::WindowModality Color_Selector::dialogModality
readwrite
Color_Selector::Update_Mode Color_Selector::updateMode
readwrite
Color_Wheel::Display_Flags Color_Selector::wheelFlags
readwrite

The documentation for this class was generated from the following files: