Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7914 → Rev 7913

/programs/cmm/eolite/Eolite.c
206,15 → 206,9
if (dir_exists(#param)) {
strcpy(#path, #param);
} else {
file_size stdcall (#param);
if (EAX==-1) notify(T_NOTIFY_APP_PARAM_WRONG);
else {
param[strrchr(#param, '/')-1] = '\0';
strcpy(#path, #param);
//in future we need also to select file
notify(T_NOTIFY_APP_PARAM_WRONG);
}
}
}
Open_Dir(#path,ONLY_OPEN);
strcpy(#inactive_path, #path);
/programs/cmm/eolite/include/properties.h
250,8 → 250,7
EventApplyProperties();
break;
 
case SCAN_CODE_KEY_A:
case SCAN_CODE_KEY_C:
default:
if (key_modifier & KEY_LCTRL) || (key_modifier & KEY_RCTRL) {
EAX = key_editbox;
edit_box_key stdcall(#file_name_ed);
/programs/cmm/eolite/include/translations.h
1,5 → 1,5
#define TITLE "Eolite File Manager 4.28b"
#define ABOUT_TITLE "EOLITE 4.28b"
#define TITLE "Eolite File Manager 4.28"
#define ABOUT_TITLE "EOLITE 4.28"
 
#ifdef LANG_RUS
?define T_FILE "” ©«"
/programs/cmm/lib/kolibri.h
73,6 → 73,12
 
inline fastcall dword calc(EAX) { return EAX; }
 
inline fastcall swap(EAX, EBX)
{
$push ESDWORD[EAX]
ESDWORD[EAX] = ESDWORD[EBX];
$pop ESDWORD[EBX];
}
 
:struct raw_image {
dword w, h, data;
/programs/cmm/lib/patterns/restart_process.h
37,17 → 37,6
}
}
 
:int GetProcessesCount(dword proc_name) {
int i, count=0;
proc_info Process;
for (i=0; i<MAX_PROCESS_COUNT; i++;)
{
GetProcessInfo(#Process, i);
if (strcmpi(#Process.name, proc_name)==0) count++;
}
return count;
}
 
:void RestartProcessByName(dword proc_name, byte multiple) {
KillProcessByName(proc_name + strrchr(proc_name, '/'), multiple);
RunProgram(proc_name, "");
/programs/cmm/lib/clipboard.h
65,7 → 65,7
 
:void Clipboard__CopyText(dword _text)
{
dword size_buf;
int size_buf;
dword buff_data;
 
size_buf = strlen(_text) + 12;
/programs/cmm/browser/WebView.c
30,7 → 30,6
#include "..\lib\patterns\http_downloader.h"
#include "..\lib\patterns\simple_open_dialog.h"
#include "..\lib\patterns\toolbar_button.h"
#include "..\lib\patterns\restart_process.h"
 
#include "texts.h"
#include "cache.h"
102,7 → 101,6
 
char editbox_icons[] = FROM "editbox_icons.raw";
 
dword shared_url;
 
void LoadLibraries()
{
132,18 → 130,11
source_mode = true;
history.add(#param + 8);
} else {
if (GetProcessesCount("WEBVIEW") == 1) {
history.add(#param);
} else {
shared_url = memopen(#webview_shared, URL_SIZE+1, SHM_OPEN + SHM_WRITE);
strncpy(shared_url, #param, URL_SIZE);
ExitProcess();
}
}
} else {
history.add(URL_SERVICE_HOMEPAGE);
}
shared_url = memopen(#webview_shared, URL_SIZE+1, SHM_CREATE + SHM_WRITE);
}
 
void main()
157,7 → 148,7
WB1.list.no_selection = true;
WB1.custom_encoding = -1;
SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER + EVM_STACK);
loop() switch(@WaitEventTimeout(30))
loop() switch(WaitEvent())
{
case evMouse:
edit_box_mouse stdcall (#address_box);
255,15 → 246,8
pages_cache.add(history.current(), http.content_pointer, http.content_received);
LoadInternalPage(http.content_pointer, http.content_received);
}
break;
default:
if (ESDWORD[shared_url] != '\0') {
EventOpenNewTab(shared_url);
ESDWORD[shared_url] = '\0';
ActivateWindow(GetProcessSlot(Form.ID));
}
}
}
 
bool ProcessCtrlKeyEvent()
{
/programs/cmm/browser/texts.h
1,4 → 1,4
char version[]="WebView 2.5";
char version[]="WebView 2.48";
 
#ifdef LANG_RUS
char page_not_found[] = FROM "html\\page_not_found_ru.htm""\0";
65,4 → 65,3
#define URL_SERVICE_HOMEPAGE "WebView:home"
#define URL_SERVICE_HELP "WebView:help"
 
char webview_shared[] = "WEBVIEW";