forked from KolibriOS/kolibrios
cmm libs: update
git-svn-id: svn://kolibrios.org@4059 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
112c5cde23
commit
b84e1d0e74
@ -18,7 +18,10 @@
|
|||||||
if (isdir(from1))
|
if (isdir(from1))
|
||||||
return CopyFolder(from1, in1);
|
return CopyFolder(from1, in1);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
copyf_Draw_Progress(from1+strchr(from1, '/'));
|
||||||
return CopyFile(from1, in1);
|
return CopyFile(from1, in1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:int CopyFile(dword copy_from3, copy_in3)
|
:int CopyFile(dword copy_from3, copy_in3)
|
||||||
|
@ -6,6 +6,8 @@ struct llist
|
|||||||
int count, visible, first, current;
|
int count, visible, first, current;
|
||||||
int current_temp;
|
int current_temp;
|
||||||
void ClearList();
|
void ClearList();
|
||||||
|
int KeyDown();
|
||||||
|
int KeyUp();
|
||||||
void SetSizes(int xx, yy, ww, hh, min_hh, line_hh);
|
void SetSizes(int xx, yy, ww, hh, min_hh, line_hh);
|
||||||
int MouseScroll(dword scroll_state);
|
int MouseScroll(dword scroll_state);
|
||||||
};
|
};
|
||||||
@ -44,3 +46,34 @@ int llist::MouseScroll(dword scroll_state)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int llist::KeyDown()
|
||||||
|
{
|
||||||
|
if (current-first+1<visible)
|
||||||
|
{
|
||||||
|
if (current+1>=count) return -1;
|
||||||
|
current++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (visible+first>=count) return -1;
|
||||||
|
first++;
|
||||||
|
current++;
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int llist::KeyUp()
|
||||||
|
{
|
||||||
|
if (current>first)
|
||||||
|
{
|
||||||
|
current--;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (first==0) return -1;
|
||||||
|
first--;
|
||||||
|
current--;
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user