Separate contextual menu from general
This commit is contained in:
parent
03533461c8
commit
d8734ff082
@ -93,12 +93,12 @@ namespace platform {
|
|||||||
format_set_num_format(style, "#,##0.000000");
|
format_set_num_format(style, "#,##0.000000");
|
||||||
} else if (name == "ints") {
|
} else if (name == "ints") {
|
||||||
format_set_font_size(style, normalSize);
|
format_set_font_size(style, normalSize);
|
||||||
format_set_num_format(style, "###,###");
|
format_set_num_format(style, "###,##0");
|
||||||
format_set_border(style, LXW_BORDER_THIN);
|
format_set_border(style, LXW_BORDER_THIN);
|
||||||
} else if (name == "floats") {
|
} else if (name == "floats") {
|
||||||
format_set_border(style, LXW_BORDER_THIN);
|
format_set_border(style, LXW_BORDER_THIN);
|
||||||
format_set_font_size(style, normalSize);
|
format_set_font_size(style, normalSize);
|
||||||
format_set_num_format(style, "#,###.00");
|
format_set_num_format(style, "#,##0.00");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ namespace platform {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cout << Colors::YELLOW() << "Showing " << files.at(index).getFilename() << endl;
|
cout << Colors::YELLOW() << "Showing " << files.at(index).getFilename() << endl;
|
||||||
ReportConsole reporter(data, idx);
|
ReportConsole reporter(data, compare, idx);
|
||||||
reporter.show();
|
reporter.show();
|
||||||
}
|
}
|
||||||
void Results::menu()
|
void Results::menu()
|
||||||
@ -134,9 +134,21 @@ namespace platform {
|
|||||||
char option;
|
char option;
|
||||||
int index;
|
int index;
|
||||||
bool finished = false;
|
bool finished = false;
|
||||||
|
string color, context;
|
||||||
string filename, line, options = "qldhsre";
|
string filename, line, options = "qldhsre";
|
||||||
while (!finished) {
|
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);
|
getline(cin, line);
|
||||||
if (line.size() == 0)
|
if (line.size() == 0)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user