CEDIT: update by akron1

git-svn-id: svn://kolibrios.org@8848 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2021-06-14 08:08:59 +00:00
parent 4fc7d26119
commit eedf06ce2b
2 changed files with 15 additions and 5 deletions

Binary file not shown.

View File

@ -28,7 +28,7 @@ IMPORT
RW, Ini, box_lib, Icons; RW, Ini, box_lib, Icons;
CONST CONST
header = "CEdit (06-jun-2021)"; header = "CEdit (14-jun-2021)";
ShellFilter = ""; ShellFilter = "";
EditFilter = "SH|ASM|TXT|INC|OB07|C|CPP|H|PAS|PP|LUA|INI"; EditFilter = "SH|ASM|TXT|INC|OB07|C|CPP|H|PAS|PP|LUA|INI";
@ -271,7 +271,7 @@ END Replaced;
PROCEDURE toolbarIcons; PROCEDURE toolbarIcons;
CONST CONST
iconPad = (toolBtnSize - 16) DIV 2; iconPad = (toolBtnSize - Icons.SIZE) DIV 2;
VAR VAR
x, color: INTEGER; x, color: INTEGER;
BEGIN BEGIN
@ -446,7 +446,7 @@ END SearchPanel;
PROCEDURE draw_window; PROCEDURE draw_window;
CONST CONST
iconPad = (toolBtnSize - 16) DIV 2; iconPad = (toolBtnSize - Icons.SIZE) DIV 2;
VAR VAR
width, height, x, y: INTEGER; width, height, x, y: INTEGER;
@ -1318,6 +1318,16 @@ BEGIN
|2: |2:
key := K.GetKey(); key := K.GetKey();
getKBState; getKBState;
IF confirm THEN
IF key DIV 65536 = 28 THEN (* Enter *)
save;
IF ~text.modified THEN
K.Exit
END;
repaint
END;
key := -1
END;
IF key DIV 65536 = 61 THEN (* F3 *) IF key DIV 65536 = 61 THEN (* F3 *)
key := -1; key := -1;
IF search & (searchText # "") THEN IF search & (searchText # "") THEN
@ -1334,8 +1344,8 @@ BEGIN
ELSE ELSE
Script(runScript) Script(runScript)
END END
ELSIF key DIV 65536 = 1 THEN ELSIF key DIV 65536 = 1 THEN (* Esc *)
key := -1; (* Esc *) key := -1;
IF search THEN IF search THEN
Search Search
END END