comparison widgets/PropertyBox.h @ 34:c43f2c4f66f2

* As previous commit
author Chris Cannam
date Fri, 17 Feb 2006 18:11:08 +0000
parents 651e4e868bcc
children 2e2ad8510e52
comparison
equal deleted inserted replaced
33:651e4e868bcc 34:c43f2c4f66f2
16 #include <map> 16 #include <map>
17 17
18 class QLayout; 18 class QLayout;
19 class QWidget; 19 class QWidget;
20 class QGridLayout; 20 class QGridLayout;
21 class QVBoxLayout;
21 22
22 class PropertyBox : public QFrame 23 class PropertyBox : public QFrame
23 { 24 {
24 Q_OBJECT 25 Q_OBJECT
25 26
27 PropertyBox(PropertyContainer *); 28 PropertyBox(PropertyContainer *);
28 ~PropertyBox(); 29 ~PropertyBox();
29 30
30 PropertyContainer *getContainer() { return m_container; } 31 PropertyContainer *getContainer() { return m_container; }
31 32
33 signals:
34 void changePlayGain(float);
35 void changePlayGainDial(int);
36 void changePlayPan(float);
37 void changePlayPanDial(int);
38
32 public slots: 39 public slots:
33 void propertyContainerPropertyChanged(PropertyContainer *); 40 void propertyContainerPropertyChanged(PropertyContainer *);
34 41
35 protected slots: 42 protected slots:
36 void propertyControllerChanged(int); 43 void propertyControllerChanged(int);
37 44
45 void playGainChanged(float);
46 void playGainDialChanged(int);
47 void playPanChanged(float);
48 void playPanDialChanged(int);
49
50 void populateViewPlayFrame();
51
38 protected: 52 protected:
39 void populateViewPlayBox(PropertyContainer *, QLayout *);
40 void updatePropertyEditor(PropertyContainer::PropertyName); 53 void updatePropertyEditor(PropertyContainer::PropertyName);
41 54
42 QWidget *m_mainWidget; 55 QWidget *m_mainWidget;
43 QGridLayout *m_layout; 56 QGridLayout *m_layout;
44 PropertyContainer *m_container; 57 PropertyContainer *m_container;
58 QFrame *m_viewPlayFrame;
59 QVBoxLayout *m_mainBox;
45 std::map<QString, QLayout *> m_groupLayouts; 60 std::map<QString, QLayout *> m_groupLayouts;
46 std::map<QString, QWidget *> m_propertyControllers; 61 std::map<QString, QWidget *> m_propertyControllers;
47 }; 62 };
48 63
49 #endif 64 #endif