forked from KolibriOS/kolibrios
HTMLv 0.99.07: update menu, multilingual
git-svn-id: svn://kolibrios.org@3992 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
c3b428552d
commit
d3628091dc
@ -8,7 +8,18 @@ dword
|
||||
|
||||
char download_path[]="/rd/1/.download";
|
||||
char search_path[]="http://nigma.ru/index.php?s=";
|
||||
char version[]=" Text-based Browser 0.99.05";
|
||||
|
||||
#ifndef AUTOBUILD
|
||||
#include "lang.h--"
|
||||
#endif
|
||||
|
||||
#ifdef LANG_RUS
|
||||
char version[]=" ’¥ªáâ®¢ë© ¡à 㧥à 0.99.07";
|
||||
#else
|
||||
char version[]=" Text-based Browser 0.99.07";
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
struct TWebBrowser {
|
||||
@ -203,10 +214,6 @@ void TWebBrowser::Scan(int id)
|
||||
break;
|
||||
case 002: //free img cache
|
||||
FreeImgCache();
|
||||
break;
|
||||
case 003:
|
||||
if (!pre_text) pre_text=2;
|
||||
else pre_text=0;
|
||||
break;
|
||||
case 005: //truetype
|
||||
if (use_truetype == 2)
|
||||
|
@ -1,5 +0,0 @@
|
||||
..\C--\c-- HTMLv.c
|
||||
@del HTMLv
|
||||
@rename HTMLv.com HTMLv
|
||||
@del warning.txt
|
||||
@pause
|
9
programs/cmm/browser/compile_en.bat
Normal file
9
programs/cmm/browser/compile_en.bat
Normal file
@ -0,0 +1,9 @@
|
||||
@del lang.h--
|
||||
@echo #define LANG_ENG 1 >lang.h--
|
||||
|
||||
..\C--\c-- HTMLv.c
|
||||
@del HTMLv
|
||||
@rename HTMLv.com HTMLv
|
||||
@del warning.txt
|
||||
@del lang.h--
|
||||
@pause
|
9
programs/cmm/browser/compile_ru.bat
Normal file
9
programs/cmm/browser/compile_ru.bat
Normal file
@ -0,0 +1,9 @@
|
||||
@del lang.h--
|
||||
@echo #define LANG_RUS 1 >lang.h--
|
||||
|
||||
..\C--\c-- HTMLv.c
|
||||
@del HTMLv
|
||||
@rename HTMLv.com HTMLv
|
||||
@del warning.txt
|
||||
@del lang.h--
|
||||
@pause
|
@ -1,23 +1,29 @@
|
||||
//Leency - 2012
|
||||
//Leency - 2012-2013
|
||||
|
||||
#define ITEM_HEIGHT 18
|
||||
#define ITEM_WIDTH 138
|
||||
#define ITEM_HEIGHT 19
|
||||
#define ITEM_WIDTH 165
|
||||
dword col_work = 0xE4DFE1;
|
||||
dword col_border = 0x9098B0;
|
||||
|
||||
char *ITEMS_LIST[]={
|
||||
//"Old HTMLv F12",255,
|
||||
"View in Tinypad F3",52,
|
||||
"WIN F5",54,
|
||||
"DOS Ctrl+D",04,
|
||||
"KOI Ctrl+K",11,
|
||||
"UTF Ctrl+U",21,
|
||||
"Line breaks ON" ,03,
|
||||
"Free image cache" ,02,
|
||||
"WIN F5",54,
|
||||
"DOS Ctrl+D",04,
|
||||
"KOI Ctrl+K",11,
|
||||
"UTF Ctrl+U",21,
|
||||
#ifdef LANG_RUS
|
||||
"<EFBFBD>摰五赤 摵<>郃緦 F3",52,
|
||||
"𡒊兕漼碪 表<> <20>飶身悚" ,02,
|
||||
//"TrueType fonts" ,05,
|
||||
#else
|
||||
"View source F3",52,
|
||||
"Free image cache" ,02,
|
||||
#endif
|
||||
//"TrueType fonts" ,05,
|
||||
0};
|
||||
|
||||
|
||||
proc_info MenuForm;
|
||||
|
||||
proc_info MenuForm;
|
||||
|
||||
void menu_rmb()
|
||||
{
|
||||
@ -77,19 +83,19 @@ void menu_rmb()
|
||||
|
||||
case evReDraw:
|
||||
while (ITEMS_LIST[items_num*2]) items_num++;
|
||||
DefineAndDrawWindow(Form.left+m.x,Form.top+m.y+GetSkinHeight()+3,ITEM_WIDTH,items_num*ITEM_HEIGHT+1,0x01,0x10FFFFFF,0,0x01fffFFF);
|
||||
DefineAndDrawWindow(Form.left+m.x,Form.top+m.y+GetSkinHeight()+3,ITEM_WIDTH+2,items_num*ITEM_HEIGHT+4,0x01, 0, 0, 0x01fffFFF);
|
||||
DrawPopup(0,0,ITEM_WIDTH,items_num*ITEM_HEIGHT+2,0, -1,col_border);
|
||||
|
||||
DrawRectangle(0,0,ITEM_WIDTH,items_num*ITEM_HEIGHT+1,0x777777); //îáîäîę
|
||||
_ITEMS_DRAW:
|
||||
for (i=0; i<items_num; i++;)
|
||||
{
|
||||
if (i<>items_cur) EDX=0xFFFFFF; else EDX=0x94AECE;
|
||||
DrawBar(1, i*ITEM_HEIGHT+1, ITEM_WIDTH-1, ITEM_HEIGHT, EDX);
|
||||
WriteText(8,i*ITEM_HEIGHT+6,0x80,0x000000,ITEMS_LIST[i*2]);
|
||||
if (ITEMS_LIST[i*2+1]==3) && (pre_text==2) DrawBar(ITEM_WIDTH-18, i*ITEM_HEIGHT+8, 4, 4, 0x444444);
|
||||
if (ITEMS_LIST[i*2+1]==5) && (use_truetype==1) DrawBar(ITEM_WIDTH-18, i*ITEM_HEIGHT+8, 4, 4, 0x444444);
|
||||
if (i<>items_cur) EDX=col_work; else EDX=0x94AECE;
|
||||
DrawBar(2, i*ITEM_HEIGHT+2, ITEM_WIDTH-2, ITEM_HEIGHT, EDX);
|
||||
if (i<>items_cur) WriteText(19,i*ITEM_HEIGHT+9,0x80,0xf2f2f2,ITEMS_LIST[i*2]);
|
||||
WriteText(18,i*ITEM_HEIGHT+8,0x80,0x000000,ITEMS_LIST[i*2]);
|
||||
//if (ITEMS_LIST[i*2+1]==5) && (use_truetype==1) DrawBar(ITEM_WIDTH-18, i*ITEM_HEIGHT+9, 4, 4, 0x444444);
|
||||
}
|
||||
DrawBar(33, cur_encoding+1*ITEM_HEIGHT+8, 4, 4, 0x444444); //ďîęŕçűâŕĺň âűáđŕíóţ ęîäčđîâęó
|
||||
DrawBar(7, cur_encoding*ITEM_HEIGHT+9, 4, 4, 0x444444); //瀁罻踑瘔殣 禖摫鳧嚲 膰儰豂瞃<E8B182>
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -119,8 +119,9 @@ void DrawCaptButton(dword x,y,w,h,id,color_b, color_t,text)
|
||||
:void DrawPopup(dword x,y,w,h,skinned, col_work,col_border)
|
||||
{
|
||||
DrawRectangle(x,y,w,h,col_border);
|
||||
DrawRectangle3D(x+1,y+1,w-2,h-2,0xFFFfff,col_work);
|
||||
DrawBar(x+2,y+2,w-3,h-3,col_work);
|
||||
DrawBar(x+1,y+1,w-1,1,0xFFFfff);
|
||||
DrawBar(x+1,y+2,1,h-3,0xFFFfff);
|
||||
if (col_work!=-1) DrawBar(x+2,y+2,w-2,h-2,col_work);
|
||||
DrawPopupShadow(x,y,w,h-1,skinned);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user