class Menu is template now / bunch of code clean-ups.

This commit is contained in:
unK
2008-09-03 01:16:26 +02:00
parent 451f2e112e
commit 723de0687e
10 changed files with 1021 additions and 954 deletions

View File

@@ -211,17 +211,19 @@ void Scrollpad::SetTitle(string newtitle)
itsTitle = newtitle;
}
void Scrollpad::Clear()
void Scrollpad::Clear(bool clear_screen)
{
itsBeginning = 0;
itsRealHeight = 1;
itsXPos = 0;
itsContent.clear();
itsRawContent.clear();
wclear(itsWindow);
delwin(itsWindow);
itsWindow = newpad(itsRealHeight, itsWidth);
itsWindow = newpad(itsHeight, itsWidth);
SetColor(itsColor, itsBgColor);
Window::Clear();
if (clear_screen)
Window::Clear();
}
Window * Scrollpad::EmptyClone()