From b087ff6fa09d69489cbcfd11d51a5c819c180611 Mon Sep 17 00:00:00 2001 From: Serhii Sakhno Date: Thu, 12 Feb 2015 12:52:49 +0000 Subject: [PATCH] Eolite 1.42: use @open git-svn-id: svn://kolibrios.org@5397 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/Eolite.c | 15 ++- programs/cmm/eolite/include/open_with.h | 137 ------------------------ 2 files changed, 11 insertions(+), 141 deletions(-) delete mode 100644 programs/cmm/eolite/include/open_with.h diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 409ae2ed70..458c30ed51 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -83,8 +83,8 @@ enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir -#define TITLE "Eolite File Manager v2.41" -#define ABOUT_TITLE "Eolite v2.41" +#define TITLE "Eolite File Manager v2.42" +#define ABOUT_TITLE "Eolite v2.42" dword col_padding, col_selec, col_lpanel; int toolbar_buttons_x[7]={9,46,85,134,167,203}; @@ -135,7 +135,6 @@ PathShow_data FileShow = {0, 56,215, 6, 100, 0, 0, 0x0, 0xFFFfff, #file_name, #t #include "include\history.h" #include "include\menu.h" #include "include\about.h" -#include "include\open_with.h" void SetAppColors() { @@ -897,7 +896,7 @@ void Open() if (!files.count) return; if (!itdir) { - GetIni(0); + RunProgram("/sys/@open", #file_path); } else { @@ -917,6 +916,14 @@ inline fastcall void GoBack() if (HistoryPath(GO_BACK)) SelectFile(#cur_folder); } +void ShowOpenWithDialog() +{ + byte param[4097]; + param[0] = '~'; + strcat(#param, #file_path); + RunProgram("/sys/@open", #param); +} + void FnProcess(char N) { switch(N) diff --git a/programs/cmm/eolite/include/open_with.h b/programs/cmm/eolite/include/open_with.h deleted file mode 100644 index 9e479195c7..0000000000 --- a/programs/cmm/eolite/include/open_with.h +++ /dev/null @@ -1,137 +0,0 @@ -//Leency 2013 - -void ShowOpenWithDialog() -{ - SwitchToAnotherThread(); - CreateThread(#OpenWith,#open_with_stak+4092); -} - -llist app_list; -struct app_list_string { char item[1024]; char ext[5]; }; -app_list_string app_paths[100]; - -int GetListOfPrograms() -{ - byte section[32], parametr[32], option[256], InfType=0; - char bukva[2]; - int tj, ti; - static dword buff, fsize; - - free(buff); - if (!GetFile(#buff, #fsize, abspath("Eolite.ini"))) - { - notify("Eolite.ini not found. Don't know any programm."); - return -1; - } - - for (tj=0; tj= 0) tiny_scroll.y = app_list.y + app_list.h - tiny_scroll.h-1; - DrawBar(tiny_scroll.x, tiny_scroll.y, SCROLL_WIDTH, tiny_scroll.h, 0x555555); //scroll -} \ No newline at end of file