forked from KolibriOS/kolibrios
Eolite 3.01 beta: use scan codes (Part 1)
git-svn-id: svn://kolibrios.org@5697 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
b3f28579db
commit
0404a36cf4
@ -103,8 +103,8 @@
|
|||||||
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
|
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
|
||||||
enum { CREATE_FILE=1, CREATE_FOLDER, RENAME_ITEM }; //NewElement
|
enum { CREATE_FILE=1, CREATE_FOLDER, RENAME_ITEM }; //NewElement
|
||||||
|
|
||||||
#define TITLE "Eolite File Manager v3.0 beta"
|
#define TITLE "Eolite File Manager v3.01 beta"
|
||||||
#define ABOUT_TITLE "Eolite 3.0 beta"
|
#define ABOUT_TITLE "Eolite 3.01 beta"
|
||||||
dword col_padding, col_selec, col_lpanel;
|
dword col_padding, col_selec, col_lpanel;
|
||||||
|
|
||||||
int toolbar_buttons_x[7]={9,46,85,134,167,203};
|
int toolbar_buttons_x[7]={9,46,85,134,167,203};
|
||||||
@ -177,7 +177,8 @@ byte cmd_free=0;
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
word key, id;
|
word key,key2, id;
|
||||||
|
dword status_key;
|
||||||
char can_show, can_select, stats;
|
char can_show, can_select, stats;
|
||||||
dword selected_offset;
|
dword selected_offset;
|
||||||
dword IPC_LEN,IPC_ID;
|
dword IPC_LEN,IPC_ID;
|
||||||
@ -407,7 +408,12 @@ void main()
|
|||||||
break;
|
break;
|
||||||
//Key pressed-----------------------------------------------------------------------------
|
//Key pressed-----------------------------------------------------------------------------
|
||||||
case evKey:
|
case evKey:
|
||||||
key = GetKey();
|
GetFullKey();
|
||||||
|
key = AH;
|
||||||
|
$shr eax,16
|
||||||
|
key2 = AL;
|
||||||
|
status_key = GetStatusKey();
|
||||||
|
|
||||||
if (Form.status_window>2) break;
|
if (Form.status_window>2) break;
|
||||||
if (del_active)
|
if (del_active)
|
||||||
{
|
{
|
||||||
@ -434,35 +440,30 @@ void main()
|
|||||||
List_ReDraw();
|
List_ReDraw();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
switch (key)
|
|
||||||
|
if (TestBit(status_key, 2))
|
||||||
{
|
{
|
||||||
case 209...217:
|
switch(key2)
|
||||||
id=key-110;
|
{
|
||||||
if (id-100>=disc_num) break;
|
case 45: //Ctrl+X
|
||||||
GOTO DEVICE_MARK;
|
Copy(#file_path, CUT);
|
||||||
case ASCII_KEY_BS:
|
|
||||||
//GoBack();
|
|
||||||
Dir_Up();
|
|
||||||
break;
|
break;
|
||||||
case 004: //Ctrl+D - set as bg
|
case 46: //Ctrl+C
|
||||||
|
Copy(#file_path, NOCUT);
|
||||||
|
break;
|
||||||
|
case 47: //Ctrl+V
|
||||||
|
Paste();
|
||||||
|
break;
|
||||||
|
case 032: //Ctrl+D - set as bg
|
||||||
strncpy(#temp, "\\S__",4);
|
strncpy(#temp, "\\S__",4);
|
||||||
strcat(#temp, #file_path);
|
strcat(#temp, #file_path);
|
||||||
RunProgram("/sys/media/kiv", #temp);
|
RunProgram("/sys/media/kiv", #temp);
|
||||||
break;
|
break;
|
||||||
case 014: //Ctrl+N - create new window
|
case 049: //Ctrl+N - create new window
|
||||||
if (Form.left==98) MoveSize(Form.left-20,Form.top-20,OLD,OLD);
|
if (Form.left==98) MoveSize(Form.left-20,Form.top-20,OLD,OLD);
|
||||||
RunProgram("/sys/File Managers/Eolite", #path);
|
RunProgram("/sys/File Managers/Eolite", #path);
|
||||||
break;
|
break;
|
||||||
case 024: //Ctrl+X
|
case 030: //Ctrl+A - select all files
|
||||||
Copy(#file_path, CUT);
|
|
||||||
break;
|
|
||||||
case 003: //Ctrl+C
|
|
||||||
Copy(#file_path, NOCUT);
|
|
||||||
break;
|
|
||||||
case 022: //Ctrl+V
|
|
||||||
Paste();
|
|
||||||
break;
|
|
||||||
case 001: //Ctrl+A - select all files
|
|
||||||
for (i=0; i<files.count; i++)
|
for (i=0; i<files.count; i++)
|
||||||
{
|
{
|
||||||
selected_offset = file_mas[i]*304 + buf+32 + 7;
|
selected_offset = file_mas[i]*304 + buf+32 + 7;
|
||||||
@ -472,7 +473,7 @@ void main()
|
|||||||
}
|
}
|
||||||
List_ReDraw();
|
List_ReDraw();
|
||||||
break;
|
break;
|
||||||
case 021: //Ctrl+U - unselect all files
|
case 022: //Ctrl+U - unselect all files
|
||||||
for (i=0; i<files.count; i++)
|
for (i=0; i<files.count; i++)
|
||||||
{
|
{
|
||||||
selected_offset = file_mas[i]*304 + buf+32 + 7;
|
selected_offset = file_mas[i]*304 + buf+32 + 7;
|
||||||
@ -481,6 +482,20 @@ void main()
|
|||||||
selected_count = 0;
|
selected_count = 0;
|
||||||
List_ReDraw();
|
List_ReDraw();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (key)
|
||||||
|
{
|
||||||
|
case 209...217:
|
||||||
|
id=key-110;
|
||||||
|
if (id-100>=disc_num) break;
|
||||||
|
GOTO DEVICE_MARK;
|
||||||
|
case ASCII_KEY_BS:
|
||||||
|
//GoBack();
|
||||||
|
Dir_Up();
|
||||||
|
break;
|
||||||
case ASCII_KEY_ESC:
|
case ASCII_KEY_ESC:
|
||||||
break;
|
break;
|
||||||
case ASCII_KEY_ENTER:
|
case ASCII_KEY_ENTER:
|
||||||
|
@ -130,6 +130,12 @@ inline fastcall ScancodesGeting(){
|
|||||||
$int 0x40
|
$int 0x40
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline fastcall GetStatusKey(){
|
||||||
|
$mov eax,66
|
||||||
|
$mov ebx,3
|
||||||
|
$int 0x40
|
||||||
|
}
|
||||||
|
|
||||||
inline fastcall word GetKey() //+Gluk fix
|
inline fastcall word GetKey() //+Gluk fix
|
||||||
{
|
{
|
||||||
$push edx
|
$push edx
|
||||||
|
Loading…
Reference in New Issue
Block a user