From 4f91b51e530d34d189b01af4ba1a56e954e0066b Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Thu, 7 Jan 2016 15:43:03 +0000 Subject: [PATCH] textreader: remove internal menu.h, use lib/menu.h git-svn-id: svn://kolibrios.org@6042 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/textreader/menu.h | 63 ---------------------------- programs/cmm/textreader/textreader.c | 9 ++-- 2 files changed, 5 insertions(+), 67 deletions(-) delete mode 100644 programs/cmm/textreader/menu.h diff --git a/programs/cmm/textreader/menu.h b/programs/cmm/textreader/menu.h deleted file mode 100644 index 3ceb1bee5e..0000000000 --- a/programs/cmm/textreader/menu.h +++ /dev/null @@ -1,63 +0,0 @@ -char stak[4096]; - -byte action_buf; - -llist menu; - -void menu_rmb() -{ - proc_info MenuForm; - menu.ClearList(); - while (charsets[menu.count]) menu.count++; - menu.SetSizes(2,2,140,menu.count*19,19); - SetEventMask(100111b); - _BEGIN_APPLICATION_MENU: - switch(WaitEvent()) - { - case evMouse: - GetProcessInfo(#MenuForm, SelfInfo); - if (!CheckActiveProcess(MenuForm.ID)) ExitProcess(); - mouse.get(); - if (menu.ProcessMouse(mouse.x, mouse.y)) DrawMenuList(); - if (mouse.lkm)&&(mouse.up) ItemClick(); - break; - case evKey: - GetKeys(); - if (key_scancode==SCAN_CODE_ESC) ExitProcess(); - if (key_scancode==SCAN_CODE_ENTER) ItemClick(); - if (menu.ProcessKey(key_scancode)) DrawMenuList(); - break; - case evReDraw: - DefineAndDrawWindow(Form.left+104,Form.top+29+SKIN.height,menu.w+2,menu.h+4,0x01, 0, 0, 0x01fffFFF); - DrawPopup(0,0,menu.w,menu.h+3,0, 0xE4DFE1,0x9098B0); - DrawMenuList(); - } - goto _BEGIN_APPLICATION_MENU; -} - -void DrawMenuList() -{ - int N; - for (N=0; N