summaryrefslogtreecommitdiff
path: root/src/wx
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
parent9c4bdd6a639c3b685423e19ef12e7f4a53d139b0 (diff)
White space: filter.{cc,h}, hints.{cc,h}, gain_calculator_dialog.{cc,h}
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/gain_calculator_dialog.cc22
-rw-r--r--src/wx/gain_calculator_dialog.h5
2 files changed, 14 insertions, 13 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 {};
diff --git a/src/wx/gain_calculator_dialog.h b/src/wx/gain_calculator_dialog.h
index e0d545660..98221082f 100644
--- a/src/wx/gain_calculator_dialog.h
+++ b/src/wx/gain_calculator_dialog.h
@@ -20,7 +20,6 @@
#include "table_dialog.h"
-#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
LIBDCP_ENABLE_WARNINGS
@@ -30,9 +29,9 @@ LIBDCP_ENABLE_WARNINGS
class GainCalculatorDialog : public TableDialog
{
public:
- explicit GainCalculatorDialog (wxWindow* parent);
+ explicit GainCalculatorDialog(wxWindow* parent);
- boost::optional<float> db_change () const;
+ boost::optional<float> db_change() const;
private:
wxChoice* _processor;