window: rename Where to Scroll and make it enum class

This commit is contained in:
Andrzej Rybczak
2012-10-05 21:25:22 +02:00
parent 044464962c
commit 1eb0003714
19 changed files with 81 additions and 81 deletions

View File

@@ -45,18 +45,18 @@ void genericMouseButtonPressed(NC::Window &w, MEVENT me)
if (me.bstate & BUTTON2_PRESSED)
{
if (Config.mouse_list_scroll_whole_page)
w.scroll(NC::wPageDown);
w.scroll(NC::Scroll::PageDown);
else
for (size_t i = 0; i < Config.lines_scrolled; ++i)
w.scroll(NC::wDown);
w.scroll(NC::Scroll::Down);
}
else if (me.bstate & BUTTON4_PRESSED)
{
if (Config.mouse_list_scroll_whole_page)
w.scroll(NC::wPageUp);
w.scroll(NC::Scroll::PageUp);
else
for (size_t i = 0; i < Config.lines_scrolled; ++i)
w.scroll(NC::wUp);
w.scroll(NC::Scroll::Up);
}
}
@@ -65,12 +65,12 @@ void scrollpadMouseButtonPressed(NC::Scrollpad &w, MEVENT me)
if (me.bstate & BUTTON2_PRESSED)
{
for (size_t i = 0; i < Config.lines_scrolled; ++i)
w.scroll(NC::wDown);
w.scroll(NC::Scroll::Down);
}
else if (me.bstate & BUTTON4_PRESSED)
{
for (size_t i = 0; i < Config.lines_scrolled; ++i)
w.scroll(NC::wUp);
w.scroll(NC::Scroll::Up);
}
}