move a few small functions to actions

This commit is contained in:
Andrzej Rybczak
2012-09-04 20:47:29 +02:00
parent 09e746aa05
commit ef55093586
5 changed files with 55 additions and 86 deletions

View File

@@ -208,26 +208,6 @@ void PlaylistEditor::Update()
}
}
void PlaylistEditor::MoveSelectedItems(Playlist::Movement where)
{
if (Content->empty() || isContentFiltered())
return;
switch (where)
{
case Playlist::mUp:
{
moveSelectedItemsUp(*Content, std::bind(&MPD::Connection::PlaylistMove, _1, Playlists->current().value(), _2, _3));
break;
}
case Playlist::mDown:
{
moveSelectedItemsDown(*Content, std::bind(&MPD::Connection::PlaylistMove, _1, Playlists->current().value(), _2, _3));
break;
}
}
}
bool PlaylistEditor::isContentFiltered()
{
if (Content->isFiltered())
@@ -238,7 +218,6 @@ bool PlaylistEditor::isContentFiltered()
return false;
}
bool PlaylistEditor::isNextColumnAvailable()
{
if (w == Playlists)