Changeset - r7063:361738bfff30
[Not reviewed]
master
0 4 0
maedhros - 17 years ago 2007-06-25 17:29:03
maedhros@openttd.org
(svn r10328) -Codechange: Close the timetable window when closing the vehicle window.
4 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/aircraft_gui.cpp
Show inline comments
 
@@ -355,12 +355,13 @@ static void AircraftViewWndProc(Window *
 
		break;
 

	
 
	case WE_DESTROY:
 
		DeleteWindowById(WC_VEHICLE_ORDERS, w->window_number);
 
		DeleteWindowById(WC_VEHICLE_REFIT, w->window_number);
 
		DeleteWindowById(WC_VEHICLE_DETAILS, w->window_number);
 
		DeleteWindowById(WC_VEHICLE_TIMETABLE, w->window_number);
 
		break;
 

	
 
	case WE_MOUSELOOP: {
 
		const Vehicle *v = GetVehicle(w->window_number);
 
		bool plane_stopped = IsAircraftInHangarStopped(v);
 

	
src/roadveh_gui.cpp
Show inline comments
 
@@ -371,12 +371,13 @@ static void RoadVehViewWndProc(Window *w
 
		break;
 

	
 
	case WE_DESTROY:
 
		DeleteWindowById(WC_VEHICLE_REFIT, w->window_number);
 
		DeleteWindowById(WC_VEHICLE_ORDERS, w->window_number);
 
		DeleteWindowById(WC_VEHICLE_DETAILS, w->window_number);
 
		DeleteWindowById(WC_VEHICLE_TIMETABLE, w->window_number);
 
		break;
 

	
 
	case WE_MOUSELOOP: {
 
			const Vehicle *v = GetVehicle(w->window_number);
 
			bool rv_stopped = IsRoadVehInDepotStopped(v);
 

	
src/ship_gui.cpp
Show inline comments
 
@@ -292,12 +292,13 @@ static void ShipViewWndProc(Window *w, W
 
			break;
 

	
 
		case WE_DESTROY:
 
			DeleteWindowById(WC_VEHICLE_ORDERS, w->window_number);
 
			DeleteWindowById(WC_VEHICLE_REFIT, w->window_number);
 
			DeleteWindowById(WC_VEHICLE_DETAILS, w->window_number);
 
			DeleteWindowById(WC_VEHICLE_TIMETABLE, w->window_number);
 
			break;
 

	
 
		case WE_MOUSELOOP: {
 
			const Vehicle *v = GetVehicle(w->window_number);
 
			bool ship_stopped = IsShipInDepotStopped(v);
 

	
src/train_gui.cpp
Show inline comments
 
@@ -279,12 +279,13 @@ static void TrainViewWndProc(Window *w, 
 
		break;
 

	
 
	case WE_DESTROY:
 
		DeleteWindowById(WC_VEHICLE_REFIT, w->window_number);
 
		DeleteWindowById(WC_VEHICLE_ORDERS, w->window_number);
 
		DeleteWindowById(WC_VEHICLE_DETAILS, w->window_number);
 
		DeleteWindowById(WC_VEHICLE_TIMETABLE, w->window_number);
 
		break;
 

	
 
	case WE_MOUSELOOP: {
 
		const Vehicle *v = GetVehicle(w->window_number);
 
		bool train_stopped = CheckTrainStoppedInDepot(v)  >= 0;
 

	
0 comments (0 inline, 0 general)