Rev 6746 | Rev 7004 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6746 | Rev 6806 | ||
---|---|---|---|
Line 76... | Line 76... | ||
76 | else if (id==32) show_breadcrumb ^= true; |
76 | else if (id==32) show_breadcrumb ^= true; |
77 | else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; } |
77 | else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; } |
78 | else if (id==26) && (files.item_h>15) files_inactive.item_h = files.item_h = files.item_h-1; |
78 | else if (id==26) && (files.item_h>15) files_inactive.item_h = files.item_h = files.item_h-1; |
79 | else if (id==27) show_status_bar ^= 1; |
79 | else if (id==27) show_status_bar ^= 1; |
80 | else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); } |
80 | else if (id==30) { kfont.size.pt++; IF(!kfont.changeSIZE()) kfont.size.pt--; BigFontsChange(); } |
81 | else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); } |
81 | else if (id==31) { kfont.size.pt--; IF(!kfont.changeSIZE()) kfont.size.pt++; BigFontsChange(); } |
82 | EventRedrawWindow(Form.left,Form.top); |
82 | EventRedrawWindow(Form.left,Form.top); |
83 | break; |
83 | break; |
84 | 84 | ||
Line 85... | Line 85... | ||
85 | case evKey: |
85 | case evKey: |
86 | GetKeys(); |
86 | GetKeys(); |
Line 114... | Line 114... | ||
114 | CheckBox(x, y.inc(25), 27, SHOW_STATUS_BAR, show_status_bar); |
114 | CheckBox(x, y.inc(25), 27, SHOW_STATUS_BAR, show_status_bar); |
115 | CheckBox(x, y.inc(25), 22, NOTIFY_COPY_END, info_after_copy); |
115 | CheckBox(x, y.inc(25), 22, NOTIFY_COPY_END, info_after_copy); |
116 | CheckBox(x, y.inc(25), 32, SHOW_BREADCRUMBS, show_breadcrumb); |
116 | CheckBox(x, y.inc(25), 32, SHOW_BREADCRUMBS, show_breadcrumb); |
117 | CheckBox(x, y.inc(25), 24, USE_TWO_PANELS, two_panels); |
117 | CheckBox(x, y.inc(25), 24, USE_TWO_PANELS, two_panels); |
118 | MoreLessBox(x, y.inc(31), 30, 31, label.size.pt, FONT_SIZE_LABEL); |
118 | MoreLessBox(x, y.inc(31), 30, 31, kfont.size.pt, FONT_SIZE_LABEL); |
119 | MoreLessBox(x, y.inc(31), 25, 26, files.item_h, LIST_LINE_HEIGHT); |
119 | MoreLessBox(x, y.inc(31), 25, 26, files.item_h, LIST_LINE_HEIGHT); |
120 | WriteText(6, y.inc(28), 0xD0, system.color.work_text, START_PATH); |
120 | WriteText(6, y.inc(28), 0xD0, system.color.work_text, START_PATH); |
121 | path_start_ed.top = y.inc(23); |
121 | path_start_ed.top = y.inc(23); |
122 | path_start_ed.left = x; |
122 | path_start_ed.left = x; |
123 | DrawEditBox(#path_start_ed); |
123 | DrawEditBox(#path_start_ed); |
124 | but_x = DrawFlatButton(x-1, y.inc(34), 6, SAVE_PATH_AS_DEFAULT); |
124 | but_x = DrawFlatButton(x-1, y.inc(34), 6, SAVE_PATH_AS_DEFAULT); |
Line 135... | Line 135... | ||
135 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", 1); show_dev_name = EAX; |
135 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", 1); show_dev_name = EAX; |
136 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowStatusBar", 1); show_status_bar = EAX; |
136 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowStatusBar", 1); show_status_bar = EAX; |
137 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 1); real_files_names_case = EAX; |
137 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 1); real_files_names_case = EAX; |
138 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
138 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
139 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 12); label.size.pt = EAX; |
139 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 12); kfont.size.pt = EAX; |
140 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
140 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
141 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 19); files.item_h = EAX; |
141 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 19); files.item_h = EAX; |
142 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
142 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
143 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
143 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
144 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX; |
144 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX; |
145 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 506); WinH = EAX; |
145 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 506); WinH = EAX; |
Line 148... | Line 148... | ||
148 | path_start_ed.size = strlen(#path_start); |
148 | path_start_ed.size = strlen(#path_start); |
149 | path_start_ed.pos = strlen(#path_start); |
149 | path_start_ed.pos = strlen(#path_start); |
150 | 150 | ||
Line 151... | Line 151... | ||
151 | ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT); |
151 | ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT); |
152 | label.init(#temp); |
152 | kfont.init(#temp); |
153 | ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on"); |
153 | ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on"); |
154 | if(!strcmp(#temp,"off")) label.smooth = false; else label.smooth = true; |
154 | if(!strcmp(#temp,"off")) kfont.smooth = false; else kfont.smooth = true; |
155 | } |
155 | } |
Line 156... | Line 156... | ||
156 | 156 | ||
157 | 157 | ||
158 | void SaveIniSettings() |
158 | void SaveIniSettings() |
159 | { |
159 | { |
160 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name); |
160 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name); |
161 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowStatusBar", show_status_bar); |
161 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowStatusBar", show_status_bar); |
162 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
162 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
163 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
163 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
164 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", label.size.pt); |
164 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", kfont.size.pt); |
165 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |
165 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |
166 | ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h); |
166 | ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h); |
167 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left); |
167 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left); |
Line 200... | Line 200... | ||
200 | 200 | ||
Line 201... | Line 201... | ||
201 | 201 | ||
202 | void BigFontsChange() |
202 | void BigFontsChange() |
203 | { |
203 | { |
204 | files.item_h = label.size.pt + 4; |
204 | files.item_h = kfont.size.pt + 4; |
205 | if (files.item_h<18) files.item_h = 18; |
205 | if (files.item_h<18) files.item_h = 18; |
206 | files_active.item_h = files_inactive.item_h = files.item_h; |
206 | files_active.item_h = files_inactive.item_h = files.item_h; |