From 1b1d267df09ab69723b614af1de0215f763494b0 Mon Sep 17 00:00:00 2001 From: Serhii Sakhno Date: Wed, 5 Nov 2014 22:34:25 +0000 Subject: [PATCH] Eolite 2.39: copy the selected files git-svn-id: svn://kolibrios.org@5174 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/Eolite.c | 9 +++--- programs/cmm/eolite/include/copy.h | 49 +++++++++++++++++++++--------- programs/cmm/eolite/include/mark.h | 32 ------------------- 3 files changed, 38 insertions(+), 52 deletions(-) delete mode 100644 programs/cmm/eolite/include/mark.h diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index df4a96b065..517a62b89c 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -19,6 +19,7 @@ #include "..\lib\list_box.h" #include "..\lib\copyf.h" #include "..\lib\random.h" +#include "..\lib\lib.obj\libini.h" //images #include "imgs\toolbar.txt" #include "imgs\left_p.txt" @@ -82,8 +83,8 @@ enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir -#define TITLE "Eolite File Manager v2.38" -#define ABOUT_TITLE "Eolite v2.38" +#define TITLE "Eolite File Manager v2.39" +#define ABOUT_TITLE "Eolite v2.39" dword col_padding, col_selec, col_lpanel; int toolbar_buttons_x[7]={9,46,85,134,167,203}; @@ -125,7 +126,6 @@ edit_box edit2 = {250,213,80,0xFFFFCC,0x94AECE,0xFFFFCC,0xffffff,0,248,#file_nam PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, #path, #temp, 0}; PathShow_data FileShow = {0, 56,215, 6, 100, 0, 0, 0x0, 0xFFFfff, #file_name, #temp, 0}; -#include "include\mark.h" #include "include\copy.h" #include "include\other.h" #include "include\sorting.h" @@ -165,8 +165,8 @@ void main() files.line_h=18; mem_Init(); if (load_dll2(boxlib, #box_lib_init,0)!=0) notify(ERROR_1); + if (load_dll2(libini, #lib_init,1)!=0) notify("Error: library doesn't exists - libini"); SystemDiscsGet(); - mark_default(); GetIni(1); SetAppColors(); if (param) @@ -872,7 +872,6 @@ void Dir_Up() void Open() { - mark_default(); if (!files.count) return; if (!itdir) { diff --git a/programs/cmm/eolite/include/copy.h b/programs/cmm/eolite/include/copy.h index 8c9bd49142..ae4fb3f671 100644 --- a/programs/cmm/eolite/include/copy.h +++ b/programs/cmm/eolite/include/copy.h @@ -9,12 +9,33 @@ Clipboard clipboard; void Copy(dword pcth, char cut) { - if (mark_active == 0) { - strlcpy(#elements_path.element_list[elements_path.count].Item, pcth); - elements_path.count++; - } - elements_path.size = sizeof(elements_path); - clipboard.SetSlotData(sizeof(elements_path), #elements_path); + dword selected_offset2; + byte copy_t[4096]; + int cont = 0; + dword buff_data; + int ind = 0; + + for (i=0; i