TextEdit: more menu items

git-svn-id: svn://kolibrios.org@5671 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2015-08-04 09:52:06 +00:00
parent 37f9a5a160
commit befde6d5ae
3 changed files with 56 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -28,6 +28,7 @@ include '../../system/desktop/trunk/unpacker.inc'
include 'lang.inc'
include 't_data.inc'
include 't_menu.inc'
include 'strlen.inc'
include 't_draw.inc' ;draw main window functions
include 't_button.inc' ;text work functions
@ -129,7 +130,6 @@ mov ebp,lib0
stdcall [ksubmenu_new]
mov [main_menu_file], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_New, 3
stdcall [ksubmenu_add], [main_menu_file], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_Open, 4
@ -139,11 +139,61 @@ mov ebp,lib0
stdcall [kmenuitem_new], KMENUITEM_SEPARATOR, 0, 0
stdcall [ksubmenu_add], [main_menu_file], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_Exit, 199
stdcall [ksubmenu_add], [main_menu_file], eax
stdcall [ksubmenu_add], [main_menu_file], eax
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_File, [main_menu_file]
stdcall [ksubmenu_add], [main_menu], eax
stdcall [ksubmenu_new]
mov [main_menu_changes], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Changes_Undo, 16
stdcall [ksubmenu_add], [main_menu_changes], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Changes_Redo, 17
stdcall [ksubmenu_add], [main_menu_changes], eax
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_Changes, [main_menu_changes]
stdcall [ksubmenu_add], [main_menu], eax
stdcall [ksubmenu_new]
mov [main_menu_buf], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Buf_Cut, 7
stdcall [ksubmenu_add], [main_menu_buf], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Buf_Copy, 8
stdcall [ksubmenu_add], [main_menu_buf], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Buf_Paste, 9
stdcall [ksubmenu_add], [main_menu_buf], eax
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_Buf, [main_menu_buf]
stdcall [ksubmenu_add], [main_menu], eax
; stdcall [ksubmenu_new]
; mov [main_menu_search], eax
; stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Search_Text, 10
; stdcall [ksubmenu_add], [main_menu_search], eax
; stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Search_Keywords, 12
; stdcall [ksubmenu_add], [main_menu_search], eax
; stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_Search, [main_menu_search]
; stdcall [ksubmenu_add], [main_menu], eax
stdcall [ksubmenu_new]
mov [main_menu_view], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Veiw_UseSyntax, 19
stdcall [ksubmenu_add], [main_menu_view], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Veiw_ChooseSyntax, 20
stdcall [ksubmenu_add], [main_menu_view], eax
stdcall [kmenuitem_new], KMENUITEM_SEPARATOR, 0, 0
stdcall [ksubmenu_add], [main_menu_view], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Veiw_LineBreak, 18
stdcall [ksubmenu_add], [main_menu_view], eax
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_View, [main_menu_view]
stdcall [ksubmenu_add], [main_menu], eax
stdcall [ksubmenu_new]
mov [main_menu_encoding], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Encoding_1251to866, 21
stdcall [ksubmenu_add], [main_menu_encoding], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Encoding_866to1251, 22
stdcall [ksubmenu_add], [main_menu_encoding], eax
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_Encoding, [main_menu_encoding]
stdcall [ksubmenu_add], [main_menu], eax
; init toolbar file
load_image_file 'te_icon.png', bmp_icon,TOOLBAR_ICONS_SIZE*2 ;㬭®¦¥­¨¥ ­  2 ¤«ï á¥àëå ª­®¯®ª
mov eax,[bmp_icon]
@ -480,7 +530,7 @@ button:
stdcall [ted_can_save], tedit0
cmp al,1
jne @f
stdcall [mb_create],msgbox_2,thread ;message: save changes in file?
stdcall [mb_create],msgbox_2,thread ;message: save buf in file?
stdcall [mb_setfunctions],msgbox_2E_funct
jmp still
@@:

View File

@ -0,0 +1 @@
if lang eq ru sz_main_menu_File db '” ©«', 0 sz_main_menu_File_New db '<27>®¢ë©', 0 sz_main_menu_File_Open db 'Žâªàëâì', 0 sz_main_menu_File_Save db '‘®åà ­¨âì', 0 sz_main_menu_File_Exit db '‚ë室', 0 sz_main_menu_Changes db 'ˆ§¬¥­¥­¨ï', 0 sz_main_menu_Changes_Undo db 'Žâ¬¥­ ', 0 sz_main_menu_Changes_Redo db '<27>®¢â®à', 0 sz_main_menu_Buf db '<27>ãä¥à', 0 sz_main_menu_Buf_Cut db '‚ë१ âì', 0 sz_main_menu_Buf_Copy db 'Š®¯¨à®¢ âì', 0 sz_main_menu_Buf_Paste db '‚áâ ¢¨âì', 0 ; sz_main_menu_Search db '<27>®¨áª', 0 ; sz_main_menu_Search_Text db '<27>®¨áª ¯® ⥪áâã', 0 ; sz_main_menu_Search_Keywords db '<27>®¨áª ¢ ª«î祢ëå á«®¢ å', 0 sz_main_menu_View db '‚¨¤', 0 sz_main_menu_Veiw_UseSyntax db 'ˆá¯®«ì§®¢ âì ¯®¤á¢¥âªã á¨áâ ªá¨á ', 0 sz_main_menu_Veiw_ChooseSyntax db '‚ë¡à âì ¯®¤á¢¥âªã ᨭ⠪á¨á ', 0 sz_main_menu_Veiw_LineBreak db '<27>®ª §ë¢ âì ᨬ¢®« ¯¥à¥­®á  áâப¨', 0 sz_main_menu_Encoding db 'Š®¤¨à®¢ª ', 0 sz_main_menu_Encoding_1251to866 db 'CP1251 ',0x1A,' CP866', 0 sz_main_menu_Encoding_866to1251 db 'CP866 ',0x1A,' CP1251', 0 else sz_main_menu_File db 'File', 0 sz_main_menu_File_New db 'New', 0 sz_main_menu_File_Open db 'Open', 0 sz_main_menu_File_Save db 'Save', 0 sz_main_menu_File_Exit db 'Exit', 0 sz_main_menu_Changes db 'Changes', 0 sz_main_menu_Changes_Undo db 'Undo', 0 sz_main_menu_Changes_Redo db 'Redo', 0 sz_main_menu_Buf db 'Buffer', 0 sz_main_menu_Buf_Cut db 'Cut', 0 sz_main_menu_Buf_Copy db 'Copy', 0 sz_main_menu_Buf_Paste db 'Paste', 0 ; sz_main_menu_Search db 'Search', 0 ; sz_main_menu_Search_Text db 'Text search', 0 ; sz_main_menu_Search_Keywords db 'Search in keywords', 0 sz_main_menu_View db 'View', 0 sz_main_menu_Veiw_UseSyntax db 'Use syntax highlight', 0 sz_main_menu_Veiw_ChooseSyntax db 'Choose syntax highlight', 0 sz_main_menu_Veiw_LineBreak db 'Show line breack symbols', 0 sz_main_menu_Encoding db 'Encoding', 0 sz_main_menu_Encoding_1251to866 db 'CP1251 ',0x1A,' CP866', 0 sz_main_menu_Encoding_866to1251 db 'CP866 ',0x1A,' CP1251', 0 end if main_menu dd 0 main_menu_file dd 0 main_menu_changes dd 0 main_menu_buf dd 0 main_menu_search dd 0 main_menu_view dd 0 main_menu_encoding dd 0 KMENUITEM_NORMAL equ 0 KMENUITEM_SUBMENU equ 1 KMENUITEM_SEPARATOR equ 2