comparison view/PaneStack.h @ 1460:69b7fdd6394f

Add option to suppress close button on first pane
author Chris Cannam
date Fri, 17 May 2019 14:37:02 +0100
parents 8afea53332f3
children 0f1601d870db
comparison
equal deleted inserted replaced
1459:42c87368287c 1460:69b7fdd6394f
77 }; 77 };
78 78
79 ResizeMode getResizeMode() const { return m_resizeMode; } 79 ResizeMode getResizeMode() const { return m_resizeMode; }
80 void setResizeMode(ResizeMode); 80 void setResizeMode(ResizeMode);
81 81
82 // Set whether the current-pane indicators and close buttons are
83 // shown. The default is true.
84 void setShowPaneAccessories(bool show);
85
86 // Set whether a close button is shown on the first pane as well
87 // as others. (It may be reasonable to omit the close button from
88 // what is presumably the main pane in some applications.) The
89 // default is true.
90 void setShowCloseButtonOnFirstPane(bool);
91
82 void setPropertyStackMinWidth(int mw); 92 void setPropertyStackMinWidth(int mw);
83
84 void setShowPaneAccessories(bool show); // current indicator, close button
85 93
86 void setShowAlignmentViews(bool show); 94 void setShowAlignmentViews(bool show);
87 95
88 void sizePanesEqually(); 96 void sizePanesEqually();
89 97
137 145
138 std::vector<PaneRec> m_panes; 146 std::vector<PaneRec> m_panes;
139 std::vector<PaneRec> m_hiddenPanes; 147 std::vector<PaneRec> m_hiddenPanes;
140 148
141 bool m_showAccessories; 149 bool m_showAccessories;
150 bool m_showCloseButtonOnFirstPane;
142 bool m_showAlignmentViews; 151 bool m_showAlignmentViews;
143 152
144 QSplitter *m_splitter; // constitutes the stack in UserResizeable mode 153 QSplitter *m_splitter; // constitutes the stack in UserResizeable mode
145 QWidget *m_autoResizeStack; // constitutes the stack in AutoResizeOnly mode 154 QWidget *m_autoResizeStack; // constitutes the stack in AutoResizeOnly mode
146 QVBoxLayout *m_autoResizeLayout; 155 QVBoxLayout *m_autoResizeLayout;