27#ifndef ADAPTIVESPLITTER_H
28#define ADAPTIVESPLITTER_H
30#include <wx/splitter.h>
63 wxSize preferredSettingsSize = wxDefaultSize);
75 static wxSplitMode
ChooseSplitMode(wxSize available, wxSize preferredSettingsSize);
93 void OnSize(wxSizeEvent &event);
95 void SplitIn(wxSplitMode mode);
97 void OnSashMoved(wxSplitterEvent &event);
99 wxWindow *m_settings =
nullptr;
100 wxWindow *m_preview =
nullptr;
101 wxSize m_preferredSettingsSize;
103 wxString m_configKey;
A splitter between a settings pane and a preview of what the settings do.
Definition: AdaptiveSplitter.h:49
wxSize GetPreferredSettingsSize() const
The size the settings pane gets whenever the split direction is chosen anew.
Definition: AdaptiveSplitter.h:78
void RememberSashIn(const wxString &configKey)
Remembers where the user puts the sash, across dialog sessions.
Definition: AdaptiveSplitter.cpp:108
static wxSplitMode ChooseSplitMode(wxSize available, wxSize preferredSettingsSize)
Which split leaves more room for the preview.
Definition: AdaptiveSplitter.cpp:44
void SplitAdaptively(wxWindow *settings, wxWindow *preview, wxSize preferredSettingsSize=wxDefaultSize)
Shows settings and preview, split in whichever direction fits best.
Definition: AdaptiveSplitter.cpp:55