Chris@0: Chris@0: /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */ Chris@0: Chris@0: /* Chris@0: A waveform viewer and audio annotation editor. Chris@0: Chris Cannam, Queen Mary University of London, 2005 Chris@0: Chris@0: This is experimental software. Not for distribution. Chris@0: */ Chris@0: Chris@0: #ifndef _PANESTACK_H_ Chris@0: #define _PANESTACK_H_ Chris@0: Chris@0: #include Chris@0: Chris@0: class QWidget; Chris@0: class QLabel; Chris@0: class Pane; Chris@0: class ViewManager; Chris@0: class PropertyContainer; Chris@0: class PropertyStack; Chris@0: Chris@0: class PaneStack : public QSplitter Chris@0: { Chris@0: Q_OBJECT Chris@0: Chris@0: public: Chris@0: PaneStack(QWidget *parent, ViewManager *viewManager); Chris@0: Chris@0: Pane *addPane(bool suppressPropertyBox = false); // I own the returned value Chris@0: Pane *getPane(int n); // I own the returned value Chris@0: void deletePane(Pane *pane); // Deletes the pane and all its views Chris@0: int getPaneCount() const; Chris@0: Chris@0: void setCurrentPane(Pane *pane); Chris@0: Pane *getCurrentPane(); Chris@0: Chris@0: signals: Chris@0: void currentPaneChanged(Pane *pane); Chris@0: Chris@0: public slots: Chris@0: void propertyContainerAdded(PropertyContainer *); Chris@0: void propertyContainerRemoved(PropertyContainer *); Chris@0: void propertyContainerSelected(PropertyContainer *); Chris@0: void paneInteractedWith(); Chris@0: Chris@0: protected: Chris@0: Pane *m_currentPane; Chris@0: //!!! should be a single vector of structs Chris@0: std::vector m_panes; // I own these Chris@0: std::vector m_propertyStacks; // I own these Chris@0: std::vector m_currentIndicators; // I own these Chris@0: ViewManager *m_viewManager; // I don't own this Chris@0: Chris@0: void sizePropertyStacks(); Chris@0: }; Chris@0: Chris@0: #endif Chris@0: