Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7543 → Rev 7544

/programs/other/table/calc.cpp
579,7 → 579,6
char buffer[512];
kosFileInfo fileInfo;
 
rtlDebugOutString("hi");
rtlDebugOutString(fname);
 
strcpy(fileInfo.fileURL, fname);
720,12 → 719,6
char *d, *s, *k;
int step = 0, items;
 
if (str_is_csv(fname))
return LoadCSV(fname);
 
 
//rtlDebugOutString(fname);
 
strcpy(fileInfo.fileURL,fname);
fileInfo.OffsetLow = 0;
fileInfo.OffsetHigh = 0;
740,11 → 733,13
return -1;
}
 
if (str_is_csv(fname))
return LoadCSV(fname);
 
 
// clear the table
reinit();
 
//rtlDebugOutString("clear done");
 
filesize = bdvk.size_low;
 
fileInfo.rwMode = 0;
/programs/other/table/hello.cpp
11,7 → 11,7
#endif
char params[1024];
 
#define TABLE_VERSION "0.99.2"
#define TABLE_VERSION "0.99.3"
 
// strings
const char *sFileSign = "KolibriTable File\n";
24,6 → 24,7
const char er_format[] = "'Error: bad format' -E";
const char msg_save[] = "'File saved' -O";
const char msg_load[] = "'File loaded' -O";
const char msg_save_error[] = "'Error saving file' -E";
const char msg_new[] = "'Memory cleared' -I";
 
// initial window sizes
593,7 → 594,7
return;
}
 
if (!sel_moved && !size_state) //do not handle scrollbars when user selects cells
if (!size_state) //do not handle scrollbars when user selects cells
{
if (!scroll_h.delta2) scrollbar_v_mouse((DWORD)&scroll_v);
if (scroll_v.position != grid.firsty-1)
1095,7 → 1096,12
 
case SAVE_BUTTON:
stop_edit();
if (SaveFile(fname)) kos_AppRun("/sys/@notify", (char*)msg_save);
if (SaveFile(fname)) {
kos_AppRun("/sys/@notify", (char*)msg_save);
}
else {
kos_AppRun("/sys/@notify", (char*)msg_save_error);
}
break;
 
case LOAD_BUTTON: