Subversion Repositories Kolibri OS

Rev

Rev 3363 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3363 Rev 3372
Line 1... Line 1...
1
char *ext[]={
1
char *ext[]={
2
"..",   17,
2
"..",   17,
3
"",16,
3
"",16,
4
"txt", 1,
-
 
5
"doc", 1,
-
 
6
"rtf", 1,
-
 
7
"odt", 1,
-
 
8
"log", 1,
-
 
9
"docx",1,
4
"txt", 1, "doc", 1, "rtf", 1, "odt", 1, "log", 1, "docx",1,
10
"htm", 2,
5
"htm", 2, "html",2, "mht", 2,
11
"html",2,
-
 
12
"mht", 2,
-
 
13
"ini", 3,
-
 
14
"js",  3,
-
 
15
"conf",3,
-
 
16
"inf", 3,
6
"ini", 3, "js",  3, "conf",3, "inf", 3,
17
"xlt", 4,
-
 
18
"xls", 4,
-
 
19
"ods", 4,
7
"xlt", 4, "xls", 4, "ods", 4, "xlsx",4,
20
"xlsx",4,
-
 
21
"cmd", 5,
-
 
22
"bat", 5,
-
 
23
"py",  5,
-
 
24
"sh",  5,
-
 
25
"ksh", 5,
8
"cmd", 5, "bat", 5, "py",  5, "sh",  5, "ksh", 5, "com", 5,
26
"com", 5,
-
 
27
"kex", 6,
-
 
28
"lua", 6,
9
"kex", 6, "lua", 6,
29
"exe", 7,
-
 
30
"msi", 7,
10
"exe", 7, "msi", 7,
31
"sys", 8,
-
 
32
"ocx", 8,
-
 
33
"drv", 8,
-
 
34
"so",  8,
11
"sys", 8, "ocx", 8, "drv", 8, "so",  8,
35
"inc", 9,
12
"inc", 9,
36
"chr", 10,
-
 
37
"mt",  10,
-
 
38
"ttf", 10,
-
 
39
"fon", 10,
13
"chr", 10, "mt",  10, "ttf", 10, "fon", 10,
40
"asm", 11,
14
"asm", 11,
-
 
15
"mp3", 12, "wav", 12, "mid", 12, "midi",12, "ogg", 12, "wma", 12, "flac",12,
41
"skn", 13,
16
"skn", 13,
42
"djvu",15,
-
 
43
"pdf", 15,
-
 
-
 
17
"avi", 14, "flv", 14, "mpg", 14, "wmv", 14, "mov", 14, "mkv", 14, "mp4", 14, "vob", 14, "webm", 14,
44
"fb2", 15,
18
"djvu",15, "pdf", 15, "fb2", 15,
45
"nes", 18,
19
"nes", 18, "smc", 18,
-
 
20
"gif", 19, "bmp", 19, "tga", 19, "pcx", 19, "png", 19, "pnm", 19, "jpg", 19, "xcf", 19, "ai",  19,
46
"smc", 18,
21
"jpeg",19, "raw", 19, "psd", 19, "wbmp",19, "tiff",19, "tif", 19, 
47
"img", 21,
22
"3ds", 20, "ico", 20, "cur", 20, "ani", 20, "vox", 20,
48
"ima", 21,
23
"img", 21, "ima", 21,
49
"dll", 22,
-
 
50
"obj", 22,
24
"dll", 22, "obj", 22, "dict",22,
51
"dict",22,
25
"rar", 23, "zip", 23, "cab", 23, "tar", 23, "ajr", 23, "jar", 23, "7z",  23, "gz",  23,
52
"iso", 24,
-
 
53
"cue", 24,
-
 
54
"nrg", 24,
-
 
55
"mdf", 24,
26
"iso", 24, "cue", 24, "nrg", 24, "mdf", 24,
56
"gif", 19,
-
 
57
"bmp", 19,
-
 
58
"tga", 19,
-
 
59
"pcx", 19,
-
 
60
"png", 19,
-
 
61
"pnm", 19,
-
 
62
"jpg", 19,
-
 
63
"xcf", 19,
-
 
64
"ai",  19,
-
 
65
"jpeg",19,
-
 
66
"raw", 19,
-
 
67
"psd", 19,
-
 
68
"wbmp",19,
-
 
69
"tiff",19,
-
 
70
"tif", 19,
-
 
71
"3ds", 20,
-
 
72
"ico", 20,
-
 
73
"cur", 20,
-
 
74
"ani", 20,
-
 
75
"vox", 20,
-
 
76
"rar", 23,
-
 
77
"zip", 23,
-
 
78
"cab", 23,
-
 
79
"tar", 23,
-
 
80
"ajr", 23,
-
 
81
"jar", 23,
-
 
82
"7z",  23,
-
 
83
"gz",  23,
-
 
84
"mp3", 12,
-
 
85
"wav", 12,
-
 
86
"mid", 12,
-
 
87
"midi",12,
-
 
88
"ogg", 12,
-
 
89
"wma", 12,
-
 
90
"flac",12,
-
 
91
"avi", 14,
-
 
92
"flv", 14,
-
 
93
"mpg", 14,
-
 
94
"wmv", 14,
-
 
95
"mov", 14,
-
 
96
"mkv", 14,
-
 
97
"mp4", 14,
-
 
98
"vob", 14,
-
 
99
"grf", 25,
27
"grf", 25,
100
0,0};
28
0,0};
Line 101... Line 29...
101
 
29
 
Line 102... Line 30...
102
 
30
 
103
#include "imgs\icons.txt"
31
#include "imgs\icons.txt"
104
 
32
 
105
 
-
 
106
void Put_icon(dword extension, yy, fairing_color)
-
 
107
{ 
33
 
108
	int icon_n=0, i;
-
 
109
 
-
 
110
	for (i=0; ext[i]<>0; i+=2;)
-
 
111
		if (!strcmp(extension, ext[i]))
-
 
Line 112... Line 34...
112
		{
34
void Put_icon(dword extension, yy, fairing_color)
113
			icon_n = ext[i+1];
35
{ 
114
			break;
36
	int icon_n=0, i;
115
		}
37
	for (i=0; ext[i]!=0; i+=2;)	if (!strcmp(extension, ext[i]))	{ icon_n = ext[i+1]; break;	}
Line 116... Line -...
116
 
-
 
117
	PutPaletteImage(icon_n*16*15+#ficons,16,15,195,yy,8,#ficons_pal);
38
 
118
	if (icon_n<>17) && (strlen(extension)<9) WriteText(-strlen(extension)*3+onLeft(168,0)+36,yy+4,0x80,0,extension);
39
	PutPaletteImage(icon_n*16*15+#ficons,16,15,195,yy,8,#ficons_pal);
119
	if (fairing_color<>0xFFFfff) IconFairing(icon_n, yy, fairing_color); //çàêðàøèâàåì èêîíêó
40
	if (icon_n<>17) && (strlen(extension)<9) WriteText(-strlen(extension)*3+Form.cwidth-120,yy+4,0x80,0,extension);
120
}
41
	if (fairing_color<>0xFFFfff) IconFairing(icon_n, yy, fairing_color); //çàêðàøèâàåì èêîíêó
121
 
42
}
Line 293... Line 214...
293
			
214
			
294
			DrawBar(195+15,y+10,1,2,color);
215
			DrawBar(195+15,y+10,1,2,color);
295
			DrawBar(195+14,y+12,2,1,color);
216
			DrawBar(195+14,y+12,2,1,color);
296
			DrawBar(195+13,y+13,3,1,color);
217
			DrawBar(195+13,y+13,3,1,color);
297
			DrawBar(195+11,y+14,5,1,color);			
-
 
298
 
-
 
299
			return;
218
			DrawBar(195+11,y+14,5,1,color);
300
	}
219
	}