diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-06 23:34:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-06 23:34:48 +0100 |
| commit | 401af8742fe5b2bb3ec117acdc4b0b36bc8f5047 (patch) | |
| tree | 903a138f847c19c9bfa7dca675abdc9b5ff11231 /src/wx/content_sub_panel.cc | |
| parent | 2857a60daf47286979a813ebefd892757de4f113 (diff) | |
Interface levels in audio tab.
Diffstat (limited to 'src/wx/content_sub_panel.cc')
| -rw-r--r-- | src/wx/content_sub_panel.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc index aab404b74..0bd79805b 100644 --- a/src/wx/content_sub_panel.cc +++ b/src/wx/content_sub_panel.cc @@ -39,6 +39,23 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name) { SetScrollRate (8, 8); SetSizer (_sizer); + + _grid = new wxGridBagSizer (DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP); + _sizer->Add (_grid, 0, wxALL, 8); + + Config::instance()->Changed.connect (boost::bind (&ContentSubPanel::config_changed, this, _1)); +} + + +void +ContentSubPanel::config_changed (Config::Property p) +{ + if (p == Config::INTERFACE_COMPLEXITY) { + _grid->Clear (); + add_to_grid (); + _sizer->Layout (); + _grid->Layout (); + } } void |
