Rev 5748 | Rev 5761 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5748 | Rev 5753 | ||
---|---|---|---|
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<22) { font_size++; BigFontsChange(); } |
49 | else if (id==30) && (font.size.text<22) { font.size.text++; BigFontsChange(); } |
50 | else if (id==31) && (font_size>9) { font_size--; BigFontsChange(); } |
50 | else if (id==31) && (font.size.text>9) { font.size.text--; 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 67... | Line 67... | ||
67 | } |
67 | } |
68 | 68 | ||
Line 69... | Line 69... | ||
69 | void ExitSettings() |
69 | void ExitSettings() |
70 | { |
70 | { |
- | 71 | active_settings=0; |
|
71 | settings_window = 0; |
72 | settings_window = 0; |
72 | cmd_free = 4; |
73 | cmd_free = 4; |
73 | SaveIniSettings(); |
74 | SaveIniSettings(); |
74 | ExitProcess(); |
75 | ExitProcess(); |
75 | } |
76 | } |
Line 81... | Line 82... | ||
81 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
82 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
82 | CheckBox2(10, 77, 24, USE_TWO_PANELS, two_panels); |
83 | CheckBox2(10, 77, 24, USE_TWO_PANELS, two_panels); |
83 | MoreLessBox(10, 103, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK); |
84 | 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); |
85 | MoreLessBox(10, 130, 18, 25, 26, #system.color, files.line_h, LIST_LINE_HEIGHT); |
85 | if (font.data) MoreLessBox(10, 157, 18, 30, 31, #system.color, font_size, FONT_SIZE_LABEL); |
86 | if (font.data) MoreLessBox(10, 157, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL); |
86 | } |
87 | } |
87 | 88 | ||
Line 88... | Line 89... | ||
88 | 89 | ||
89 | void LoadIniSettings() |
90 | void LoadIniSettings() |
90 | { |
91 | { |
91 | ini_get_color stdcall (eolite_ini_path, #config_section, "SelectionColor", 0x94AECE); col_selec = EAX; |
92 | ini_get_color stdcall (eolite_ini_path, #config_section, "SelectionColor", 0x94AECE); col_selec = EAX; |
92 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", 1); show_dev_name = EAX; |
93 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", 1); show_dev_name = EAX; |
93 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX; |
94 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX; |
94 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
95 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
95 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); font_size = EAX; |
96 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); font.size.text = EAX; |
96 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
97 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
97 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 18); files.line_h = EAX; |
98 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 18); files.line_h = EAX; |
98 | ini_get_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX; |
99 | ini_get_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX; |
99 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
100 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
100 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
101 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
101 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX; |
102 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX; |
102 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX; |
103 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX; |
103 | BigFontsChange(); |
- | |
104 | font.no_bg_copy = true; |
- | |
105 | font.load("/sys/font/Tahoma.kf"); |
104 | BigFontsChange(); |
Line 106... | Line 105... | ||
106 | } |
105 | } |
107 | 106 | ||
108 | 107 | ||
109 | void SaveIniSettings() |
108 | void SaveIniSettings() |
110 | { |
109 | { |
111 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name); |
110 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name); |
112 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
111 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
113 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
112 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
114 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font_size); |
113 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text); |
115 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |
114 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |
116 | ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.line_h); |
115 | ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.line_h); |