Rev 5582 | Rev 5606 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5582 | Rev 5591 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | save_info_after_copy = info_after_copy; |
55 | save_info_after_copy = info_after_copy; |
56 | save_use_big_fonts = use_big_fonts; |
56 | save_use_big_fonts = use_big_fonts; |
57 | save_files_h = files.line_h; |
57 | save_files_h = files.line_h; |
58 | save_DBLTime = MOUSE_TIME; |
58 | save_DBLTime = MOUSE_TIME; |
Line 59... | Line -... | ||
59 | - | ||
60 | //SetEventMask(0x27); |
- | |
61 | 59 | ||
62 | loop(){ |
60 | loop(){ |
63 | switch(WaitEvent()) |
61 | switch(WaitEvent()) |
64 | { |
- | |
65 | /*case evMouse: |
- | |
66 | - | ||
67 | break;*/ |
62 | { |
68 | case evButton: |
63 | case evButton: |
69 | id=GetButtonID(); |
64 | id=GetButtonID(); |
70 | if (id==10) |
65 | if (id==10) |
71 | { |
66 | { |
72 | SaveIniSettings(); |
67 | SaveIniSettings(); |
73 | active_settings=0; |
68 | active_settings=0; |
74 | action_buf = 300; |
69 | action_buf = 300; |
75 | cmd_free = 4; |
70 | cmd_free = 4; |
76 | ExitProcess(); |
71 | ExitProcess(); |
77 | } |
72 | } |
78 | if (id==1) || (id==11) |
73 | else if (id==1) || (id==11) |
79 | { |
74 | { |
80 | active_settings=0; |
75 | active_settings=0; |
81 | goto EXIT_SETTING; |
76 | goto EXIT_SETTING; |
82 | } |
77 | } |
83 | if (id==5) |
78 | else if (id==5) |
84 | { |
79 | { |
85 | RunProgram("tinypad", "/sys/settings/assoc.ini"); |
80 | RunProgram("tinypad", "/sys/settings/assoc.ini"); |
86 | break; |
81 | break; |
87 | } |
82 | } |
88 | if (id==20) show_dev_name ^= 1; |
83 | else if (id==20) show_dev_name ^= 1; |
89 | if (id==21) real_files_names_case ^= 1; |
84 | else if (id==21) real_files_names_case ^= 1; |
90 | if (id==22) info_after_copy ^= 1; |
85 | else if (id==22) info_after_copy ^= 1; |
91 | if (id==23) use_big_fonts ^= 1; |
86 | else if (id==23) use_big_fonts ^= 1; |
92 | if (id==25) files.line_h++; |
87 | else if (id==25) files.line_h++; |
93 | if (id==26) && (files.line_h>8) files.line_h--; |
88 | else if (id==26) && (files.line_h>14) files.line_h--; |
94 | if (id==27) MOUSE_TIME++; |
89 | else if (id==27) MOUSE_TIME++; |
- | 90 | else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--; |
|
- | 91 | //CMD_REFRESH = true; |
|
95 | if (id==28) && (MOUSE_TIME>30) MOUSE_TIME--; |
92 | MoveSize(-1,-1,-1,settings_form.height+1); |
96 | RefreshWindow(Form.ID,settings_form.ID); |
93 | MoveSize(-1,-1,-1,settings_form.height); |
97 | DrawSettingsCheckBoxes(); |
94 | DrawSettingsCheckBoxes(); |
98 | break; |
95 | break; |
99 | 96 | ||
100 | case evKey: |
97 | case evKey: |
101 | key = GetKey(); |
98 | key = GetKey(); |
102 | if (key==27) |
99 | if (key==27) |
103 | { |
100 | { |
104 | active_settings = 0; |
101 | active_settings = 0; |
105 | action_buf = 300; |
102 | action_buf = 300; |
106 | goto EXIT_SETTING; |
103 | goto EXIT_SETTING; |
107 | } |
104 | } |
108 | break; |
105 | break; |
109 | 106 | ||
110 | case evReDraw: |
107 | case evReDraw: |
111 | DefineAndDrawWindow(Form.left + Form.width/2, Form.top + Form.height/2 - 75, 300, 234+GetSkinHeight(),0x34,sc.work,TITLE_SETT); |
108 | DefineAndDrawWindow(Form.left + Form.width/2, Form.top + Form.height/2 - 75, 300, 234+GetSkinHeight(),0x34,sc.work,TITLE_SETT); |
112 | GetProcessInfo(#settings_form, SelfInfo); |
109 | GetProcessInfo(#settings_form, SelfInfo); |
113 | DrawSettingsCheckBoxes(); |
110 | DrawSettingsCheckBoxes(); |
114 | DrawFlatButton(9, 166, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
111 | DrawFlatButton(9, 166, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
115 | DrawFlatButton(128, settings_form.cheight - 30, 70, 22, 10, 0xE4DFE1, APPLY_T); |
112 | DrawFlatButton(128, settings_form.cheight - 30, 70, 22, 10, 0xE4DFE1, APPLY_T); |
116 | DrawFlatButton(208, settings_form.cheight - 30, 70, 22, 11, 0xE4DFE1, CANCEL_T); |
113 | DrawFlatButton(208, settings_form.cheight - 30, 70, 22, 11, 0xE4DFE1, CANCEL_T); |
117 | } |
114 | } |
118 | } |
115 | } |
Line 119... | Line 116... | ||
119 | } |
116 | } |
120 | 117 |