Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iOS: Renamed EffectsViewController to EqualizerPresetsViewController.
iOS: Added EqualizerPresetDetailsViewController. MVP: Renamed EffectsPresenter/View to EqualizerPresetsPresenter/View. MVP: Added EqualizerPresetDetailsPresenter/View. Related to issue #397, issue #405 and issue #417.
- Loading branch information
1 parent
f1416a2
commit adf5a61
Showing
25 changed files
with
558 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
using MPfm.MVP.Presenters.Interfaces; | ||
using MPfm.MVP.Services.Interfaces; | ||
using MPfm.MVP.Views; | ||
|
||
namespace MPfm.MVP.Presenters | ||
{ | ||
public class EqualizerPresetsPresenter : BasePresenter<IEqualizerPresetsView>, IEqualizerPresetsPresenter | ||
{ | ||
readonly IPlayerService playerService; | ||
|
||
public EqualizerPresetsPresenter(IPlayerService playerService) | ||
{ | ||
// Set properties | ||
this.playerService = playerService; | ||
} | ||
|
||
public void SetEQParam(int index, float value) | ||
{ | ||
// Set EQ and update UI | ||
playerService.UpdateEQBand(index, value, true); | ||
View.UpdateFader(index, value); | ||
} | ||
|
||
public void BypassEQ() | ||
{ | ||
playerService.BypassEQ(); | ||
} | ||
|
||
public void AutoLevel() | ||
{ | ||
} | ||
|
||
public void Reset() | ||
{ | ||
playerService.ResetEQ(); | ||
for (int a = 0; a < 18; a++) | ||
View.UpdateFader(a, 0); | ||
} | ||
|
||
public void LoadPreset(string presetName) | ||
{ | ||
} | ||
|
||
public void SavePreset(string presetName) | ||
{ | ||
} | ||
|
||
public void DeletePreset(string presetName) | ||
{ | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
MPfm/MPfm.MVP/Presenters/Interfaces/IEqualizerPresetsPresenter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
using MPfm.MVP.Views; | ||
|
||
namespace MPfm.MVP.Presenters.Interfaces | ||
{ | ||
public interface IEqualizerPresetsPresenter : IBasePresenter<IEqualizerPresetsView> | ||
{ | ||
void SetEQParam(int index, float value); | ||
void BypassEQ(); | ||
void AutoLevel(); | ||
void Reset(); | ||
|
||
void LoadPreset(string presetName); | ||
void SavePreset(string presetName); | ||
void DeletePreset(string presetName); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace MPfm.MVP.Views | ||
{ | ||
public interface IEqualizerPresetsView : IBaseView | ||
{ | ||
void UpdateFader(int index, float value); | ||
void UpdatePresetList(IEnumerable<string> presets); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.