Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
604:afed40a40d1d | 605:a7a89ebe4b02 |
---|---|
23 class QWidget; | 23 class QWidget; |
24 class QLabel; | 24 class QLabel; |
25 class QStackedWidget; | 25 class QStackedWidget; |
26 class QSplitter; | 26 class QSplitter; |
27 class QGridLayout; | 27 class QGridLayout; |
28 class QPushButton; | |
28 class View; | 29 class View; |
29 class Pane; | 30 class Pane; |
30 class Layer; | 31 class Layer; |
31 class ViewManager; | 32 class ViewManager; |
32 class PropertyContainer; | 33 class PropertyContainer; |
107 | 108 |
108 struct PaneRec | 109 struct PaneRec |
109 { | 110 { |
110 Pane *pane; | 111 Pane *pane; |
111 QWidget *propertyStack; | 112 QWidget *propertyStack; |
113 QPushButton *xButton; | |
112 QLabel *currentIndicator; | 114 QLabel *currentIndicator; |
113 QFrame *frame; | 115 QFrame *frame; |
114 QGridLayout *layout; | 116 QGridLayout *layout; |
115 }; | 117 }; |
116 | 118 |
117 std::vector<PaneRec> m_panes; | 119 std::vector<PaneRec> m_panes; |
118 std::vector<PaneRec> m_hiddenPanes; | 120 std::vector<PaneRec> m_hiddenPanes; |
119 | 121 |
120 std::map<QWidget *, Pane *> m_xButtonMap; | |
121 | |
122 QSplitter *m_splitter; | 122 QSplitter *m_splitter; |
123 QStackedWidget *m_propertyStackStack; | 123 QStackedWidget *m_propertyStackStack; |
124 | 124 |
125 ViewManager *m_viewManager; // I don't own this | 125 ViewManager *m_viewManager; // I don't own this |
126 int m_propertyStackMinWidth; | 126 int m_propertyStackMinWidth; |
127 void sizePropertyStacks(); | 127 void sizePropertyStacks(); |
128 | 128 |
129 void showOrHidePaneAccessories(); | |
130 | |
129 LayoutStyle m_layoutStyle; | 131 LayoutStyle m_layoutStyle; |
130 }; | 132 }; |
131 | 133 |
132 #endif | 134 #endif |
133 | 135 |