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_BOX_H_ Chris@0: #define _PROPERTY_BOX_H_ Chris@0: Chris@0: #include "base/PropertyContainer.h" Chris@0: Chris@0: #include Chris@0: #include Chris@0: Chris@33: class QLayout; Chris@33: class QWidget; Chris@0: class QGridLayout; Chris@34: class QVBoxLayout; Chris@0: Chris@0: class PropertyBox : public QFrame Chris@0: { Chris@0: Q_OBJECT Chris@0: Chris@0: public: Chris@0: PropertyBox(PropertyContainer *); Chris@0: ~PropertyBox(); Chris@0: Chris@0: PropertyContainer *getContainer() { return m_container; } Chris@0: Chris@34: signals: Chris@34: void changePlayGain(float); Chris@34: void changePlayGainDial(int); Chris@34: void changePlayPan(float); Chris@34: void changePlayPanDial(int); Chris@47: void showLayer(bool); Chris@34: Chris@0: public slots: Chris@0: void propertyContainerPropertyChanged(PropertyContainer *); Chris@0: Chris@0: protected slots: Chris@0: void propertyControllerChanged(int); Chris@0: Chris@34: void playGainChanged(float); Chris@34: void playGainDialChanged(int); Chris@34: void playPanChanged(float); Chris@34: void playPanDialChanged(int); Chris@34: Chris@34: void populateViewPlayFrame(); Chris@34: Chris@0: protected: Chris@0: void updatePropertyEditor(PropertyContainer::PropertyName); Chris@0: Chris@33: QWidget *m_mainWidget; Chris@0: QGridLayout *m_layout; Chris@0: PropertyContainer *m_container; Chris@34: QFrame *m_viewPlayFrame; Chris@34: QVBoxLayout *m_mainBox; Chris@0: std::map m_groupLayouts; Chris@0: std::map m_propertyControllers; Chris@0: }; Chris@0: Chris@0: #endif