Mercurial > hg > svgui
comparison widgets/PropertyStack.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_STACK_H_ | |
| 11 #define _PROPERTY_STACK_H_ | |
| 12 | |
| 13 #include <QFrame> | |
| 14 #include <QTabWidget> | |
| 15 #include <vector> | |
| 16 | |
| 17 class Layer; | |
| 18 class View; | |
| 19 class PropertyBox; | |
| 20 class PropertyContainer; | |
| 21 | |
| 22 class PropertyStack : public QTabWidget | |
| 23 { | |
| 24 Q_OBJECT | |
| 25 | |
| 26 public: | |
| 27 PropertyStack(QWidget *parent, View *client); | |
| 28 | |
| 29 bool containsContainer(PropertyContainer *container) const; | |
| 30 | |
| 31 signals: | |
| 32 void propertyContainerSelected(PropertyContainer *container); | |
| 33 | |
| 34 public slots: | |
| 35 void propertyContainerAdded(PropertyContainer *); | |
| 36 void propertyContainerRemoved(PropertyContainer *); | |
| 37 void propertyContainerPropertyChanged(PropertyContainer *); | |
| 38 void propertyContainerNameChanged(PropertyContainer *); | |
| 39 | |
| 40 protected slots: | |
| 41 void selectedContainerChanged(int); | |
| 42 | |
| 43 protected: | |
| 44 View *m_client; | |
| 45 std::vector<PropertyBox *> m_boxes; | |
| 46 | |
| 47 void repopulate(); | |
| 48 void updateValues(PropertyContainer *); | |
| 49 }; | |
| 50 | |
| 51 #endif |
