summaryrefslogtreecommitdiff
path: root/src/wx/gain_calculator_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-25 00:53:00 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-25 00:53:00 +0100
commit975ad46587b8692f1acafac0e9b8ddf2c8ca6559 (patch)
treed68108bfc2191762e8c726d5a57eb4893e2470c3 /src/wx/gain_calculator_dialog.cc
parent9c4bdd6a639c3b685423e19ef12e7f4a53d139b0 (diff)
White space: filter.{cc,h}, hints.{cc,h}, gain_calculator_dialog.{cc,h}
Diffstat (limited to 'src/wx/gain_calculator_dialog.cc')
-rw-r--r--src/wx/gain_calculator_dialog.cc22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/wx/gain_calculator_dialog.cc b/src/wx/gain_calculator_dialog.cc
index 5c7ec88ca..b72e0bd79 100644
--- a/src/wx/gain_calculator_dialog.cc
+++ b/src/wx/gain_calculator_dialog.cc
@@ -18,6 +18,7 @@
*/
+
#include "gain_calculator_dialog.h"
#include "wx_util.h"
#include "lib/cinema_sound_processor.h"
@@ -26,29 +27,30 @@
using boost::optional;
-GainCalculatorDialog::GainCalculatorDialog (wxWindow* parent)
- : TableDialog (parent, _("Gain Calculator"), 2, 1, true)
+GainCalculatorDialog::GainCalculatorDialog(wxWindow* parent)
+ : TableDialog(parent, _("Gain Calculator"), 2, 1, true)
{
- add (_("Sound processor"), true);
- _processor = add (new wxChoice(this, wxID_ANY));
+ add(_("Sound processor"), true);
+ _processor = add(new wxChoice(this, wxID_ANY));
- add (_("I want to play this back at fader"), true);
+ add(_("I want to play this back at fader"), true);
_wanted = add(new wxTextCtrl(this, wxID_ANY, {}, wxDefaultPosition, wxDefaultSize, 0, wxTextValidator(wxFILTER_NUMERIC)));
- add (_("But I have to use fader"), true);
+ add(_("But I have to use fader"), true);
_actual = add(new wxTextCtrl(this, wxID_ANY, {}, wxDefaultPosition, wxDefaultSize, 0, wxTextValidator(wxFILTER_NUMERIC)));
for (auto i: CinemaSoundProcessor::all()) {
- _processor->Append (std_to_wx(i->name()));
+ _processor->Append(std_to_wx(i->name()));
}
- _processor->SetSelection (0);
+ _processor->SetSelection(0);
- layout ();
+ layout();
}
+
optional<float>
-GainCalculatorDialog::db_change () const
+GainCalculatorDialog::db_change() const
{
if (_wanted->GetValue().IsEmpty() || _actual->GetValue().IsEmpty()) {
return {};