Rev 7518 | Rev 7897 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7518 | Rev 7544 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | #ifdef AUTOBUILD |
9 | #ifdef AUTOBUILD |
10 | extern char params[1024]; |
10 | extern char params[1024]; |
11 | #endif |
11 | #endif |
12 | char params[1024]; |
12 | char params[1024]; |
Line 13... | Line 13... | ||
13 | 13 | ||
Line 14... | Line 14... | ||
14 | #define TABLE_VERSION "0.99.2" |
14 | #define TABLE_VERSION "0.99.3" |
15 | 15 | ||
16 | // strings |
16 | // strings |
17 | const char *sFileSign = "KolibriTable File\n"; |
17 | const char *sFileSign = "KolibriTable File\n"; |
Line 22... | Line 22... | ||
22 | 22 | ||
23 | const char er_file_not_found[] = "'Cannot open file' -E"; |
23 | const char er_file_not_found[] = "'Cannot open file' -E"; |
24 | const char er_format[] = "'Error: bad format' -E"; |
24 | const char er_format[] = "'Error: bad format' -E"; |
25 | const char msg_save[] = "'File saved' -O"; |
25 | const char msg_save[] = "'File saved' -O"; |
- | 26 | const char msg_load[] = "'File loaded' -O"; |
|
26 | const char msg_load[] = "'File loaded' -O"; |
27 | const char msg_save_error[] = "'Error saving file' -E"; |
Line 27... | Line 28... | ||
27 | const char msg_new[] = "'Memory cleared' -I"; |
28 | const char msg_new[] = "'Memory cleared' -I"; |
28 | 29 | ||
29 | // initial window sizes |
30 | // initial window sizes |
Line 591... | Line 592... | ||
591 | if (grid.firsty>row_count-25) grid.firsty=row_count-25; |
592 | if (grid.firsty>row_count-25) grid.firsty=row_count-25; |
592 | draw_grid(); |
593 | draw_grid(); |
593 | return; |
594 | return; |
594 | } |
595 | } |
Line 595... | Line 596... | ||
595 | 596 | ||
596 | if (!sel_moved && !size_state) //do not handle scrollbars when user selects cells |
597 | if (!size_state) //do not handle scrollbars when user selects cells |
597 | { |
598 | { |
598 | if (!scroll_h.delta2) scrollbar_v_mouse((DWORD)&scroll_v); |
599 | if (!scroll_h.delta2) scrollbar_v_mouse((DWORD)&scroll_v); |
599 | if (scroll_v.position != grid.firsty-1) |
600 | if (scroll_v.position != grid.firsty-1) |
600 | { |
601 | { |
Line 1093... | Line 1094... | ||
1093 | draw_grid(); |
1094 | draw_grid(); |
1094 | break; |
1095 | break; |
Line 1095... | Line 1096... | ||
1095 | 1096 | ||
1096 | case SAVE_BUTTON: |
1097 | case SAVE_BUTTON: |
- | 1098 | stop_edit(); |
|
1097 | stop_edit(); |
1099 | if (SaveFile(fname)) { |
- | 1100 | kos_AppRun("/sys/@notify", (char*)msg_save); |
|
- | 1101 | } |
|
- | 1102 | else { |
|
- | 1103 | kos_AppRun("/sys/@notify", (char*)msg_save_error); |
|
1098 | if (SaveFile(fname)) kos_AppRun("/sys/@notify", (char*)msg_save); |
1104 | } |
Line 1099... | Line 1105... | ||
1099 | break; |
1105 | break; |
1100 | 1106 | ||
1101 | case LOAD_BUTTON: |
1107 | case LOAD_BUTTON: |