comparison widgets/PropertyBox.h @ 0:2a4f26e85b4c

initial import
author Chris Cannam
date Tue, 10 Jan 2006 16:33:16 +0000
parents
children 37b110168acf
comparison
equal deleted inserted replaced
-1:000000000000 0:2a4f26e85b4c
1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 A waveform viewer and audio annotation editor.
5 Chris Cannam, Queen Mary University of London, 2005
6
7 This is experimental software. Not for distribution.
8 */
9
10 #ifndef _PROPERTY_BOX_H_
11 #define _PROPERTY_BOX_H_
12
13 #include "base/PropertyContainer.h"
14
15 #include <QFrame>
16 #include <map>
17
18 class QGridLayout;
19
20 class PropertyBox : public QFrame
21 {
22 Q_OBJECT
23
24 public:
25 PropertyBox(PropertyContainer *);
26 ~PropertyBox();
27
28 PropertyContainer *getContainer() { return m_container; }
29
30 public slots:
31 void propertyContainerPropertyChanged(PropertyContainer *);
32
33 protected slots:
34 void propertyControllerChanged(int);
35
36 protected:
37 void updatePropertyEditor(PropertyContainer::PropertyName);
38
39 QGridLayout *m_layout;
40 PropertyContainer *m_container;
41 std::map<QString, QLayout *> m_groupLayouts;
42 std::map<QString, QWidget *> m_propertyControllers;
43 };
44
45 #endif