Subversion Repositories Kolibri OS

Compare Revisions

No changes between revisions

Regard whitespace Rev 5775 → Rev 5776

/programs/cmm/example fonts/font/Tahoma.kf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/programs/cmm/example fonts/font/Verdana.kf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/programs/cmm/example fonts/font
Property changes:
Deleted: tsvn:logminsize
-5
\ No newline at end of property
/programs/cmm/example fonts/example original font.c
File deleted
\ No newline at end of file
/programs/cmm/example fonts/compile original font.bat
File deleted
\ No newline at end of file
/programs/cmm/example fonts
Property changes:
Deleted: tsvn:logminsize
-5
\ No newline at end of property
/programs/cmm/eolite/Eolite.c
673,7 → 673,7
ext1 = strrchr(file_name_off,'.') + file_name_off;
if (ext1==file_name_off) ext1 = " \0"; //if no extension then show nothing
Put_icon(ext1, files.x+3, files.line_h/2-7+y, bgcol, 0);
WriteText(7-strlen(ConvertSize(file.sizelo))*6+files.x+files.w - 58, files.text_y + y,files.font_type,0,ConvertSize(file.sizelo));
WriteText(7-strlen(ConvertSize(file.sizelo))*6+files.x+files.w - 58, files.text_y + y +1,files.font_type,0,ConvertSize(file.sizelo));
}
else
{
698,7 → 698,7
FileShow.font_color = text_col;
FileShow.area_size_x = files.w - 164;
FileShow.text_pointer = file_name_off;
FileShow.start_y = files.text_y + y;
FileShow.start_y = files.text_y + y + 1;
PathShow_prepare stdcall(#FileShow);
PathShow_draw stdcall(#FileShow);
}
706,7 → 706,8
else
{
font.bg_color = bgcol;
font.text(files.x + 23, files.line_h - font.height / 2 - 1 + y, file_name_off);
font.prepare(0, 0, file_name_off);
font.show(files.x + 23, files.line_h - font.size.height / 2 + y);
}
DrawBar(files.x+files.w-141,y,1,files.line_h,system.color.work); //gray line 1
DrawBar(files.x+files.w-68,y,1,files.line_h,system.color.work); //gray line 2
/programs/cmm/eolite/include/icons.h
43,7 → 43,7
ficons_pal[0] = fairing_color;
PutPaletteImage(icon_n*16*15+#ficons,16,15,xx,yy,8,#ficons_pal);
if (fairing_color!=0xFFFfff) IconFairing(icon_n, xx, yy, fairing_color);
if (icon_n!=17) && (strlen(extension)<9) WriteText(-FileShow.font_size_x/2*strlen(extension)+files.x+files.w-103,yy+4,files.font_type,0,extension);
if (icon_n!=17) && (strlen(extension)<9) WriteText(-FileShow.font_size_x/2*strlen(extension)+files.x+files.w-103,yy+3,files.font_type,0,extension);
}
 
 
/programs/cmm/eolite/include/settings.h
43,7 → 43,7
else if (id==21) { action_buf=109; real_files_names_case ^= 1; }
else if (id==22) info_after_copy ^= 1;
else if (id==24) two_panels ^= 1;
else if (id==25) files.line_h++;
else if (id==25) { files.line_h++; files_active.line_h = files_inactive.line_h = files.line_h; }
else if (id==26) && (files.line_h>18) files.line_h--;
else if (id==27) MOUSE_TIME++;
else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--;
/programs/cmm/eolite/include/translations.h
1,5 → 1,5
#define TITLE "Eolite File Manager v3.13"
#define ABOUT_TITLE "Eolite 3.13"
#define TITLE "Eolite File Manager v3.14"
#define ABOUT_TITLE "Eolite 3.14"
 
#ifdef LANG_RUS
?define T_FILE "” ©«"
/programs/cmm/kolibri font viewer/compile original font.bat
0,0 → 1,10
C-- "kolibri font viewer.c"
@del "kolibri font viewer"
@rename "kolibri font viewer.com" "kolibri font viewer"
kpack "kolibri font viewer"
@del warning.txt
@pause
@rem ====== Automatically add binnary to kolibri.img and then run QEMU =====
@rem"C:\Program Files (x86)\WinImage\WINIMAGE.exe" D:\Kolibri\work\QEMU\kolibri.img /I /H/Q C:\Users\Leency\Dropbox\CMM\example\example
@rem @cd /d C:\Work\QEMU
@rem C:\Work\QEMU\kolibri_qumu.bat
/programs/cmm/kolibri font viewer/kolibri font viewer.c
0,0 → 1,50
#define MEMSIZE 0xEE80
 
#include "../lib/font.h"
#include "../lib/gui.h"
 
void main()
{
word i, y, btn;
char line[256], title[4196];
font.no_bg_copy = true;
font.color = 0;
font.bg_color = 0xFFFFFF;
if (!param) strcpy(#param, "/sys/fonts/Tahoma.kf");
font.load(#param);
strcpy(#title, "Kolibri font preview: ");
strcat(#title, #param);
loop()
{
switch(WaitEvent())
{
case evButton:
btn = GetButtonID();
if (btn==1) ExitProcess();
if (btn==2) font.weight ^=1;
if (btn==3) font.italic ^=1;
if (btn==4) font.no_bg_copy ^=1;
case evReDraw:
DefineAndDrawWindow(215,100,500,320,0x33,0xFFFFFF,#title);
DrawBar(0, 0, 500-9, 30, 0xCCCccc);
CheckBox2(10, 8, 2, "Bold", font.weight);
CheckBox2(70, 8, 3, "Italic", font.italic);
CheckBox2(140, 8, 4, "Smooth", font.no_bg_copy);
if (!font.data)
{
WriteText(10, 50, 0x82, 0xFF00FF, "Font is not loaded.");
}
else for (i=10, y=40; i<22; i++, y+=font.height;)
{
font.size.text = i;
sprintf(#line," §¬¥à èà¨äâ /size font %d ¯¨ªá¥«¥©.",i);
font.prepare(10,y,#line);
font.show(10, y);
}
}
}
}
 
void CheckBox2(dword x, y, id, text, byte value) {
CheckBox(x, y, 14, 14, id, text, system.color.work_graph, system.color.work_text, value);
}
/programs/cmm/kolibri font viewer/font/Verdana.kf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/programs/cmm/kolibri font viewer/font/Tahoma.kf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/programs/cmm/kolibri font viewer/font
Property changes:
Added: tsvn:logminsize
+5
\ No newline at end of property
/programs/cmm/kolibri font viewer
Property changes:
Added: tsvn:logminsize
+5
\ No newline at end of property
/programs/cmm/lib/font.h
37,7 → 37,8
byte load(...);
byte symbol(word x;byte s;dword c);
byte symbol_size(byte s);
dword text(word x,y;dword text1);
dword prepare(word x,y;dword text1);
void show(word x,y);
byte textcenter(word x,y,w,h;dword txt);
dword getsize(dword text1);
dword textarea(word x,y;dword text,c);
192,7 → 193,7
IF(s=='_') size.width--;
IF(size.offset_x<0)size.offset_x = X;
}
:dword FONT::text(word x,y;dword text1)
:dword FONT::prepare(word x,y;dword text1)
{
signed len=0;
dword c;
245,18 → 246,21
text1++;
}
IF (no_bg_copy) && (!color) SmoothFont(buffer, size.width, size.height);
_PutImage(x,y,size.width,size.height,buffer);
return len;
}
:void FONT::show(word x,y)
{
_PutImage(x,y,size.width,size.height,buffer);
}
inline fastcall dword b24(EBX) { return DSDWORD[EBX] << 8; }
:void SmoothFont(dword color_image, w, h)
:void SmoothFont(dword image, w, h)
{
byte rr,gg,bb;
dword i,line_w,to, pixel;
line_w = w * 3;
to = w*h*3 + color_image - line_w - 3;
for (i = color_image; i < to; i+=3) {
if (i-color_image%line_w +3 == line_w) continue;
to = w*h*3 + image - line_w - 3;
for (i = image; i < to; i+=3) {
if (i-image%line_w +3 == line_w) continue;
if (b24(i)==0x000000) && (b24(i+3)!=0x000000) && (b24(i+line_w)!=0x000000) && (b24(i+3+line_w)==0x000000)
{
ShadowImage(i+3, 1, 1, 2);