| 829 | } |
| 830 | |
| 831 | void populateCategoryBreakdownColumn() |
| 832 | { |
| 833 | category_breakdown_column.clear(); |
| 834 | if (fort_activity_column.getDisplayListSize() == 0) |
| 835 | return; |
| 836 | |
| 837 | auto selected_activity = fort_activity_column.getFirstSelectedElem(); |
| 838 | auto category_activities = &category_breakdown[selected_activity]; |
| 839 | if (category_activities) |
| 840 | { |
| 841 | vector<pair<activity_type, size_t>> rev_vec(category_activities->begin(), category_activities->end()); |
| 842 | sort(rev_vec.begin(), rev_vec.end(), less_second<activity_type, size_t>()); |
| 843 | |
| 844 | for (auto it = rev_vec.begin(); it != rev_vec.end(); ++it) |
| 845 | category_breakdown_column.add(getBreakdownAverage(it->first, it->second), it->first); |
| 846 | } |
| 847 | |
| 848 | category_breakdown_column.fixWidth(); |
| 849 | category_breakdown_column.clearSearch(); |
| 850 | category_breakdown_column.setHighlight(0); |
| 851 | } |
| 852 | |
| 853 | void addToFortAverageColumn(activity_type &type) |
| 854 | { |
nothing calls this directly
no test coverage detected