Rev 4076 | Rev 4394 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4076 | Rev 4225 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //Leency 2008-2013 |
1 | //Leency 2008-2013 |
Line 2... | Line 2... | ||
2 | 2 | ||
- | 3 | #ifdef LANG_RUS |
|
- | 4 | ?define T_DEVICES "áâனá⢠" |
|
3 | #ifdef LANG_RUS |
5 | ?define T_ACTIONS "¥©á⢨ï" |
4 | char *actions[] = { |
6 | char *actions[] = { |
5 | 57, "®¢ë© ä ©«", "F7", |
7 | 57, "®¢ë© ä ©«", "F7", |
6 | 56, "®¢ ï ¯ ¯ª ", "F6", |
8 | 56, "®¢ ï ¯ ¯ª ", "F6", |
7 | 60, " áâனª¨", "F10", |
9 | 60, " áâனª¨", "F10", |
8 | 0,0,0 |
10 | 0,0,0 |
9 | }; |
- | |
10 | ?define T_DEVICES "áâனá⢠" |
- | |
11 | ?define T_ACTIONS "¥©á⢨ï" |
- | |
12 | 11 | }; |
|
- | 12 | #elif LANG_EST |
|
- | 13 | ?define T_DEVICES "Seadmed" |
|
13 | #elif LANG_EST |
14 | ?define T_ACTIONS "Toimingud" |
14 | char *actions[] = { |
15 | char *actions[] = { |
15 | 57, "Uus fail", "F7", |
16 | 57, "Uus fail", "F7", |
16 | 56, "Uus kataloog", "F6", |
17 | 56, "Uus kataloog", "F6", |
17 | 60, "Seaded", "F10", |
18 | 60, "Seaded", "F10", |
18 | 0,0,0 |
19 | 0,0,0 |
19 | }; |
- | |
20 | - | ||
21 | ?define T_DEVICES "Seadmed" |
- | |
22 | ?define T_ACTIONS "Toimingud" |
- | |
23 | 20 | }; |
|
- | 21 | #else |
|
- | 22 | ?define T_DEVICES "Devices" |
|
24 | #else |
23 | ?define T_ACTIONS "Actions" |
25 | char *actions[] = { |
24 | char *actions[] = { |
26 | 57, "New file", "F7", |
25 | 57, "New file", "F7", |
27 | 56, "New folder", "F6", |
26 | 56, "New folder", "F6", |
28 | 60, "Options", "F10", |
27 | 60, "Options", "F10", |
29 | 0,0,0 |
28 | 0,0,0 |
30 | }; |
- | |
31 | - | ||
32 | ?define T_DEVICES "Devices" |
- | |
33 | ?define T_ACTIONS "Actions" |
29 | }; |
Line 34... | Line 30... | ||
34 | #endif |
30 | #endif |
35 | 31 | ||
Line 75... | Line 71... | ||
75 | strcat(#sys_discs, j1*304+ buf+72); // /rd/1 |
71 | strcat(#sys_discs, j1*304+ buf+72); // /rd/1 |
76 | strcat(#sys_discs, "/"); // /rd/1/ |
72 | strcat(#sys_discs, "/"); // /rd/1/ |
77 | strcpy(#disk_list[disc_num].Item, #sys_discs); |
73 | strcpy(#disk_list[disc_num].Item, #sys_discs); |
78 | disc_num++; |
74 | disc_num++; |
79 | } |
75 | } |
- | 76 | if (strcmp(#disk_list[disc_num-1].Item, "/rd/1/")==0) |
|
- | 77 | { |
|
80 | if (strcmp(#disk_list[disc_num-1].Item, "/rd/1/")==0) if (GetDir(nullbuf, nullbuf, "/kolibrios/", DIRS_ALL)==0) |
78 | if (GetDir(nullbuf, nullbuf, "/kolibrios/", DIRS_ALL)==0) |
81 | { |
79 | { |
82 | strcpy(#disk_list[disc_num].Item, "/kolibrios/"); |
80 | strcpy(#disk_list[disc_num].Item, "/kolibrios/"); |
83 | kolibrios_drive = true; |
81 | kolibrios_drive = true; |
84 | disc_num++; |
82 | disc_num++; |
85 | } else kolibrios_drive = false; |
83 | } else kolibrios_drive = false; |
86 | } |
84 | } |
87 | } |
85 | } |
- | 86 | } |
|
Line -... | Line 87... | ||
- | 87 | ||
- | 88 | void DrawRamDiskSpace() |
|
- | 89 | { |
|
- | 90 | int free_rd_space = GetFreeRamDiskClusters() * 49 / ALL_RD_CLUSTERS; |
|
- | 91 | DefineButton(120, 80, 49, 4, 27+BT_HIDE, 0); |
|
- | 92 | if (!free_rd_space) |
|
- | 93 | DrawBar(121, 81, 49-free_rd_space, 3, 0xFF0000); |
|
- | 94 | else |
|
- | 95 | { |
|
- | 96 | DrawBar(121, 81, 49-free_rd_space, 3, 0x7A7F84); |
|
- | 97 | DrawBar(121+49-free_rd_space, 81, free_rd_space, 3, 0xC4C4C4); |
|
- | 98 | } |
|
Line 88... | Line 99... | ||
88 | 99 | } |
|
89 | 100 | ||
90 | void SystemDiscsDraw() |
101 | void SystemDiscsDraw() |
91 | { |
102 | { |
Line 107... | Line 118... | ||
107 | strcpy(#disc_name, "Programs "); |
118 | strcpy(#disc_name, "Programs "); |
108 | break; |
119 | break; |
109 | case 'r': |
120 | case 'r': |
110 | dev_icon=0; |
121 | dev_icon=0; |
111 | strcpy(#disc_name, "System "); |
122 | strcpy(#disc_name, "System "); |
- | 123 | DrawRamDiskSpace(); |
|
112 | break; |
124 | break; |
113 | case 'c': |
125 | case 'c': |
114 | dev_icon=1; |
126 | dev_icon=1; |
115 | strcpy(#disc_name, "CD-ROM "); |
127 | strcpy(#disc_name, "CD-ROM "); |
116 | break; |
128 | break; |
Line 141... | Line 153... | ||
141 | default: |
153 | default: |
142 | dev_icon=3; //ïî-óìîë÷àíèþ óñòðîéñòâî âûãëÿäèò êàê æåñòÿê íî ýòî íåïðàâèëüíî |
154 | dev_icon=3; //ïî-óìîë÷àíèþ óñòðîéñòâî âûãëÿäèò êàê æåñòÿê íî ýòî íåïðàâèëüíî |
143 | strcpy(#disc_name, "Unknown "); |
155 | strcpy(#disc_name, "Unknown "); |
144 | } |
156 | } |
145 | strcat(#disc_name, #dev_name); |
157 | strcat(#disc_name, #dev_name); |
146 | if (show_dev_name) WriteText(45,i*16+79,0x80,0,#disc_name); |
158 | if (show_dev_name) WriteText(45,i*16+79,0x80,0,#disc_name); else WriteText(45,i*16+79,0x80,0,#dev_name); |
147 | else WriteText(45,i*16+79,0x80,0,#dev_name); |
- | |
148 | _PutImage(21,i*16+76, 14,13, dev_icon*14*13*3+#devices); |
159 | _PutImage(21,i*16+76, 14,13, dev_icon*14*13*3+#devices); |
149 | } |
160 | } |
150 | } |
161 | } |
Line 151... | Line 162... | ||
151 | 162 |