kolibrios/programs/other/t_edit/t_menu.inc
IgorA dfca233dff fix r 7571, clean code
git-svn-id: svn://kolibrios.org@7573 a494cfbc-eb01-0410-851d-a64ba20cac60
2019-01-11 10:59:40 +00:00

153 lines
6.0 KiB
PHP
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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_Save_As 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_Save_As db 'Save as', 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 break 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
align 4
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
align 16
tedit_menu_init:
stdcall [kmenu_init], sc
stdcall [ksubmenu_new]
mov [main_menu], eax
stdcall [ksubmenu_new]
mov [main_menu_file], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_New, ID_BUT_NEW
stdcall [ksubmenu_add], [main_menu_file], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_Open, ID_BUT_OPEN
stdcall [ksubmenu_add], [main_menu_file], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_Save, ID_BUT_SAVE
stdcall [ksubmenu_add], [main_menu_file], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_File_Save_As, ID_BUT_SAVE_AS
stdcall [ksubmenu_add], [main_menu_file], eax
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 [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, ID_BUT_UNDO
stdcall [ksubmenu_add], [main_menu_changes], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Changes_Redo, ID_BUT_REDO
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, ID_BUT_CUT
stdcall [ksubmenu_add], [main_menu_buf], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Buf_Copy, ID_BUT_COPY
stdcall [ksubmenu_add], [main_menu_buf], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Buf_Paste, ID_BUT_PASTE
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, ID_BUT_FIND
stdcall [ksubmenu_add], [main_menu_search], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Search_Keywords, ID_BUT_KEY_WORDS
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, ID_BUT_SYNTAX_LIST
stdcall [ksubmenu_add], [main_menu_view], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Veiw_ChooseSyntax, ID_BUT_SYNTAX_MODE
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, ID_BUT_INVISIBLE
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, ID_BUT_CONVERT_1251_866
stdcall [ksubmenu_add], [main_menu_encoding], eax
stdcall [kmenuitem_new], KMENUITEM_NORMAL, sz_main_menu_Encoding_866to1251, ID_BUT_CONVERT_866_1251
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
ret