tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
color_list_widget.hpp
Go to the documentation of this file.
1 
27 #ifndef COLOR_LIST_WIDGET_HPP
28 #define COLOR_LIST_WIDGET_HPP
29 
30 #include "abstract_widget_list.hpp"
31 #include "color_wheel.hpp"
32 
34 {
35  Q_OBJECT
36 
37  Q_PROPERTY(QList<QColor> colors READ colors WRITE setColors NOTIFY colorsChanged )
38  Q_PROPERTY(Color_Wheel::Display_Flags wheelFlags READ wheelFlags WRITE setWheelFlags NOTIFY wheelFlagsChanged)
39 
40 public:
41  explicit Color_List_Widget(QWidget *parent = 0);
43 
44  QList<QColor> colors() const;
45  void setColors(const QList<QColor>& colors);
46 
47  void swap(int a, int b);
48 
49  void append();
50 
51  Color_Wheel::Display_Flags wheelFlags() const;
52 
53 signals:
54  void colorsChanged(const QList<QColor>&);
55  void wheelFlagsChanged(Color_Wheel::Display_Flags flags);
56 
57 public slots:
58  void setWheelFlags(Color_Wheel::Display_Flags flags);
59 
60 private slots:
61  void emit_changed();
62  void handle_removed(int);
63  void color_changed(int row);
64 
65 private:
66  class Private;
67  Private * const p;
68  void append_widget(int col);
69 };
70 
71 #endif // COLOR_LIST_WIDGET_HPP
Definition: abstract_widget_list.hpp:35
Definition: color_list_widget.cpp:30
#define QCP_EXPORT
Definition: colorpicker_global.hpp:9
Definition: color_list_widget.hpp:33
Display an analog widget that allows the selection of a HSV color.
Definition: color_wheel.hpp:36