author | glx |
Mon, 19 May 2008 15:13:58 +0000 | |
branch | noai |
changeset 10645 | 8cbdb511a674 |
parent 10513 | 33cb70ff2f5d |
child 10715 | 6bdf79ffb022 |
permissions | -rw-r--r-- |
9629 | 1 |
/* $Id$ */ |
2 |
||
10455
22c441f5adf9
(svn r12997) [NoAI] -Sync: with trunk r12895:12996.
rubidium
parents:
10249
diff
changeset
|
3 |
/** @file timetable_gui.cpp GUI for time tabling. */ |
9629 | 4 |
|
5 |
#include "stdafx.h" |
|
6 |
#include "openttd.h" |
|
7 |
#include "variables.h" |
|
9723
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9722
diff
changeset
|
8 |
#include "command_func.h" |
9629 | 9 |
#include "gui.h" |
9723
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9722
diff
changeset
|
10 |
#include "window_gui.h" |
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9722
diff
changeset
|
11 |
#include "textbuf_gui.h" |
9629 | 12 |
#include "cargotype.h" |
9723
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9722
diff
changeset
|
13 |
#include "strings_func.h" |
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9722
diff
changeset
|
14 |
#include "vehicle_base.h" |
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9722
diff
changeset
|
15 |
#include "string_func.h" |
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9722
diff
changeset
|
16 |
#include "gfx_func.h" |
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
17 |
#include "player_func.h" |
10181
54df587fef5d
(svn r12712) [NoAI] -Sync with trunk r12672:12711.
rubidium
parents:
10142
diff
changeset
|
18 |
#include "order_func.h" |
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
19 |
#include "settings_type.h" |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
20 |
|
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
21 |
#include "table/strings.h" |
9629 | 22 |
|
9826
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
23 |
enum TimetableViewWindowWidgets { |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
24 |
TTV_WIDGET_CLOSEBOX = 0, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
25 |
TTV_CAPTION, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
26 |
TTV_ORDER_VIEW, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
27 |
TTV_STICKY, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
28 |
TTV_TIMETABLE_PANEL, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
29 |
TTV_SCROLLBAR, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
30 |
TTV_SUMMARY_PANEL, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
31 |
TTV_CHANGE_TIME, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
32 |
TTV_CLEAR_TIME, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
33 |
TTV_RESET_LATENESS, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
34 |
TTV_AUTOFILL, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
35 |
TTV_EMPTY, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
36 |
TTV_RESIZE, |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
37 |
}; |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
38 |
|
10181
54df587fef5d
(svn r12712) [NoAI] -Sync with trunk r12672:12711.
rubidium
parents:
10142
diff
changeset
|
39 |
void SetTimetableParams(int param1, int param2, uint32 time) |
9629 | 40 |
{ |
41 |
if (_patches.timetable_in_ticks) { |
|
42 |
SetDParam(param1, STR_TIMETABLE_TICKS); |
|
43 |
SetDParam(param2, time); |
|
44 |
} else { |
|
45 |
SetDParam(param1, STR_TIMETABLE_DAYS); |
|
46 |
SetDParam(param2, time / DAY_TICKS); |
|
47 |
} |
|
48 |
} |
|
49 |
||
10645 | 50 |
struct TimetableWindow : Window { |
51 |
int sel_index; |
|
9629 | 52 |
|
10645 | 53 |
TimetableWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number) |
54 |
{ |
|
55 |
this->caption_color = GetVehicle(window_number)->owner; |
|
56 |
this->vscroll.cap = 8; |
|
57 |
this->resize.step_height = 10; |
|
58 |
this->sel_index = -1; |
|
9629 | 59 |
} |
60 |
||
10645 | 61 |
int GetOrderFromTimetableWndPt(int y, const Vehicle *v) |
62 |
{ |
|
63 |
/* |
|
64 |
* Calculation description: |
|
65 |
* 15 = 14 (this->widget[TTV_ORDER_VIEW].top) + 1 (frame-line) |
|
66 |
* 10 = order text hight |
|
67 |
*/ |
|
68 |
int sel = (y - 15) / 10; |
|
9629 | 69 |
|
10645 | 70 |
if ((uint)sel >= this->vscroll.cap) return INVALID_ORDER; |
9629 | 71 |
|
10645 | 72 |
sel += this->vscroll.pos; |
9629 | 73 |
|
10645 | 74 |
return (sel <= v->num_orders * 2 && sel >= 0) ? sel : INVALID_ORDER; |
75 |
} |
|
76 |
||
77 |
void OnPaint() |
|
78 |
{ |
|
79 |
const Vehicle *v = GetVehicle(this->window_number); |
|
80 |
int selected = this->sel_index; |
|
81 |
||
82 |
SetVScrollCount(this, v->num_orders * 2); |
|
83 |
||
84 |
if (v->owner == _local_player) { |
|
85 |
if (selected == -1) { |
|
86 |
this->DisableWidget(TTV_CHANGE_TIME); |
|
87 |
this->DisableWidget(TTV_CLEAR_TIME); |
|
88 |
} else if (selected % 2 == 1) { |
|
89 |
this->EnableWidget(TTV_CHANGE_TIME); |
|
90 |
this->EnableWidget(TTV_CLEAR_TIME); |
|
9629 | 91 |
} else { |
10645 | 92 |
const Order *order = GetVehicleOrder(v, (selected + 1) / 2); |
93 |
bool disable = order == NULL || !order->IsType(OT_GOTO_STATION) || (order->GetNonStopType() & ONSF_NO_STOP_AT_DESTINATION_STATION); |
|
9629 | 94 |
|
10645 | 95 |
this->SetWidgetDisabledState(TTV_CHANGE_TIME, disable); |
96 |
this->SetWidgetDisabledState(TTV_CLEAR_TIME, disable); |
|
9629 | 97 |
} |
98 |
||
10645 | 99 |
this->EnableWidget(TTV_RESET_LATENESS); |
100 |
this->EnableWidget(TTV_AUTOFILL); |
|
101 |
} else { |
|
102 |
this->DisableWidget(TTV_CHANGE_TIME); |
|
103 |
this->DisableWidget(TTV_CLEAR_TIME); |
|
104 |
this->DisableWidget(TTV_RESET_LATENESS); |
|
105 |
this->DisableWidget(TTV_AUTOFILL); |
|
9629 | 106 |
} |
107 |
||
10645 | 108 |
this->SetWidgetLoweredState(TTV_AUTOFILL, HasBit(v->vehicle_flags, VF_AUTOFILL_TIMETABLE)); |
9629 | 109 |
|
10645 | 110 |
SetDParam(0, v->index); |
111 |
this->DrawWidgets(); |
|
9629 | 112 |
|
10645 | 113 |
int y = 15; |
114 |
int i = this->vscroll.pos; |
|
115 |
VehicleOrderID order_id = (i + 1) / 2; |
|
116 |
bool final_order = false; |
|
117 |
||
118 |
const Order *order = GetVehicleOrder(v, order_id); |
|
119 |
||
120 |
while (order != NULL) { |
|
121 |
/* Don't draw anything if it extends past the end of the window. */ |
|
122 |
if (i - this->vscroll.pos >= this->vscroll.cap) break; |
|
123 |
||
124 |
if (i % 2 == 0) { |
|
125 |
DrawOrderString(v, order, order_id, y, i == selected, true); |
|
126 |
||
127 |
order_id++; |
|
128 |
||
129 |
if (order_id >= v->num_orders) { |
|
130 |
order = GetVehicleOrder(v, 0); |
|
131 |
final_order = true; |
|
132 |
} else { |
|
133 |
order = order->next; |
|
134 |
} |
|
135 |
} else { |
|
136 |
StringID string; |
|
137 |
||
138 |
if (order->travel_time == 0) { |
|
139 |
string = STR_TIMETABLE_TRAVEL_NOT_TIMETABLED; |
|
140 |
} else { |
|
141 |
SetTimetableParams(0, 1, order->travel_time); |
|
142 |
string = STR_TIMETABLE_TRAVEL_FOR; |
|
143 |
} |
|
144 |
||
145 |
DrawString(22, y, string, (i == selected) ? TC_WHITE : TC_BLACK); |
|
146 |
||
147 |
if (final_order) break; |
|
148 |
} |
|
149 |
||
150 |
i++; |
|
151 |
y += 10; |
|
9629 | 152 |
} |
153 |
||
10645 | 154 |
y = this->widget[TTV_SUMMARY_PANEL].top + 1; |
155 |
||
156 |
{ |
|
157 |
uint total_time = 0; |
|
158 |
bool complete = true; |
|
159 |
||
160 |
for (const Order *order = GetVehicleOrder(v, 0); order != NULL; order = order->next) { |
|
161 |
total_time += order->travel_time + order->wait_time; |
|
162 |
if (order->travel_time == 0) complete = false; |
|
163 |
if (order->wait_time == 0 && order->IsType(OT_GOTO_STATION) && !(order->GetNonStopType() & ONSF_NO_STOP_AT_DESTINATION_STATION)) complete = false; |
|
164 |
} |
|
165 |
||
166 |
if (total_time != 0) { |
|
167 |
SetTimetableParams(0, 1, total_time); |
|
168 |
DrawString(2, y, complete ? STR_TIMETABLE_TOTAL_TIME : STR_TIMETABLE_TOTAL_TIME_INCOMPLETE, TC_BLACK); |
|
169 |
} |
|
170 |
} |
|
171 |
y += 10; |
|
172 |
||
173 |
if (v->lateness_counter == 0 || (!_patches.timetable_in_ticks && v->lateness_counter / DAY_TICKS == 0)) { |
|
174 |
DrawString(2, y, STR_TIMETABLE_STATUS_ON_TIME, TC_BLACK); |
|
175 |
} else { |
|
176 |
SetTimetableParams(0, 1, abs(v->lateness_counter)); |
|
177 |
DrawString(2, y, v->lateness_counter < 0 ? STR_TIMETABLE_STATUS_EARLY : STR_TIMETABLE_STATUS_LATE, TC_BLACK); |
|
9629 | 178 |
} |
179 |
} |
|
180 |
||
10645 | 181 |
static inline uint32 PackTimetableArgs(const Vehicle *v, uint selected) |
182 |
{ |
|
183 |
uint order_number = (selected + 1) / 2; |
|
184 |
uint is_journey = (selected % 2 == 1) ? 1 : 0; |
|
9629 | 185 |
|
10645 | 186 |
if (order_number >= v->num_orders) order_number = 0; |
9629 | 187 |
|
10645 | 188 |
return v->index | (order_number << 16) | (is_journey << 24); |
189 |
} |
|
9629 | 190 |
|
10645 | 191 |
virtual void OnClick(Point pt, int widget) |
192 |
{ |
|
193 |
const Vehicle *v = GetVehicle(this->window_number); |
|
9629 | 194 |
|
10645 | 195 |
switch (widget) { |
196 |
case TTV_ORDER_VIEW: /* Order view button */ |
|
197 |
ShowOrdersWindow(v); |
|
198 |
break; |
|
9629 | 199 |
|
10645 | 200 |
case TTV_TIMETABLE_PANEL: { /* Main panel. */ |
201 |
int selected = GetOrderFromTimetableWndPt(pt.y, v); |
|
202 |
||
203 |
if (selected == INVALID_ORDER || selected == this->sel_index) { |
|
204 |
/* Deselect clicked order */ |
|
205 |
this->sel_index = -1; |
|
206 |
} else { |
|
207 |
/* Select clicked order */ |
|
208 |
this->sel_index = selected; |
|
209 |
} |
|
210 |
} break; |
|
211 |
||
212 |
case TTV_CHANGE_TIME: { /* "Wait For" button. */ |
|
213 |
int selected = this->sel_index; |
|
214 |
VehicleOrderID real = (selected + 1) / 2; |
|
215 |
||
216 |
if (real >= v->num_orders) real = 0; |
|
217 |
||
218 |
const Order *order = GetVehicleOrder(v, real); |
|
219 |
StringID current = STR_EMPTY; |
|
220 |
||
221 |
if (order != NULL) { |
|
222 |
uint time = (selected % 2 == 1) ? order->travel_time : order->wait_time; |
|
223 |
if (!_patches.timetable_in_ticks) time /= DAY_TICKS; |
|
224 |
||
225 |
if (time != 0) { |
|
226 |
SetDParam(0, time); |
|
227 |
current = STR_CONFIG_PATCHES_INT32; |
|
228 |
} |
|
229 |
} |
|
230 |
||
231 |
ShowQueryString(current, STR_TIMETABLE_CHANGE_TIME, 31, 150, this, CS_NUMERAL); |
|
232 |
} break; |
|
233 |
||
234 |
case TTV_CLEAR_TIME: { /* Clear waiting time button. */ |
|
235 |
uint32 p1 = PackTimetableArgs(v, this->sel_index); |
|
236 |
DoCommandP(0, p1, 0, NULL, CMD_CHANGE_TIMETABLE | CMD_MSG(STR_CAN_T_TIMETABLE_VEHICLE)); |
|
237 |
} break; |
|
238 |
||
239 |
case TTV_RESET_LATENESS: /* Reset the vehicle's late counter. */ |
|
240 |
DoCommandP(0, v->index, 0, NULL, CMD_SET_VEHICLE_ON_TIME | CMD_MSG(STR_CAN_T_TIMETABLE_VEHICLE)); |
|
241 |
break; |
|
242 |
||
243 |
case TTV_AUTOFILL: /* Autofill the timetable. */ |
|
244 |
DoCommandP(0, v->index, HasBit(v->vehicle_flags, VF_AUTOFILL_TIMETABLE) ? 0 : 1, NULL, CMD_AUTOFILL_TIMETABLE | CMD_MSG(STR_CAN_T_TIMETABLE_VEHICLE)); |
|
245 |
break; |
|
246 |
} |
|
247 |
||
248 |
this->SetDirty(); |
|
9629 | 249 |
} |
10645 | 250 |
|
251 |
virtual void OnQueryTextFinished(char *str) |
|
252 |
{ |
|
253 |
if (str == NULL) return; |
|
254 |
||
255 |
const Vehicle *v = GetVehicle(this->window_number); |
|
256 |
||
257 |
uint32 p1 = PackTimetableArgs(v, this->sel_index); |
|
258 |
||
259 |
uint64 time = StrEmpty(str) ? 0 : strtoul(str, NULL, 10); |
|
260 |
if (!_patches.timetable_in_ticks) time *= DAY_TICKS; |
|
261 |
||
262 |
uint32 p2 = minu(time, MAX_UVALUE(uint16)); |
|
263 |
||
264 |
DoCommandP(0, p1, p2, NULL, CMD_CHANGE_TIMETABLE | CMD_MSG(STR_CAN_T_TIMETABLE_VEHICLE)); |
|
265 |
} |
|
266 |
||
267 |
virtual void OnResize(Point new_size, Point delta) |
|
268 |
{ |
|
269 |
/* Update the scroll + matrix */ |
|
270 |
this->vscroll.cap = (this->widget[TTV_TIMETABLE_PANEL].bottom - this->widget[TTV_TIMETABLE_PANEL].top) / 10; |
|
271 |
} |
|
272 |
}; |
|
9629 | 273 |
|
274 |
static const Widget _timetable_widgets[] = { |
|
9826
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
275 |
{ WWT_CLOSEBOX, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, // TTV_WIDGET_CLOSEBOX |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
276 |
{ WWT_CAPTION, RESIZE_RIGHT, 14, 11, 326, 0, 13, STR_TIMETABLE_TITLE, STR_018C_WINDOW_TITLE_DRAG_THIS}, // TTV_CAPTION |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
277 |
{ WWT_PUSHTXTBTN, RESIZE_LR, 14, 327, 387, 0, 13, STR_ORDER_VIEW, STR_ORDER_VIEW_TOOLTIP}, // TTV_ORDER_VIEW |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
278 |
{ WWT_STICKYBOX, RESIZE_LR, 14, 388, 399, 0, 13, STR_NULL, STR_STICKY_BUTTON}, // TTV_STICKY |
9629 | 279 |
|
9826
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
280 |
{ WWT_PANEL, RESIZE_RB, 14, 0, 387, 14, 95, STR_NULL, STR_TIMETABLE_TOOLTIP}, // TTV_TIMETABLE_PANEL |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
281 |
{ WWT_SCROLLBAR, RESIZE_LRB, 14, 388, 399, 14, 95, STR_NULL, STR_0190_SCROLL_BAR_SCROLLS_LIST}, // TTV_SCROLLBAR |
9629 | 282 |
|
9826
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
283 |
{ WWT_PANEL, RESIZE_RTB, 14, 0, 399, 96, 117, STR_NULL, STR_NULL}, // TTV_SUMMARY_PANEL |
9629 | 284 |
|
9826
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
285 |
{ WWT_PUSHTXTBTN, RESIZE_TB, 14, 0, 109, 118, 129, STR_TIMETABLE_CHANGE_TIME, STR_TIMETABLE_WAIT_TIME_TOOLTIP}, // TTV_CHANGE_TIME |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
286 |
{ WWT_PUSHTXTBTN, RESIZE_TB, 14, 110, 219, 118, 129, STR_CLEAR_TIME, STR_TIMETABLE_CLEAR_TIME_TOOLTIP}, // TTV_CLEAR_TIME |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
287 |
{ WWT_PUSHTXTBTN, RESIZE_TB, 14, 220, 337, 118, 129, STR_RESET_LATENESS, STR_TIMETABLE_RESET_LATENESS_TOOLTIP}, // TTV_RESET_LATENESS |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
288 |
{ WWT_PUSHTXTBTN, RESIZE_TB, 14, 338, 387, 118, 129, STR_TIMETABLE_AUTOFILL, STR_TIMETABLE_AUTOFILL_TOOLTIP}, // TTV_AUTOFILL |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
289 |
|
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
290 |
{ WWT_PANEL, RESIZE_RTB, 14, 388, 387, 118, 129, STR_NULL, STR_NULL}, // TTV_EMPTY |
9707ad4c9b60
(svn r12462) [NoAI] -Sync: with trunk r12304:12461.
rubidium
parents:
9724
diff
changeset
|
291 |
{ WWT_RESIZEBOX, RESIZE_LRTB, 14, 388, 399, 118, 129, STR_NULL, STR_RESIZE_BUTTON}, // TTV_RESIZE |
9629 | 292 |
|
293 |
{ WIDGETS_END } |
|
294 |
}; |
|
295 |
||
296 |
static const WindowDesc _timetable_desc = { |
|
9694
e72987579514
(svn r10775) [NoAI] -Sync: with trunk r10535:r10774.
rubidium
parents:
9686
diff
changeset
|
297 |
WDP_AUTO, WDP_AUTO, 400, 130, 400, 130, |
9629 | 298 |
WC_VEHICLE_TIMETABLE, WC_VEHICLE_VIEW, |
299 |
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, |
|
300 |
_timetable_widgets, |
|
301 |
}; |
|
302 |
||
303 |
void ShowTimetableWindow(const Vehicle *v) |
|
304 |
{ |
|
10645 | 305 |
AllocateWindowDescFront<TimetableWindow>(&_timetable_desc, v->index); |
9629 | 306 |
} |