Exchange OpenXLSX to libxlsxwriter #8

Merged
rmontanana merged 11 commits from libxlsxwriter into main 2023-09-20 11:17:17 +00:00
2 changed files with 16 additions and 4 deletions
Showing only changes of commit d8734ff082 - Show all commits

View File

@ -93,12 +93,12 @@ namespace platform {
format_set_num_format(style, "#,##0.000000");
} else if (name == "ints") {
format_set_font_size(style, normalSize);
format_set_num_format(style, "###,###");
format_set_num_format(style, "###,##0");
format_set_border(style, LXW_BORDER_THIN);
} else if (name == "floats") {
format_set_border(style, LXW_BORDER_THIN);
format_set_font_size(style, normalSize);
format_set_num_format(style, "#,###.00");
format_set_num_format(style, "#,##0.00");
}
}

View File

@ -126,7 +126,7 @@ namespace platform {
return;
}
cout << Colors::YELLOW() << "Showing " << files.at(index).getFilename() << endl;
ReportConsole reporter(data, idx);
ReportConsole reporter(data, compare, idx);
reporter.show();
}
void Results::menu()
@ -134,9 +134,21 @@ namespace platform {
char option;
int index;
bool finished = false;
string color, context;
string filename, line, options = "qldhsre";
while (!finished) {
cout << Colors::RESET() << "Choose option (quit='q', list='l', delete='d', hide='h', sort='s', report='r', excel='e'): ";
if (indexList) {
color = Colors::GREEN();
context = " (quit='q', list='l', delete='d', hide='h', sort='s', report='r', excel='e'): ";
options = "qldhsre";
} else {
color = Colors::MAGENTA();
context = " (quit='q', list='l'): ";
options = "ql";
}
cout << Colors::RESET() << color;
cout << "Choose option " << context;
getline(cin, line);
if (line.size() == 0)
continue;