Rev 5745 | Rev 5753 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5745 | Rev 5748 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | ?define NOTIFY_COPY_END "Notify when copying finished" |
19 | ?define NOTIFY_COPY_END "Notify when copying finished" |
20 | ?define T_DOUBLE_CLICK "Double click time (in hundredths)" |
20 | ?define T_DOUBLE_CLICK "Double click time (in hundredths)" |
21 | #endif |
21 | #endif |
22 | 22 | ||
Line 23... | Line 23... | ||
23 | char confir_section = "Config"; |
23 | char config_section[] = "Config"; |
24 | - | ||
- | 24 | int WinX, WinY, WinW, WinH; |
|
Line 25... | Line 25... | ||
25 | 25 | ||
26 | void settings_dialog() |
26 | void settings_dialog() |
27 | { |
27 | { |
Line 87... | Line 87... | ||
87 | 87 | ||
Line 88... | Line 88... | ||
88 | 88 | ||
89 | void LoadIniSettings() |
89 | void LoadIniSettings() |
90 | { |
90 | { |
91 | ini_get_color stdcall (eolite_ini_path, #confir_section, "SelectionColor", 0x94AECE); col_selec = EAX; |
91 | ini_get_color stdcall (eolite_ini_path, #config_section, "SelectionColor", 0x94AECE); col_selec = EAX; |
92 | ini_get_int stdcall (eolite_ini_path, #confir_section, "ShowDeviceName", 1); show_dev_name = 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, #confir_section, "RealFileNamesCase", 0); real_files_names_case = 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, #confir_section, "InfoAfterCopy", 0); info_after_copy = 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, #confir_section, "FontSize", 9); font_size = EAX; |
95 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); font_size = EAX; |
96 | ini_get_int stdcall (eolite_ini_path, #confir_section, "TwoPanels", 0); two_panels = EAX; |
96 | ini_get_int stdcall (eolite_ini_path, #config_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, #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, "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, "WinW", 550); WinW = EAX; |
|
98 | ini_get_int stdcall (eolite_ini_path, #confir_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX; |
102 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX; |
99 | BigFontsChange(); |
103 | BigFontsChange(); |
100 | font.no_bg_copy = true; |
104 | font.no_bg_copy = true; |
101 | font.load("/sys/font/Tahoma.kf"); |
105 | font.load("/sys/font/Tahoma.kf"); |
Line 102... | Line 106... | ||
102 | } |
106 | } |
103 | 107 | ||
104 | 108 | ||
105 | void SaveIniSettings() |
109 | void SaveIniSettings() |
106 | { |
110 | { |
107 | ini_set_int stdcall (eolite_ini_path, #confir_section, "ShowDeviceName", show_dev_name); |
111 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name); |
108 | ini_set_int stdcall (eolite_ini_path, #confir_section, "RealFileNamesCase", real_files_names_case); |
112 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
109 | ini_set_int stdcall (eolite_ini_path, #confir_section, "InfoAfterCopy", info_after_copy); |
113 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
110 | ini_set_int stdcall (eolite_ini_path, #confir_section, "FontSize", font_size); |
114 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font_size); |
- | 115 | 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); |
|
- | 117 | ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME); |
|
- | 118 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left); |
|
111 | ini_set_int stdcall (eolite_ini_path, #confir_section, "TwoPanels", two_panels); |
119 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top); |
Line 112... | Line 120... | ||
112 | ini_set_int stdcall (eolite_ini_path, #confir_section, "LineHeight", files.line_h); |
120 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width); |