Mercurial > hg > svgui
diff view/PaneStack.h @ 323:267586900360
* Add [x] button to pane to quickly delete it
author | Chris Cannam |
---|---|
date | Wed, 07 Nov 2007 16:37:17 +0000 |
parents | 984c1975f1ff |
children | 6167a28d25fc |
line wrap: on
line diff
--- a/view/PaneStack.h Thu Nov 01 10:45:28 2007 +0000 +++ b/view/PaneStack.h Wed Nov 07 16:37:17 2007 +0000 @@ -19,6 +19,8 @@ #include <QFrame> +#include <map> + class QWidget; class QLabel; class QStackedWidget; @@ -85,6 +87,8 @@ void dropAccepted(Pane *pane, QStringList uriList); void dropAccepted(Pane *pane, QString text); + void paneDeleteButtonClicked(Pane *pane); + public slots: void propertyContainerAdded(PropertyContainer *); void propertyContainerRemoved(PropertyContainer *); @@ -94,6 +98,7 @@ void rightButtonMenuRequested(QPoint); void paneDropAccepted(QStringList); void paneDropAccepted(QString); + void paneDeleteButtonClicked(); protected: Pane *m_currentPane; @@ -110,6 +115,8 @@ std::vector<PaneRec> m_panes; std::vector<PaneRec> m_hiddenPanes; + std::map<QWidget *, Pane *> m_xButtonMap; + QSplitter *m_splitter; QStackedWidget *m_propertyStackStack;