Public Member Functions | |
WaypointWindow (const WindowDesc *desc, WindowNumber window_number) | |
virtual void | SetStringParameters (int widget) const |
Initialize string parameters for a widget. | |
virtual void | OnPaint () |
The window must be repainted. | |
virtual void | OnClick (Point pt, int widget, int click_count) |
A click with the left mouse button has been made on the window. | |
virtual void | OnInvalidateData (int data) |
Some data on this window has become invalid. | |
virtual void | OnResize () |
Called after the window got resized. | |
virtual void | OnQueryTextFinished (char *str) |
The query window opened from this window has closed. | |
Private Attributes | |
VehicleType | vt |
Waypoint * | wp |
Definition at line 35 of file waypoint_gui.cpp.
virtual void WaypointWindow::OnClick | ( | Point | pt, | |
int | widget, | |||
int | click_count | |||
) | [inline, virtual] |
A click with the left mouse button has been made on the window.
pt | the point inside the window that has been clicked. | |
widget | the clicked widget. | |
click_count | Number of fast consecutive clicks at same position |
Reimplemented from Window.
Definition at line 78 of file waypoint_gui.cpp.
References _ctrl_pressed, CS_ALPHANUMERAL, Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem< Tpool >::index, MAX_LENGTH_STATION_NAME_BYTES, MAX_LENGTH_STATION_NAME_PIXELS, BaseStation::owner, OWNER_NONE, QSF_ENABLE_DEFAULT, SetDParam(), ShowQueryString(), and BaseStation::xy.
virtual void WaypointWindow::OnInvalidateData | ( | int | data | ) | [inline, virtual] |
Some data on this window has become invalid.
data | information about the changed data. |
Reimplemented from Window.
Definition at line 100 of file waypoint_gui.cpp.
References BaseStation::IsInUse(), BaseStation::owner, OWNER_NONE, ScrollWindowTo(), Window::SetWidgetDisabledState(), TILE_SIZE, TileX(), TileY(), and BaseStation::xy.
virtual void WaypointWindow::OnPaint | ( | ) | [inline, virtual] |
The window must be repainted.
Reimplemented from Window.
Definition at line 73 of file waypoint_gui.cpp.
References Window::DrawWidgets().
virtual void WaypointWindow::OnQueryTextFinished | ( | char * | str | ) | [inline, virtual] |
The query window opened from this window has closed.
str | the new value of the string, NULL if the window was cancelled or an empty string when the default button was pressed, i.e. StrEmpty(str). |
Reimplemented from Window.
Definition at line 120 of file waypoint_gui.cpp.
References CMD_MSG, CMD_RENAME_WAYPOINT, and DoCommandP().
virtual void WaypointWindow::OnResize | ( | ) | [inline, virtual] |
Called after the window got resized.
For nested windows with a viewport, call NWidgetViewport::UpdateViewportCoordinates.
Reimplemented from Window.
Definition at line 112 of file waypoint_gui.cpp.
References NWidgetViewport::UpdateViewportCoordinates(), and Window::viewport.
virtual void WaypointWindow::SetStringParameters | ( | int | widget | ) | const [inline, virtual] |
Initialize string parameters for a widget.
Calls to this function are made during initialization to measure the size (that is as part of InitNested()), during drawing, and while re-initializing the window. Only for widgets that render text initializing is requested.
widget | Widget number. |
Reimplemented from Window.
Definition at line 68 of file waypoint_gui.cpp.
References Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem< Tpool >::index, and SetDParam().