filename parser for tag editor, renaming files support, minor fixes

This commit is contained in:
unK
2008-09-12 22:06:48 +02:00
parent 8fb83ac476
commit 2605b29dd9
14 changed files with 529 additions and 120 deletions

View File

@@ -113,6 +113,11 @@ void Window::SetBorder(Border border)
itsWidth -= 2;
Recreate();
}
else
{
wattron(itsWinBorder,COLOR_PAIR(border));
box(itsWinBorder,0,0);
}
itsBorder = border;
}
@@ -414,6 +419,7 @@ string Window::GetString(const string &base, unsigned int length, int width) con
getyx(itsWindow,y,x);
minx = maxx = x;
width--;
if (width == -1)
width = itsWidth-x-1;
if (width < 0)
@@ -438,7 +444,7 @@ string Window::GetString(const string &base, unsigned int length, int width) con
if (beginning > maxbeginning)
beginning = maxbeginning;
mvwhline(itsWindow, y, minx, 32, width);
mvwhline(itsWindow, y, minx, 32, width+1);
mvwprintw(itsWindow, y, minx, "%ls", tmp.substr(beginning, width+1).c_str());
if (itsGetStringHelper)