Mercurial > hg > svgui
comparison view/PaneStack.h @ 1148:c0d841cb8ab9 tony-2.0-integration
Merge latest SV 3.0 branch code
author | Chris Cannam |
---|---|
date | Fri, 19 Aug 2016 15:58:57 +0100 |
parents | 36cddc3de023 |
children | a34a2a25907c |
comparison
equal
deleted
inserted
replaced
1009:96cf499fad62 | 1148:c0d841cb8ab9 |
---|---|
32 class Pane; | 32 class Pane; |
33 class Layer; | 33 class Layer; |
34 class ViewManager; | 34 class ViewManager; |
35 class PropertyContainer; | 35 class PropertyContainer; |
36 class PropertyStack; | 36 class PropertyStack; |
37 class AlignmentView; | |
37 | 38 |
38 class PaneStack : public QFrame | 39 class PaneStack : public QFrame |
39 { | 40 { |
40 Q_OBJECT | 41 Q_OBJECT |
41 | 42 |
70 void setLayoutStyle(LayoutStyle style); | 71 void setLayoutStyle(LayoutStyle style); |
71 | 72 |
72 void setPropertyStackMinWidth(int mw); | 73 void setPropertyStackMinWidth(int mw); |
73 | 74 |
74 void setShowPaneAccessories(bool show); // current indicator, close button | 75 void setShowPaneAccessories(bool show); // current indicator, close button |
76 | |
77 void setShowAlignmentViews(bool show); | |
75 | 78 |
76 void sizePanesEqually(); | 79 void sizePanesEqually(); |
77 | 80 |
78 signals: | 81 signals: |
79 void currentPaneChanged(Pane *pane); | 82 void currentPaneChanged(Pane *pane); |
112 protected: | 115 protected: |
113 Pane *m_currentPane; | 116 Pane *m_currentPane; |
114 | 117 |
115 struct PaneRec | 118 struct PaneRec |
116 { | 119 { |
117 Pane *pane; | 120 Pane *pane; |
118 QWidget *propertyStack; | 121 QWidget *propertyStack; |
119 QPushButton *xButton; | 122 QPushButton *xButton; |
120 QLabel *currentIndicator; | 123 QLabel *currentIndicator; |
121 QFrame *frame; | 124 QFrame *frame; |
122 QGridLayout *layout; | 125 QGridLayout *layout; |
126 AlignmentView *alignmentView; | |
123 }; | 127 }; |
124 | 128 |
125 std::vector<PaneRec> m_panes; | 129 std::vector<PaneRec> m_panes; |
126 std::vector<PaneRec> m_hiddenPanes; | 130 std::vector<PaneRec> m_hiddenPanes; |
127 | 131 |
128 bool m_showAccessories; | 132 bool m_showAccessories; |
133 bool m_showAlignmentViews; | |
129 | 134 |
130 QSplitter *m_splitter; | 135 QSplitter *m_splitter; |
131 QStackedWidget *m_propertyStackStack; | 136 QStackedWidget *m_propertyStackStack; |
132 | 137 |
133 ViewManager *m_viewManager; // I don't own this | 138 ViewManager *m_viewManager; // I don't own this |
134 int m_propertyStackMinWidth; | 139 int m_propertyStackMinWidth; |
135 void sizePropertyStacks(); | 140 void sizePropertyStacks(); |
136 | 141 |
137 void showOrHidePaneAccessories(); | 142 void showOrHidePaneAccessories(); |
138 | 143 |
144 void unlinkAlignmentViews(); | |
145 void relinkAlignmentViews(); | |
146 | |
139 LayoutStyle m_layoutStyle; | 147 LayoutStyle m_layoutStyle; |
140 }; | 148 }; |
141 | 149 |
142 #endif | 150 #endif |
143 | 151 |