clean NCurse::List class a bit and remove a few redundant functions

This commit is contained in:
Andrzej Rybczak
2009-09-19 01:18:41 +02:00
parent 2f971147b1
commit 3bdb798852
9 changed files with 62 additions and 107 deletions

View File

@@ -22,29 +22,6 @@
using namespace NCurses;
void List::SelectCurrent()
{
if (Empty())
return;
size_t i = Choice();
Select(i, !isSelected(i));
}
void List::ReverseSelection(size_t beginning)
{
for (size_t i = beginning; i < Size(); ++i)
Select(i, !isSelected(i) && !isStatic(i));
}
bool List::Deselect()
{
if (!hasSelected())
return false;
for (size_t i = 0; i < Size(); ++i)
Select(i, 0);
return true;
}
template <> std::string Menu<std::string>::GetOption(size_t pos)
{
if (itsOptionsPtr->at(pos))