Skip to content

Commit

Permalink
Windows: Several visual changes to SongGridView to make it cleaner. N…
Browse files Browse the repository at this point in the history
…o more grid lines except for each album. No more artist/album captions over album art. No more mouse over color change. A bit sad that I took a lot of amount of time to do these features a few years ago... to realize they are more noise than useful. But after these changes... I think my designer was right! Added a bit of logic to PlaylistPresenter.

Related to issue #422.
  • Loading branch information
ycastonguay committed Aug 23, 2013
1 parent 24977a0 commit 2d8d2c7
Show file tree
Hide file tree
Showing 9 changed files with 3,806 additions and 4,305 deletions.
453 changes: 320 additions & 133 deletions MPfm/MPfm.MVP/Presenters/PlaylistPresenter.cs

Large diffs are not rendered by default.

86 changes: 43 additions & 43 deletions MPfm/MPfm.MVP/Views/IPlaylistView.cs
@@ -1,43 +1,43 @@
// 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 System.Collections.Generic;
using MPfm.Sound.AudioFiles;
using MPfm.Sound.Playlists;

namespace MPfm.MVP.Views
{
/// <summary>
/// Playlist view interface.
/// </summary>
public interface IPlaylistView : IBaseView
{
// Note: These actions use the PlaylistItemId, not AudioFileId!
Action<Guid, int> OnChangePlaylistItemOrder { get; set; }
Action<Guid> OnSelectPlaylistItem { get; set; }
Action<Guid> OnRemovePlaylistItem { get; set; }
Action OnNewPlaylist { get; set; }
Action<string> OnLoadPlaylist { get; set; }
Action OnSavePlaylist { get; set; }
Action OnShufflePlaylist { get; set; }

void PlaylistError(Exception ex);
void RefreshPlaylist(Playlist playlist);
void RefreshCurrentlyPlayingSong(int index, 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 System.Collections.Generic;
using MPfm.Sound.AudioFiles;
using MPfm.Sound.Playlists;

namespace MPfm.MVP.Views
{
/// <summary>
/// Playlist view interface.
/// </summary>
public interface IPlaylistView : IBaseView
{
// Note: These actions use the PlaylistItemId, not AudioFileId!
Action<Guid, int> OnChangePlaylistItemOrder { get; set; }
Action<Guid> OnSelectPlaylistItem { get; set; }
Action<List<Guid>> OnRemovePlaylistItems { get; set; }
Action OnNewPlaylist { get; set; }
Action<string> OnLoadPlaylist { get; set; }
Action OnSavePlaylist { get; set; }
Action OnShufflePlaylist { get; set; }

void PlaylistError(Exception ex);
void RefreshPlaylist(Playlist playlist);
void RefreshCurrentlyPlayingSong(int index, AudioFile audioFile);
}
}

0 comments on commit 2d8d2c7

Please sign in to comment.