summaryrefslogtreecommitdiff
path: root/src/sel_items_adder.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-09-02 15:37:42 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-09-02 15:37:42 +0200
commitd47cad1d50cc9d0222a752d63748321485bd7c33 (patch)
treee390bfc434412c163df1cec6c9cdc1ace29e92fc /src/sel_items_adder.cpp
parent6f59a175ec4173f3ee97ca4987547ff326e35328 (diff)
get rid of 'using namespace NCurses' directive
Diffstat (limited to 'src/sel_items_adder.cpp')
-rw-r--r--src/sel_items_adder.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sel_items_adder.cpp b/src/sel_items_adder.cpp
index d83d0aa6..eced1011 100644
--- a/src/sel_items_adder.cpp
+++ b/src/sel_items_adder.cpp
@@ -27,6 +27,8 @@
#include "playlist.h"
#include "playlist_editor.h"
#include "sel_items_adder.h"
+#include "settings.h"
+#include "status.h"
#include "utility/comparators.h"
using Global::MainHeight;
@@ -39,13 +41,13 @@ SelectedItemsAdder *mySelectedItemsAdder = new SelectedItemsAdder;
void SelectedItemsAdder::Init()
{
SetDimensions();
- itsPlaylistSelector = new Menu<std::string>((COLS-itsWidth)/2, (MainHeight-itsHeight)/2+MainStartY, itsWidth, itsHeight, "Add selected item(s) to...", Config.main_color, Config.window_border);
+ itsPlaylistSelector = new NC::Menu<std::string>((COLS-itsWidth)/2, (MainHeight-itsHeight)/2+MainStartY, itsWidth, itsHeight, "Add selected item(s) to...", Config.main_color, Config.window_border);
itsPlaylistSelector->CyclicScrolling(Config.use_cyclic_scrolling);
itsPlaylistSelector->CenteredCursor(Config.centered_cursor);
itsPlaylistSelector->HighlightColor(Config.main_highlight_color);
itsPlaylistSelector->setItemDisplayer(Display::Default<std::string>);
- itsPositionSelector = new Menu<std::string>((COLS-itsPSWidth)/2, (MainHeight-itsPSHeight)/2+MainStartY, itsPSWidth, itsPSHeight, "Where?", Config.main_color, Config.window_border);
+ itsPositionSelector = new NC::Menu<std::string>((COLS-itsPSWidth)/2, (MainHeight-itsPSHeight)/2+MainStartY, itsPSWidth, itsPSHeight, "Where?", Config.main_color, Config.window_border);
itsPositionSelector->CyclicScrolling(Config.use_cyclic_scrolling);
itsPositionSelector->CenteredCursor(Config.centered_cursor);
itsPositionSelector->HighlightColor(Config.main_highlight_color);
@@ -259,7 +261,7 @@ void SelectedItemsAdder::MouseButtonPressed(MEVENT me)
EnterPressed();
}
else
- Screen< Menu<std::string> >::MouseButtonPressed(me);
+ Screen< NC::Menu<std::string> >::MouseButtonPressed(me);
}
void SelectedItemsAdder::SetDimensions()