Skip to content

Commit 8e250a1

Browse files
authored
Renamed GOSetter::m_swell to m_CrescendoCtrl (#2014)
1 parent c3108c4 commit 8e250a1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/grandorgue/combinations/GOSetter.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ GOSetter::GOSetter(GOOrganController *organController)
305305
m_CrescendoDisplay(organController),
306306
m_TransposeDisplay(organController),
307307
m_NameDisplay(organController),
308-
m_swell(*organController) {
308+
m_CrescendoCtrl(*organController) {
309309
CreateButtons(*m_OrganController);
310310

311311
m_buttons[ID_SETTER_PREV]->SetPreconfigIndex(0);
@@ -459,7 +459,7 @@ void GOSetter::Load(GOConfigReader &cfg) {
459459
m_buttons[ID_SETTER_FILE_EXIT]->Init(
460460
cfg, wxT("ExitGO"), _("Exit GrandOrgue"));
461461

462-
m_swell.Init(cfg, wxT("SetterSwell"), _("Crescendo"), 0);
462+
m_CrescendoCtrl.Init(cfg, wxT("SetterSwell"), _("Crescendo"), 0);
463463

464464
m_PosDisplay.Init(cfg, wxT("SetterCurrentPosition"), _("sequencer position"));
465465
m_BankDisplay.Init(cfg, wxT("SetterGeneralBank"), _("general bank"));
@@ -1161,8 +1161,8 @@ void GOSetter::Crescendo(int newpos, bool force) {
11611161
}
11621162

11631163
void GOSetter::ControlChanged(GOControl *control) {
1164-
if (control == &m_swell)
1165-
Crescendo(m_swell.GetValue() * CRESCENDO_STEPS / 128);
1164+
if (control == &m_CrescendoCtrl)
1165+
Crescendo(m_CrescendoCtrl.GetValue() * CRESCENDO_STEPS / 128);
11661166
}
11671167

11681168
void GOSetter::UpdateTranspose() {
@@ -1188,7 +1188,7 @@ void GOSetter::UpdateModified(bool modified) {
11881188

11891189
GOEnclosure *GOSetter::GetEnclosure(const wxString &name, bool is_panel) {
11901190
if (name == wxT("Swell"))
1191-
return &m_swell;
1191+
return &m_CrescendoCtrl;
11921192

11931193
return NULL;
11941194
}

src/grandorgue/combinations/GOSetter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class GOSetter : private GOSoundStateHandler,
6868
GOLabelControl m_CrescendoDisplay;
6969
GOLabelControl m_TransposeDisplay;
7070
GOLabelControl m_NameDisplay;
71-
GOEnclosure m_swell;
71+
GOEnclosure m_CrescendoCtrl;
7272

7373
// Show the combination file name
7474
void DisplayCmbFile(const wxString &fileName);

0 commit comments

Comments
 (0)