diff view/PaneStack.h @ 605:a7a89ebe4b02

Show current-pane indicator and close-pane button only if there is more than one pane
author Chris Cannam
date Mon, 23 Jan 2012 14:28:40 +0000
parents 566787389e59
children 833cd1b8014f
line wrap: on
line diff
--- a/view/PaneStack.h	Fri Jan 13 17:43:06 2012 +0000
+++ b/view/PaneStack.h	Mon Jan 23 14:28:40 2012 +0000
@@ -25,6 +25,7 @@
 class QStackedWidget;
 class QSplitter;
 class QGridLayout;
+class QPushButton;
 class View;
 class Pane;
 class Layer;
@@ -109,6 +110,7 @@
     {
 	Pane        *pane;
 	QWidget     *propertyStack;
+        QPushButton *xButton;
 	QLabel      *currentIndicator;
         QFrame      *frame;
         QGridLayout *layout;
@@ -117,8 +119,6 @@
     std::vector<PaneRec> m_panes;
     std::vector<PaneRec> m_hiddenPanes;
 
-    std::map<QWidget *, Pane *> m_xButtonMap;
-
     QSplitter *m_splitter;
     QStackedWidget *m_propertyStackStack;
 
@@ -126,6 +126,8 @@
     int m_propertyStackMinWidth;
     void sizePropertyStacks();
 
+    void showOrHidePaneAccessories();
+
     LayoutStyle m_layoutStyle;
 };