Chris@58: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@0: Chris@0: /* Chris@0: A waveform viewer and audio annotation editor. Chris@5: Chris Cannam, Queen Mary University of London, 2005-2006 Chris@0: Chris@0: This is experimental software. Not for distribution. Chris@0: */ Chris@0: Chris@0: #ifndef _PROPERTY_STACK_H_ Chris@0: #define _PROPERTY_STACK_H_ Chris@0: Chris@0: #include Chris@0: #include Chris@0: #include Chris@0: Chris@0: class Layer; Chris@0: class View; Chris@0: class PropertyBox; Chris@0: class PropertyContainer; Chris@0: Chris@0: class PropertyStack : public QTabWidget Chris@0: { Chris@0: Q_OBJECT Chris@0: Chris@0: public: Chris@0: PropertyStack(QWidget *parent, View *client); Chris@0: Chris@52: View *getClient() { return m_client; } Chris@0: bool containsContainer(PropertyContainer *container) const; Chris@19: int getContainerIndex(PropertyContainer *container) const; Chris@0: Chris@0: signals: Chris@52: void propertyContainerSelected(View *client, PropertyContainer *container); Chris@0: Chris@0: public slots: Chris@0: void propertyContainerAdded(PropertyContainer *); Chris@0: void propertyContainerRemoved(PropertyContainer *); Chris@0: void propertyContainerPropertyChanged(PropertyContainer *); Chris@0: void propertyContainerNameChanged(PropertyContainer *); Chris@0: Chris@47: void showLayer(bool); Chris@47: Chris@0: protected slots: Chris@0: void selectedContainerChanged(int); Chris@0: Chris@0: protected: Chris@0: View *m_client; Chris@0: std::vector m_boxes; Chris@0: Chris@0: void repopulate(); Chris@0: void updateValues(PropertyContainer *); Chris@0: }; Chris@0: Chris@0: #endif