CtrlLib: FileSel lazyicons - hidden items

git-svn-id: svn://ultimatepp.org/upp/trunk@2889 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-12-05 13:20:20 +00:00
commit 83f6bca67f
4 changed files with 55 additions and 38 deletions

View file

@ -231,12 +231,13 @@ void FileList::Insert(int ii,
const String& name, const Image& icon, Font font, Color ink,
bool isdir, int64 length, Time time, Color extink,
const String& desc, Font descfont, Value data, Color uln,
bool unixexe)
bool unixexe, bool hidden)
{
Value v;
File& m = CreateRawValue<File>(v);
m.isdir = isdir;
m.unixexe = unixexe;
m.hidden = hidden;
m.icon = icon;
m.name = name;
m.font = font;
@ -256,12 +257,13 @@ void FileList::Set(int ii,
const String& name, const Image& icon, Font font, Color ink,
bool isdir, int64 length, Time time, Color extink,
const String& desc, Font descfont, Value data, Color uln,
bool unixexe)
bool unixexe, bool hidden)
{
Value v;
File& m = CreateRawValue<File>(v);
m.isdir = isdir;
m.unixexe = unixexe;
m.hidden = hidden;
m.icon = icon;
m.name = name;
m.font = font;
@ -289,12 +291,14 @@ void FileList::SetIcon(int ii, const Image& icon)
void FileList::Add(const String& name, const Image& icon, Font font, Color ink,
bool isdir, int64 length, Time time, Color extink,
const String& desc, Font descfont, Value data, Color uln, bool unixexe)
const String& desc, Font descfont, Value data, Color uln,
bool unixexe, bool hidden)
{
Value v;
File& m = CreateRawValue<File>(v);
m.isdir = isdir;
m.unixexe = unixexe;
m.hidden = hidden;
m.icon = icon;
m.name = name;
m.font = font;