Vuo  2.0.0
VuoInputEditorEdgeBlend.hh
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include "VuoInputEditor.hh"
14 #include "VuoDoubleSpinBox.hh"
15 
16 extern "C"
17 {
18  #include "VuoEdgeBlend.h"
19 }
20 
25 {
26  Q_OBJECT
27  Q_PLUGIN_METADATA(IID "org.vuo.inputEditor" FILE "VuoInputEditorEdgeBlend.json")
28  Q_INTERFACES(VuoInputEditorFactory)
29 
30 public:
31  virtual VuoInputEditor * newInputEditor(void);
32 };
33 
38 {
39  Q_OBJECT
40 
41 protected:
42  void setUpDialog(QDialog &dialog, json_object *originalValue, json_object *details);
44  virtual bool supportsTabbingBetweenPorts(void) { return true; }
45 
46 private:
47  VuoEdgeBlend currentValue;
48  VuoEdgeBlend suggestedMin;
49  VuoEdgeBlend suggestedMax;
50  VuoEdgeBlend suggestedStep;
51 
53  int cutoff_slider_range,
54  gamma_slider_range,
55  crop_slider_range;
56 
57  VuoDoubleSpinBox* spinBox_cutoff;
58  VuoDoubleSpinBox* spinBox_gamma;
59  VuoDoubleSpinBox* spinBox_crop;
60  QSlider* slider_cutoff;
61  QSlider* slider_gamma;
62  QSlider* slider_crop;
63 
64 private slots:
65  void setCutoff(QString newLineEditText);
66  void setCutoffSlider(int value);
67  void setGamma(QString newLineEditText);
68  void setGammaSlider(int value);
69  void setCrop(QString newLineEditText);
70  void setCropSlider(int value);
71 
72  void setupSpinBox(VuoDoubleSpinBox* spin, double min, double max, double step, double value);
73  void setupSlider(QSlider* slider, double min, double max, double step, double value);
74 };
75