SpectMorph
smpropertyview.hh
1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
2 
3 #ifndef SPECTMORPH_PROPERTY_VIEW_HH
4 #define SPECTMORPH_PROPERTY_VIEW_HH
5 
6 #include "smmorphoutput.hh"
7 
8 #include <QLabel>
9 #include <QSlider>
10 #include <QGridLayout>
11 
12 namespace SpectMorph
13 {
14 
15 struct PropertyView : public QObject
16 {
17  Q_OBJECT
18 
19  Property& property;
20 
21  QLabel *title;
22  QSlider *slider;
23  QLabel *label;
24 
25 public:
26  PropertyView (Property& property);
27  void init_ui (QGridLayout *layout, int row);
28  void set_visible (bool visible);
29 
30 public slots:
31  void on_value_changed (int new_value);
32 };
33 
34 }
35 
36 #endif
Definition: smproperty.hh:15
Definition: smpropertyview.hh:15
Definition: smalignedarray.cc:7