Vuo  2.0.1
VuoInputEditorColor.hh
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include "VuoInputEditor.hh"
13 
14 extern "C"
15 {
16  #include "VuoColor.h"
17 }
18 
23 {
24  Q_OBJECT
25  Q_PLUGIN_METADATA(IID "org.vuo.inputEditor" FILE "VuoInputEditorColor.json")
26  Q_INTERFACES(VuoInputEditorFactory)
27 
28 public:
29  virtual VuoInputEditor * newInputEditor(void);
30 };
31 
36 {
37  Q_OBJECT
38 
39 public:
40  json_object * show(QPoint portLeftCenter, json_object *originalValue, json_object *details, map<QString, json_object *> portNamesAndValues);
41 
42 private:
43  VuoColor vuoColorFromQColor(const QColor &qtColor);
44 
45 private slots:
46  void currentColorChanged(const QColor &color);
47 };
48