Rev 5743 | Rev 5748 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5743 | Rev 5745 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | else if (id==25) files.line_h++; |
45 | else if (id==25) files.line_h++; |
46 | else if (id==26) && (files.line_h>18) files.line_h--; |
46 | else if (id==26) && (files.line_h>18) files.line_h--; |
47 | else if (id==27) MOUSE_TIME++; |
47 | else if (id==27) MOUSE_TIME++; |
48 | else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--; |
48 | else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--; |
49 | else if (id==30) && (font_size<30) { font_size++; BigFontsChange(); } |
49 | else if (id==30) && (font_size<22) { font_size++; BigFontsChange(); } |
50 | else if (id==31) && (font_size>10) { font_size--; BigFontsChange(); } |
50 | else if (id==31) && (font_size>9) { font_size--; BigFontsChange(); } |
51 | SaveIniSettings(); |
51 | SaveIniSettings(); |
52 | EventRedrawWindow(Form.left,Form.top); |
52 | EventRedrawWindow(Form.left,Form.top); |
53 | DrawSettingsCheckBoxes(); |
53 | DrawSettingsCheckBoxes(); |
54 | break; |
54 | break; |
55 | 55 | ||
Line 79... | Line 79... | ||
79 | CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS, show_dev_name); |
79 | CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS, show_dev_name); |
80 | CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case); |
80 | CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case); |
81 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
81 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
82 | CheckBox2(10, 77, 24, USE_TWO_PANELS, two_panels); |
82 | CheckBox2(10, 77, 24, USE_TWO_PANELS, two_panels); |
83 | MoreLessBox(10, 103, 18, 30, 31, #system.color, font_size, FONT_SIZE_LABEL); |
83 | MoreLessBox(10, 103, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK); |
84 | MoreLessBox(10, 130, 18, 25, 26, #system.color, files.line_h, LIST_LINE_HEIGHT); |
84 | MoreLessBox(10, 130, 18, 25, 26, #system.color, files.line_h, LIST_LINE_HEIGHT); |
85 | MoreLessBox(10, 157, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK); |
85 | if (font.data) MoreLessBox(10, 157, 18, 30, 31, #system.color, font_size, FONT_SIZE_LABEL); |
86 | } |
86 | } |
87 | 87 | ||
Line 88... | Line 88... | ||
88 | 88 | ||
89 | void LoadIniSettings() |
89 | void LoadIniSettings() |
Line 96... | Line 96... | ||
96 | ini_get_int stdcall (eolite_ini_path, #confir_section, "TwoPanels", 0); two_panels = EAX; |
96 | ini_get_int stdcall (eolite_ini_path, #confir_section, "TwoPanels", 0); two_panels = EAX; |
97 | ini_get_int stdcall (eolite_ini_path, #confir_section, "LineHeight", 18); files.line_h = EAX; |
97 | ini_get_int stdcall (eolite_ini_path, #confir_section, "LineHeight", 18); files.line_h = EAX; |
98 | ini_get_int stdcall (eolite_ini_path, #confir_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX; |
98 | ini_get_int stdcall (eolite_ini_path, #confir_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX; |
99 | BigFontsChange(); |
99 | BigFontsChange(); |
100 | } |
100 | font.no_bg_copy = true; |
- | 101 | font.load("/sys/font/Tahoma.kf"); |
|
- | 102 | } |
|
101 | 103 | ||
Line 102... | Line 104... | ||
102 | 104 | ||
103 | void SaveIniSettings() |
105 | void SaveIniSettings() |
Line 140... | Line 142... | ||
140 | void BigFontsChange() |
142 | void BigFontsChange() |
141 | { |
143 | { |
142 | files.line_h = font.height + 4; |
144 | files.line_h = font.height + 4; |
143 | if (files.line_h<18) files.line_h = 18; |
145 | if (files.line_h<18) files.line_h = 18; |
- | 146 | files_active.line_h = files_inactive.line_h = files.line_h; |
|
Line 144... | Line -... | ||
144 | - | ||
145 | if (font_size!=9) |
- | |
146 | { |
- | |
147 | files.SetFont(8, 14, 10110000b); |
- | |
148 | FileShow.font_size_x = files.font_w; |
- | |
149 | FileShow.font_number = 3; |
- | |
150 | } |
- | |
151 | else |
- | |
152 | { |
147 | |
153 | files.SetFont(6, 6, 10000000b); |
148 | files.SetFont(6, 6, 10000000b); |
154 | FileShow.font_size_x = files.font_w; |
149 | FileShow.font_size_x = files.font_w; |
155 | FileShow.font_number = 0; |
150 | FileShow.font_number = 0; |
156 | } |
- | |
Line 157... | Line 151... | ||
157 | } |
151 | } |
158 | 152 | ||
159 | 153 | ||
160 | void CheckBox2(dword x, y, id, text, byte value) { |
154 | void CheckBox2(dword x, y, id, text, byte value) { |