Inheritance diagram for BuildDocksToolbarWindow:

Public Member Functions | |
| BuildDocksToolbarWindow (const WindowDesc *desc, WindowNumber window_number) | |
| ~BuildDocksToolbarWindow () | |
| virtual void | OnPaint () |
| This window is currently being repainted. | |
| virtual void | OnClick (Point pt, int widget) |
| A click with the left mouse button has been made on the window. | |
| virtual EventState | OnKeyPress (uint16 key, uint16 keycode) |
| A key has been pressed. | |
| virtual void | OnPlaceObject (Point pt, TileIndex tile) |
| The user clicked some place on the map when a tile highlight mode has been set. | |
| virtual void | OnPlaceDrag (ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt) |
| The user is dragging over the map when the tile highlight mode has been set. | |
| virtual void | OnPlaceMouseUp (ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt, TileIndex start_tile, TileIndex end_tile) |
| The user has dragged over the map when the tile highlight mode has been set. | |
| virtual void | OnPlaceObjectAbort () |
| The user cancelled a tile highlight mode that has been set. | |
| virtual void | OnPlacePresize (Point pt, TileIndex tile_from) |
| The user moves over the map when a tile highlight mode has been set when the special mouse mode has been set to 'PRESIZE' mode. | |
Definition at line 163 of file dock_gui.cpp.
| virtual void BuildDocksToolbarWindow::OnClick | ( | Point | pt, | |
| int | widget | |||
| ) | [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. |
Reimplemented from Window.
Definition at line 181 of file dock_gui.cpp.
References _build_docks_button_proc, DTW_BUTTONS_BEGIN, and DTW_SEPERATOR.
| virtual EventState BuildDocksToolbarWindow::OnKeyPress | ( | uint16 | key, | |
| uint16 | keycode | |||
| ) | [inline, virtual] |
A key has been pressed.
| key | the Unicode value of the key. | |
| keycode | the untranslated key code including shift state. |
Reimplemented from Window.
Definition at line 186 of file dock_gui.cpp.
References BuildDocksClick_Aqueduct(), BuildDocksClick_Buoy(), BuildDocksClick_Canal(), BuildDocksClick_Demolish(), BuildDocksClick_Depot(), BuildDocksClick_Dock(), BuildDocksClick_Lock(), and BuildDocksClick_River().
| virtual void BuildDocksToolbarWindow::OnPlaceDrag | ( | ViewportPlaceMethod | select_method, | |
| ViewportDragDropSelectionProcess | select_proc, | |||
| Point | pt | |||
| ) | [inline, virtual] |
The user is dragging over the map when the tile highlight mode has been set.
| select_method | the method of selection (allowed directions) | |
| select_proc | what will be created when the drag is over. | |
| pt | the exact point on the map where the mouse is. |
Reimplemented from Window.
Definition at line 208 of file dock_gui.cpp.
References VpSelectTilesWithMethod(), Point::x, and Point::y.
| virtual void BuildDocksToolbarWindow::OnPlaceMouseUp | ( | ViewportPlaceMethod | select_method, | |
| ViewportDragDropSelectionProcess | select_proc, | |||
| Point | pt, | |||
| TileIndex | start_tile, | |||
| TileIndex | end_tile | |||
| ) | [inline, virtual] |
The user has dragged over the map when the tile highlight mode has been set.
| select_method | the method of selection (allowed directions) | |
| select_proc | what should be created. | |
| pt | the exact point on the map where the mouse was released. | |
| start_tile | the begin tile of the drag. | |
| end_tile | the end tile of the drag. |
Reimplemented from Window.
Definition at line 213 of file dock_gui.cpp.
References _ctrl_pressed, _game_mode, CcBuildBridge, CcBuildCanal, CMD_BUILD_BRIDGE, CMD_BUILD_CANAL, CMD_MSG, DoCommandP(), GUIPlaceProcDragXY(), ResetObjectToPlace(), and Point::x.
The user clicked some place on the map when a tile highlight mode has been set.
| pt | the exact point on the map that has been clicked. | |
| tile | the tile on the map that has been clicked. |
Reimplemented from Window.
Definition at line 203 of file dock_gui.cpp.
References _place_proc.
| virtual void BuildDocksToolbarWindow::OnPlacePresize | ( | Point | pt, | |
| TileIndex | tile_from | |||
| ) | [inline, virtual] |
The user moves over the map when a tile highlight mode has been set when the special mouse mode has been set to 'PRESIZE' mode.
An example of this is the tile highlight for dock building.
| pt | the exact point on the map where the mouse is. | |
| tile | the tile on the map where the mouse is. |
Reimplemented from Window.
Definition at line 245 of file dock_gui.cpp.
References GetInclinedSlopeDirection(), GetTileSlope(), INVALID_DIAGDIR, ReverseDiagDir(), TileAddByDiagDir(), and VpSetPresizeRange().
1.4.7