Rev 5478 | Rev 5532 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5478 | Rev 5526 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | #define EDITOR_PATH "/sys/tinypad" |
3 | #define EDITOR_PATH "/sys/tinypad" |
Line 4... | Line 4... | ||
4 | 4 | ||
5 | #ifdef LANG_RUS |
5 | #ifdef LANG_RUS |
6 | ?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì áá®æ¨ 樨 ä ©«®¢" |
6 | ?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì áá®æ¨ 樨 ä ©«®¢" |
7 | ?define TITLE_SETT " áâனª¨" |
7 | ?define TITLE_SETT " áâனª¨" |
8 | ?define SET_1 "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
8 | ?define SHOW_DEVICE_CLASS "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
9 | ?define SET_2 "®ª §ë¢ âì ¨¬¥ ä ©«®¢ ¥ ¬¥ïï ॣ¨áâà" |
9 | ?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥ ä ©«®¢ ¥ ¬¥ïï ॣ¨áâà" |
10 | ?define SET_3 "ëá®â áâப¨ ¢ ᯨ᪥" |
10 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
11 | ?define SET_4 "¢¥¤®¬«ïâì ® § ¢¥à襨¨ ª®¯¨à®¢ ¨ï" |
11 | ?define NOTIFY_COPY_END "¢¥¤®¬«ïâì ® § ¢¥à襨¨ ª®¯¨à®¢ ¨ï" |
12 | ?define CANCEL_T "⬥ " |
12 | ?define CANCEL_T "⬥ " |
13 | ?define APPLY_T "ਬ¥¨âì" |
13 | ?define APPLY_T "ਬ¥¨âì" |
14 | #else |
14 | #else |
15 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
15 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
16 | ?define TITLE_SETT "Settings" |
16 | ?define TITLE_SETT "Settings" |
17 | ?define SET_1 "Show device class name" |
17 | ?define SHOW_DEVICE_CLASS "Show device class name" |
18 | ?define SET_2 "Show real file names without changing case" |
18 | ?define SHOW_REAL_NAMES "Show real file names without changing case" |
19 | ?define SET_3 "List line height" |
19 | ?define LIST_LINE_HEIGHT "List line height" |
20 | ?define SET_4 "To notify the completion of the copy" |
20 | ?define NOTIFY_COPY_END "Notify when copying finished" |
21 | ?define CANCEL_T "Cancel" |
21 | ?define CANCEL_T "Cancel" |
22 | ?define APPLY_T "Apply" |
22 | ?define APPLY_T "Apply" |
Line -... | Line 23... | ||
- | 23 | #endif |
|
- | 24 | ||
Line 23... | Line 25... | ||
23 | #endif |
25 | char confir_section = "Config"; |
24 | 26 | ||
25 | 27 | ||
26 | void settings_dialog() |
28 | void settings_dialog() |
Line 72... | Line 74... | ||
72 | break; |
74 | break; |
Line 73... | Line 75... | ||
73 | 75 | ||
74 | case evReDraw: |
76 | case evReDraw: |
75 | DefineAndDrawWindow(Form.left + 100, 150, 300, 210+GetSkinHeight(),0x34,sc.work,TITLE_SETT); |
77 | DefineAndDrawWindow(Form.left + 100, 150, 300, 210+GetSkinHeight(),0x34,sc.work,TITLE_SETT); |
76 | GetProcessInfo(#settings_form, SelfInfo); |
- | |
77 | 78 | GetProcessInfo(#settings_form, SelfInfo); |
|
78 | DrawSettingsCheckBoxes(); |
- | |
79 | 79 | DrawSettingsCheckBoxes(); |
|
80 | DrawFlatButton(9, 127, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
- | |
81 | 80 | DrawFlatButton(9, 116, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
|
82 | DrawFlatButton(128, settings_form.cheight - 34, 70, 22, 10, 0xE4DFE1, APPLY_T); |
81 | DrawFlatButton(128, settings_form.cheight - 34, 70, 22, 10, 0xE4DFE1, APPLY_T); |
83 | DrawFlatButton(208, settings_form.cheight - 34, 70, 22, 11, 0xE4DFE1, CANCEL_T); |
82 | DrawFlatButton(208, settings_form.cheight - 34, 70, 22, 11, 0xE4DFE1, CANCEL_T); |
84 | } |
83 | } |
Line 85... | Line 84... | ||
85 | } |
84 | } |
86 | 85 | ||
87 | void DrawSettingsCheckBoxes() |
86 | void DrawSettingsCheckBoxes() |
88 | { |
87 | { |
89 | CheckBox2(10, 11, 20, SET_1, show_dev_name); |
88 | CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS, show_dev_name); |
90 | CheckBox2(10, 33, 21, SET_2, real_files_names_case); |
89 | CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case); |
91 | CheckBox2(10, 55, 22, SET_4, info_after_copy); |
90 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
Line 92... | Line 91... | ||
92 | MoreLessBox(10, 82, 18, 25, 26, sc.work_graph, 0xD2D3D3, 0x000000, files.line_h, SET_3); |
91 | MoreLessBox(10, 82, 18, 25, 26, sc.work_graph, 0xD2D3D3, 0x000000, files.line_h, LIST_LINE_HEIGHT); |
93 | } |
92 | } |
94 | 93 | ||
95 | 94 | ||
96 | void LoadIniSettings() |
95 | void LoadIniSettings() |
97 | { |
96 | { |
98 | ini_get_color stdcall (eolite_ini_path, "Config", "SelectionColor", 0x94AECE); |
97 | ini_get_color stdcall (eolite_ini_path, #confir_section, "SelectionColor", 0x94AECE); |
99 | edit2.shift_color = EAX; |
98 | edit2.shift_color = EAX; |
100 | col_selec = EAX; |
99 | col_selec = EAX; |
101 | ini_get_int stdcall (eolite_ini_path, "Config", "LineHeight", 18); |
100 | ini_get_int stdcall (eolite_ini_path, #confir_section, "LineHeight", 18); |
102 | files.line_h = EAX; |
101 | files.line_h = EAX; |
103 | ini_get_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", 1); |
102 | ini_get_int stdcall (eolite_ini_path, #confir_section, "ShowDeviceName", 1); |
104 | show_dev_name = EAX; |
103 | show_dev_name = EAX; |
105 | ini_get_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", 0); |
104 | ini_get_int stdcall (eolite_ini_path, #confir_section, "RealFileNamesCase", 0); |
Line 106... | Line 105... | ||
106 | real_files_names_case = EAX; |
105 | real_files_names_case = EAX; |
107 | ini_get_int stdcall (eolite_ini_path, "Config", "InfoAfterCopy", 0); |
106 | ini_get_int stdcall (eolite_ini_path, #confir_section, "InfoAfterCopy", 0); |
108 | info_after_copy = EAX; |
107 | info_after_copy = EAX; |
109 | } |
108 | } |
110 | 109 | ||
111 | void SaveIniSettings() |
110 | void SaveIniSettings() |
112 | { |
111 | { |
Line 113... | Line 112... | ||
113 | ini_set_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", show_dev_name); |
112 | ini_set_int stdcall (eolite_ini_path, #confir_section, "ShowDeviceName", show_dev_name); |