From 1883cc1ab56817e8841ba8626566f826ca280b82 Mon Sep 17 00:00:00 2001 From: Serhii Sakhno Date: Fri, 7 Aug 2015 02:11:35 +0000 Subject: [PATCH] Eolite 2.96: progress bar ib copy dialog; fixed bugs. git-svn-id: svn://kolibrios.org@5691 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/Eolite.c | 4 +- programs/cmm/eolite/include/copy.h | 65 ++++++++++++++++++++---- programs/cmm/eolite/include/properties.h | 25 +++------ 3 files changed, 66 insertions(+), 28 deletions(-) diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index fe9a9125fa..bae7ffa48c 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -103,8 +103,8 @@ enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir enum { CREATE_FILE=1, CREATE_FOLDER, RENAME_ITEM }; //NewElement -#define TITLE "Eolite File Manager v2.95" -#define ABOUT_TITLE "Eolite 2.95" +#define TITLE "Eolite File Manager v2.96" +#define ABOUT_TITLE "Eolite 2.96" dword col_padding, col_selec, col_lpanel; int toolbar_buttons_x[7]={9,46,85,134,167,203}; diff --git a/programs/cmm/eolite/include/copy.h b/programs/cmm/eolite/include/copy.h index 51c25a4838..5418955899 100644 --- a/programs/cmm/eolite/include/copy.h +++ b/programs/cmm/eolite/include/copy.h @@ -3,6 +3,8 @@ byte copy_to[4096]; byte copy_from[4096]; byte cut_active=0; +progress_bar copy_bar = {0,16,49,50,20,0,0,1,0xFFFFFF,0x00FF00,0x000000}; + enum {NOCUT, CUT, COPY_PASTE_END}; Clipboard clipboard; @@ -12,8 +14,7 @@ void Copy(dword pcth, char cut) dword selected_offset2; byte copy_t[4096]; dword buff_data; - int ind = 0; - + int ind = 0; if (selected_count) { buff_data = malloc(selected_count*4096+10); @@ -51,6 +52,36 @@ void Paste() { CreateThread(#PasteThread,copy_stak+20000-4); } +BDVK file_info_count; +int file_count_copy; + +void DirFileCount(dword way) +{ + dword dirbuf, fcount, i, filename; + dword cur_file; + if (isdir(way)) + { + cur_file = malloc(4096); + // In the process of recursive descent, memory must be allocated dynamically, because the static memory -> was a bug !!! But unfortunately pass away to sacrifice speed. + GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL); + for (i=0; i