| 1978 | /** Main toolbar. */ |
| 1979 | struct MainToolbarWindow : Window { |
| 1980 | MainToolbarWindow(WindowDesc &desc) : Window(desc) |
| 1981 | { |
| 1982 | this->InitNested(0); |
| 1983 | |
| 1984 | _last_started_action = CBF_NONE; |
| 1985 | this->flags.Reset(WindowFlag::WhiteBorder); |
| 1986 | this->SetWidgetDisabledState(WID_TN_PAUSE, _networking && !_network_server); // if not server, disable pause button |
| 1987 | this->SetWidgetDisabledState(WID_TN_FAST_FORWARD, _networking); // if networking, disable fast-forward button |
| 1988 | PositionMainToolbar(this); |
| 1989 | DoZoomInOutWindow(ZOOM_NONE, this); |
| 1990 | } |
| 1991 | |
| 1992 | void FindWindowPlacementAndResize(int, int def_height, bool allow_resize) override |
| 1993 | { |
nothing calls this directly
no test coverage detected