Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added IDesktopFirstRunView, IMobileFirstRunView and IEditSongMetadata…
…View (and their presenters). They are empty for now. Edit Song Metadata can now be opened on Windows. The Song Browser contextual menu is now working again on Windows. Related to issue #422.
- Loading branch information
1 parent
c27a302
commit 24977a0
Showing
30 changed files
with
1,144 additions
and
843 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// 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.Navigation; | ||
using MPfm.MVP.Presenters.Interfaces; | ||
using MPfm.MVP.Views; | ||
|
||
namespace MPfm.MVP.Presenters | ||
{ | ||
/// <summary> | ||
/// First Run view presenter for desktop devices. | ||
/// </summary> | ||
public class DesktopFirstRunPresenter : BasePresenter<IDesktopFirstRunView>, IDesktopFirstRunPresenter | ||
{ | ||
public DesktopFirstRunPresenter() | ||
{ | ||
} | ||
|
||
public override void BindView(IDesktopFirstRunView view) | ||
{ | ||
base.BindView(view); | ||
} | ||
} | ||
} | ||
|
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,47 @@ | ||
// 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.Navigation; | ||
using MPfm.MVP.Presenters.Interfaces; | ||
using MPfm.MVP.Views; | ||
using MPfm.Sound.AudioFiles; | ||
|
||
namespace MPfm.MVP.Presenters | ||
{ | ||
/// <summary> | ||
/// Edit Song Metadata view presenter. | ||
/// </summary> | ||
public class EditSongMetadataPresenter : BasePresenter<IEditSongMetadataView>, IEditSongMetadataPresenter | ||
{ | ||
AudioFile _audioFile; | ||
|
||
public EditSongMetadataPresenter() | ||
{ | ||
} | ||
|
||
public override void BindView(IEditSongMetadataView view) | ||
{ | ||
base.BindView(view); | ||
} | ||
|
||
public void SetAudioFile(AudioFile audioFile) | ||
{ | ||
_audioFile = audioFile; | ||
} | ||
} | ||
} | ||
|
29 changes: 29 additions & 0 deletions
29
MPfm/MPfm.MVP/Presenters/Interfaces/IDesktopFirstRunPresenter.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,29 @@ | ||
// 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.Models; | ||
using MPfm.MVP.Views; | ||
|
||
namespace MPfm.MVP.Presenters.Interfaces | ||
{ | ||
/// <summary> | ||
/// First Run presenter interface for desktop devices. | ||
/// </summary> | ||
public interface IDesktopFirstRunPresenter : IBasePresenter<IDesktopFirstRunView> | ||
{ | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
MPfm/MPfm.MVP/Presenters/Interfaces/IEditSongMetadataPresenter.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,30 @@ | ||
// 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; | ||
using MPfm.Sound.AudioFiles; | ||
|
||
namespace MPfm.MVP.Presenters.Interfaces | ||
{ | ||
/// <summary> | ||
/// Edit Song Metadata presenter interface. | ||
/// </summary> | ||
public interface IEditSongMetadataPresenter : IBasePresenter<IEditSongMetadataView> | ||
{ | ||
void SetAudioFile(AudioFile audioFile); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
MPfm/MPfm.MVP/Presenters/Interfaces/IMobileFirstRunPresenter.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,29 @@ | ||
// 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.Models; | ||
using MPfm.MVP.Views; | ||
|
||
namespace MPfm.MVP.Presenters.Interfaces | ||
{ | ||
/// <summary> | ||
/// First Run presenter interface for mobile devices. | ||
/// </summary> | ||
public interface IMobileFirstRunPresenter : IBasePresenter<IMobileFirstRunView> | ||
{ | ||
} | ||
} |
68 changes: 33 additions & 35 deletions
68
MPfm/MPfm.MVP/Presenters/Interfaces/ISongBrowserPresenter.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 |
---|---|---|
@@ -1,35 +1,33 @@ | ||
// 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.Models; | ||
using MPfm.MVP.Views; | ||
using MPfm.Sound.AudioFiles; | ||
using MPfm.Library.Objects; | ||
|
||
namespace MPfm.MVP.Presenters.Interfaces | ||
{ | ||
/// <summary> | ||
/// Song browser presenter interface. | ||
/// </summary> | ||
public interface ISongBrowserPresenter : IBasePresenter<ISongBrowserView> | ||
{ | ||
LibraryQuery Query { get; } | ||
|
||
void ChangeQuery(LibraryQuery query); | ||
void TableRowDoubleClicked(AudioFile audioFile); | ||
} | ||
} | ||
// 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; | ||
using MPfm.MVP.Models; | ||
using MPfm.MVP.Views; | ||
using MPfm.Sound.AudioFiles; | ||
using MPfm.Library.Objects; | ||
|
||
namespace MPfm.MVP.Presenters.Interfaces | ||
{ | ||
/// <summary> | ||
/// Song Browser presenter interface. | ||
/// </summary> | ||
public interface ISongBrowserPresenter : IBasePresenter<ISongBrowserView> | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.