Rev 6656 | Rev 6918 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6656 | Rev 6662 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #define MEMSIZE 4096*20 |
1 | #define MEMSIZE 4096*20 |
Line -... | Line 2... | ||
- | 2 | ||
- | 3 | #ifndef AUTOBUILD |
|
- | 4 | #include "lang.h--" |
|
- | 5 | #endif |
|
2 | 6 | ||
3 | //===================================================// |
7 | //===================================================// |
4 | // // |
8 | // // |
5 | // LIB // |
9 | // LIB // |
6 | // // |
10 | // // |
Line 21... | Line 25... | ||
21 | // // |
25 | // // |
22 | //===================================================// |
26 | //===================================================// |
Line 23... | Line 27... | ||
23 | 27 | ||
Line -... | Line 28... | ||
- | 28 | proc_info Form; |
|
- | 29 | ||
- | 30 | #ifdef LANG_RUS |
|
- | 31 | #define WINDOW_TITLE "áâ ®¢é¨ª ¤à ©¢¥à®¢" |
|
- | 32 | #define T_CAUTION_TITLE " " |
|
- | 33 | #define T_CAUTION_PARAGRAPH "áâ ®¢ª ¤®¯®«¨â¥«ìëå ¤à ©¢¥à®¢ ¬®¦¥â ¥á⨠¢à¥¤ áâ ¡¨«ì®á⨠®¯¥à 樮®© á¨áâ¥¬ë ¨ ¯®â¥æ¨ «ì® ¯à¨¢¥á⨠ª ¯®àç¥ ®¡®à㤮¢ ¨ï." |
|
- | 34 | #define T_ASSEPT_RISK " ¯à¨¨¬ î à¨áª" |
|
- | 35 | #define T_README "Readme" |
|
24 | proc_info Form; |
36 | #define T_INSTALL "áâ ®¢¨âì" |
25 | 37 | #else |
|
26 | #define WINDOW_TITLE "Driver Installer" |
38 | #define WINDOW_TITLE "Driver Installer" |
27 | #define T_CAUTION_TITLE "CAUTION" |
39 | #define T_CAUTION_TITLE "CAUTION" |
28 | #define T_CAUTION_PARAGRAPH "Installing additional drivers can be harmful to the stability of the operation system and potentionally can harm hardware." |
40 | #define T_CAUTION_PARAGRAPH "Installing additional drivers can be harmful to the stability of the operation system and potentionally can harm hardware." |
29 | #define T_ASSEPT_RISK "I assept the risk" |
41 | #define T_ASSEPT_RISK "I accept the risk" |
- | 42 | #define T_README "Readme" |
|
Line 30... | Line 43... | ||
30 | #define T_README "Readme" |
43 | #define T_INSTALL "Install" |
31 | #define T_INSTALL "Install" |
44 | #endif |
32 | 45 | ||
Line 122... | Line 135... | ||
122 | PADDING, |
135 | PADDING, |
123 | right_frame_x - PADDING - PADDING - 8 - scroll1.size_x, |
136 | right_frame_x - PADDING - PADDING - 8 - scroll1.size_x, |
124 | Form.cheight - PADDING - PADDING, |
137 | Form.cheight - PADDING - PADDING, |
125 | false); |
138 | false); |
126 | SelectList_Draw(); |
139 | SelectList_Draw(); |
- | 140 | SelectList_DrawBorder(); |
|
127 | //RIGHT FRAME |
141 | //RIGHT FRAME |
128 | GetCurrentSectionData(); |
142 | GetCurrentSectionData(); |
129 | DrawBar(right_frame_x, PADDING+3, Form.cwidth - right_frame_x - PADDING, 80, system.color.work); |
143 | DrawBar(right_frame_x, PADDING+3, Form.cwidth - right_frame_x - PADDING, 80, system.color.work); |
130 | WriteTextB(right_frame_x, PADDING+3, 0x81, system.color.work_text, ini_sections.get(select_list.cur_y)); |
144 | WriteTextB(right_frame_x, PADDING+3, 0x81, system.color.work_text, ini_sections.get(select_list.cur_y)); |
131 | WriteText(right_frame_x, PADDING+23, 0x80, system.color.work_text, #cur_version); |
145 | WriteText(right_frame_x, PADDING+23, 0x80, system.color.work_text, #cur_version); |
Line 156... | Line 170... | ||
156 | void SelectList_LineChanged() |
170 | void SelectList_LineChanged() |
157 | { |
171 | { |
158 | draw_driver_list_window(); |
172 | draw_driver_list_window(); |
159 | } |
173 | } |
Line -... | Line 174... | ||
- | 174 | ||
160 | 175 | ||
161 | void GetCurrentSectionData() |
176 | void GetCurrentSectionData() |
162 | { |
177 | { |
- | 178 | dword section_name = ini_sections.get(select_list.cur_y); |
|
- | 179 | dword description_name; |
|
163 | dword cur_section_name = ini_sections.get(select_list.cur_y); |
180 | if (GetSystemLanguage() == SYS_LANG_RUS) description_name = "description_ru"; else description_name = "description_en"; |
164 | ini_get_str stdcall (#drvinf_path, cur_section_name, "ver", #cur_version, sizeof(cur_version), 0); |
181 | ini_get_str stdcall (#drvinf_path, section_name, "ver", #cur_version, sizeof(cur_version), 0); |
165 | ini_get_str stdcall (#drvinf_path, cur_section_name, "description", #cur_description, sizeof(cur_description), 0); |
182 | ini_get_str stdcall (#drvinf_path, section_name, description_name, #cur_description, sizeof(cur_description), 0); |
166 | ini_get_str stdcall (#drvinf_path, cur_section_name, "readme", #cur_readme_path, sizeof(cur_readme_path), 0); |
183 | ini_get_str stdcall (#drvinf_path, section_name, "readme", #cur_readme_path, sizeof(cur_readme_path), 0); |
167 | ini_get_str stdcall (#drvinf_path, cur_section_name, "install", #cur_install_path, sizeof(cur_install_path), 0); |
184 | ini_get_str stdcall (#drvinf_path, section_name, "install", #cur_install_path, sizeof(cur_install_path), 0); |
Line 168... | Line 185... | ||
168 | } |
185 | } |
169 | 186 | ||
170 | //===================================================// |
187 | //===================================================// |