diff --git a/src/menu.cpp b/src/menu.cpp
index 26617ba6..ee6c0f93 100644
--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -281,7 +281,7 @@ void Menu::Display(bool redraw_whole_window)
void Menu::Refresh(bool redraw_whole_window)
{
if (!itsOptions.empty() && is_static())
- itsHighlight == 0 ? Go(DOWN) : Go(UP);
+ itsHighlight == 0 ? Go(wDown) : Go(wUp);
int MaxBeginning = itsOptions.size() < itsHeight ? 0 : itsOptions.size()-itsHeight;
if (itsBeginning > MaxBeginning)
@@ -397,7 +397,7 @@ void Menu::Go(Where where)
scrollok(itsWindow, 1);
switch (where)
{
- case UP:
+ case wUp:
{
if (itsHighlight <= itsBeginning && itsHighlight > 0)
{
@@ -414,13 +414,13 @@ void Menu::Go(Where where)
if (is_static())
{
if (itsHighlight == 0)
- Go(DOWN);
+ Go(wDown);
else
- Go(UP);
+ Go(wUp);
}
break;
}
- case DOWN:
+ case wDown:
{
if (itsHighlight >= MaxCurrentHighlight && itsHighlight < MaxHighlight)
{
@@ -437,13 +437,13 @@ void Menu::Go(Where where)
if (is_static())
{
if (itsHighlight == MaxHighlight)
- Go(UP);
+ Go(wUp);
else
- Go(DOWN);
+ Go(wDown);
}
break;
}
- case PAGE_UP:
+ case wPageUp:
{
itsHighlight -= itsHeight;
itsBeginning -= itsHeight;
@@ -455,14 +455,14 @@ void Menu::Go(Where where)
if (is_static())
{
if (itsHighlight == 0)
- Go(DOWN);
+ Go(wDown);
else
- Go(UP);
+ Go(wUp);
}
redraw_screen();
break;
}
- case PAGE_DOWN:
+ case wPageDown:
{
itsHighlight += itsHeight;
itsBeginning += itsHeight;
@@ -474,37 +474,37 @@ void Menu::Go(Where where)
if (is_static())
{
if (itsHighlight == MaxHighlight)
- Go(UP);
+ Go(wUp);
else
- Go(DOWN);
+ Go(wDown);
}
redraw_screen();
break;
}
- case HOME:
+ case wHome:
{
itsHighlight = 0;
itsBeginning = 0;
if (is_static())
{
if (itsHighlight == 0)
- Go(DOWN);
+ Go(wDown);
else
- Go(UP);
+ Go(wUp);
}
redraw_screen();
break;
}
- case END:
+ case wEnd:
{
itsHighlight = MaxHighlight;
itsBeginning = MaxBeginning;
if (is_static())
{
if (itsHighlight == MaxHighlight)
- Go(UP);
+ Go(wUp);
else
- Go(DOWN);
+ Go(wDown);
}
redraw_screen();
break;
diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp
index 05027da8..fcceb99c 100644
--- a/src/ncmpcpp.cpp
+++ b/src/ncmpcpp.cpp
@@ -330,7 +330,7 @@ int main(int argc, char *argv[])
int footer_height = Config.statusbar_visibility ? 2 : 1;
wFooter = new Window(0, footer_start_y, COLS, footer_height, "", Config.statusbar_color, brNone);
- wFooter->GetGetStringHelper(TraceMpdStatus);
+ wFooter->SetGetStringHelper(TraceMpdStatus);
wFooter->Display();
wCurrent = mPlaylist;
@@ -658,14 +658,14 @@ int main(int argc, char *argv[])
while (Keypressed(input, Key.Up))
{
TraceMpdStatus();
- wCurrent->Go(UP);
+ wCurrent->Go(wUp);
wCurrent->Refresh();
wCurrent->ReadKey(input);
}
wCurrent->Timeout(ncmpcpp_window_timeout);
}
else
- wCurrent->Go(UP);
+ wCurrent->Go(wUp);
}
else if (Keypressed(input, Key.Down))
{
@@ -675,30 +675,30 @@ int main(int argc, char *argv[])
while (Keypressed(input, Key.Down))
{
TraceMpdStatus();
- wCurrent->Go(DOWN);
+ wCurrent->Go(wDown);
wCurrent->Refresh();
wCurrent->ReadKey(input);
}
wCurrent->Timeout(ncmpcpp_window_timeout);
}
else
- wCurrent->Go(DOWN);
+ wCurrent->Go(wDown);
}
else if (Keypressed(input, Key.PageUp))
{
- wCurrent->Go(PAGE_UP);
+ wCurrent->Go(wPageUp);
}
else if (Keypressed(input, Key.PageDown))
{
- wCurrent->Go(PAGE_DOWN);
+ wCurrent->Go(wPageDown);
}
else if (Keypressed(input, Key.Home))
{
- wCurrent->Go(HOME);
+ wCurrent->Go(wHome);
}
else if (Keypressed(input, Key.End))
{
- wCurrent->Go(END);
+ wCurrent->Go(wEnd);
}
else if (input == KEY_RESIZE)
{
@@ -1139,8 +1139,8 @@ int main(int argc, char *argv[])
for (int i = 1; i <=13; i++)
mSearcher->MakeStatic(i, 1);
- mSearcher->Go(DOWN);
- mSearcher->Go(DOWN);
+ mSearcher->Go(wDown);
+ mSearcher->Go(wDown);
}
else
ShowMessage("No results found");
@@ -1230,7 +1230,7 @@ int main(int argc, char *argv[])
}
FreeSongList(list);
if (Keypressed(input, Key.Space))
- wCurrent->Go(DOWN);
+ wCurrent->Go(wDown);
break;
}
case csPlaylistEditor:
@@ -1274,7 +1274,7 @@ int main(int argc, char *argv[])
}
FreeSongList(list);
if (Keypressed(input, Key.Space))
- wCurrent->Go(DOWN);
+ wCurrent->Go(wDown);
break;
}
default:
@@ -1290,7 +1290,7 @@ int main(int argc, char *argv[])
Menu *mCurrent = static_cast