Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/view/PaneStack.h Fri May 17 10:02:52 2019 +0100 +++ b/view/PaneStack.h Fri May 17 14:37:02 2019 +0100 @@ -79,9 +79,17 @@ ResizeMode getResizeMode() const { return m_resizeMode; } void setResizeMode(ResizeMode); + // Set whether the current-pane indicators and close buttons are + // shown. The default is true. + void setShowPaneAccessories(bool show); + + // Set whether a close button is shown on the first pane as well + // as others. (It may be reasonable to omit the close button from + // what is presumably the main pane in some applications.) The + // default is true. + void setShowCloseButtonOnFirstPane(bool); + void setPropertyStackMinWidth(int mw); - - void setShowPaneAccessories(bool show); // current indicator, close button void setShowAlignmentViews(bool show); @@ -139,6 +147,7 @@ std::vector<PaneRec> m_hiddenPanes; bool m_showAccessories; + bool m_showCloseButtonOnFirstPane; bool m_showAlignmentViews; QSplitter *m_splitter; // constitutes the stack in UserResizeable mode