26 #include "table/strings.h" 
   48     FOR_ALL_SUBSIDIES(s) {
 
   67     FOR_ALL_SUBSIDIES(s) {
 
   78   void HandleClick(
const Subsidy *s)
 
   85       default: NOT_REACHED();
 
   95         default: NOT_REACHED();
 
  113     uint num_awarded = 0;
 
  114     uint num_not_awarded = 0;
 
  116     FOR_ALL_SUBSIDIES(s) {
 
  125     if (num_awarded     == 0) num_awarded = 1;
 
  126     if (num_not_awarded == 0) num_not_awarded = 1;
 
  129     return 3 + num_awarded + num_not_awarded;
 
  137     resize->height = d.height;
 
  165     FOR_ALL_SUBSIDIES(s) {
 
  171           DrawString(x, right, y + pos * FONT_HEIGHT_NORMAL, STR_SUBSIDIES_OFFERED_FROM_TO);
 
  179       if (
IsInsideMM(pos, 0, cap)) 
DrawString(x, right, y + pos * FONT_HEIGHT_NORMAL, STR_SUBSIDIES_NONE);
 
  185     if (
IsInsideMM(pos, 0, cap)) 
DrawString(x, right, y + pos * FONT_HEIGHT_NORMAL, STR_SUBSIDIES_SUBSIDISED_TITLE);
 
  189     FOR_ALL_SUBSIDIES(s) {
 
  197           DrawString(x, right, y + pos * FONT_HEIGHT_NORMAL, STR_SUBSIDIES_SUBSIDISED_FROM_TO);
 
  205       if (
IsInsideMM(pos, 0, cap)) 
DrawString(x, right, y + pos * FONT_HEIGHT_NORMAL, STR_SUBSIDIES_NONE);
 
  222     if (!gui_scope) 
return;
 
  227 static const NWidgetPart _nested_subsidies_list_widgets[] = {
 
  245   WDP_AUTO, 
"list_subsidies", 500, 127,
 
  248   _nested_subsidies_list_widgets, 
lengthof(_nested_subsidies_list_widgets)
 
  252 void ShowSubsidiesList()
 
  254   AllocateWindowDescFront<SubsidyListWindow>(&_subsidies_list_desc, 0);