src/toolbar_gui.cpp
changeset 10949 a9907493981a
parent 10789 ea0c9cdc607b
child 10950 36bf5bd16ebd
equal deleted inserted replaced
10948:66145f71ebb9 10949:a9907493981a
  1044 
  1044 
  1045 			/* those following are all fall through */
  1045 			/* those following are all fall through */
  1046 			case WKC_NUM_PLUS:
  1046 			case WKC_NUM_PLUS:
  1047 			case WKC_EQUALS:
  1047 			case WKC_EQUALS:
  1048 			case WKC_SHIFT | WKC_EQUALS:
  1048 			case WKC_SHIFT | WKC_EQUALS:
  1049 			case WKC_SHIFT | WKC_F5: ToolbarZoomInClick(this); break;
  1049 			case WKC_SHIFT | WKC_F5: ToolbarScenZoomIn(this); break;
  1050 
  1050 
  1051 			/* those following are all fall through */
  1051 			/* those following are all fall through */
  1052 			case WKC_NUM_MINUS:
  1052 			case WKC_NUM_MINUS:
  1053 			case WKC_MINUS:
  1053 			case WKC_MINUS:
  1054 			case WKC_SHIFT | WKC_MINUS:
  1054 			case WKC_SHIFT | WKC_MINUS:
  1055 			case WKC_SHIFT | WKC_F6: ToolbarZoomOutClick(this); break;
  1055 			case WKC_SHIFT | WKC_F6: ToolbarScenZoomOut(this); break;
  1056 
  1056 
  1057 			case 'L': ShowEditorTerraformToolbar(); break;
  1057 			case 'L': ShowEditorTerraformToolbar(); break;
  1058 			case 'M': ShowSmallMap(); break;
  1058 			case 'M': ShowSmallMap(); break;
  1059 			case 'V': ShowExtraViewPortWindow(); break;
  1059 			case 'V': ShowExtraViewPortWindow(); break;
  1060 			default: return ES_NOT_HANDLED;
  1060 			default: return ES_NOT_HANDLED;
  1153 		}
  1153 		}
  1154 	}
  1154 	}
  1155 
  1155 
  1156 	virtual void OnInvalidateData(int data)
  1156 	virtual void OnInvalidateData(int data)
  1157 	{
  1157 	{
  1158 		if (FindWindowById(WC_MAIN_WINDOW, 0) != NULL) HandleZoomMessage(this, FindWindowById(WC_MAIN_WINDOW, 0)->viewport, 17, 18);
  1158 		if (FindWindowById(WC_MAIN_WINDOW, 0) != NULL) HandleZoomMessage(this, FindWindowById(WC_MAIN_WINDOW, 0)->viewport, 9, 10);
  1159 	}
  1159 	}
  1160 };
  1160 };
  1161 
  1161 
  1162 static const Widget _toolb_scen_widgets[] = {
  1162 static const Widget _toolb_scen_widgets[] = {
  1163 {  WWT_IMGBTN, RESIZE_LEFT, 14,   0,   0,  0, 21, SPR_IMG_PAUSE,       STR_0171_PAUSE_GAME},
  1163 {  WWT_IMGBTN, RESIZE_LEFT, 14,   0,   0,  0, 21, SPR_IMG_PAUSE,       STR_0171_PAUSE_GAME},